Fix #4770: Allow flaggers to update flag reason.

This commit is contained in:
evazion
2021-03-23 01:25:43 -05:00
parent 41e0cad458
commit 6a84d33409
6 changed files with 98 additions and 2 deletions

View File

@@ -2,6 +2,10 @@
<li>
<span class="prose"><%= format_text(flag.reason, inline: true) %></span>
<% if policy(flag).edit? %>
(<%= link_to "edit", edit_post_flag_url(flag) %>)
<% end %>
<% if policy(flag).can_view_flagger? %>
(<%= link_to_user(flag.creator) %>, <%= time_ago_in_words_tagged(flag.created_at) %>)
<% else %>