mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 03:43:42 +01:00
Accept ActivityPub announce from the author of the original note (#6236)
This commit is contained in:
parent
8e4cf6282b
commit
0be9a1e321
1 changed files with 3 additions and 2 deletions
|
@ -15,7 +15,8 @@ class ActivityPub::Activity::Announce < ActivityPub::Activity
|
|||
account: @account,
|
||||
reblog: original_status,
|
||||
uri: @json['id'],
|
||||
created_at: @options[:override_timestamps] ? nil : @json['published']
|
||||
created_at: @options[:override_timestamps] ? nil : @json['published'],
|
||||
visibility: original_status.visibility
|
||||
)
|
||||
|
||||
distribute(status)
|
||||
|
@ -35,6 +36,6 @@ class ActivityPub::Activity::Announce < ActivityPub::Activity
|
|||
end
|
||||
|
||||
def announceable?(status)
|
||||
status.public_visibility? || status.unlisted_visibility?
|
||||
status.account_id == @account.id || status.public_visibility? || status.unlisted_visibility?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue