I think this is wrong here: you don't want the draft id if it's a thread-bound draft, if I understand correctly the other code where you use draftLinks.

But maybe I don't follow it correctly.