Skip to content

Title fixes for ActivityPub#1491

Merged
thebaer merged 2 commits intodevelopfrom
ap-note-improvements
Oct 23, 2025
Merged

Title fixes for ActivityPub#1491
thebaer merged 2 commits intodevelopfrom
ap-note-improvements

Conversation

@thebaer
Copy link
Member

@thebaer thebaer commented Sep 5, 2025

This fixes some issues minor issues with titles on posts sent to the fediverse. It solves for the following use cases:

  • Posts with a link (or any Markdown) in the title
  • A short note published with a title

Fixes included:

  • Titles of Notes and Articles (i.e. the name property) will no longer contain any Markdown. This complies with the ActivityStreams spec
  • Note objects will have any title inserted in the content of the note as an h1 element, with any title Markdown rendered as HTML

  • I have signed the CLA

Platforms like Mastodon don't render the post title on Notes (the `name` property), so we'll manually include it and render any HTML in it (like links).
Also fixes Post.PlainDisplayTitle method documentation.
@thebaer thebaer added this to the 0.17 milestone Sep 5, 2025
@thebaer
Copy link
Member Author

thebaer commented Oct 23, 2025

Merging this now.

@thebaer thebaer merged commit 97e77e4 into develop Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant