Fix rspec at least services
This commit is contained in:
parent
27391f1bc7
commit
1ecb577a8a
5 changed files with 21 additions and 4 deletions
|
@ -39,10 +39,13 @@ class UpdateStatusService < BaseService
|
|||
|
||||
queue_poll_notifications!
|
||||
reset_preview_card!
|
||||
update_references!
|
||||
update_metadata!
|
||||
update_references!
|
||||
broadcast_updates!
|
||||
|
||||
# Mentions are not updated (Cause unknown)
|
||||
@status.reload
|
||||
|
||||
@status
|
||||
rescue NoChangesSubmittedError
|
||||
# For calls that result in no changes, swallow the error
|
||||
|
@ -164,7 +167,6 @@ class UpdateStatusService < BaseService
|
|||
def update_metadata!
|
||||
ProcessHashtagsService.new.call(@status)
|
||||
ProcessMentionsService.new.call(@status)
|
||||
ProcessReferencesWorker.perform_async(@status.id, (@options[:status_reference_ids] || []).map(&:to_i).filter(&:positive?), [])
|
||||
end
|
||||
|
||||
def broadcast_updates!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue