# HG changeset patch # User Paul Boddie # Date 1384361566 -3600 # Node ID 087a69446b546f5af350cd53e171e43c526ebaa7 # Parent e9c29bcf7a9e734ec362888a7daf399ad6fb5211 Overwrite any existing "Moin-User" header in stored messages. diff -r e9c29bcf7a9e -r 087a69446b54 actions/PostMessage.py --- a/actions/PostMessage.py Wed Nov 13 15:42:06 2013 +0100 +++ b/actions/PostMessage.py Wed Nov 13 17:52:46 2013 +0100 @@ -63,8 +63,7 @@ # and then signed for sending, the authenticated user here is not # the real author. - if request.user and request.user.valid: - update["Moin-User"] = request.user.name + update["Moin-User"] = request.user and request.user.valid and request.user.name or None self.store.append(update.as_string())