notify group members of group changes

Send a notification to all group members when group name, description, or privacy are changed.
This commit is contained in:
Hugh Rundle
2021-10-22 20:23:45 +11:00
parent c9deda8fdd
commit 6bc86f189f
4 changed files with 60 additions and 1 deletions

View File

@ -7,7 +7,7 @@ from . import Boost, Favorite, ImportJob, Report, Status, User
# pylint: disable=line-too-long
NotificationType = models.TextChoices(
"NotificationType",
"FAVORITE REPLY MENTION TAG FOLLOW FOLLOW_REQUEST BOOST IMPORT ADD REPORT INVITE ACCEPT JOIN LEAVE REMOVE",
"FAVORITE REPLY MENTION TAG FOLLOW FOLLOW_REQUEST BOOST IMPORT ADD REPORT INVITE ACCEPT JOIN LEAVE REMOVE GROUP_PRIVACY GROUP_NAME GROUP_DESCRIPTION",
)