else {
$verb = construct_verb($item);
$actobj = construct_activity($item);
+ $mentioned = get_mentions($item);
if($item['parent'] == $item['id']) {
$atom .= replace_macros($item_template, array(
'$content' => xmlify($item['body']),
'$verb' => xmlify($verb),
'$actobj' => $actobj, // do not xmlify
+ '$mentioned' => $mentioned,
'$comment_allow' => $allow
));
}
'$alt' => xmlify($a->get_baseurl() . '/display/' . $owner_nick . '/' . $item['id']),
'$verb' => xmlify($verb),
'$actobj' => $actobj, // do not xmlify
+ '$mentioned' => $mentioned,
'$parent_id' => xmlify($item['parent-uri']),
'$comment_allow' => $allow
));
$verb = construct_verb($item);
$actobj = construct_activity($item);
+ $mentioned = get_mentions($item);
if($item['id'] == $item_id) {
$slap = replace_macros($cmnt_template, array(
'$type' => 'html',
'$verb' => xmlify($verb),
'$actobj' => $actobj,
+ '$mentioned' => $mentioned,
'$alt' => xmlify($a->get_baseurl() . '/display/' . $owner['nickname'] . '/' . $item['id']),
'$content' => xmlify(bbcode($item['body'])),
'$parent_id' => xmlify($item['parent-uri']),
'$type' => 'text',
'$verb' => xmlify($verb),
'$actobj' => $actobj,
+ '$mentioned' => $mentioned,
'$alt' => xmlify($a->get_baseurl() . '/display/' . $owner['nickname'] . '/' . $item['id']),
'$content' => xmlify($item['body']),
'$parent_id' => xmlify($item['parent-uri']),
$verb = construct_verb($item);
$actobj = construct_activity($item);
+ $mentioned = get_mentions($item);
if($item['parent'] == $item['id']) {
$atom .= replace_macros($item_template, array(
'$type' => 'text',
'$verb' => xmlify($verb),
'$actobj' => $actobj,
+ '$mentioned' => $mentioned,
'$content' => xmlify($item['body']),
'$alt' => xmlify($a->get_baseurl() . '/display/' . $owner['nickname'] . '/' . $item['id']),
'$comment_allow' => (($item['last-child']) ? 1 : 0)
'$type' => 'html',
'$verb' => xmlify($verb),
'$actobj' => $actobj,
+ '$mentioned' => $mentioned,
'$content' => xmlify(bbcode($item['body'])),
'$alt' => xmlify($a->get_baseurl() . '/display/' . $owner['nickname'] . '/' . $item['id']),
'$comment_allow' => (($item['last-child']) ? 1 : 0)
'$type' => 'text',
'$verb' => xmlify($verb),
'$actobj' => $actobj,
+ '$mentioned' => $mentioned,
'$parent_id' => xmlify($item['parent-uri']),
'$comment_allow' => (($item['last-child']) ? 1 : 0)
));
'$type' => 'html',
'$verb' => xmlify($verb),
'$actobj' => $actobj,
+ '$mentioned' => $mentioned,
'$parent_id' => xmlify($item['parent-uri']),
'$comment_allow' => (($item['last-child']) ? 1 : 0)
));