mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 12:24:55 +00:00
This change shows a notification number besides the flag icon in the post menu if there is reviewable content associated with the post. Additionally, if there is pending stuff to review, the icon has a red background. We have also removed the list of links below a post with the flag status. A reviewer is meant to click the number beside the flag icon to view the flags. As a consequence of losing those links, we've removed the ability to undo or ignore flags below a post.
10 lines
269 B
Ruby
10 lines
269 B
Ruby
class RemoveLikeCountFromPostMenu < ActiveRecord::Migration[5.2]
|
|
def up
|
|
execute(<<~SQL)
|
|
UPDATE site_settings
|
|
SET value = REGEXP_REPLACE(REPLACE(REPLACE(value, 'like-count', ''), '||', '|'), '^\\|', '')
|
|
WHERE name = 'post_menu'
|
|
SQL
|
|
end
|
|
end
|