X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Ftagger.php;h=6ae0cebf718ef40774c70e2865aff3e77ce72328;hb=10e84c548cdc3d980b89442f8b69b95910d62442;hp=8ee499f5f30c0fcd42ec5dce684abe5956da738b;hpb=912e008ded3d439f7779310eb422e4b871a9b63d;p=friendica.git
diff --git a/mod/tagger.php b/mod/tagger.php
index 8ee499f5f3..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 {
@@ -66,14 +58,14 @@ function tagger_content(&$a) {
}
$uri = item_new_uri($a->get_hostname(),$owner_uid);
-
+ $xterm = xmlify($term);
$post_type = (($item['resource-id']) ? t('photo') : t('status'));
$targettype = (($item['resource-id']) ? ACTIVITY_OBJ_PHOTO : ACTIVITY_OBJ_NOTE );
$link = xmlify('' . "\n") ;
- $body = $item['body'];
+ $body = xmlify($item['body']);
$target = <<< EOT
@@ -95,8 +87,8 @@ EOT;
1
$tagid
$tagid
- $term
- $term
+ $xterm
+ $xterm
EOT;