X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsubthread.php;h=1486a33b429bc2de89eee738a246ec08121ee6f8;hb=1f7f964bb7200d4f658742a999c07f1dd6cbe97c;hp=6cbaa1d2a744be3b466d6fcfba7adcda1b9e50a8;hpb=9330a6994c1b9aee49a482efe32e84ca1a944c9b;p=friendica.git diff --git a/mod/subthread.php b/mod/subthread.php index 6cbaa1d2a7..1486a33b42 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", @@ -103,7 +103,7 @@ EOT; $bodyverb = t('%1$s is following %2$s\'s %3$s'); if(! isset($bodyverb)) - return; + return; $arr = array(); @@ -123,7 +123,7 @@ EOT; $arr['author-name'] = $contact['name']; $arr['author-link'] = $contact['url']; $arr['author-avatar'] = $contact['thumb']; - + $ulink = '[url=' . $contact['url'] . ']' . $contact['name'] . '[/url]'; $alink = '[url=' . $item['author-link'] . ']' . $item['author-name'] . '[/url]'; $plink = '[url=' . $a->get_baseurl() . '/display/' . $owner['nickname'] . '/' . $item['id'] . ']' . $post_type . '[/url]'; @@ -154,5 +154,7 @@ EOT; call_hooks('post_local_end', $arr); killme(); + } -} + +