aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-16 14:58:07 -0800
committerFriendika <info@friendika.com>2011-01-16 14:58:07 -0800
commitf4ebd2a21332264d998d5fad8b7e5e86dd889862 (patch)
treed4f816cc495f95d07de72676ab19f50c33a28eef /include
parente7ae4ad3fa010e5f636738366aae81e129990fa7 (diff)
downloadvolse-hubzilla-f4ebd2a21332264d998d5fad8b7e5e86dd889862.tar.gz
volse-hubzilla-f4ebd2a21332264d998d5fad8b7e5e86dd889862.tar.bz2
volse-hubzilla-f4ebd2a21332264d998d5fad8b7e5e86dd889862.zip
Don't send conversation slaps, only immediate replies. Redundant and flawed.
Diffstat (limited to 'include')
-rw-r--r--include/notifier.php23
1 files changed, 13 insertions, 10 deletions
diff --git a/include/notifier.php b/include/notifier.php
index 7791b9bd4..683cff360 100644
--- a/include/notifier.php
+++ b/include/notifier.php
@@ -207,7 +207,6 @@
));
}
else {
-
if($followup) {
foreach($items as $item) { // there is only one item
if($item['id'] == $item_id) {
@@ -224,7 +223,13 @@
continue;
$atom .= atom_entry($item,'text',$contact,$owner,true);
- $slaps[] = atom_entry($item,'html',$contact,$owner,true);
+
+ // There's a problem here - we *were* going to use salmon to provide semi-authenticated
+ // communication to OStatus, but unless we're the item author they won't verify.
+ // commented out for now, though we'll still send local replies (and any mentions
+ // that they contain) upstream. Rethinking the problem space.
+
+// $slaps[] = atom_entry($item,'html',$contact,$owner,true);
}
}
}
@@ -232,7 +237,7 @@
logger('notifier: ' . $atom, LOGGER_DATA);
- logger('notifier: slaps: ' . print_r($slaps,true), LOGGER_DATA);
+// logger('notifier: slaps: ' . print_r($slaps,true), LOGGER_DATA);
if($followup)
$recip_str = $parent['contact-id'];
@@ -324,14 +329,12 @@
// send additional slaps to mentioned remote tags (@foo@example.com)
- if(count($slaps) && count($url_recipients) && $notify_hub) {
+ if($slap && count($url_recipients) && $followup && $notify_hub) {
foreach($url_recipients as $url) {
- logger('notifier: urldelivery: ' . $url);
- foreach($slaps as $slappy) {
- if($url) {
- $deliver_status = slapper($owner,$url,$slappy);
- // TODO: redeliver/queue these items on failure, though there is no contact record
- }
+ if($url) {
+ logger('notifier: urldelivery: ' . $url);
+ $deliver_status = slapper($owner,$url,$slap);
+ // TODO: redeliver/queue these items on failure, though there is no contact record
}
}
}