diff options
Diffstat (limited to 'app/views/api/statuses')
-rw-r--r-- | app/views/api/statuses/context.rabl | 13 | ||||
-rw-r--r-- | app/views/api/statuses/home.rabl | 2 | ||||
-rw-r--r-- | app/views/api/statuses/mentions.rabl | 2 | ||||
-rw-r--r-- | app/views/api/statuses/show.rabl | 31 |
4 files changed, 0 insertions, 48 deletions
diff --git a/app/views/api/statuses/context.rabl b/app/views/api/statuses/context.rabl deleted file mode 100644 index 71aff690d..000000000 --- a/app/views/api/statuses/context.rabl +++ /dev/null @@ -1,13 +0,0 @@ -object false - -node :ancestors do - @ancestors.map do |status| - partial('api/statuses/show', object: status) - end -end - -node :descendants do - @descendants.map do |status| - partial('api/statuses/show', object: status) - end -end diff --git a/app/views/api/statuses/home.rabl b/app/views/api/statuses/home.rabl deleted file mode 100644 index 12f00dd21..000000000 --- a/app/views/api/statuses/home.rabl +++ /dev/null @@ -1,2 +0,0 @@ -collection @statuses -extends('api/statuses/show') diff --git a/app/views/api/statuses/mentions.rabl b/app/views/api/statuses/mentions.rabl deleted file mode 100644 index 12f00dd21..000000000 --- a/app/views/api/statuses/mentions.rabl +++ /dev/null @@ -1,2 +0,0 @@ -collection @statuses -extends('api/statuses/show') diff --git a/app/views/api/statuses/show.rabl b/app/views/api/statuses/show.rabl deleted file mode 100644 index f06aa6e74..000000000 --- a/app/views/api/statuses/show.rabl +++ /dev/null @@ -1,31 +0,0 @@ -object @status -attributes :id, :created_at, :in_reply_to_id - -node(:uri) { |status| TagManager.instance.uri_for(status) } -node(:content) { |status| Formatter.instance.format(status) } -node(:url) { |status| TagManager.instance.url_for(status) } -node(:reblogs_count) { |status| status.reblogs_count } -node(:favourites_count) { |status| status.favourites_count } -node(:favourited) { |status| current_account.favourited?(status) } -node(:reblogged) { |status| current_account.reblogged?(status) } - -child :reblog => :reblog do - extends('api/statuses/show') -end - -child :account do - extends('api/accounts/show') -end - -child :media_attachments, object_root: false do - attributes :id, :remote_url, :type - - node(:url) { |media| full_asset_url(media.file.url) } - node(:preview_url) { |media| full_asset_url(media.file.url(:small)) } -end - -child :mentions, object_root: false do - node(:url) { |mention| TagManager.instance.url_for(mention.account) } - node(:acct) { |mention| mention.account.acct } - node(:id) { |mention| mention.account_id } -end |