Skip to content
Snippets Groups Projects
  • Mohammad Jangda's avatar
    015b0b0f
    XML-RPC Push: Prevent duplicate meta on updates. · 015b0b0f
    Mohammad Jangda authored
    Because of how XML-RPC works, we can only update existing meta fiels by
    specifying IDs we want to override and their new values.
    
    Currently, we don't do this, so updates to pushed posts result in
    duplicated meta.
    
    Let's avoid this by first deleting existing meta using IDs, then
    re-inserting all the updated meta fields. This way, we can handle adds,
    updates, and deletes.
    
    Fixes #35
    015b0b0f
    History
    XML-RPC Push: Prevent duplicate meta on updates.
    Mohammad Jangda authored
    Because of how XML-RPC works, we can only update existing meta fiels by
    specifying IDs we want to override and their new values.
    
    Currently, we don't do this, so updates to pushed posts result in
    duplicated meta.
    
    Let's avoid this by first deleting existing meta using IDs, then
    re-inserting all the updated meta fields. This way, we can handle adds,
    updates, and deletes.
    
    Fixes #35
Code owners
Assign users and groups as approvers for specific file changes. Learn more.