properly distribute announcement posts made thru `admin:announce`
parent
2d99300a6d
commit
be251c1eb4
|
@ -816,7 +816,9 @@ class Bangtags
|
||||||
footer: footer,
|
footer: footer,
|
||||||
local_only: post_cmd[2] == 'local'
|
local_only: post_cmd[2] == 'local'
|
||||||
)
|
)
|
||||||
FanOutOnWriteService.new.call(s)
|
|
||||||
|
DistributionWorker.perform_async(s.id)
|
||||||
|
ActivityPub::DistributionWorker.perform_async(s) unless s.local_only?
|
||||||
|
|
||||||
@chunks << 'Announce successful.'
|
@chunks << 'Announce successful.'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue