mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 08:19:05 +00:00
Avoid dynamic methods due to processing speed (#2080)
This commit is contained in:
@@ -73,7 +73,7 @@ class ApiController < ApplicationController
|
||||
end
|
||||
|
||||
def current_user
|
||||
super || current_resource_owner
|
||||
current_resource_owner || super
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
nil
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user