Checking if post or thread - Ruby

Ahh, I forgot that important step haha. That’s worked perfectly, thank you very much for your time, effort and patience haha.