mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-12 21:06:11 -05:00
Adding a notification stack for error messages
This commit is contained in:
@@ -3,6 +3,10 @@ class Api::FollowsController < ApiController
|
||||
respond_to :json
|
||||
|
||||
def create
|
||||
if params[:uri].blank?
|
||||
raise ActiveRecord::RecordNotFound
|
||||
end
|
||||
|
||||
@follow = FollowService.new.(current_user.account, params[:uri])
|
||||
render action: :show
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user