about summary refs log tree commit diff
path: root/app/helpers/formatting_helper.rb
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2023-07-07 11:49:24 -0500
committerStarfall <us@starfall.systems>2023-07-07 11:49:24 -0500
commita9de0735d2ad2fc615169507ba6215fa17da8c18 (patch)
treefbf0520231f4f31067b2b6a66d1b7ff701b6d904 /app/helpers/formatting_helper.rb
parent862ffc96153d299402791715766e2584a744dec4 (diff)
parent0f2adc26fc6aeb82ba7174f14e6b5804f336c381 (diff)
Merge branch 'main' into hotfix
Diffstat (limited to 'app/helpers/formatting_helper.rb')
-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