Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Add modmail handling to user added system notifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromakode committed Oct 9, 2012
1 parent f23bef2 commit 4c7eb1b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions r2/r2/lib/system_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,9 @@ def notify_user_added(rel_type, author, user, target):

queries.new_message(item, inbox_rel)

if "modmail" in msgs:
subject = msgs["modmail"]["subject"] % d
msg = msgs["modmail"]["msg"] % d
item, inbox_rel = Message._new(author, target, subject, msg, request.ip,
sr=target, from_sr=True)
queries.new_message(item, inbox_rel)

0 comments on commit 4c7eb1b

Please sign in to comment.