ReticentJohn / Amaroq

A floofy Mastodon companion for iOS
https://appsto.re/us/OfFxib.i
Mozilla Public License 2.0
237 stars 56 forks source link

Amaroq strips newlines and links #136

Closed spctrlth closed 3 years ago

spctrlth commented 3 years ago

I made a post with two newlines and a link. Someone notified me that the link didn't work, they use Amaroq. Apparently the problem was that newlines were stripped and the link wasn't seen as a link any more.

The instance runs Pleroma 2.2.0-2-g6e7963cc

Post I made: https://ilja.space/notice/A3Ym8YjgYGMQgrf6RM
afbeelding

Screenshot of what they see on Amaroq
afbeelding

Content as Amaroq recieves through the api (curl 'https://ilja.space/api/v1/statuses/A3Ym8YjgYGMQgrf6RM/' | jq .):

"content": "I made a peertube account and did a first stream. I was way to stressed so I didn&#39;t mention it here, but it&#39;s public now for any one interested. It&#39;s not much special, I just fixed a merge conflict on an MR I&#39;m working on. Feel free to provide feedback or w/e<br/><br/><a href=\"https://pt.neko.bar/videos/watch/d2cec1ea-5388-4784-a788-13b2917d00b8\" rel=\"ugc\">https://pt.neko.bar/videos/watch/d2cec1ea-5388-4784-a788-13b2917d00b8</a>"

You can see the <br> tags, but also that the url is using the <a>, so this one is also stripped.

This is probably also related to (or maybe the same problem as?) https://github.com/ReticentJohn/Amaroq/issues/135