From 935aae054fda9cfefc01b5d7829d3584922ba544 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 14 Mar 2019 22:07:42 -0400 Subject: [PATCH] #436: add is_local for statuses --- src/modules/statuses.js | 5 ----- src/services/entity_normalizer/entity_normalizer.service.js | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/modules/statuses.js b/src/modules/statuses.js index 1eb1a3e3b9..21d21e891a 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -269,12 +269,7 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us } const addNewNotifications = (state, { dispatch, notifications, older, visibleNotificationTypes }) => { - // const allStatuses = state.allStatuses - // const allStatusesObject = state.allStatusesObject each(notifications, (notification) => { - // notification.action = mergeOrAdd(allStatuses, allStatusesObject, notification.action).item - // notification.status = notification.status && mergeOrAdd(allStatuses, allStatusesObject, notification.status).item - // Only add a new notification if we don't have one for the same action if (!state.notifications.idStore.hasOwnProperty(notification.id)) { state.notifications.maxId = notification.id > state.notifications.maxId diff --git a/src/services/entity_normalizer/entity_normalizer.service.js b/src/services/entity_normalizer/entity_normalizer.service.js index 4ca7f56bb2..874fb5de4e 100644 --- a/src/services/entity_normalizer/entity_normalizer.service.js +++ b/src/services/entity_normalizer/entity_normalizer.service.js @@ -180,7 +180,7 @@ export const parseStatus = (data) => { output.external_url = data.url // TODO: handle is_local - output.is_local = true + output.is_local = data.pleroma.local } else { output.favorited = data.favorited output.fave_num = data.fave_num