2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

FEATURE: remove user option for edit history public

Users can no longer opt-in for "public" edit history
if site owner disables it.

This feature adds cost and complexity to post rendering since
user options need to be premeptively loaded for every user in the
stream. It is also confusing to explain to communities with private edit
history.
This commit is contained in:
Sam Saffron 2016-07-16 21:30:00 +10:00
parent 9893953f62
commit 46b34e3c62
58 changed files with 12 additions and 82 deletions

View file

@ -12,7 +12,6 @@ class UserOptionSerializer < ApplicationSerializer
:disable_jump_reply,
:digest_after_minutes,
:automatically_unpin_topics,
:edit_history_public,
:auto_track_topics_after_msecs,
:new_topic_duration_minutes,
:email_previous_replies,
@ -21,10 +20,6 @@ class UserOptionSerializer < ApplicationSerializer
:include_tl0_in_digests
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