Accept Article object (#4499)

This commit is contained in:
MeiMei
2019-03-15 00:23:24 +09:00
committed by syuilo
parent 68d43e43b6
commit 56eb896a03
7 changed files with 13 additions and 11 deletions

View File

@@ -41,6 +41,7 @@ export type INote = {
replyId: mongo.ObjectID;
renoteId: mongo.ObjectID;
poll: IPoll;
name?: string;
text: string;
tags: string[];
tagsLower: string[];
@@ -391,6 +392,10 @@ export const pack = async (
}
//#endregion
if (_note.name) {
_note.text = `${_note.name}\n${_note.text}`;
}
if (_note.user.isCat && _note.text) {
_note.text = (_note.text
// ja-JP