added PINNED state to thread & comments