mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 14:15:43 +01:00
Remove unnecessary Renote check code (#3489)
This commit is contained in:
parent
d8698743a1
commit
c1d59716d1
1 changed files with 0 additions and 5 deletions
|
@ -136,11 +136,6 @@ export default async (user: IUser, data: Option, silent = false) => new Promise<
|
||||||
return rej('Reply target is private of others');
|
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したらローカルのみにする
|
// ローカルのみをRenoteしたらローカルのみにする
|
||||||
if (data.renote && data.renote.localOnly) {
|
if (data.renote && data.renote.localOnly) {
|
||||||
data.localOnly = true;
|
data.localOnly = true;
|
||||||
|
|
Loading…
Reference in a new issue