mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-27 10:30:15 -05:00
Avoid dynamic methods due to processing speed (#2080)
This commit is contained in:
parent
880590ad0d
commit
e2a1b574ab
@ -73,7 +73,7 @@ class ApiController < ApplicationController
|
||||
end
|
||||
|
||||
def current_user
|
||||
super || current_resource_owner
|
||||
current_resource_owner || super
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
nil
|
||||
end
|
||||
|
@ -42,7 +42,7 @@ class Status < ApplicationRecord
|
||||
cache_associated :account, :application, :media_attachments, :tags, :stream_entry, mentions: :account, reblog: [:account, :application, :stream_entry, :tags, :media_attachments, mentions: :account], thread: :account
|
||||
|
||||
def reply?
|
||||
super || !in_reply_to_id.nil?
|
||||
!in_reply_to_id.nil? || super
|
||||
end
|
||||
|
||||
def local?
|
||||
|
Loading…
Reference in New Issue
Block a user