wip
This commit is contained in:
parent
45074de293
commit
6471863ba5
|
@ -124,6 +124,12 @@ export const meta = {
|
||||||
id: '9ee33bbe-fde3-4c71-9b51-e50492c6b9c8',
|
id: '9ee33bbe-fde3-4c71-9b51-e50492c6b9c8',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
tooManyScheduledNotes: {
|
||||||
|
message: 'You cannot create scheduled notes any more.',
|
||||||
|
code: 'TOO_MANY_SCHEDULED_NOTES',
|
||||||
|
id: '22ae69eb-09e3-4541-a850-773cfa45e693',
|
||||||
|
},
|
||||||
|
|
||||||
cannotRenoteToExternal: {
|
cannotRenoteToExternal: {
|
||||||
message: 'Cannot Renote to External.',
|
message: 'Cannot Renote to External.',
|
||||||
code: 'CANNOT_RENOTE_TO_EXTERNAL',
|
code: 'CANNOT_RENOTE_TO_EXTERNAL',
|
||||||
|
@ -244,6 +250,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
throw new ApiError(meta.errors.cannotReplyToInvisibleNote);
|
throw new ApiError(meta.errors.cannotReplyToInvisibleNote);
|
||||||
case '215dbc76-336c-4d2a-9605-95766ba7dab0':
|
case '215dbc76-336c-4d2a-9605-95766ba7dab0':
|
||||||
throw new ApiError(meta.errors.cannotReplyToSpecifiedVisibilityNoteWithExtendedVisibility);
|
throw new ApiError(meta.errors.cannotReplyToSpecifiedVisibilityNoteWithExtendedVisibility);
|
||||||
|
case 'c3275f19-4558-4c59-83e1-4f684b5fab66':
|
||||||
|
throw new ApiError(meta.errors.tooManyScheduledNotes);
|
||||||
default:
|
default:
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
|
|
@ -159,6 +159,12 @@ export const meta = {
|
||||||
code: 'CANNOT_REPLY_TO_SPECIFIED_VISIBILITY_NOTE_WITH_EXTENDED_VISIBILITY',
|
code: 'CANNOT_REPLY_TO_SPECIFIED_VISIBILITY_NOTE_WITH_EXTENDED_VISIBILITY',
|
||||||
id: '215dbc76-336c-4d2a-9605-95766ba7dab0',
|
id: '215dbc76-336c-4d2a-9605-95766ba7dab0',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
tooManyScheduledNotes: {
|
||||||
|
message: 'You cannot create scheduled notes any more.',
|
||||||
|
code: 'TOO_MANY_SCHEDULED_NOTES',
|
||||||
|
id: '02f5df79-08ae-4a33-8524-f1503c8f6212',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
limit: {
|
limit: {
|
||||||
|
@ -287,6 +293,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
throw new ApiError(meta.errors.containsProhibitedWords);
|
throw new ApiError(meta.errors.containsProhibitedWords);
|
||||||
case '4de0363a-3046-481b-9b0f-feff3e211025':
|
case '4de0363a-3046-481b-9b0f-feff3e211025':
|
||||||
throw new ApiError(meta.errors.containsTooManyMentions);
|
throw new ApiError(meta.errors.containsTooManyMentions);
|
||||||
|
case 'bacdf856-5c51-4159-b88a-804fa5103be5':
|
||||||
|
throw new ApiError(meta.errors.tooManyScheduledNotes);
|
||||||
default:
|
default:
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue