diff --git a/boards/models/post/sync.py b/boards/models/post/sync.py --- a/boards/models/post/sync.py +++ b/boards/models/post/sync.py @@ -31,6 +31,7 @@ TAG_TAGS = 'tags' TAG_TAG = 'tag' TAG_ATTACHMENT_REFS = 'attachment-refs' TAG_ATTACHMENT_REF = 'attachment-ref' +TAG_TRIPCODE = 'tripcode' TYPE_GET = 'get' @@ -106,6 +107,10 @@ class SyncManager: pub_time = et.SubElement(content_tag, TAG_PUB_TIME) pub_time.text = str(post.get_pub_time_str()) + if post.tripcode: + tripcode = et.SubElement(content_tag, TAG_TRIPCODE) + tripcode.text = post.tripcode + if len(images) > 0 or len(attachments) > 0: attachments_tag = et.SubElement(content_tag, TAG_ATTACHMENTS) attachment_refs = et.SubElement(model, TAG_ATTACHMENT_REFS) diff --git a/docs/dip-2.markdown b/docs/dip-2.markdown --- a/docs/dip-2.markdown +++ b/docs/dip-2.markdown @@ -27,3 +27,4 @@ This field is used for the opening post This field is used for non-opening post: * thread -- ID of a post model that this post is related to. +* tripcode