Merge pull request #5086 from annando/issue-2880

Issue 2880: Editing post doesn't destroy mentions or hashtags anymore
This commit is contained in:
Hypolite Petovan 2018-05-19 12:01:05 -04:00 committed by GitHub
commit d4ebf7ae52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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';