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:
Roman Rizzi 2020-12-04 15:09:20 -03:00 committed by GitHub
parent 4d9686c494
commit 4aeb3ef8e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) => {