Adding public timeline
This commit is contained in:
parent
06016453bd
commit
1f650d327d
21 changed files with 229 additions and 71 deletions
|
@ -5,6 +5,7 @@ class FanOutOnWriteService < BaseService
|
|||
deliver_to_self(status) if status.account.local?
|
||||
deliver_to_followers(status)
|
||||
deliver_to_mentioned(status)
|
||||
deliver_to_public(status)
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -27,4 +28,8 @@ class FanOutOnWriteService < BaseService
|
|||
FeedManager.instance.push(:mentions, mentioned_account, status)
|
||||
end
|
||||
end
|
||||
|
||||
def deliver_to_public(status)
|
||||
FeedManager.instance.broadcast(:public, id: status.id)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue