summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpttbbs/daemon/postd/postd.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pttbbs/daemon/postd/postd.py b/pttbbs/daemon/postd/postd.py
index 25f9b9d9..2dcbdac6 100755
--- a/pttbbs/daemon/postd/postd.py
+++ b/pttbbs/daemon/postd/postd.py
@@ -77,6 +77,8 @@ def LoadPost(query):
return UnpackPost(data)
def SavePost(legacy, keypak, data, extra=None):
+ if extra:
+ data.update(extra._asdict())
logging.debug("SavePost: %r => %r", keypak, data)
key = '%s/%s' % (keypak.board, keypak.file)
g_db.set(key, serialize(data))