diff --git a/src/postorius/templates/postorius/lists/held_messages.html b/src/postorius/templates/postorius/lists/held_messages.html index 2ab4216..c44a6ac 100644 --- a/src/postorius/templates/postorius/lists/held_messages.html +++ b/src/postorius/templates/postorius/lists/held_messages.html @@ -52,7 +52,7 @@ {% if msg.reasons %} {{ msg.reason }} {% else %} - {% for reason in msg.moderation_reasons %} + {% for reason in msg.reasons %}
{{ reason }}
{% endfor %} {% endif %} diff --git a/src/postorius/views/rest.py b/src/postorius/views/rest.py index b074ddc..5b3345a 100644 --- a/src/postorius/views/rest.py +++ b/src/postorius/views/rest.py @@ -83,7 +83,7 @@ response_data['reasons'] = held_message.reasons except AttributeError: pass - response_data['moderation_reasons'] = held_message.moderation_reasons + response_data['reasons'] = held_message.reasons response_data['hold_date'] = held_message.hold_date response_data['msg'] = parse(held_message.msg) response_data['msgid'] = held_message.request_id