aboutsummaryrefslogtreecommitdiffstats
path: root/include/notifier.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-17 03:10:19 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-17 03:10:19 -0700
commita50947a4bc3f779df8fa4e6777bc025fcefc8d21 (patch)
tree2196406c0c64494f5a4b604c695db6bbcd81897d /include/notifier.php
parentc5031139ebb46ce4994d3bd62059ae4eaba71359 (diff)
downloadvolse-hubzilla-a50947a4bc3f779df8fa4e6777bc025fcefc8d21.tar.gz
volse-hubzilla-a50947a4bc3f779df8fa4e6777bc025fcefc8d21.tar.bz2
volse-hubzilla-a50947a4bc3f779df8fa4e6777bc025fcefc8d21.zip
like, dislike, activity streams, etc.
Diffstat (limited to 'include/notifier.php')
-rw-r--r--include/notifier.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/include/notifier.php b/include/notifier.php
index cc2846735..5766747b8 100644
--- a/include/notifier.php
+++ b/include/notifier.php
@@ -13,6 +13,7 @@
require_once("session.php");
require_once("datetime.php");
+ require_once('include/items.php');
if($argc < 3)
exit;
@@ -114,6 +115,8 @@
$recipients = array_diff($recipients,$deny);
$conversant_str = dbesc(implode(', ',$conversants));
+
+
}
$r = q("SELECT * FROM `contact` WHERE `id` IN ( $conversant_str ) AND `blocked` = 0 AND `pending` = 0");
@@ -161,14 +164,13 @@
}
else {
- require_once('include/items.php');
-
- $verb = construct_verb($item);
- $actobj = construct_activity($item);
-
if($followup) {
foreach($items as $item) {
+
+ $verb = construct_verb($item);
+ $actobj = construct_activity($item);
+
if($item['id'] == $item_id) {
$atom .= replace_macros($cmnt_template, array(
'$name' => xmlify($owner['name']),
@@ -203,6 +205,10 @@
else {
foreach($contacts as $contact) {
if($item['contact-id'] == $contact['id']) {
+
+ $verb = construct_verb($item);
+ $actobj = construct_activity($item);
+
if($item['parent'] == $item['id']) {
$atom .= replace_macros($item_template, array(
'$name' => xmlify($contact['name']),
@@ -220,7 +226,7 @@
'$verb' => xmlify($verb),
'$actobj' => $actobj,
'$content' => xmlify($item['body']),
- '$comment_allow' => (($item['last-child'] && ($contact['rel']) && ($contact['rel'] != REL_FAN)) ? 1 : 0)
+ '$comment_allow' => (($item['last-child']) ? 1 : 0)
));
}
else {