Home | Notifications | New Note | Local | Federated | Search | Logout
Note Detail
Reply to @silverpill@mitra.social
Harblinger@harblinger@wizard.casa (2026-06-15 02:39:08)
>What would be the value of this summary field? Headings are part of the content in Mitra, I can try to extract the first heading from HTML, but this method is not always reliable (we do this for Atom feeds).
I got the <h1> parsing done last night, see 2nd screenshot
Value is pretty slim for the amount of work needed possibly (another column in the db), but just being able to set it and send it down the wire would allow the front end to use/abuse the field so pleroma-fe can set the "subject" (see first screenshot) and masto to set the "CW", not sure about other cases.
No big deal, I can just have a subject field in the fe and prepend it in <h1> tags and that should work. I was just wondering if you thought about it much.
---Attachments---
image: https://wizard.casa/media/3803c776a181d61619ddd0afa2ce96680091e0c9a0da1bc40507789af12288b8.png
image: https://wizard.casa/media/4e588e89757f398fcbcf6dd4749075c26988e19d63872be4d74c75e69b673429.png
---Reply---
silverpill@silverpill@mitra.social (2026-06-15 03:39:00)
@harblinger
I have thought a lot about titles and summaries, but haven't yet decided how to proceed. There are too many special cases.
The top-level heading in a Mitra post is a title, and shouldn't be used as a summary. There is a different attribute for titles in ActivityPub, name. However, If I extract the <h1> and federate it as a name, other Mitra instances will display two titles.
A summary, ideally, should not be displayed anywhere, because it is a summary of content. It's redundant by design. But Mastodon uses it as a "content warning", so Mitra has to insert it into the post to avoid losing important information.
If Pleroma uses summary for "subject", that makes things even more complicated.
There is probably a way to make it all work, but I don't quite understand your use case. What exactly you're trying to implement, a content warning?
Reply