about summary refs log tree commit diff
path: root/app/views/api
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/api')
-rw-r--r--app/views/api/statuses/context.rabl13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/api/statuses/context.rabl b/app/views/api/statuses/context.rabl
new file mode 100644
index 000000000..71aff690d
--- /dev/null
+++ b/app/views/api/statuses/context.rabl
@@ -0,0 +1,13 @@
+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