Post Titles
Revision as of 21:47, 17 January 2024 by Jonny (talk | contribs) (Created page with "{{Project |Description=Give posts titles w/ slugified URLs to support longer-form writing and minimization |Part Of=Mastodon/Hacking |Parts= |Contributors=Jonny Saunders |Has Git Repository=https://github.com/NeuromatchAcademy/mastodon |Completion Status=Draft |Active Status=Active |Approval Status=Unapproved }} Stubbing this out: == Desired Functionality == === Base === * Post titles declared by ** additional field in compose window via web interface ** Starting wit...")
Post Titles | |
---|---|
Description | Give posts titles w/ slugified URLs to support longer-form writing and minimization |
Part Of | Mastodon/Hacking |
Contributors | Jonny Saunders |
Has Git Repository | https://github.com/NeuromatchAcademy/mastodon |
Completion Status | Draft |
Active Status | Active |
Approval Status | Unapproved"Unapproved" is not in the list (Draft, Provisional, Approved, Proposed, Blocked) of allowed values for the "Approval Status" property. |
Stubbing this out:
Desired Functionality
Base
- Post titles declared by
- additional field in compose window via web interface
- Starting with a header like in markdown, eg:
# My Post Title Post content
- Post title displayed like standard html header
- Slugified urls like
https://neuromatch.social/@username/my-post-title
- Duplicate slugs get incrementing integers appended
- eg.
my-post-title-2
etc.
- eg.
- Duplicate slugs get incrementing integers appended
Nice to have
- Titled posts displayed in separate section on account page
- Titled posts minimized by default, showing only title?
Implementation
- Add "title" field to status model
- Do migration
- Add field in web ux
- Parser/regex to detect post-initial header
- slugify title
- check for duplicates and increment
- add route for slugified titles/add slug detection in controller