#436: add is_local for statuses
This commit is contained in:
parent
97a3f9c0f5
commit
935aae054f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue