From 5d93615a6ed15bd69cb6b60c2d3009d091beb1da Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Sun, 10 Apr 2022 11:03:07 +0900
Subject: [PATCH] refs #574 Fix exclude types in mentions
---
src/renderer/store/TimelineSpace/Contents/Mentions.ts | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/renderer/store/TimelineSpace/Contents/Mentions.ts b/src/renderer/store/TimelineSpace/Contents/Mentions.ts
index cc16012b..97d56660 100644
--- a/src/renderer/store/TimelineSpace/Contents/Mentions.ts
+++ b/src/renderer/store/TimelineSpace/Contents/Mentions.ts
@@ -5,14 +5,15 @@ import { MyWindow } from '~/src/types/global'
import { LoadingCard } from '@/types/loading-card'
import { LocalMarker } from '~/src/types/localMarker'
-const win = (window as any) as MyWindow
+const win = window as any as MyWindow
const excludes: Array = [
NotificationType.Follow,
NotificationType.Favourite,
NotificationType.Reblog,
NotificationType.PollVote,
- NotificationType.PollExpired
+ NotificationType.PollExpired,
+ NotificationType.EmojiReaction
]
export type MentionsState = {
@@ -197,7 +198,7 @@ const actions: ActionTree = {
if (cardIndex > 0) {
maxID = state.mentions[cardIndex - 1].id
}
- let params = { min_id: since_id, limit: 30, exlude_types: excludes }
+ let params = { min_id: since_id, limit: 30, exclude_types: excludes }
if (maxID !== null) {
params = Object.assign({}, params, {
max_id: maxID