diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-03 14:01:10 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-03 14:01:42 +0200 |
commit | d0e2733f63a7bd9601e73adee1107da804f85c41 (patch) | |
tree | 9268986d2ae72a55d84b9d9b90328fa58bb3bf98 /app/models | |
parent | f24cb32e99afdb9fa31067fb647912fec92e9ed4 (diff) |
Fix reblogs of reblogs in UI, add follow form in UI
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 |