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:
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user