Making public pages responsive, removing reblogs/favs counts from them
This commit is contained in:
parent
d74da1a89a
commit
188c6f326b
8 changed files with 31 additions and 57 deletions
|
@ -14,9 +14,7 @@ class Favourite < ApplicationRecord
|
|||
"#{account.acct} favourited a status by #{status.account.acct}"
|
||||
end
|
||||
|
||||
def object_type
|
||||
target.object_type
|
||||
end
|
||||
delegate :object_type, to: :target
|
||||
|
||||
def thread
|
||||
status
|
||||
|
|
|
@ -11,8 +11,4 @@ class User < ApplicationRecord
|
|||
scope :prolific, -> { joins('inner join statuses on statuses.account_id = users.account_id').select('users.*, count(statuses.id) as statuses_count').group('users.id').order('statuses_count desc') }
|
||||
scope :recent, -> { order('created_at desc') }
|
||||
scope :admins, -> { where(admin: true) }
|
||||
|
||||
def admin?
|
||||
admin
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue