X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsubthread.php;h=33cf7489c167764b716f3cee77ca7dae78011667;hb=e20e64390b4e0075c49d9b3b16137a6056e10a16;hp=6cbaa1d2a744be3b466d6fcfba7adcda1b9e50a8;hpb=9330a6994c1b9aee49a482efe32e84ca1a944c9b;p=friendica.git diff --git a/mod/subthread.php b/mod/subthread.php index 6cbaa1d2a7..33cf7489c1 100644 --- a/mod/subthread.php +++ b/mod/subthread.php @@ -4,7 +4,7 @@ require_once('include/security.php'); require_once('include/bbcode.php'); require_once('include/items.php'); -if(! function_exists('subthread_content')) { + function subthread_content(&$a) { if(! local_user() && ! remote_user()) { @@ -47,7 +47,7 @@ function subthread_content(&$a) { $remote_owner = $r[0]; } - // this represents the post owner on this system. + // this represents the post owner on this system. $r = q("SELECT `contact`.*, `user`.`nickname` FROM `contact` LEFT JOIN `user` ON `contact`.`uid` = `user`.`uid` WHERE `contact`.`self` = 1 AND `contact`.`uid` = %d LIMIT 1", @@ -107,6 +107,7 @@ EOT; $arr = array(); + $arr['guid'] = get_guid(32); $arr['uri'] = $uri; $arr['uid'] = $owner_uid; $arr['contact-id'] = $contact['id']; @@ -154,5 +155,7 @@ EOT; call_hooks('post_local_end', $arr); killme(); + } -} + +