1
0

add "reject quotes" toggle at user and instance level

+ improve, cleanup, and de-duplicate quote resolution
+ add warning message when quote cannot be loaded
+ add "process error" framework to display warnings when a note cannot be correctly loaded from another instance
This commit is contained in:
Hazelnoot
2025-02-15 23:08:02 -05:00
parent 93ffd4611c
commit 292d3b9229
36 changed files with 466 additions and 88 deletions
+19
View File
@@ -89,6 +89,7 @@ export const permissions = [
'write:admin:unset-user-avatar',
'write:admin:unset-user-banner',
'write:admin:unsuspend-user',
'write:admin:reject-quotes',
'write:admin:meta',
'write:admin:user-note',
'write:admin:roles',
@@ -491,4 +492,22 @@ export type ModerationLogPayloads = {
postUserUsername: string;
post: GalleryPost;
};
acceptQuotesUser: {
userId: string,
userUsername: string,
userHost: string | null,
};
rejectQuotesUser: {
userId: string,
userUsername: string,
userHost: string | null,
};
acceptQuotesInstance: {
id: string;
host: string;
};
rejectQuotesInstance: {
id: string;
host: string;
};
};
+12
View File
@@ -60,6 +60,18 @@ export type ModerationLog = {
} | {
type: 'unsuspend';
info: ModerationLogPayloads['unsuspend'];
} | {
type: 'acceptQuotesUser';
info: ModerationLogPayloads['acceptQuotesUser'];
} | {
type: 'rejectQuotesUser';
info: ModerationLogPayloads['rejectQuotesUser'];
} | {
type: 'acceptQuotesInstance';
info: ModerationLogPayloads['acceptQuotesInstance'];
} | {
type: 'rejectQuotesInstance';
info: ModerationLogPayloads['rejectQuotesInstance'];
} | {
type: 'updateUserNote';
info: ModerationLogPayloads['updateUserNote'];