mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 00:38:27 +00:00
Improving feed queries, switching API to doorkeeper authentication
This commit is contained in:
@@ -4,7 +4,7 @@ class ApiController < ApplicationController
|
||||
protected
|
||||
|
||||
def current_resource_owner
|
||||
User.find(doorkeeper_token.user_id) if doorkeeper_token
|
||||
User.find(doorkeeper_token.resource_owner_id) if doorkeeper_token
|
||||
end
|
||||
|
||||
def current_user
|
||||
|
||||
Reference in New Issue
Block a user