闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
276 B

  1. class Api::SalmonController < ApiController
  2. before_action :set_account
  3. def update
  4. ProcessInteractionService.new.(request.body.read, @account)
  5. render nothing: true, status: 201
  6. end
  7. private
  8. def set_account
  9. @account = Account.find(params[:id])
  10. end
  11. end