X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ftagrm.php;h=e81bd2af38940439120b16c9d9928c5388cb8636;hb=48a783c91a4fdff2182deb5d137712386f9f3086;hp=3aefe0680f7fe583e1ad2e470532efda12f914db;hpb=980de370472a100e81b90a2937e8a4ae710d4e99;p=friendica.git diff --git a/mod/tagrm.php b/mod/tagrm.php index 3aefe0680f..e81bd2af38 100644 --- a/mod/tagrm.php +++ b/mod/tagrm.php @@ -1,6 +1,6 @@ t('Tag(s) removed') . EOL); DI::baseUrl()->redirect($_SESSION['photo_return']); // NOTREACHED @@ -63,7 +63,7 @@ function update_tags($item_id, $tags) return; } - $item = Item::selectFirst(['uri-id'], ['id' => $item_id, 'uid' => local_user()]); + $item = Post::selectFirst(['uri-id'], ['id' => $item_id, 'uid' => local_user()]); if (!DBA::isResult($item)) { return; } @@ -97,12 +97,12 @@ function tagrm_content(App $a) // NOTREACHED } - $item = Item::selectFirst(['uri-id'], ['id' => $item_id, 'uid' => local_user()]); + $item = Post::selectFirst(['uri-id'], ['id' => $item_id, 'uid' => local_user()]); if (!DBA::isResult($item)) { DI::baseUrl()->redirect($_SESSION['photo_return']); } - $tag_text = Tag::tagTextFromItemId($item['uri-id']); + $tag_text = Tag::getCSVByURIId($item['uri-id']); $arr = explode(',', $tag_text);