FEATURE: remove the featured link by editing the topic

This commit is contained in:
Neil Lalonde
2017-11-22 14:53:35 -05:00
parent d32c95b6e8
commit 6c86e0c94a
10 changed files with 63 additions and 8 deletions

View File

@@ -97,7 +97,6 @@ class PostRevisor
track_topic_field(:featured_link) do |topic_changes, featured_link|
if SiteSetting.topic_featured_link_enabled &&
featured_link.present? &&
topic_changes.guardian.can_edit_featured_link?(topic_changes.topic.category_id)
topic_changes.record_change('featured_link', topic_changes.topic.featured_link, featured_link)