2
0
Fork 0

add support for "accepted your follow request" notifications

This commit is contained in:
notfire 2025-06-05 18:07:09 -04:00
commit 8f8571cda9
No known key found for this signature in database
3 changed files with 14 additions and 1 deletions

View file

@ -94,6 +94,14 @@
{{ ' ' }}
<small>{{ $t('notifications.followed_you') }}</small>
</span>
<span v-if="notification.type === 'follow_request_accepted'">
<FAIcon
class="type-icon"
icon="user-plus"
/>
{{ ' ' }}
<small>{{ $t('notifications.follow_request_accepted') }}</small>
</span>
<span v-if="notification.type === 'follow_request'">
<FAIcon
class="type-icon"
@ -203,7 +211,7 @@
</button>
</span>
<div
v-if="notification.type === 'follow' || notification.type === 'follow_request'"
v-if="notification.type === 'follow' || notification.type === 'follow_request' || notification.type === 'follow_request_accepted'"
class="follow-text"
>
<router-link

View file

@ -333,6 +333,7 @@
"error": "Error fetching notifications: {0}",
"favorited_you": "favorited your post",
"follow_request": "wants to follow you",
"follow_request_accepted": "accepted your follow request",
"followed_you": "followed you",
"load_older": "Load older notifications",
"migrated_to": "migrated to",

View file

@ -18,6 +18,7 @@ export const visibleTypes = store => {
rootState.config.notificationVisibility.polls && 'poll',
rootState.config.notificationVisibility.bites && 'bite',
rootState.config.notificationVisibility.bites && 'bite_note',
rootState.config.notificationVisibility.followRequest && 'follow_request_accepted',
rootState.config.notificationVisibility.edits && 'update'
].filter(_ => _))
}
@ -111,6 +112,9 @@ export const prepareNotificationObject = (notification, i18n, store) => {
case 'bite_note':
i18nString = 'bit_note'
break
case 'follow_request_accepted':
i18nString = 'follow_request_accepted'
break
case 'update':
i18nString = 'edited'
break