mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
fix: tighten edge cases across services (#3158)
This commit is contained in:
1 parent
a9f7a23c0d
commit
4e6b837ccc
170 files changed
+2028
-421
No files matched your search
@@ -82,7 +82,7 @@ describe('AvatarService emoji and sticker size ceilings', () => {
|
||||
{path: 'image', code: ValidationErrorCodes.IMAGE_SIZE_EXCEEDS_LIMIT, variables: {maxSize: 1024}},
|
||||
]);
|
||||
});
|
||||
it('applies a guild-feature-filtered emoji_max_size rule only to a guild that carries the feature', async () => {
|
||||
it('applies a guild-feature-filtered emoji_max_size rule only to a guild that has the feature', async () => {
|
||||
const rules: Array<LimitRule> = [
|
||||
{id: 'big-emoji', filters: {guildFeatures: ['BIG_EMOJI']}, limits: {emoji_max_size: EMOJI_MAX_SIZE * 2}},
|
||||
];
|
||||
|
||||
@@ -51,7 +51,7 @@ describe('canonicalizePurgeUrl', () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it('keeps a base path when the media endpoint carries one', () => {
|
||||
it('keeps a base path when the media endpoint has one', () => {
|
||||
Config.endpoints.media = `${MEDIA}/media`;
|
||||
expect(canonicalizePurgeUrl(`${MEDIA}/media/avatars/1/b35cc3d3`)).toEqual([
|
||||
'media.test/media/avatars/1/b35cc3d3',
|
||||
|
||||
Reference in new issue
Block a user