diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-05 15:20:05 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-05 17:13:14 +0100 |
commit | 48b9619439818ecb344ae33c9c31a55ecb1aa27a (patch) | |
tree | ef350e3ebf2563adbe4d57778a08f561d912415f /app/views/api/v1 | |
parent | 62292797eccc5bcf47abae9f4daaa2c186660644 (diff) |
Adding hashtags
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) } |