<% if can? :create, new_post(receiver) %>
<%= form_for Post.new(owner_id: Actor.normalize_id(receiver)), remote: true do |f| %> <%= f.hidden_field :owner_id %> <%= f.text_area :text, rows: 1, placeholder: t('post.input') %>
<%= f.submit t('activity.share'), class: "btn" %> <% SocialStream.activity_forms.each do |element| %> <%= render partial: "#{ element.to_s.pluralize }/new_activity", locals: { f: f, receiver: receiver } %> <% end %> <%= render partial: 'objects/form_privacy', locals: { f: f } %>
<% end %>
<%= javascript_tag do %> $(function(){ SocialStream.Wall.show(); }); <% end %> <% end %>