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