diff --git a/app/views/boosts/create.turbo_stream.erb b/app/views/boosts/create.turbo_stream.erb index 718c9cf0d..97548728a 100644 --- a/app/views/boosts/create.turbo_stream.erb +++ b/app/views/boosts/create.turbo_stream.erb @@ -3,5 +3,5 @@ <% end %> <%= turbo_stream.replace dom_id(@bubble, :thread) do %> - <%= render @bubble.thread %> + <%= render "bubbles/thread", bubble: @bubble %> <% end %> diff --git a/app/views/bubbles/_thread.html.erb b/app/views/bubbles/_thread.html.erb new file mode 100644 index 000000000..cbf5130a0 --- /dev/null +++ b/app/views/bubbles/_thread.html.erb @@ -0,0 +1,4 @@ +
+ <%= render partial: "thread_entries/thread_entry", collection: bubble.thread.entries, cache: true %> + <%= render "comments/new", bubble: bubble %> +
diff --git a/app/views/bubbles/show.html.erb b/app/views/bubbles/show.html.erb index 30b626e64..feff67172 100644 --- a/app/views/bubbles/show.html.erb +++ b/app/views/bubbles/show.html.erb @@ -19,8 +19,5 @@ <%= render "bubbles/bubble", bubble: @bubble %> -
- <%= render partial: "thread_entries/thread_entry", collection: @bubble.thread.entries, cache: true %> - <%= render "comments/new", bubble: @bubble %> -
+ <%= render "bubbles/thread", bubble: @bubble %> <% end %>