Skip to content

Commit

Permalink
assets should show if it got auto-moderated
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Dec 26, 2024
1 parent 05edec1 commit f18da22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,15 +430,15 @@ def content_request_review(asset_id):
)

if g.user_is_admin:
update_asset_userdata(asset, state=State.CONFIRMED, moderated_by=g.username)
update_asset_userdata(asset, state=State.CONFIRMED, moderated_by="ADMIN")
app.logger.warn(
"auto-confirming {} because it was uploaded by admin {}".format(
asset["id"], g.username
)
)
moderation_message += "It was automatically confirmed because user is an admin."
elif g.user_without_limits:
update_asset_userdata(asset, state=State.CONFIRMED, moderated_by=g.username)
update_asset_userdata(asset, state=State.CONFIRMED, moderated_by="NO-LIMIT")
app.logger.warn(
"auto-confirming {} because it was uploaded by no-limits user {}".format(
asset["id"], g.username
Expand Down

0 comments on commit f18da22

Please sign in to comment.