first basic protection - #524
This commit is contained in:
@@ -299,6 +299,10 @@ export class NoteEditService implements OnApplicationShutdown {
|
||||
}
|
||||
|
||||
if (data.renote) {
|
||||
if (data.renote.id === oldnote.id) {
|
||||
throw new Error("A note can't renote itself");
|
||||
}
|
||||
|
||||
switch (data.renote.visibility) {
|
||||
case 'public':
|
||||
// public noteは無条件にrenote可能
|
||||
|
||||
Reference in New Issue
Block a user