gancio issueshttps://framagit.org/les/gancio/-/issues2023-12-19T10:04:17Zhttps://framagit.org/les/gancio/-/issues/309Federation to akkoma/pleroma - message format2023-12-19T10:04:17ZfadelkonFederation 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 (probab...### 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
![nabat-mastodon2.png](/uploads/6b7c8f51bdd016abd5b635595c2753c6/nabat-mastodon2.png)
![nabat-akkoma.png](/uploads/897cac33d641f10ba74f21d32b50e513/nabat-summary.png)
### 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
```plaintext
- 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.
### Example sources
- in akkoma https://bcn.fedi.cat/notice/AazLCMXy9VMG60lbF2
- in mastodon https://mastodon.social/tags/patinatge
- in gancio https://bcn.convoca.la/event/neix-lescola-de-patinatge-del-csonabat3-heavy-hearthttps://framagit.org/les/gancio/-/issues/34[ap] notes2022-04-05T16:11:09Zles[ap] notes- https://socialhub.network/t/federated-events/226/13
- https://socialhub.network/t/collaborative-maps-with-activitypub/164/19
- https://miaengiadina.github.io/geopub/
- https://docs.joinmastodon.org/development/activitypub/
- https://di...- https://socialhub.network/t/federated-events/226/13
- https://socialhub.network/t/collaborative-maps-with-activitypub/164/19
- https://miaengiadina.github.io/geopub/
- https://docs.joinmastodon.org/development/activitypub/
- https://diaspora.github.io/diaspora_federation/entities/event.html