Add link from Web UI for Hashtags to the Moderation UI (#31448)

Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
This commit is contained in:
Emelia SmithandEugen Rochko authored and GitHub committed 2024-11-29 07:36:17 +00:00
1 parent 7a4370f2d9
commit eef8d2c855
5 files changed
+50 -5

No files matched your search

+5 -1
View File
@@ -3,10 +3,14 @@
class REST::TagSerializer < ActiveModel::Serializer
include RoutingHelper
attributes :name, :url, :history
attributes :id, :name, :url, :history
attribute :following, if: :current_user?
def id
object.id.to_s
end
def url
tag_url(object)
end