Fix searchability is not work in search api

This commit is contained in:
KMY 2023-07-21 18:23:52 +09:00
parent 6f3ea2d767
commit d4602118fb

View file

@ -11,6 +11,7 @@ class SearchService < BaseService
@offset = options[:type].blank? ? 0 : options[:offset].to_i
@resolve = options[:resolve] || false
@following = options[:following] || false
@searchability = options[:searchability] || 'public'
default_results.tap do |results|
next if @query.blank? || @limit.zero?