-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syndication of note appends a duplicate of a URL contained in the post content #570
Comments
This is expected behaviour, sort of! After converting Markdown to HTML, the last This is [my new website](https://kevinyank.com/). this would be syndicated as: This is my new website. https://kevinyank.com/ Your example is the one case where this approach falls apart! 🙈 I’ve noticed that Micro.blog is able to maintain linked text when it syndicates notes to Mastodon; I quickly experimented with sending HTML, but that spat out raw HTML… clearly there’s a way to send linked text over Mastodon’s API, I just need to research what is the correct means of doing so. I think that’s the solution to the above issue. |
For the record, I ran into this issue because I submitted a note with a URL inline, and Indiekit converted it into the Markdown link that you see above. Maybe it shouldn't do that…? |
Oh, right. I probably have markdown-it's |
In my head it could make sense for Indiekit to linkify my Markdown when converting it to HTML, but I don't expect it to modify the Markdown I give it. Unless my mental model is broken…? |
This might be a side-effect of the change made in b64b7d4 to fix #563, released in Beta 1. There’s a bit of to-and-fro between text and HTML representations, and Indiekit needing to account for one or both values being sent ( There are some tests here (that could possibly be expanded on) that account for this that may help shine a light on the different scenarios being handled:
The conversion between text and html values happens here:
|
Tested syndicating this same update to my private test accounts, given the fix in #573. Here’s what this note looks like: Mastodon |
Describe the bug
This post (as shown in the Indieweb web UI), when syndicated to Mastodon, was posted with the URL present in the post (https://kevinyank.com/) also appended to it:
Here's the note in my content store.
Here's the resulting Mastodon post.
Expected behaviour
I would have expected the note to be posted to Mastodon as entered into Indiekit, without the URL added to the end.
Environment
The text was updated successfully, but these errors were encountered: