Post Titles: Difference between revisions

From neuromatch
(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...")
 
No edit summary
Line 38: Line 38:
== Implementation ==
== Implementation ==


* Add "title" field to status model
* X - Add "title" field to status model
** Do migration
** X - Do migration
* Add field in web ux
* X - config for max title length
* Parser/regex to detect post-initial header
* Declare:
* slugify title
** Add field in web ux to add
* check for duplicates and increment
** Parser/regex to detect post-initial header
* Store
** slugify title
** check for duplicates and increment
* Display:
** Show title above status on local web interface
* Serializing
** Just serialize title in post body when federating
* add route for slugified titles/add slug detection in controller
* add route for slugified titles/add slug detection in controller

Revision as of 22:06, 17 January 2024

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


Nice to have

  • Titled posts displayed in separate section on account page
  • Titled posts minimized by default, showing only title?

Implementation

  • X - Add "title" field to status model
    • X - Do migration
  • X - config for max title length
  • Declare:
    • Add field in web ux to add
    • Parser/regex to detect post-initial header
  • Store
    • slugify title
    • check for duplicates and increment
  • Display:
    • Show title above status on local web interface
  • Serializing
    • Just serialize title in post body when federating
  • add route for slugified titles/add slug detection in controller