mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: In case a topic is deleted, allow us to serialize their posts
This commit is contained in:
parent
8a1197626d
commit
14a8b3e29c
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ module PostGuardian
|
|||
not(is_flag || already_taken_this_action) &&
|
||||
|
||||
# nothing except flagging on archived topics
|
||||
not(post.topic.archived?) &&
|
||||
not(post.topic.try(:archived?)) &&
|
||||
|
||||
# nothing except flagging on deleted posts
|
||||
not(post.trashed?) &&
|
||||
|
|
Loading…
Reference in a new issue