mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 03:46:47 +00:00
Update abusive message filter and filter account creates
This commit is contained in:
1 parent
2e497b5834
commit
07ed765250
2 files changed
+3
-1
No files matched your search
+1
-1
Submodule abusive-message-filter updated: 971a81f935...2484d2fd53.
+2
@@ -50,6 +50,7 @@ import javax.ws.rs.core.Response.Status;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.whispersystems.textsecuregcm.abuse.FilterAbusiveMessages;
|
||||
import org.whispersystems.textsecuregcm.auth.AuthenticatedAccount;
|
||||
import org.whispersystems.textsecuregcm.auth.AuthenticationCredentials;
|
||||
import org.whispersystems.textsecuregcm.auth.BasicAuthorizationHeader;
|
||||
@@ -217,6 +218,7 @@ public class AccountController {
|
||||
@Timed
|
||||
@GET
|
||||
@Path("/{transport}/code/{number}")
|
||||
@FilterAbusiveMessages
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public Response createAccount(@PathParam("transport") String transport,
|
||||
@PathParam("number") String number,
|
||||
|
||||
Reference in new issue
Block a user