diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/account.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/account.rb b/app/models/account.rb index 8b6300e35..af8b6cc3d 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -59,11 +59,11 @@ class Account < ApplicationRecord end def favourited?(status) - (status.reblog? ? status.reblog : status).favourites.where(account: self).count == 1 + (status.reblog? ? status.reblog : status).favourites.where(account: self).count > 0 end def reblogged?(status) - (status.reblog? ? status.reblog : status).reblogs.where(account: self).count == 1 + (status.reblog? ? status.reblog : status).reblogs.where(account: self).count > 0 end def keypair |