Mastodon/Hacks

From neuromatch
Revision as of 16:45, 6 October 2023 by Jonny (talk | contribs) (→‎Discord: new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Ideas

sneakers-the-rat#technical-wg23-03-10 07:10:00

I just had a good idea I think: Mastodon/Hacks#Ideas Zenodo Social Reading https://neuromatch.social/@jonny/109997725222638244

> ok you know what would actually rock: a #Zenodo plugin where you could sync a collection to an #ActivityPub outbox, and do social public highlighting that way - share a set of papers under a topic for ppl to browse, but also share your annotations and then be able to show your friends annotations over the papers you're reading if u want to

  1. MastoHacks #MastoDev


Discord

sneakers.the.rat#technical-wg23-10-06 21:45:39

So idle thought, i saw someone whose instance had Slugified URLs for posts, ( eg. https://neuromatch.social/@Jonny /my-post-title ) And it looks like it would be pretty easy to do... - add a `slug` db column in the statuses table - add a route using `slug` https://github.com/mastodon/mastodon/blob/3262d1f1b62a984343f0f6c67c1d18921daabb0a/config/routes.rb#L130 - add a field to the status composer component to optionally add a slug, which would need to validate for correct formatting and uniqueness (eg. Show red outline with message when slug is already used, disallow spaces and other non URI chars) - add API endpoint to check if slug exists - add button in "share" dropdown to copy slugified link - optionally: provide an auto-slug option that slugifies the first n unique characters in a post, or parses a leading # header

That would be for adding them as an additional ui thing, rather than changing the representation of the AP objects/etc. ID URL would remain canonical, slug would be useful for sharing, and also if we want to allow posts to behave more like pages (eg. Set custom page CSS for an `Article` type vs the usual `Note` ) for a future rich text editor hack that makes masto both micro and macro blog

Mastodon/Hacks