Issue 2880: Editing post doesn't destroy mentions or hashtags anymore

This commit is contained in:
Michael 2018-05-19 14:55:27 +00:00
commit 3fe07cca57
3 changed files with 11 additions and 1 deletions

View file

@ -661,6 +661,11 @@ function item_post(App $a) {
$datarray['edit'] = true;
}
// Check for hashtags in the body and repair or add hashtag links
if ($preview || $orig_post) {
Item::setHashtags($datarray);
}
// preview mode - prepare the body for display and send it via json
if ($preview) {
require_once 'include/conversation.php';