add "tagged" hook (bots and such)
This commit is contained in:
parent
eaaf14736c
commit
25773b41cb
|
@ -1186,7 +1186,7 @@ function tag_deliver($uid,$item_id) {
|
||||||
|
|
||||||
// use a local photo if we have one
|
// 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']),
|
intval($u[0]['uid']),
|
||||||
dbesc(normalise_link($item['author-link']))
|
dbesc(normalise_link($item['author-link']))
|
||||||
);
|
);
|
||||||
|
@ -1210,6 +1210,11 @@ function tag_deliver($uid,$item_id) {
|
||||||
'otype' => 'item'
|
'otype' => 'item'
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
|
$arr = array('item' => $item, 'user' => $u[0], 'contact' => $r[0]);
|
||||||
|
|
||||||
|
call_hooks('tagged', $arr);
|
||||||
|
|
||||||
if((! $community_page) && (! $prvgroup))
|
if((! $community_page) && (! $prvgroup))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user