#social 2019-11-11

2019-11-11 UTC
sl007, xmpp-social, BitBot and jesopo joined the channel
#
heluecht[m]
I'm still asking myself, if the "source" element could handle several pairs for different media types.
#
heluecht[m]
Background: There are several systems out there, for which the "content" fields needs to be simplified.
#
nightpool[m]
I agree that it would be useful, but only one of them can really be the true "source", right?
#
heluecht[m]
For example: Friendica does allow a very rich subset of commands to format the output. Systems like Mastodon or Pleroma can only display parts of it. But for example Socialhome could display more.
#
heluecht[m]
Friendica does use BBCode, Socialhome uses Markdown. So having BBCode, Markdown and a non stripped-down version of HTML would help the systems that do enable rich formatting as well.
#
nightpool[m]
why would remote servers care about bbcode or markdown?
#
nightpool[m]
they should just sanitize the already rendered html
#
heluecht[m]
Well, servers who do allow a richer subset of HTML than Pleroma or Mastodon could use the richer version in the "source" array.
#
nightpool[m]
I'm not sure I follow
#
nightpool[m]
wouldn't the rich html already be in content?
#
jaywink[m]
socialhome uses the markdown from the source, if it is enabled
#
heluecht[m]
Because Mastodon fails to display it.
#
jaywink[m]
* socialhome uses the markdown from the source, if it is provided
#
heluecht[m]
Mastodon can't display quotes.
#
heluecht[m]
Mastodon can't display lists
#
heluecht[m]
Mastodon can't display tables
#
heluecht[m]
...
#
nightpool[m]
> <@jaywink:federator.dev> * socialhome uses the markdown from the source, if it is provided
#
nightpool[m]
isn't that potentially confusing if the remote server has a different markdown subset then you do?
#
nightpool[m]
> <@heluecht:feneas.org> Mastodon can't display tables
#
nightpool[m]
what does that have to do with what you send in content?
#
nightpool[m]
mastodon will just sanitize those elements into div tags if it doesn't understand them
#
heluecht[m]
The output really looks garbles with lists that aren't displayed like they should.
#
heluecht[m]
Same goes with quotes. People from Mastodon can't see them as quotes.
#
nightpool[m]
well, that's mastodon's problem then....
#
heluecht[m]
Yes. But it doesn't help when Mastodon users complain about badly formatted texts from Friendica.
#
heluecht[m]
So having some limited HTML in the "content" and a rich version in the source could help.
#
nightpool[m]
Anyway, I understand why in general it might be nice to have multiple rendered versions of a post, but they're not the post's "source"
#
heluecht[m]
Systems could pick the version that they prefer.
#
heluecht[m]
Which field do you suggest?
#
nightpool[m]
"source" is explicitly defined to be the single thing the user is authoring
#
nightpool[m]
a contentTypeMap field? it's a little tricky because activity streams already allows for localized notes
#
heluecht[m]
I would like to have some workaround that is (mostly) covered by the standard.
#
nightpool[m]
and trying to allow for the product set of localized * multiple representations feels like it can get really messy
#
heluecht[m]
Do you have an example for this "TypeMap" thing?
#
nightpool[m]
well, the current standard doesn't provide for it, it only provides for feature-detected html
#
nightpool[m]
I don't have an example
#
nightpool[m]
so there's no fallback here that's going to work with the current standard, except telling mastodon users that they can't see rich text formatted posts because they're on a platform that doesn't support them. I know thib has done a lot of work recently in making mastodon's rich text fallback better, I would suggest reaching out to him with any issues you find
#
heluecht[m]
Well, there had been some discussion concerning HTML formatting with Mastodon. And the result had been clear: Mastodon won't do anything concerning this. This has to be respected. But I would like to find some compromise where Mastodon users don't experience too unreadable posts - and the other systems don't have to restrict themselfes.
#
nightpool[m]
what do you mean mastodon won't do anything concerning this? we've definitely done work in this area: https://github.com/tootsuite/mastodon/pull/10836
#
Loqi
[Gargron] #10836 Fix sanitizer making block level elements unreadable
#
nightpool[m]
basically, places where the sanitizer makes remote statuses unreadable are bugs
sl007 joined the channel
#
heluecht[m]
I meant stuff like the support for basic HTML like bold or italic - where Gargron has his own opinion.
#
nightpool[m]
yes, I'm responding specifically to "when Mastodon users complain about badly formatted texts". that's a bug on our end
#
heluecht[m]
Mastodon people easily get confused with quoted text, since "blockquote" isn't supported.
#
kaniini
work that was abandoned :)
#
kaniini
(i don't blame Gargron for doing so mind, that conversation got super hot)