edit share posts code