From b28fae301a338abe085780f6e74560190bd1c3e7 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Wed, 17 Jul 2019 20:05:22 -0500 Subject: make sure announcements get streamed to the local tl & make them unlisted-local visibility --- app/lib/bangtags.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/lib') diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index a434f36d8..40714097b 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -788,12 +788,16 @@ class Bangtags footer = "@#{@account.username}" end - PostStatusService.new.call( + s = PostStatusService.new.call( announcer, + visibility: :local, text: @vars['_admin:announce'], footer: footer, local_only: post_cmd[2] == 'local' ) + FanOutOnWriteService.new.call(s) + + @chunks << 'Announce successful.' end end end -- cgit