

Looks like this is a feature for most markdown parsers. In piefed, the same thing happens. I wrote most of the customizations for parsing markdown, but nothing to create relative links like this except for footnotes. So, it must be the default behavior of the markdown library we are using.


@blaze@piefed.zip has been asking for this feature for ages and @Skavau@piefed.social made an issue for it on the codeberg already. The reason this isn’t in the api yet is because it isn’t anywhere in piefed yet. AFAIK, the read/unread status of comments isn’t currently tracked anywhere within piefed. Additionally, for this feature, I don’t believe we track the timestamp at which you do interact with a post…so doing something like calculating the number of new comments that have occurred since you last opened that post isn’t possible…yet.
I don’t have a great idea of how to do this in a db-efficient way. Keeping track of when every user opens each post sounds like db-query hell. However, there might be clever caching tricks to make it a bit less computationally intense. @rimu@piefed.social would likely have a better idea of how to do this.