recount tags when public note

This commit is contained in:
lealife committed 2016-04-16 11:31:27 +08:00
1 parent a9d49369e2
commit 139906b9d6
1 file changed
+5
+5
View File
@@ -455,6 +455,11 @@ func (this *NoteService) UpdateNote(updatedUserId, noteId string, needUpdate bso
if !note.IsBlog { if !note.IsBlog {
needUpdate["PublicTime"] = needUpdate["UpdatedTime"] needUpdate["PublicTime"] = needUpdate["UpdatedTime"]
} }
// 重新计算tags
go (func() {
blogService.ReCountBlogTags(userId)
})()
} }
} }