Browse Source

add "tagged" hook (bots and such)

pull/494/head
friendica 9 years ago
parent
commit
25773b41cb
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      include/items.php

+ 6
- 1
include/items.php View File

@ -1186,7 +1186,7 @@ function tag_deliver($uid,$item_id) {
// use a local photo if we have one
$r = q("select thumb from contact where uid = %d and nurl = '%s' limit 1",
$r = q("select * from contact where uid = %d and nurl = '%s' limit 1",
intval($u[0]['uid']),
dbesc(normalise_link($item['author-link']))
);
@ -1210,6 +1210,11 @@ function tag_deliver($uid,$item_id) {
'otype' => 'item'
));
$arr = array('item' => $item, 'user' => $u[0], 'contact' => $r[0]);
call_hooks('tagged', $arr);
if((! $community_page) && (! $prvgroup))
return;


Loading…
Cancel
Save