You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type should be [:vector :site/id]. Add it as an optional key in the :post schema for backwards compatibility.
Then we need to update the UI. Posts should have an additional field somewhere on the sidebar in the edit post page. There are at least three ways we could do it:
). Even though the schema allows posts to have multiple sites, for now we have the UI support only one site per post. Then we wait to see if anyone actually does ever want a single post to be under multiple sites.
Use checkboxes (I don't like the native multiple select element, at least not on desktop)
. For backwards compatibility we can continue checking for a match against the :site/tag attribute. We just wrap it in an or and have the other condition be "does the :post/sites attribute match the site's :xt/id".
The text was updated successfully, but these errors were encountered:
The type should be
[:vector :site/id]
. Add it as an optional key in the:post
schema for backwards compatibility.Then we need to update the UI. Posts should have an additional field somewhere on the sidebar in the edit post page. There are at least three ways we could do it:
platypub/src/com/platypub/ui.clj
Line 214 in 3808d42
I'm ok with any of those options--I probably lean towards using a single-select element for now.
Also we should update the Posts page to show the sites that posts belong to, similar to how currently tags are listed.
Then we need to update the theme code to use the new attribute. See this line:
platypub/themes/default/common.bb
Line 206 in 3808d42
:site/tag
attribute. We just wrap it in anor
and have the other condition be "does the:post/sites
attribute match the site's:xt/id
".The text was updated successfully, but these errors were encountered: