// Set Personal Community
share.setCommunities(getPersonalCommunity(owner));
// Serialize the ID and Dates in the object to MongoDB format
// Save the document to the share collection
DbManager.getSocial().getShare().update(query, share.toDb());
rp.setResponse(new ResponseObject("Share", true, "Share updated successfully."));
}
else
{
rp.setResponse(new ResponseObject("Share", false, "Unable to update share: only the owner of the share or admin can update it."));