From 013ca30765ceb64ccb099a14e904862cba3a04ba Mon Sep 17 00:00:00 2001 From: j Date: Tue, 25 Jul 2023 14:48:15 +0100 Subject: [PATCH] add title --- app/item/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/item/tasks.py b/app/item/tasks.py index bc17e37..7f47746 100644 --- a/app/item/tasks.py +++ b/app/item/tasks.py @@ -46,7 +46,7 @@ def announce_items(): def notify_moderators(id, link): comment = models.Comment.objects.filter(id=id).first() if comment: - message = "%s commnented on %s\n\n%s" % (comment.name, link, comment.text) + message = "%s commented on %s (%s)\n\n%s" % (comment.name, comment.item.title, link, comment.text) r = rpc.send(message, group=settings.SIGNAL_MODERATORS_GROUP) if r and "timestamp" in r: comment.data["moderator_ts"] = r["timestamp"]