diff options
Diffstat (limited to 'app/views/api/v1')
-rw-r--r-- | app/views/api/v1/statuses/_show.rabl | 4 | ||||
-rw-r--r-- | app/views/api/v1/statuses/_tags.rabl | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/app/views/api/v1/statuses/_show.rabl b/app/views/api/v1/statuses/_show.rabl index 00e6f64c1..3435d1039 100644 --- a/app/views/api/v1/statuses/_show.rabl +++ b/app/views/api/v1/statuses/_show.rabl @@ -17,3 +17,7 @@ end child :mentions, object_root: false do extends 'api/v1/statuses/_mention' end + +child :tags, object_root: false do + extends 'api/v1/statuses/_tags' +end diff --git a/app/views/api/v1/statuses/_tags.rabl b/app/views/api/v1/statuses/_tags.rabl new file mode 100644 index 000000000..25e7b0fac --- /dev/null +++ b/app/views/api/v1/statuses/_tags.rabl @@ -0,0 +1,2 @@ +attribute :name +node(:url) { |tag| tag_url(tag) } |