diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-17 20:05:22 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-17 20:05:22 -0500 |
commit | b28fae301a338abe085780f6e74560190bd1c3e7 (patch) | |
tree | 542c5280f74180582dee18fa70d2f945353bb7f1 /app/lib | |
parent | f927cb47b493fa73bc098d041ba0895992b49bcc (diff) |
make sure announcements get streamed to the local tl & make them unlisted-local visibility
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/bangtags.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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 |