When clicking on mentions (e.g., https://barriomarte.sutty.nl/about.jsonld) in the post content, the link opens the raw JSON activity instead of redirecting to the actor's profile page (e.g., http://reader.distributed.press/profile.html?actor=https://barriomarte.sutty.nl/about.jsonld).
This issue seems to have surfaced after the insertImagesAndVideos changes. The anchor links are not being correctly updated during content processing, leading to incorrect navigation behavior.
|
function insertImagesAndVideos (content) { |
|
const anchors = contentDOM.querySelectorAll('a') |
When clicking on mentions (e.g.,
https://barriomarte.sutty.nl/about.jsonld) in the post content, the link opens the raw JSON activity instead of redirecting to the actor's profile page (e.g.,http://reader.distributed.press/profile.html?actor=https://barriomarte.sutty.nl/about.jsonld).This issue seems to have surfaced after the insertImagesAndVideos changes. The anchor links are not being correctly updated during content processing, leading to incorrect navigation behavior.
reader.distributed.press/post.js
Line 45 in c8b5eba
reader.distributed.press/post.js
Line 158 in c8b5eba