mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
UX: Use smaller messages for moderator actions.
This commit is contained in:
parent
326b2812e4
commit
bb93a345eb
25 changed files with 171 additions and 60 deletions
|
@ -504,7 +504,7 @@ class ImportScripts::Base
|
|||
|
||||
def update_bumped_at
|
||||
puts "", "updating bumped_at on topics"
|
||||
Post.exec_sql("update topics t set bumped_at = COALESCE((select max(created_at) from posts where topic_id = t.id and post_type != #{Post.types[:moderator_action]}), bumped_at)")
|
||||
Post.exec_sql("update topics t set bumped_at = COALESCE((select max(created_at) from posts where topic_id = t.id and post_type = #{Post.types[:regular]}), bumped_at)")
|
||||
end
|
||||
|
||||
def update_last_posted_at
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue