0
0
Fork 0

Add Account#remote? query method (#33508)

This commit is contained in:
Matt Jankowski 2025-01-08 09:28:08 -05:00 committed by GitHub
parent 15669fcf75
commit f22a2aab40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 30 additions and 10 deletions

View file

@ -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)