diff --git a/froide/foirequest/api_views/message.py b/froide/foirequest/api_views/message.py index 6dac61a9e..45abd297c 100644 --- a/froide/foirequest/api_views/message.py +++ b/froide/foirequest/api_views/message.py @@ -69,7 +69,7 @@ def get_queryset(self): ).order_by() return self.optimize_query(qs) - @action(detail=True, methods=["get", "post"]) + @action(detail=True, methods=["post"]) def publish(self, request, pk=None): message = self.get_object() message.is_draft = False