add pubdate, fix postbyid crashing bug