Added api to get all or all starred posts