Skip to content

Commit

Permalink
Remap extra notification key to notif
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmorrisnz committed Aug 4, 2021
1 parent 5a99f20 commit 53071af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hooks/moodle.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def process_pushnotification_payload(data):
message = extra.get("smallmessage", None)
notif = extra.get("notification", None)
title = extra.get("sitefullname", None)
extra["notif"] = notif
del extra["notification"]

if not message:
message = extra.get("fullmessage", None)
Expand Down

1 comment on commit 53071af

@MRafiqAsim
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you.

Please sign in to comment.