X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Ftagger.php;h=6ae0cebf718ef40774c70e2865aff3e77ce72328;hb=01daaafc92d09f042ae3f881bf97606c449f6d3e;hp=6212e2b9b3e82932b8ea2982051db4125b6caece;hpb=928faf3b9712e88e030b2ccbbc630e3991e03d03;p=friendica.git diff --git a/mod/tagger.php b/mod/tagger.php index 6212e2b9b3..6ae0cebf71 100644 --- a/mod/tagger.php +++ b/mod/tagger.php @@ -47,17 +47,9 @@ function tagger_content(&$a) { if(local_user() != $owner_uid) return; - if(remote_user()) { - $r = q("select * from contact where id = %d AND `uid` = %d limit 1", - intval(remote_user()), - intval($item['uid']) - ); - } - else { - $r = q("select * from contact where self = 1 and uid = %d limit 1", - intval(local_user()) - ); - } + $r = q("select * from contact where self = 1 and uid = %d limit 1", + intval(local_user()) + ); if(count($r)) $contact = $r[0]; else {