<%# todo this looks like an unused partial %> <% if @stream.any? && !@user.blocked_by?(current_user) %> <% @stream.each do |entity| %> <% next unless User.new.can_read?(entity) || (user_signed_in? && current_user.can_read?(entity)) %>
<%= image_tag entity.first_public_image(format: :large), style: 'max-width: 280px; object-fit: cover; min-height: 100%' %>
<% if user_signed_in? && current_user.id == entity.user_id %> <% if !User.new.can_read?(entity) %> visibility_off <% else %> visibility <% end %> <% end %>
<%= entity.class.icon %> <%= ContentFormatterService.show(text: entity.name, viewing_user: current_user) %> <% if entity.description.present? %> <%= entity.description %> <% end %>

<%= link_to @user.name, @user, class: "#{User.text_color}" %> updated a<%= 'n' if %(a e i o u).include?(entity.class.name.downcase.first) %> <%= entity.class.name.downcase %> <% if !entity.is_a?(Universe) && entity.universe.present? %> in the <%= link_to entity.universe.name, entity.universe, class: "#{Universe.text_color}" %> universe <% end %> <%= time_ago_in_words(entity.updated_at) %> ago.

<%= link_to "View #{entity.class.name}", entity, class: 'blue-text' %> <% if user_signed_in? && current_user.can_update?(entity) %> <%= link_to "Edit #{entity.class.name}", entity, class: 'green-text' %> <% end %>
<% end %> <% else %> <% if user_signed_in? && @user.blocked_by?(current_user) %>
You've blocked this user.
<% else %>
It seems <%= @user.name %> isn't sharing any public activity.
<% end %> <% end %>