Fix issues with tags and mentions
Fix issue where leading @ or # of a mention/hashtag get duplicated Fix issue where normal tags were being overwritten by hashtags
This commit is contained in:
+1
-1
@@ -231,7 +231,7 @@ fn update(blog: String, slug: String, user: User, conn: DbConn, data: LenientFor
|
||||
|
||||
let hashtags = hashtags.into_iter().map(|h| h.to_camel_case()).collect::<HashSet<_>>()
|
||||
.into_iter().map(|t| Tag::build_activity(&conn, t)).collect::<Vec<_>>();
|
||||
post.update_tags(&conn, hashtags);
|
||||
post.update_hashtags(&conn, hashtags);
|
||||
|
||||
if post.published {
|
||||
if newly_published {
|
||||
|
||||
Reference in New Issue
Block a user