Skip to content

6 August 2022: breaking change

Compare
Choose a tag to compare
@jacobobryant jacobobryant released this 06 Aug 18:26
· 80 commits to master since this release

The latest commit (146850e) includes a Big Honkin' Breaking Change: I've completely overhauled the data model, in order to make it extensible by themes. Platypub no longer defines "Posts". Instead, it defines "Items" which have only two required attributes: :item/user (the user who owns the item) and :item/sites (the set of sites to which this item belongs). Any other attributes (like title, post content, publish date, etc) need to be defined by themes via a new config.edn file. Themes can also define different types of items, which can have different sets of attributes and which are given their own sections in Platypub's UI. The default theme defines Posts and Pages.

To upgrade: after you've pulled in the new commit and started the app, go to repl.clj and evaluate (migrate-items!).

NOTE: if you're using a custom theme, you will need to update it. See the files under themes/default/ at 146850e. If you don't want to update your theme immediately, you may want to hold off on upgrading Platypub until you have time to do so.