Fix lost local tags upon update

This commit is contained in:
Michael 2023-12-19 15:28:20 +00:00
parent 3cfe7d61fc
commit fbcfa46beb
1 changed files with 4 additions and 0 deletions

View File

@ -196,6 +196,10 @@ class Item
$previous = Post::selectFirst(['edited'], $condition);
}
if (!empty($fields['body'])) {
$fields['body'] = self::setHashtags($fields['body']);
}
$rows = Post::update($fields, $condition);
if (is_bool($rows)) {
return $rows;