refactor feedparser code for readability
remove extra check in publish