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:
parent
7a4370f2d9
commit
eef8d2c855
5 changed files with 50 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue