Skip to content
Snippets Groups Projects
Commit 015b0b0f authored by Mohammad Jangda's avatar Mohammad Jangda
Browse files

XML-RPC Push: Prevent duplicate meta on updates.

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
parent 091fb6d0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment