mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-29 07:18:08 +09:00
Remove unnecessary Renote check code (#3489)
This commit is contained in:
parent
bb7128bcb4
commit
7cbcc3310f
@ -136,11 +136,6 @@ export default async (user: IUser, data: Option, silent = false) => new Promise<
|
||||
return rej('Reply target is private of others');
|
||||
}
|
||||
|
||||
// Renote対象が自分以外の非公開の投稿なら禁止
|
||||
if (data.renote && data.renote.visibility == 'private' && !data.renote.userId.equals(user._id)) {
|
||||
return rej('Renote target is private of others');
|
||||
}
|
||||
|
||||
// ローカルのみをRenoteしたらローカルのみにする
|
||||
if (data.renote && data.renote.localOnly) {
|
||||
data.localOnly = true;
|
||||
|
Loading…
Reference in New Issue
Block a user