From d0e2733f63a7bd9601e73adee1107da804f85c41 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 3 Sep 2016 14:01:10 +0200 Subject: Fix reblogs of reblogs in UI, add follow form in UI --- app/assets/javascripts/components/reducers/timelines.jsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/assets/javascripts/components/reducers') diff --git a/app/assets/javascripts/components/reducers/timelines.jsx b/app/assets/javascripts/components/reducers/timelines.jsx index 983518df7..616411186 100644 --- a/app/assets/javascripts/components/reducers/timelines.jsx +++ b/app/assets/javascripts/components/reducers/timelines.jsx @@ -9,6 +9,8 @@ function updateMatchingStatuses(state, needle, callback) { return list.map(function (status) { if (status.get('id') === needle.get('id')) { return callback(status); + } else if (status.getIn(['reblog', 'id'], null) === needle.get('id')) { + return status.set('reblog', callback(status.get('reblog'))); } return status; -- cgit