Repair edit-post API functionality

Change-Id: I6be168fa7e9f27c27d305a0c345c05b0dce21113
Merge "Repair edit-post API functionality"