i tried to make a small discord bot for myself that'd take the autogenerated link messages from xiaohongshu's mobile app like this:
15 kituro发布了一篇小红书笔记,快来看吧! 😆 8ReG6FS8g9pjPzN 😆 http://xhslink.com/a/taDSxlMKBYY1,复制本条信息,打开【小红书】App查看精彩内容!
and respond with just the url, along with the image url (the first one from the discord embed, if such exists, otherwise does nothing) and a danbooru upload url in the style of ones outputted by the upload to danbooru browser extension, as such:
http://xhslink.com/a/taDSxlMKBYY1
<http://sns-webpic-qc.xhscdn.com/202412192213/1ba459c309388c3b3c7bd3657d61ca5d/1040g00830t03g2s5k27g5p8o2l48sq7qnsd6b60!nd_dft_wgth_jpg_3>
https://danbooru.donmai.us/uploads/new?url=http%3A%2F%2Fsns-webpic-qc.xhscdn.com%2F202412192213%2F1ba459c309388c3b3c7bd3657d61ca5d%2F1040g00830t03g2s5k27g5p8o2l48sq7qnsd6b60%21nd_dft_wgth_jpg_3&ref=http%3A%2F%2Fxhslink.com%2Fa%2FtaDSxlMKBYY1
however, the resulting danbooru media asset, in this case asset #24217217, still has the image url rather than the xhslink. is there something wrong with the way my outputted danbooru urls are written, or is it just what danbooru will always do with &ref=http://xhslink.com
? in this case, must i find a way to get the proper redirected url?