about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-07-14 01:23:10 +0200
committerGitHub <noreply@github.com>2022-07-14 01:23:10 +0200
commit6ca0de9494fe47d2c322335c3a257896140a22fb (patch)
treebeb558058e08470e3c331b0d07ffabb76eaa0685 /app/models
parente7aa2be828f6a632dadd5c41e2364cea91ddbb2c (diff)
Fix nil error when rendering featured hashtags on profile (#18808)
Regression from #18795
Diffstat (limited to 'app/models')
-rw-r--r--app/models/featured_tag.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/featured_tag.rb b/app/models/featured_tag.rb
index c9c285bfa..201ce75f5 100644
--- a/app/models/featured_tag.rb
+++ b/app/models/featured_tag.rb
@@ -22,6 +22,8 @@ class FeaturedTag < ApplicationRecord
   before_create :set_tag
   before_create :reset_data
 
+  delegate :display_name, to: :tag
+
   attr_writer :name
 
   def name