Scope general broadcasts by account

Because DoS ourselves is not fun
This commit is contained in:
Jorge Manrubia
2025-12-02 18:10:49 +01:00
parent 32fe4339ee
commit dfe8e7bd5d
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -3,5 +3,6 @@ module Board::Broadcastable
included do
broadcasts_refreshes
broadcasts_refreshes_to ->(board) { [ board.account, :all_boards ] }
end
end
+1 -1
View File
@@ -3,5 +3,5 @@
<%= turbo_stream_from board %>
<% end %>
<% else %>
<%= turbo_stream_from :all_boards %>
<%= turbo_stream_from [ Current.account, :all_boards ] %>
<% end %>