Categories are not showing up at the bottom of the post

Fixes friendica/friendica#8766
This commit is contained in:
Michael 2020-06-15 03:43:51 +00:00
parent 322ac8945f
commit e1dac1a87a

View file

@ -73,16 +73,14 @@ class Category
public static function storeTextByURIId(int $uri_id, int $uid, string $files)
{
$message = Item::selectFirst(['deleted'], ['uri-id' => $uri_id, 'uid' => $uid]);
if (!DBA::isResult($message)) {
return;
}
if (DBA::isResult($message)) {
// Clean up all tags
DBA::delete('post-category', ['uri-id' => $uri_id, 'uid' => $uid]);
if ($message['deleted']) {
return;
}
}
if (preg_match_all("/\[(.*?)\]/ism", $files, $result)) {
foreach ($result[1] as $file) {