Merge pull request #419 from ThibG/glitch-soc/features/bookmarks

Bookmarks
This commit is contained in:
David Yip
2018-04-13 16:38:15 -05:00
committed by GitHub
28 changed files with 701 additions and 1 deletions
@@ -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