mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Rename all instances of bookmarkWithReminder to just bookmark (#9579)
* Rename all instances of bookmarkWithReminder and bookmark_with_reminder to just bookmark * Delete old bookmark code at the same time * Add migration to remove the bookmarkWithReminder post menu item if people have it set in site settings
This commit is contained in:
@@ -49,7 +49,6 @@ class PostSerializer < BasicPostSerializer
|
||||
:user_title,
|
||||
:reply_to_user,
|
||||
:bookmarked,
|
||||
:bookmarked_with_reminder,
|
||||
:bookmark_reminder_at,
|
||||
:bookmark_id,
|
||||
:bookmark_reminder_type,
|
||||
@@ -316,32 +315,24 @@ class PostSerializer < BasicPostSerializer
|
||||
true
|
||||
end
|
||||
|
||||
def bookmarked_with_reminder
|
||||
true
|
||||
end
|
||||
|
||||
def include_bookmarked?
|
||||
(actions.present? && actions.keys.include?(PostActionType.types[:bookmark]))
|
||||
end
|
||||
|
||||
def include_bookmarked_with_reminder?
|
||||
post_bookmark.present?
|
||||
end
|
||||
|
||||
def include_bookmark_reminder_at?
|
||||
include_bookmarked_with_reminder?
|
||||
include_bookmarked?
|
||||
end
|
||||
|
||||
def include_bookmark_reminder_type?
|
||||
include_bookmarked_with_reminder?
|
||||
include_bookmarked?
|
||||
end
|
||||
|
||||
def include_bookmark_name?
|
||||
include_bookmarked_with_reminder?
|
||||
include_bookmarked?
|
||||
end
|
||||
|
||||
def include_bookmark_id?
|
||||
include_bookmarked_with_reminder?
|
||||
include_bookmarked?
|
||||
end
|
||||
|
||||
def post_bookmark
|
||||
|
||||
Reference in New Issue
Block a user