ari_linn: (warrior - normal)
Ари Линн ([personal profile] ari_linn) wrote in [site community profile] dw_dev2018-06-12 10:38 pm
Entry tags:

Thread ids in comment links - where do they come from?

Can anyone tell me/point me to the source code where thread ids in comment links are generated? Especially if all I have is data from export_comments.bml page? For example, when I visit https://www.dreamwidth.org/export_comments.bml?get=comment_body&startid=1 , I can see the following comment:

<comment id="123" jitemid="234" posterid="345" parentid="456">
    <body>My Comment</body>
    <date>2018-06-08T00:58:54Z</date>
</comment>

But if I go to the actual post page, this comment will be displayed with a link to it. The link looks like this: https://ari-linn.dreamwidth.org/%POSTID%.html?thread=%SOMERANDOMNUMBER%#cmt%SOMERANDOMNUMBER%. Where does %SOMERANDOMNUMBER% come from?


Post a comment in response:

If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org