##// END OF EJS Templates
Added tripcode to the synced post items list
neko259 -
r1556:4b03d4eb default
parent child Browse files
Show More
@@ -31,6 +31,7 b" TAG_TAGS = 'tags'"
31 31 TAG_TAG = 'tag'
32 32 TAG_ATTACHMENT_REFS = 'attachment-refs'
33 33 TAG_ATTACHMENT_REF = 'attachment-ref'
34 TAG_TRIPCODE = 'tripcode'
34 35
35 36 TYPE_GET = 'get'
36 37
@@ -106,6 +107,10 b' class SyncManager:'
106 107 pub_time = et.SubElement(content_tag, TAG_PUB_TIME)
107 108 pub_time.text = str(post.get_pub_time_str())
108 109
110 if post.tripcode:
111 tripcode = et.SubElement(content_tag, TAG_TRIPCODE)
112 tripcode.text = post.tripcode
113
109 114 if len(images) > 0 or len(attachments) > 0:
110 115 attachments_tag = et.SubElement(content_tag, TAG_ATTACHMENTS)
111 116 attachment_refs = et.SubElement(model, TAG_ATTACHMENT_REFS)
@@ -27,3 +27,4 b' This field is used for the opening post '
27 27 This field is used for non-opening post:
28 28
29 29 * thread -- ID of a post model that this post is related to.
30 * tripcode
General Comments 0
You need to be logged in to leave comments. Login now