Adjust routing for stories.

This commit is contained in:
erik-signal
2022-10-05 12:20:42 -04:00
committed by GitHub
parent 966c3a8f47
commit 544e4fb89a
3 changed files with 4 additions and 6 deletions

View File

@@ -165,11 +165,10 @@ public class MessageController {
@HeaderParam("User-Agent") String userAgent,
@HeaderParam("X-Forwarded-For") String forwardedFor,
@PathParam("destination") UUID destinationUuid,
@QueryParam("story") boolean isStory,
@NotNull @Valid IncomingMessageList messages)
throws RateLimitExceededException {
boolean isStory = messages.story();
if (source.isEmpty() && accessKey.isEmpty() && !isStory) {
throw new WebApplicationException(Response.Status.UNAUTHORIZED);
}