This commit is contained in:
mei23 2019-01-20 11:27:31 +09:00
parent 14b16b4733
commit 539cf811ec
1 changed files with 7 additions and 3 deletions

View File

@ -39,9 +39,7 @@ export type INote = {
replyId: mongo.ObjectID; replyId: mongo.ObjectID;
renoteId: mongo.ObjectID; renoteId: mongo.ObjectID;
poll: { poll: {
choices: Array<{ choices: choice[]
id: number;
}>
}; };
text: string; text: string;
tags: string[]; tags: string[];
@ -102,6 +100,12 @@ export type INote = {
_files?: IDriveFile[]; _files?: IDriveFile[];
}; };
export type choice = {
id: number;
text: string;
votes: number;
};
export const hideNote = async (packedNote: any, meId: mongo.ObjectID) => { export const hideNote = async (packedNote: any, meId: mongo.ObjectID) => {
let hide = false; let hide = false;