forked from FoundKeyGang/FoundKey
削除された投稿に返信したりRenoteしたりできないように
This commit is contained in:
parent
ee765d0812
commit
84a4174883
1 changed files with 8 additions and 0 deletions
|
@ -103,6 +103,14 @@ export default async (user: IUser, data: Option, silent = false) => new Promise<
|
||||||
data.visibleUsers = data.visibleUsers.filter(x => x != null);
|
data.visibleUsers = data.visibleUsers.filter(x => x != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (data.reply && data.reply.deletedAt != null) {
|
||||||
|
return rej();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (data.renote && data.renote.deletedAt != null) {
|
||||||
|
return rej();
|
||||||
|
}
|
||||||
|
|
||||||
if (data.text) {
|
if (data.text) {
|
||||||
data.text = data.text.trim();
|
data.text = data.text.trim();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue