From 562044f36ad8ebe388e32eef2e5d44bec4a9af59 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 3 Nov 2016 13:59:31 +0100 Subject: Need to disable caching again due to bug in Rabl --- app/views/api/v1/accounts/relationship.rabl | 1 + app/views/api/v1/accounts/show.rabl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'app/views/api/v1/accounts') diff --git a/app/views/api/v1/accounts/relationship.rabl b/app/views/api/v1/accounts/relationship.rabl index 3e5bf882c..4f634877f 100644 --- a/app/views/api/v1/accounts/relationship.rabl +++ b/app/views/api/v1/accounts/relationship.rabl @@ -1,4 +1,5 @@ object @account +cache false attribute :id node(:following) { |account| @following[account.id] || false } node(:followed_by) { |account| @followed_by[account.id] || false } diff --git a/app/views/api/v1/accounts/show.rabl b/app/views/api/v1/accounts/show.rabl index 08199ec21..6aec6e14d 100644 --- a/app/views/api/v1/accounts/show.rabl +++ b/app/views/api/v1/accounts/show.rabl @@ -1,5 +1,5 @@ object @account -cache @account +cache false attributes :id, :username, :acct, :display_name, :note -- cgit