Fix NSFW detection

This commit is contained in:
Mia Herkt 2022-12-17 02:32:51 +01:00
parent 57c4b6853f
commit f76dbef82f
Signed by: mia
GPG key ID: 72E154B8622EC191

View file

@ -295,7 +295,7 @@ class File(db.Model):
f.size = len(data)
if not f.nsfw_score and app.config["NSFW_DETECT"]:
f.nsfw_score = nsfw.detect(p)
f.nsfw_score = nsfw.detect(str(p))
db.session.add(f)
db.session.commit()