From 3366a957219b15f5ab6f6eabbf5466e1e12082de Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Mon, 20 Jul 2020 03:58:14 -0500 Subject: [Feature] Add command tags; add #!edit and #!publish commands for mobile users --- app/services/update_status_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/services/update_status_service.rb') diff --git a/app/services/update_status_service.rb b/app/services/update_status_service.rb index 440b99ce7..795e43d01 100644 --- a/app/services/update_status_service.rb +++ b/app/services/update_status_service.rb @@ -13,7 +13,6 @@ class UpdateStatusService < BaseService media_attachments media_attachment_ids application - rate_limit ).freeze # Updates the content of an existing status. @@ -21,7 +20,7 @@ class UpdateStatusService < BaseService # @param [Hash] params The attributes of the new status. # @param [Enumerable] mentions Additional mentions added to the status. # @param [Enumerable] tags New tags for the status to belong to (implicit tags are preserved). - def call(status, params, mentions, tags) + def call(status, params, mentions = nil, tags = nil) raise ActiveRecord::RecordNotFound if status.blank? || status.discarded? || status.destroyed? return status if params.blank? @@ -47,6 +46,7 @@ class UpdateStatusService < BaseService ApplicationRecord.transaction do @status.update!(@params) + ProcessCommandTagsService.new.call(@account, @status) if @account.local? detach_deleted_tags attach_updated_tags end -- cgit