mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: Resetting bump date shouldn't fail when first post is hidden
This commit is contained in:
parent
fbd92916e5
commit
126be6c478
1 changed files with 1 additions and 1 deletions
|
@ -1357,7 +1357,7 @@ class Topic < ActiveRecord::Base
|
||||||
user_deleted: false,
|
user_deleted: false,
|
||||||
hidden: false,
|
hidden: false,
|
||||||
post_type: Post.types[:regular]
|
post_type: Post.types[:regular]
|
||||||
).last
|
).last || first_post
|
||||||
|
|
||||||
update!(bumped_at: post.created_at)
|
update!(bumped_at: post.created_at)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue