diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-07-06 15:06:49 +0200 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2023-07-07 11:46:57 -0500 |
commit | 0f2adc26fc6aeb82ba7174f14e6b5804f336c381 (patch) | |
tree | 4b5b2c0dd4f2722fd741954a36fbdb4b86fb3ce6 /app/helpers | |
parent | 912bcad559d815d4839d6b202bdacad19439a6cc (diff) |
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/formatting_helper.rb | 6 |
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 |