Unlisted/searchability=public posts hashtag search
This commit is contained in:
parent
ca66c47649
commit
222a31c37c
5 changed files with 17 additions and 2 deletions
|
@ -23,6 +23,8 @@ class FanOutOnWriteService < BaseService
|
|||
elsif broadcastable_unlisted?
|
||||
fan_out_to_public_recipients!
|
||||
fan_out_to_public_unlisted_streams!
|
||||
elsif broadcastable_unlisted2?
|
||||
fan_out_to_unlisted_streams!
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -73,6 +75,10 @@ class FanOutOnWriteService < BaseService
|
|||
broadcast_to_public_unlisted_streams!
|
||||
end
|
||||
|
||||
def fan_out_to_unlisted_streams!
|
||||
broadcast_to_hashtag_streams!
|
||||
end
|
||||
|
||||
def deliver_to_self!
|
||||
FeedManager.instance.push_to_home(@account, @status, update: update?) if @account.local?
|
||||
end
|
||||
|
@ -242,6 +248,10 @@ class FanOutOnWriteService < BaseService
|
|||
@status.public_unlisted_visibility? && !@status.reblog? && !@account.silenced?
|
||||
end
|
||||
|
||||
def broadcastable_unlisted2?
|
||||
@status.unlisted_visibility? && @status.public_searchability? && !@status.reblog? && !@account.silenced?
|
||||
end
|
||||
|
||||
class AntennaCollection
|
||||
def initialize(status, update, stl_home = false) # rubocop:disable Style/OptionalBooleanParameter
|
||||
@status = status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue