#436: add is_local for statuses

This commit is contained in:
dave 2019-03-14 22:07:42 -04:00
parent 97a3f9c0f5
commit 935aae054f
2 changed files with 1 additions and 6 deletions

View file

@ -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

View file

@ -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