add title

This commit is contained in:
j 2023-07-25 14:48:15 +01:00
parent 59958832c0
commit 013ca30765

View file

@ -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"]