Merge pull request #13742 from annando/edit-tags

Fix lost local tags upon update
This commit is contained in:
Hypolite Petovan 2023-12-20 08:38:08 -05:00 committed by GitHub
commit 8fbcdd371e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;