0
0
Fork 0

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 Smith 2024-11-29 08:36:17 +01:00 committed by GitHub
parent 7a4370f2d9
commit eef8d2c855
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 50 additions and 5 deletions

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