This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Avoid dynamic methods due to processing speed (
#2080
)
closed-social-glitch-2
839
7 years ago
committed by
Eugen
parent
880590ad0d
commit
e2a1b574ab
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/controllers/api_controller.rb
+1
-1
app/models/status.rb
+ 1
- 1
app/controllers/api_controller.rb
View File
@ -73,7 +73,7 @@ class ApiController < ApplicationController
end
def
current_user
super
||
current_resource_own
er
current_resource_owner
||
sup
er
rescue
ActiveRecord
::
RecordNotFound
nil
end
+ 1
- 1
app/models/status.rb
View File
@ -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?
Write
Preview
Loading…
Cancel
Save