Support status notification type
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
82db31f7ac
commit
5c48ea2f1a
11 changed files with 41 additions and 4 deletions
|
|
@ -18,6 +18,7 @@ export const visibleTypes = store => {
|
|||
return ([
|
||||
notificationVisibility.likes && 'like',
|
||||
notificationVisibility.mentions && 'mention',
|
||||
notificationVisibility.statuses && 'status',
|
||||
notificationVisibility.repeats && 'repeat',
|
||||
notificationVisibility.follows && 'follow',
|
||||
notificationVisibility.followRequest && 'follow_request',
|
||||
|
|
@ -28,7 +29,7 @@ export const visibleTypes = store => {
|
|||
].filter(_ => _))
|
||||
}
|
||||
|
||||
const statusNotifications = new Set(['like', 'mention', 'repeat', 'pleroma:emoji_reaction', 'poll'])
|
||||
const statusNotifications = new Set(['like', 'mention', 'status', 'repeat', 'pleroma:emoji_reaction', 'poll'])
|
||||
|
||||
export const isStatusNotification = (type) => statusNotifications.has(type)
|
||||
|
||||
|
|
@ -118,6 +119,9 @@ export const prepareNotificationObject = (notification, i18n) => {
|
|||
case 'like':
|
||||
i18nString = 'favorited_you'
|
||||
break
|
||||
case 'status':
|
||||
i18nString = 'subscribed_status'
|
||||
break
|
||||
case 'repeat':
|
||||
i18nString = 'repeated_you'
|
||||
break
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import { promiseInterval } from '../promise_interval/promise_interval.js'
|
|||
// Note: chat_mention excluded as pleroma-fe polls them separately
|
||||
const mastoApiNotificationTypes = [
|
||||
'mention',
|
||||
'status',
|
||||
'favourite',
|
||||
'reblog',
|
||||
'follow',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue