mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-12-07 12:52:29 -05:00
provide notifications on commenting
This commit is contained in:
@@ -1712,3 +1712,11 @@ def encoding_file_delete(sender, instance, **kwargs):
|
||||
instance.media.post_encode_actions(encoding=instance, action="delete")
|
||||
# delete local chunks, and remote chunks + media file. Only when the
|
||||
# last encoding of a media is complete
|
||||
|
||||
|
||||
@receiver(post_save, sender=Comment)
|
||||
def comment_save(sender, instance, created, **kwargs):
|
||||
if created:
|
||||
notify_users(
|
||||
friendly_token=instance.media.friendly_token, action="comment_added"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user