Skip to content

Commit

Permalink
Fix user attribution for coalesced updates
Browse files Browse the repository at this point in the history
  • Loading branch information
milesmcc committed May 20, 2024
1 parent f7f71dc commit 0f7212e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/lib/platform_web/components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,7 @@ defmodule PlatformWeb.Components do
<%= if @show_media do %>
<.media_text media={@head.media} />
<% end %>
<.user_text :if={@head.user} user={@head.user} />
<span
:if={@head.api_token}
class="text-gray-900 font-medium inline-flex gap-1 flex-wrap"
Expand Down Expand Up @@ -1668,7 +1669,7 @@ defmodule PlatformWeb.Components do

~H"""
<span class={"inline-flex gap-1 max-w-full " <> (if @compact, do: "", else: "flex-wrap")}>
<%= if @membership == :ignore or Permissions.can_view_attribute?(@current_user, @media, attr, @membership) do %>
<%= if @membership == :ignore or Permissions.can_view_attribute?(@current_user, @media, @attr, @membership) do %>
<%= if not is_nil(@value) and @value != [] and @value != "" do %>
<%= case @attr.type do %>
<% :text -> %>
Expand Down

0 comments on commit 0f7212e

Please sign in to comment.