Add importing remote post

This commit is contained in:
KMY 2023-09-15 18:51:46 +09:00
parent 5fb6bce744
commit ddce464d70
4 changed files with 17 additions and 4 deletions

View file

@ -5,6 +5,7 @@ module StatusSearchConcern
included do
scope :indexable, -> { without_reblogs.where(visibility: [:public, :login], searchability: nil).joins(:account).where(account: { indexable: true }) }
scope :remote_dynamic_searchability, -> { remote.where(searchability: [:public, :private]) }
end
def searchable_by
@ -41,6 +42,10 @@ module StatusSearchConcern
@bookmarked_by ||= local_bookmarked.pluck(:id)
end
def bookmark_categoried_by
@bookmark_categoried_by ||= local_bookmark_categoried.pluck(:id).uniq
end
def emoji_reacted_by
@emoji_reacted_by ||= local_emoji_reacted.pluck(:id)
end