make sure announcements get streamed to the local tl & make them unlisted-local visibility
parent
f927cb47b4
commit
b28fae301a
|
@ -788,12 +788,16 @@ class Bangtags
|
||||||
footer = "@#{@account.username}"
|
footer = "@#{@account.username}"
|
||||||
end
|
end
|
||||||
|
|
||||||
PostStatusService.new.call(
|
s = PostStatusService.new.call(
|
||||||
announcer,
|
announcer,
|
||||||
|
visibility: :local,
|
||||||
text: @vars['_admin:announce'],
|
text: @vars['_admin:announce'],
|
||||||
footer: footer,
|
footer: footer,
|
||||||
local_only: post_cmd[2] == 'local'
|
local_only: post_cmd[2] == 'local'
|
||||||
)
|
)
|
||||||
|
FanOutOnWriteService.new.call(s)
|
||||||
|
|
||||||
|
@chunks << 'Announce successful.'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue