Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit c74fd77

Browse files
cpaciaTom Galloway
authored andcommitted
Fix bug saving nsfw in profile
1 parent dd50df7 commit c74fd77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/restapi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,11 +405,11 @@ def update_profile(self, request):
405405
if "short_description" in request.args:
406406
u.short_description = request.args["short_description"][0]
407407
if "nsfw" in request.args:
408-
u.nsfw = str_to_bool(request.args["nsfw"][0])
408+
p.profile.nsfw = str_to_bool(request.args["nsfw"][0])
409409
if "vendor" in request.args:
410-
u.vendor = str_to_bool(request.args["vendor"][0])
410+
p.profile.vendor = str_to_bool(request.args["vendor"][0])
411411
if "moderator" in request.args:
412-
u.moderator = str_to_bool(request.args["moderator"][0])
412+
p.profile.moderator = str_to_bool(request.args["moderator"][0])
413413
if "moderation_fee" in request.args:
414414
u.moderation_fee = round(float(request.args["moderation_fee"][0]), 2)
415415
if "website" in request.args:

0 commit comments

Comments
 (0)