From 2bc24cc495c608658dfc65ada1a7bbd91b5ffc50 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 27 Mar 2024 10:19:01 +0800 Subject: [PATCH] Pass in postID for Boosted/Liked sheet here too --- src/components/notification.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/notification.jsx b/src/components/notification.jsx index 85ede98f..f892fe81 100644 --- a/src/components/notification.jsx +++ b/src/components/notification.jsx @@ -2,7 +2,7 @@ import { Fragment } from 'preact'; import { memo } from 'preact/compat'; import shortenNumber from '../utils/shorten-number'; -import states from '../utils/states'; +import states, { statusKey } from '../utils/states'; import store from '../utils/store'; import useTruncated from '../utils/useTruncated'; @@ -228,6 +228,7 @@ function Notification({ accounts: _accounts, showReactions: type === 'favourite+reblog', excludeRelationshipAttrs: type === 'follow' ? ['followedBy'] : [], + postID: statusKey(actualStatusID, instance), }; };