mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-24 07:42:40 +01:00
a50b8e39b1
Summary: This leaves the UI in a pretty rough state, but implements blog policy controls and queries, and 1:1 relationships between posts and blogs. Needs a bunch more cleanup but seemed like an okayish breaking point in terms of cohesiveness. Posts have these rules: - Drafts are visible only to the author. - Published posts are visible to anyone who can see the blog they appear on. - Posts are only editable by the author. ...so we don't need any special policy UI or state to accommodate these rules. Posts may have no blog if they're grandfathered in or you write a post to a blog and then lose the ability to see the blog. This is the messiest edge case -- specifically: - You write a post to blog A. - You publish the post. - I edit the "Visible To:" for blog A and set it to exclude you. What we do in this case is let you see the post in "My Posts", but you can no longer see the blog and you'll see the post as not being part of a blog. We can maybe give you some UI to let you move it later or something. Test Plan: Hit all (I think?) of the interfaces without issues. Definitely some UI problems still right now. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T1373 Differential Revision: https://secure.phabricator.com/D3694
2 lines
93 B
SQL
2 lines
93 B
SQL
ALTER TABLE `{$NAMESPACE}_phame`.`phame_post`
|
|
ADD `blogPHID` varchar(64) COLLATE utf8_bin;
|