mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Trigger an event when a post is bookmarked. (#11407)
When we renamed BookmarkWithReminder to Bookmark in ca539fd
, the bookmark event trigger was removed with the old code, and we forgot to add it again.
This commit is contained in:
parent
4d9686c494
commit
4aeb3ef8e0
@ -343,6 +343,7 @@ const Post = RestModel.extend({
|
||||
bookmark_id: savedData.id,
|
||||
});
|
||||
resolve({ closedWithoutSaving: false });
|
||||
this.appEvents.trigger("page:bookmark-post-toggled", this);
|
||||
this.appEvents.trigger("post-stream:refresh", { id: this.id });
|
||||
},
|
||||
afterDelete: (topicBookmarked) => {
|
||||
|
Loading…
Reference in New Issue
Block a user