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 , I can see the following comment:

<comment id="123" jitemid="234" posterid="345" parentid="456">
    <body>My Comment</body>

But if I go to the actual post page, this comment will be displayed with a link to it. The link looks like this: Where does %SOMERANDOMNUMBER% come from?

pauamma: Cartooney crab holding drink (Default)

[personal profile] pauamma 2018-06-13 04:27 am (UTC)(link)
OTTOMH, it's for reasons similar to jitemid/anum in %SOMERANDOMNUMBER% is actually the comment id * 256 + a random number between 0 and 255 (stored with the comment). (If you want to look at the actual code, it should be in $LJHOME/cgi-bin/LJ/