Set the moderator when moderating news

This commit is contained in:
imperosol committed 2025-02-15 14:04:57 +01:00
1 parent 6627ea417c
commit 8f17c3d830
2 files changed
+9

No files matched your search

+1
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(