Skip to content

Commit

Permalink
feat: [AXM-271] Add push notification event to discussions
Browse files Browse the repository at this point in the history
  • Loading branch information
NiedielnitsevIvan committed Apr 29, 2024
1 parent dd1844b commit 3d2f05d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lms/djangoapps/discussion/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ def _build_message_context(context): # lint-amnesty, pylint: disable=missing-fu
'thread_username': thread_author.username,
'comment_username': comment_author.username,
'post_link': post_link,
'click_action': post_link,
'send_push_notification': True,
'comment_created_at': date.deserialize(context['comment_created_at']),
'thread_created_at': date.deserialize(context['thread_created_at'])
})
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% load i18n %}

{% block content %}
{% blocktrans trimmed %}
{{ comment_username }} replied to <b>{{ thread_title }}</b>:
{% endblocktrans %}
{{ comment_body }}
{% endblock %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% load i18n %}

{% blocktrans %}Response to {{ thread_title }}{% endblocktrans %}

0 comments on commit 3d2f05d

Please sign in to comment.