2013-11-13 | Paul Boddie | raw files shortlog changelog graph | Overwrite any existing "Moin-User" header in stored messages. | |
actions/PostMessage.py (file) |
1.1 --- a/actions/PostMessage.py Wed Nov 13 15:42:06 2013 +0100 1.2 +++ b/actions/PostMessage.py Wed Nov 13 17:52:46 2013 +0100 1.3 @@ -63,8 +63,7 @@ 1.4 # and then signed for sending, the authenticated user here is not 1.5 # the real author. 1.6 1.7 - if request.user and request.user.valid: 1.8 - update["Moin-User"] = request.user.name 1.9 + update["Moin-User"] = request.user and request.user.valid and request.user.name or None 1.10 1.11 self.store.append(update.as_string()) 1.12