changed string building logic
added logic to keep track of posts that have already been retrieved/posted, to prevent duplicates