Add Account#remote?
query method (#33508)
This commit is contained in:
parent
15669fcf75
commit
f22a2aab40
3 changed files with 30 additions and 10 deletions
|
@ -61,11 +61,7 @@ class Poll < ApplicationRecord
|
|||
votes.where(account: account).pluck(:choice)
|
||||
end
|
||||
|
||||
delegate :local?, to: :account
|
||||
|
||||
def remote?
|
||||
!local?
|
||||
end
|
||||
delegate :local?, :remote?, to: :account
|
||||
|
||||
def emojis
|
||||
@emojis ||= CustomEmoji.from_text(options.join(' '), account.domain)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue