From b84e3570bd03bc822755d23bd5f265a937eb1448 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Sun, 27 Aug 2023 14:38:24 +0100 Subject: [PATCH] Check if authenticated before helping other instances --- src/main/java/me/kavin/piped/utils/matrix/SyncRunner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/kavin/piped/utils/matrix/SyncRunner.java b/src/main/java/me/kavin/piped/utils/matrix/SyncRunner.java index 58377a2..091f41e 100644 --- a/src/main/java/me/kavin/piped/utils/matrix/SyncRunner.java +++ b/src/main/java/me/kavin/piped/utils/matrix/SyncRunner.java @@ -129,7 +129,7 @@ public class SyncRunner implements Runnable { var type = event.get("type").asText(); var content = event.at("/content/content"); - if (type.startsWith("video.piped.stream.bypass.")) { + if (!UNAUTHENTICATED && type.startsWith("video.piped.stream.bypass.")) { switch (type) { case "video.piped.stream.bypass.request" -> { FederatedGeoBypassRequest bypassRequest = mapper.treeToValue(content, FederatedGeoBypassRequest.class);