about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-07-06 15:06:49 +0200
committerStarfall <us@starfall.systems>2023-07-07 11:46:57 -0500
commit0f2adc26fc6aeb82ba7174f14e6b5804f336c381 (patch)
tree4b5b2c0dd4f2722fd741954a36fbdb4b86fb3ce6 /app/helpers
parent912bcad559d815d4839d6b202bdacad19439a6cc (diff)
Merge pull request from GHSA-55j9-c3mp-6fcq HEAD main
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/formatting_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/formatting_helper.rb b/app/helpers/formatting_helper.rb
index 5b2ac1a2a..f44cf7973 100644
--- a/app/helpers/formatting_helper.rb
+++ b/app/helpers/formatting_helper.rb
@@ -54,6 +54,10 @@ module FormattingHelper
   end
 
   def account_field_value_format(field, with_rel_me: true)
-    html_aware_format(field.value, field.account.local?, with_rel_me: with_rel_me, with_domains: true, multiline: false)
+    if field.verified? && !field.account.local?
+      TextFormatter.shortened_link(field.value_for_verification)
+    else
+      html_aware_format(field.value, field.account.local?, with_rel_me: with_rel_me, with_domains: true, multiline: false)
+    end
   end
 end