mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 09:46:47 +00:00
Bump max sticker count to 201
This commit is contained in:
1 parent
c8979940a8
commit
886db1a2c3
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -41,7 +41,7 @@ public class StickerController {
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
@Path("/pack/form/{count}")
|
||||
public StickerPackFormUploadAttributes getStickersForm(@Auth Account account,
|
||||
@PathParam("count") @Min(1) @Max(50) int stickerCount)
|
||||
@PathParam("count") @Min(1) @Max(201) int stickerCount)
|
||||
throws RateLimitExceededException
|
||||
{
|
||||
rateLimiters.getStickerPackLimiter().validate(account.getNumber());
|
||||
|
||||
+1
-1
@@ -84,7 +84,7 @@ public class StickerControllerTest {
|
||||
@Test
|
||||
public void testCreateTooLargePack() throws Exception {
|
||||
Response response = resources.getJerseyTest()
|
||||
.target("/v1/sticker/pack/form/51")
|
||||
.target("/v1/sticker/pack/form/202")
|
||||
.request()
|
||||
.header("Authorization", AuthHelper.getAuthHeader(AuthHelper.VALID_NUMBER, AuthHelper.VALID_PASSWORD))
|
||||
.get();
|
||||
|
||||
Reference in new issue
Block a user