Compare commits
2 Commits
985ef99590
...
9c51dc8dd5
Author | SHA1 | Date |
---|---|---|
Ariadne Conill | 9c51dc8dd5 | |
Ariadne Conill | 418fffcb41 |
|
@ -77,11 +77,15 @@ class ActivityPub::TagManager
|
||||||
# Unlisted and private statuses go out primarily to the followers collection
|
# Unlisted and private statuses go out primarily to the followers collection
|
||||||
# Others go out only to the people they mention
|
# Others go out only to the people they mention
|
||||||
def to(status)
|
def to(status)
|
||||||
|
to = []
|
||||||
|
|
||||||
|
to << uri_for(status.quote.account) if status.quote?
|
||||||
|
|
||||||
case status.visibility
|
case status.visibility
|
||||||
when 'public'
|
when 'public'
|
||||||
[COLLECTIONS[:public]]
|
to << COLLECTIONS[:public]
|
||||||
when 'unlisted', 'private'
|
when 'unlisted', 'private'
|
||||||
[account_followers_url(status.account)]
|
to << account_followers_url(status.account)
|
||||||
when 'direct', 'limited'
|
when 'direct', 'limited'
|
||||||
if status.account.silenced?
|
if status.account.silenced?
|
||||||
# Only notify followers if the account is locally silenced
|
# Only notify followers if the account is locally silenced
|
||||||
|
|
|
@ -62,6 +62,10 @@ class StatusEdit < ApplicationRecord
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def quote?
|
||||||
|
status.quote?
|
||||||
|
end
|
||||||
|
|
||||||
def proper
|
def proper
|
||||||
self
|
self
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue