Federation to akkoma/pleroma - message format
Problem
Message format in Akkoma and Pleroma is ugly. We could fix:
- summary: it should be the title, not the content, imo
- line breaks: somehow they disappear in akkoma, not in mastodon.
- tags: they don't show in akkoma (probably their choice) and the href in mastodon is not respected.
Graphic example
Files involved
The summary thing, I guess it would be enough to edit this https://framagit.org/les/gancio/-/blob/e4c78533671ec6c376ad1819187a8cc1127b35cb/server/api/models/event.js#L92
- summary: content
+ summary: this.title
Regarding the line breaks, this replaces just the first \n
: https://framagit.org/les/gancio/-/blob/e4c78533671ec6c376ad1819187a8cc1127b35cb/server/api/models/event.js#L46
const plainDescription = htmlToText(this.description && this.description.replace('\n', '').slice(0, 1000))
So I don't know why this would happen. Even if it interpreted that the message is in markdown, then a multiple linebreak in source should generate a single linebreak in the rendered text. I'm confused.
And for hashtags, same file, I don't care that much, but just stated that it may not be working as expected.