Categories are not showing up at the bottom of the post
Fixes friendica/friendica#8766
This commit is contained in:
parent
322ac8945f
commit
e1dac1a87a
1 changed files with 6 additions and 8 deletions
|
@ -73,16 +73,14 @@ class Category
|
||||||
public static function storeTextByURIId(int $uri_id, int $uid, string $files)
|
public static function storeTextByURIId(int $uri_id, int $uid, string $files)
|
||||||
{
|
{
|
||||||
$message = Item::selectFirst(['deleted'], ['uri-id' => $uri_id, 'uid' => $uid]);
|
$message = Item::selectFirst(['deleted'], ['uri-id' => $uri_id, 'uid' => $uid]);
|
||||||
if (!DBA::isResult($message)) {
|
if (DBA::isResult($message)) {
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Clean up all tags
|
// Clean up all tags
|
||||||
DBA::delete('post-category', ['uri-id' => $uri_id, 'uid' => $uid]);
|
DBA::delete('post-category', ['uri-id' => $uri_id, 'uid' => $uid]);
|
||||||
|
|
||||||
if ($message['deleted']) {
|
if ($message['deleted']) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (preg_match_all("/\[(.*?)\]/ism", $files, $result)) {
|
if (preg_match_all("/\[(.*?)\]/ism", $files, $result)) {
|
||||||
foreach ($result[1] as $file) {
|
foreach ($result[1] as $file) {
|
||||||
|
|
Loading…
Reference in a new issue