Module: NewsmastMastodon::Overrides::ScheduledStatusesController
- Defined in:
- app/lib/newsmast_mastodon/overrides/scheduled_statuses_controller.rb
Instance Method Summary collapse
Instance Method Details
#update ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'app/lib/newsmast_mastodon/overrides/scheduled_statuses_controller.rb', line 7 def update ActiveRecord::Base.transaction do @status.destroy! @status = post_status_service end render json: @status, serializer: REST::ScheduledStatusSerializer rescue PostStatusService::UnexpectedMentionsError => e render json: unexpected_accounts_error_json(e), status: 422 end |