-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add GoToSocial URL support #631
Comments
If I open this post via a Mastodon account it displays correctly: But it seems you're using some exotic AP server on your side? Maybe there is a conversion between the original content and the content provided by your server's MastoAPI that differs from a common Mastodon/Pleroma/etc MastoAPI output. Sengi parses MastoAPI content to be able to render it properly, so if it's not exactly the same than an usual MastoAPI output, there will be parsing errors/weird bugs. |
It looks like the link is getting dropped inside the sengi/src/app/components/stream/status/databinded-text/databinded-text.component.ts Lines 157 to 198 in 0f58252
Links in GoToSocial are just the URL with an anchor around them and an appropriate href. Nothing fancy. They look like this: <a href="https://example.org" rel="nofollow noreferrer noopener" target="_blank">https://example.org</a> Sometimes they'll look more like this, if the user who posted the link has Markdown enabled and wrote a link in a slightly fancier way: <a href="https://example.org" rel="nofollow noreferrer noopener" target="_blank">example link</a> Or even like this, if the user added a title to the link: <a href="https://example.org" title="this is a link title" rel="nofollow noreferrer noopener" target="_blank">example link</a> Perhaps it would be possible to allow such links through instead of dropping them, since they're very standard, safe HTML. |
So it's more about GoToSocial link support then? If I remember correctly, link parsing was related to some Electron edge cases, that's not something I would change right now. It would be better to just document the new use cases via the unit tests and fix the code accordingly. |
URL which is within the toot content is not rendered properly
Original post : https://tatooine.club/@nemo/111696202370333457
Rendered in sengi as:
This is rendered correctly at my server side https://social.anantshri.info/@anant/statuses/01HK9YEMJBS6KR4NP8VTK2RHMB
this is rendered correctly on other clients (icecubes / pinafore)
when i copy all data i get this
The text was updated successfully, but these errors were encountered: