-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from nacika-ins/fix/remove-notes-for-misskey
fix(misskey): Changed to detect spam from global timeline
- Loading branch information
Showing
2 changed files
with
171 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
/* eslint-disable no-use-before-define */ | ||
export type MisskeyNotes = Root2[] | ||
|
||
export interface Root2 { | ||
id: string | ||
createdAt: string | ||
text: string | ||
cw: string | ||
userId: string | ||
user: User | ||
replyId: string | ||
renoteId: string | ||
reply: Reply | ||
renote: Renote | ||
isHidden: boolean | ||
visibility: string | ||
mentions: string[] | ||
visibleUserIds: string[] | ||
fileIds: string[] | ||
files: File[] | ||
tags: string[] | ||
poll: Poll | ||
channelId: string | ||
channel: Channel | ||
localOnly: boolean | ||
emojis: Emoji3[] | ||
reactions: Reactions | ||
renoteCount: number | ||
repliesCount: number | ||
uri: string | ||
url: string | ||
myReaction: MyReaction | ||
} | ||
|
||
export interface User { | ||
id: string | ||
name: string | ||
username: string | ||
host: string | ||
avatarUrl: string | ||
avatarBlurhash: any | ||
avatarColor: any | ||
isAdmin: boolean | ||
isModerator: boolean | ||
isBot: boolean | ||
isCat: boolean | ||
emojis: Emoji[] | ||
onlineStatus: string | ||
} | ||
|
||
export interface Emoji { | ||
name: string | ||
url: string | ||
} | ||
|
||
export interface Reply {} | ||
|
||
export interface Renote {} | ||
|
||
export interface File { | ||
id: string | ||
createdAt: string | ||
name: string | ||
type: string | ||
md5: string | ||
size: number | ||
isSensitive: boolean | ||
blurhash: string | ||
properties: Properties | ||
url: string | ||
thumbnailUrl: string | ||
comment: string | ||
folderId: string | ||
folder: Folder | ||
userId: string | ||
user: User2 | ||
} | ||
|
||
export interface Properties { | ||
width: number | ||
height: number | ||
orientation: number | ||
avgColor: string | ||
} | ||
|
||
export interface Folder { | ||
id: string | ||
createdAt: string | ||
name: string | ||
foldersCount: number | ||
filesCount: number | ||
parentId: string | ||
parent: Parent | ||
} | ||
|
||
export interface Parent {} | ||
|
||
export interface User2 { | ||
id: string | ||
name: string | ||
username: string | ||
host: string | ||
avatarUrl: string | ||
avatarBlurhash: any | ||
avatarColor: any | ||
isAdmin: boolean | ||
isModerator: boolean | ||
isBot: boolean | ||
isCat: boolean | ||
emojis: Emoji2[] | ||
onlineStatus: string | ||
} | ||
|
||
export interface Emoji2 { | ||
name: string | ||
url: string | ||
} | ||
|
||
export interface Poll {} | ||
|
||
export interface Channel {} | ||
|
||
export interface Emoji3 { | ||
name: string | ||
url: string | ||
} | ||
|
||
export interface Reactions {} | ||
|
||
export interface MyReaction {} |