aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-01-07 04:04:11 -0800
committerzotlabs <mike@macgirvin.com>2017-01-07 04:04:11 -0800
commit89f0ecf25d413d67fe96c1b9f0ee898d0864a49c (patch)
treeda6e29e0d10ebe3b0cceca06d29a063cf37ba3b5 /include
parentfb059bfdc320a0760ef3de5e4e21ded198f8ceaf (diff)
downloadvolse-hubzilla-89f0ecf25d413d67fe96c1b9f0ee898d0864a49c.tar.gz
volse-hubzilla-89f0ecf25d413d67fe96c1b9f0ee898d0864a49c.tar.bz2
volse-hubzilla-89f0ecf25d413d67fe96c1b9f0ee898d0864a49c.zip
update the atom_entry hook
Diffstat (limited to 'include')
-rw-r--r--include/feedutils.php19
1 files changed, 13 insertions, 6 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index b28a697fd..dfa3feed7 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -1178,9 +1178,6 @@ function atom_entry($item,$type,$author,$owner,$comment = false,$cid = 0) {
}
- $o .= '<link rel="ostatus:conversation" href="' . xmlify($item['parent_mid']) . '"/>' . "\r\n";
- $o .= '<ostatus:conversation>' . xmlify($item['parent_mid']) . '</ostatus:conversation>' . "\r\n";
-
if(activity_match($item['obj_type'],ACTIVITY_OBJ_EVENT) && activity_match($item['verb'],ACTIVITY_POST)) {
$obj = ((is_array($item['obj'])) ? $item['obj'] : json_decode($item['obj'],true));
@@ -1240,11 +1237,21 @@ function atom_entry($item,$type,$author,$owner,$comment = false,$cid = 0) {
// if($mentioned)
// $o .= $mentioned;
- call_hooks('atom_entry', $o);
-
$o .= '</entry>' . "\r\n";
- return $o;
+ $x = [
+ 'item' => $item,
+ 'type' => $type,
+ 'author' => $author,
+ 'owner' => $owner,
+ 'comment' => $comment,
+ 'abook_id => $cid,
+ 'entry' => $o
+ ];
+
+ call_hooks('atom_entry', $x);
+
+ return $x['entry'];
}