commit 266f92f28b43d6ab2d8c20069fdf72b6cd3d2164
parent 41faf5fe9bb27f5e3bc8b235ed74ed12b84c209b
Author: Leah (ctucx) <git@ctu.cx>
Date: Fri, 20 Oct 2023 17:47:35 +0200
parent 41faf5fe9bb27f5e3bc8b235ed74ed12b84c209b
Author: Leah (ctucx) <git@ctu.cx>
Date: Fri, 20 Oct 2023 17:47:35 +0200
requestHandler: post as direct-message if visibility-level is 30 or less
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/requestHandler.nim b/src/requestHandler.nim @@ -118,7 +118,7 @@ proc requestHandler* (req: Request) {.async.} = else: statusVisibility = config.FediVisibility.get else: - if (entityBodyJson["status"]["visibility"]["level"].getInt <= 10): statusVisibility = PostDirect + if (entityBodyJson["status"]["visibility"]["level"].getInt <= 30): statusVisibility = PostDirect if (entityBodyJson["status"]["visibility"]["level"].getInt <= 60): statusVisibility = PostPrivate if (entityBodyJson["status"]["visibility"]["level"].getInt == 100): statusVisibility = PostUnlisted