mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 00:56:23 +01:00
Fix leaked follow requests from Notifications popover to page
This commit is contained in:
parent
a697fb04df
commit
78a6f13380
1 changed files with 37 additions and 33 deletions
|
@ -379,7 +379,10 @@ function Notifications({ columnMode }) {
|
|||
)}
|
||||
{snapStates.notifications.length ? (
|
||||
<>
|
||||
{snapStates.notifications.map((notification) => {
|
||||
{snapStates.notifications
|
||||
// This is leaked from Notifications popover
|
||||
.filter((n) => n.type !== 'follow_request')
|
||||
.map((notification) => {
|
||||
if (onlyMentions && notification.type !== 'mention') {
|
||||
return null;
|
||||
}
|
||||
|
@ -392,7 +395,8 @@ function Notifications({ columnMode }) {
|
|||
// if notificationDay is yesterday, show "Yesterday"
|
||||
// if notificationDay is before yesterday, show date
|
||||
const heading =
|
||||
notificationDay.toDateString() === yesterdayDate.toDateString()
|
||||
notificationDay.toDateString() ===
|
||||
yesterdayDate.toDateString()
|
||||
? 'Yesterday'
|
||||
: niceDateTime(currentDay, {
|
||||
hideTime: true,
|
||||
|
|
Loading…
Reference in a new issue