]> git.mxchange.org Git - friendica.git/blobdiff - mod/tagger.php
Merge pull request #5253 from rabuzarus/20180616_-_magic_auth_test_2
[friendica.git] / mod / tagger.php
index fa8dc35301f017898a15808171d8bc3c17c5b416..400c7787f65949807611f3950794868e808ea5f5 100644 (file)
@@ -32,7 +32,7 @@ function tagger_content(App $a) {
        logger('tagger: tag ' . $term . ' item ' . $item_id);
 
 
-       $item = Item::selectFirst(local_user(), [], ['id' => $item_id]);
+       $item = Item::selectFirst([], ['id' => $item_id]);
 
        if (!$item_id || !DBM::is_result($item)) {
                logger('tagger: no item ' . $item_id);
@@ -65,7 +65,7 @@ function tagger_content(App $a) {
                return;
        }
 
-       $uri = item_new_uri($a->get_hostname(),$owner_uid);
+       $uri = Item::newURI($owner_uid);
        $xterm = xmlify($term);
        $post_type = (($item['resource-id']) ? L10n::t('photo') : L10n::t('status'));
        $targettype = (($item['resource-id']) ? ACTIVITY_OBJ_IMAGE : ACTIVITY_OBJ_NOTE );