Merge pull request #4761 from nonamethanks/fix-edit-link

User profiles: use name instead of id in links to post edits
This commit is contained in:
evazion
2021-03-12 22:47:28 -06:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -112,7 +112,7 @@
<td>
<%= presenter.upload_count(self) %>
<% if presenter.has_uploads? %>
(<%= link_to "tag changes report", post_versions_path(search: { updater_id: user.id, version: 1 }, type: "current") %>)
(<%= link_to "tag changes report", post_versions_path(search: { updater_name: user.name, version: 1 }, type: "current") %>)
<% end %>
<% if CurrentUser.is_moderator? %>
[<%= link_to "sample", posts_path(:tags => "user:#{user.name} order:random limit:#{PostSets::Post::MAX_PER_PAGE}") %>]