mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00
FEATURE: Highlight expired bookmark reminders (#15317)
The user can select what happens with a bookamrk after it expires. New option allow bookmark's reminder to be kept even after it has expired. After a bookmark's reminder notification is created, the reminder date will be highlighted in red until the user resets the reminder date. User can do that using the new Clear Reminder button from the dropdown.
This commit is contained in:
@ -68,6 +68,7 @@ class CurrentUserSerializer < BasicUserSerializer
|
||||
:can_review,
|
||||
:draft_count,
|
||||
:default_calendar,
|
||||
:bookmark_auto_delete_preference,
|
||||
:pending_posts_count
|
||||
|
||||
delegate :user_stat, to: :object, private: true
|
||||
@ -142,6 +143,10 @@ class CurrentUserSerializer < BasicUserSerializer
|
||||
object.user_option.default_calendar
|
||||
end
|
||||
|
||||
def bookmark_auto_delete_preference
|
||||
object.user_option.bookmark_auto_delete_preference
|
||||
end
|
||||
|
||||
def can_send_private_email_messages
|
||||
scope.can_send_private_messages_to_email?
|
||||
end
|
||||
|
Reference in New Issue
Block a user