Add public id to get latest post method