mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:16:38 -06:00
fix error
This commit is contained in:
parent
2a65dd41d4
commit
0c65c4d92e
@ -7,7 +7,8 @@ module Jobs
|
||||
|
||||
def execute(args)
|
||||
post = Post.where(id: args[:post_id]).first
|
||||
return unless post.present?
|
||||
# two levels of deletion
|
||||
return unless post.present? && post.topic.present?
|
||||
|
||||
if args[:cook].present?
|
||||
post.update_column(:cooked, post.cook(post.raw, topic_id: post.topic_id))
|
||||
|
Loading…
Reference in New Issue
Block a user