diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-09 14:00:55 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-09 14:00:55 +0100 |
commit | 75f80bef107cfe9e9c0e6ba3dc51ef86c89e40cc (patch) | |
tree | d507368baac4e85d417af4c64ecc0d9c43a65963 /app/models/account.rb | |
parent | 23ebf60b95984764992c4b356048786ed0ab2953 (diff) |
Persist UI settings, add missing localizations for German
Diffstat (limited to 'app/models/account.rb')
-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 ba24cf153..ec0e81f7c 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -104,7 +104,7 @@ class Account < ApplicationRecord end def subscribed? - subscription_expires_at + !subscription_expires_at.blank? end def favourited?(status) @@ -189,7 +189,7 @@ class Account < ApplicationRecord def requested_map(target_account_ids, account_id) follow_mapping(FollowRequest.where(target_account_id: target_account_ids, account_id: account_id), :target_account_id) end - + private def follow_mapping(query, field) |