commit: 0f20d0b0b0b8966ec10c372cfef03971c835a3fb
parent 062eb8491fa821440401fd4da7cc2f00be496609
Author: HJ <30-hj@users.noreply.git.pleroma.social>
Date: Thu, 26 Dec 2024 23:33:16 +0000
Merge branch 'kludge/null-status' into 'develop'
Check notification for null status
Closes #1137
See merge request pleroma/pleroma-fe!1569
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/services/entity_normalizer/entity_normalizer.service.js b/src/services/entity_normalizer/entity_normalizer.service.js
@@ -442,7 +442,9 @@ export const parseNotification = (data) => {
if (masto) {
output.type = mastoDict[data.type] || data.type
output.seen = data.pleroma.is_seen
- output.status = isStatusNotification(output.type) ? parseStatus(data.status) : null
+ // TODO: null check should be a temporary fix, I guess.
+ // Investigate why backend does this.
+ output.status = isStatusNotification(output.type) && data.status !== null ? parseStatus(data.status) : null
output.target = output.type !== 'move'
? null
: parseUser(data.target)