From fbcfa46bebac112475921d78893d76c303b1c9bb Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 19 Dec 2023 15:28:20 +0000 Subject: [PATCH] Fix lost local tags upon update --- src/Model/Item.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Model/Item.php b/src/Model/Item.php index e54d5fb098..524c4facb4 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -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; -- 2.39.5