Merge branch 'akkoma-support-part-2' into 'develop'

oops

See merge request pleroma/pleroma-fe!2188
This commit is contained in:
HJ 2025-06-28 19:47:17 +00:00
commit 79f4e44028

View file

@ -2,9 +2,14 @@ import { useInterfaceStore } from 'src/stores/interface.js'
import apiService from '../api/api.service.js' import apiService from '../api/api.service.js'
import { promiseInterval } from '../promise_interval/promise_interval.js' import { promiseInterval } from '../promise_interval/promise_interval.js'
// For using include_types when fetching notifications. const update = ({ store, notifications, older }) => {
// Note: chat_mention excluded as pleroma-fe polls them separately store.dispatch('addNewNotifications', { notifications, older })
const mastoApiNotificationTypes = [ }
const fetchAndUpdate = ({ store, credentials, older = false, since }) => {
// For using include_types when fetching notifications.
// Note: chat_mention excluded as pleroma-fe polls them separately
const mastoApiNotificationTypes = [
'mention', 'mention',
'status', 'status',
'favourite', 'favourite',
@ -15,13 +20,8 @@ const mastoApiNotificationTypes = [
'poll', 'poll',
'pleroma:emoji_reaction', 'pleroma:emoji_reaction',
'pleroma:report' 'pleroma:report'
] ]
const update = ({ store, notifications, older }) => {
store.dispatch('addNewNotifications', { notifications, older })
}
const fetchAndUpdate = ({ store, credentials, older = false, since }) => {
const args = { credentials } const args = { credentials }
const { getters } = store const { getters } = store
const rootState = store.rootState || store.state const rootState = store.rootState || store.state