mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +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.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') {
|
if (onlyMentions && notification.type !== 'mention') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -392,7 +395,8 @@ function Notifications({ columnMode }) {
|
||||||
// if notificationDay is yesterday, show "Yesterday"
|
// if notificationDay is yesterday, show "Yesterday"
|
||||||
// if notificationDay is before yesterday, show date
|
// if notificationDay is before yesterday, show date
|
||||||
const heading =
|
const heading =
|
||||||
notificationDay.toDateString() === yesterdayDate.toDateString()
|
notificationDay.toDateString() ===
|
||||||
|
yesterdayDate.toDateString()
|
||||||
? 'Yesterday'
|
? 'Yesterday'
|
||||||
: niceDateTime(currentDay, {
|
: niceDateTime(currentDay, {
|
||||||
hideTime: true,
|
hideTime: true,
|
||||||
|
|
Loading…
Reference in a new issue