View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/536 Approved-by: Amelia Yukii <amelia.yukii@shourai.de> Approved-by: Marie <marie@kaifa.ch>
This commit is contained in:
commit
b2088e60b7
3 changed files with 14 additions and 2 deletions
|
|
@ -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可能
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue