mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
削除された投稿に返信したりRenoteしたりできないように
This commit is contained in:
parent
479b01d493
commit
b62b422fdd
@ -103,6 +103,14 @@ export default async (user: IUser, data: Option, silent = false) => new Promise<
|
||||
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) {
|
||||
data.text = data.text.trim();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user