DELETE /api/v1/suggestions/:account_id
When blocking, remove suggestion from both sides. Muting not affected,
since muting is supposed to be invisible to the target.
render json: @accounts, each_serializer: REST::AccountSerializer
end
+ def destroy
+ PotentialFriendshipTracker.remove(current_account.id, params[:id])
+ render_empty
+ end
+
private
def set_accounts
private
- def remove_potential_friendship(other_account)
+ def remove_potential_friendship(other_account, mutual = false)
PotentialFriendshipTracker.remove(id, other_account.id)
+ PotentialFriendshipTracker.remove(other_account.id, id) if mutual
end
end
resources :streaming, only: [:index]
resources :custom_emojis, only: [:index]
- resources :suggestions, only: [:index]
+ resources :suggestions, only: [:index, :destroy]
get '/search', to: 'search#index', as: :search