about summary refs log tree commit diff
path: root/app/helpers/admin/account_moderation_notes_helper.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-02-17 22:31:21 +0100
committerGitHub <noreply@github.com>2022-02-17 22:31:21 +0100
commitc8ef003c6b40e9b7212f43f1b5706b0967fcfe8a (patch)
tree7ab6dc75943d22b27df0ac411483b34f79e72211 /app/helpers/admin/account_moderation_notes_helper.rb
parentec4f9066189fbab4368a275e9cd654dc7ad48217 (diff)
parent41a8606627216e8ed32fb562d245327e5985ba2d (diff)
Merge pull request #1692 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/helpers/admin/account_moderation_notes_helper.rb')
-rw-r--r--app/helpers/admin/account_moderation_notes_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/admin/account_moderation_notes_helper.rb b/app/helpers/admin/account_moderation_notes_helper.rb
index 40b2a5289..2f08538ca 100644
--- a/app/helpers/admin/account_moderation_notes_helper.rb
+++ b/app/helpers/admin/account_moderation_notes_helper.rb
@@ -1,10 +1,10 @@
 # frozen_string_literal: true
 
 module Admin::AccountModerationNotesHelper
-  def admin_account_link_to(account)
+  def admin_account_link_to(account, path: nil)
     return if account.nil?
 
-    link_to admin_account_path(account.id), class: name_tag_classes(account), title: account.acct do
+    link_to path || admin_account_path(account.id), class: name_tag_classes(account), title: account.acct do
       safe_join([
                   image_tag(account.avatar.url, width: 15, height: 15, alt: display_name(account), class: 'avatar'),
                   content_tag(:span, account.acct, class: 'username'),