From 72db74e35577ae857023791ec6cb287b26748727 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 22 May 2022 18:19:12 -0700 Subject: banned media --- route/util.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'route/util.go') diff --git a/route/util.go b/route/util.go index 5bd15d6..838961e 100644 --- a/route/util.go +++ b/route/util.go @@ -114,10 +114,9 @@ func ParseOutboxRequest(ctx *fiber.Ctx, actor activitypub.Actor) error { _, err := ctx.Write([]byte("7MB max file size")) return util.MakeError(err, "ParseOutboxRequest") } else if isBanned, err := post.IsMediaBanned(f); err == nil && isBanned { - //Todo add logging config.Log.Println("media banned") ctx.Response().Header.SetStatusCode(403) - _, err := ctx.Write([]byte("media banned")) + _, err := ctx.Write([]byte("")) return util.MakeError(err, "ParseOutboxRequest") } else if err != nil { return util.MakeError(err, "ParseOutboxRequest") -- cgit v1.2.3