mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:01:18 +08:00
FIX: broken specs after new link alerting code
This commit is contained in:
@ -69,12 +69,15 @@ class PostCreator
|
||||
ensure_in_allowed_users if guardian.is_staff?
|
||||
@post.advance_draft_sequence
|
||||
@post.save_reply_relationships
|
||||
PostAlerter.new.after_save_post(@post)
|
||||
end
|
||||
|
||||
handle_spam
|
||||
track_latest_on_category
|
||||
enqueue_jobs
|
||||
if @post
|
||||
PostAlerter.post_created(@post)
|
||||
|
||||
handle_spam
|
||||
track_latest_on_category
|
||||
enqueue_jobs
|
||||
end
|
||||
|
||||
@post
|
||||
end
|
||||
|
Reference in New Issue
Block a user