diff options
author | David Yip <yipdw@member.fsf.org> | 2018-04-13 16:38:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-13 16:38:15 -0500 |
commit | b7804028c2708c82cbb15037abe569519975ba9d (patch) | |
tree | a5cf9f9678172c658a9de4be3e8c31f3dc5bfa8c /app/models/concerns | |
parent | a817f084eafaf5527445c29ab1d68f42b1a2872f (diff) | |
parent | acb434b0c998353e9e39379ecab27f68df41a100 (diff) |
Merge pull request #419 from ThibG/glitch-soc/features/bookmarks
Bookmarks
Diffstat (limited to 'app/models/concerns')
-rw-r--r-- | app/models/concerns/account_interactions.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/concerns/account_interactions.rb b/app/models/concerns/account_interactions.rb index fdf35a4e3..3830ba9b0 100644 --- a/app/models/concerns/account_interactions.rb +++ b/app/models/concerns/account_interactions.rb @@ -164,6 +164,10 @@ module AccountInteractions status.proper.favourites.where(account: self).exists? end + def bookmarked?(status) + status.proper.bookmarks.where(account: self).exists? + end + def reblogged?(status) status.proper.reblogs.where(account: self).exists? end |