]> git.mxchange.org Git - friendica.git/blobdiff - mod/tagrm.php
Replace remaining instances with "allowlist", "denylist" and "blocklist"
[friendica.git] / mod / tagrm.php
index 7e8ae8524b92a78a8be0a4cddfcc3549e62766a6..4022f999db3c04a87b7130e3d358dca6e2a0a1db 100644 (file)
@@ -97,15 +97,16 @@ function tagrm_content(App $a)
                // NOTREACHED
        }
 
-       $item = Item::selectFirst(['tag'], ['id' => $item_id, 'uid' => local_user()]);
+       $item = Item::selectFirst(['uri-id'], ['id' => $item_id, 'uid' => local_user()]);
        if (!DBA::isResult($item)) {
                DI::baseUrl()->redirect($_SESSION['photo_return']);
        }
 
-       $arr = explode(',', $item['tag']);
+       $tag_text = Tag::getCSVByURIId($item['uri-id']);
 
+       $arr = explode(',', $tag_text);
 
-       if (empty($item['tag'])) {
+       if (empty($arr)) {
                DI::baseUrl()->redirect($_SESSION['photo_return']);
        }