mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
ab06f86fbe
- always means we always send previous replies with every email - never means we do not - "unless previously sent" ... is the default, in which we only email you each reply once The default_email_previous_replies site setting can control this toggle
33 lines
973 B
Ruby
33 lines
973 B
Ruby
class UserOptionSerializer < ApplicationSerializer
|
|
attributes :user_id,
|
|
:email_always,
|
|
:mailing_list_mode,
|
|
:email_digests,
|
|
:email_private_messages,
|
|
:email_direct,
|
|
:external_links_in_new_tab,
|
|
:dynamic_favicon,
|
|
:enable_quoting,
|
|
:disable_jump_reply,
|
|
:digest_after_days,
|
|
:automatically_unpin_topics,
|
|
:edit_history_public,
|
|
:auto_track_topics_after_msecs,
|
|
:new_topic_duration_minutes,
|
|
:email_previous_replies
|
|
|
|
|
|
def include_edit_history_public?
|
|
!SiteSetting.edit_history_visible_to_public
|
|
end
|
|
|
|
def auto_track_topics_after_msecs
|
|
object.auto_track_topics_after_msecs || SiteSetting.default_other_auto_track_topics_after_msecs
|
|
end
|
|
|
|
def new_topic_duration_minutes
|
|
object.new_topic_duration_minutes || SiteSetting.default_other_new_topic_duration_minutes
|
|
end
|
|
|
|
end
|