# HG changeset patch # User neko259 # Date 2016-11-28 11:36:47 # Node ID 0b70a1510d10087995a804a032a1fbc3f2a9aa9c # Parent 9abb9926b6a2ca874fc04f8cde59ee3d50003609 Fixed syncing posts with internal attachments 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 @@ -320,4 +320,4 @@ class SyncManager: if tag_refs is not None: attachment_ref = et.SubElement(tag_refs, TAG_ATTACHMENT_REF) attachment_ref.set(ATTR_REF, attachment.hash) - attachment_ref.set(ATTR_URL, attachment.url) + attachment_ref.set(ATTR_URL, attachment.file.url)