Set the moderator when moderating news

This commit is contained in:
imperosol
2025-01-23 14:32:10 +01:00
parent 6627ea417c
commit 8f17c3d830
2 changed files with 9 additions and 0 deletions

View File

@ -45,6 +45,7 @@ class NewsController(ControllerBase):
news = self.get_object_or_exception(News, id=news_id)
if not news.is_moderated:
news.is_moderated = True
news.moderator = self.context.request.user
news.save()
@route.delete(