merge: use the current resolver for quotes - #524 (!536)

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:
Marie 2024-06-03 16:54:51 +00:00
commit b2088e60b7
3 changed files with 14 additions and 2 deletions

View file

@ -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可能