diff --git a/app/views/suggested_edit/show.html.erb b/app/views/suggested_edit/show.html.erb index 18e865110b8b005054358e471e6c666147d22243..719f8c60498a5af4d56cf79c40d2bd02c30259d4 100644 --- a/app/views/suggested_edit/show.html.erb +++ b/app/views/suggested_edit/show.html.erb @@ -74,8 +74,9 @@ <% tag_set = post.tag_set %> <% required_ids = post.category&.required_tag_ids %> <% topic_ids = post.category&.topic_tag_ids %> + <% moderator_ids = post.category&.moderator_tag_ids %> <div class="diff-old is-changed"> - <% category_sort_tags(post.tags, required_ids, topic_ids).each do |tag| %> + <% category_sort_tags(post.tags, required_ids, topic_ids, moderator_ids).each do |tag| %> <% required = required_ids&.include? tag.id %> <% topic = topic_ids&.include? tag.id %> <%= link_to tag.name, questions_tagged_path(tag_set: tag_set.id, tag: tag.name), @@ -83,7 +84,7 @@ <% end %> </div> <div class="diff-new is-changed"> - <% category_sort_tags(@edit.tags, required_ids, topic_ids).each do |tag| %> + <% category_sort_tags(@edit.tags, required_ids, topic_ids, moderator_ids).each do |tag| %> <% required = required_ids&.include? tag.id %> <% topic = topic_ids&.include? tag.id %> <%= link_to tag.name, questions_tagged_path(tag_set: tag_set.id, tag: tag.name),