- Issue created by @MegaKeegMan
- π§πͺBelgium swentel
Oh right, it makes sense to make this configurable indeed.
Mastodon prints html tags, or at the very least p tags. While it makes sense to use text formatters that include html in the content of a post, it might not make sense for the summary to share the same configuration. By default, the Activity Pub text format has enabled "Convert line breaks into HTML (i.e.
and
)", meaning that those p tags appear in the content of my posts despite not having been added to the field. Meanwhile, the content also gets these p tags, but Mastodon is expecting them and reads them properly.
There are a few options:
A new option and an extra field:
The annotations above are just a quick sketch, and I do not mean to indicate that the fields should be inline.
If $this->configFactory->get('activitypub.settings')->get('filter_format')
is set to "use field", then line 232 in src/Services/Type/TypePluginBase.php
will use the format indicated on the field's own settings found in $value[0]["format"]
. Of course content and summary might not share this same case anymore.
Active
1.0
Code
Oh right, it makes sense to make this configurable indeed.