aboutsummaryrefslogtreecommitdiff
path: root/route/util.go
diff options
context:
space:
mode:
authorFChannel <>2022-05-22 18:19:12 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit72db74e35577ae857023791ec6cb287b26748727 (patch)
treebbb4fa77a3a387f1b379bf9ff16605bad4121081 /route/util.go
parent4b9b53e6c9034b850aa4681b61f3d4e2c7ab1b71 (diff)
banned media
Diffstat (limited to 'route/util.go')
-rw-r--r--route/util.go3
1 files changed, 1 insertions, 2 deletions
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")