Page MenuHomePhabricator

D18182.id43743.diff
No OneTemporary

D18182.id43743.diff

diff --git a/src/applications/phame/controller/post/PhamePostArchiveController.php b/src/applications/phame/controller/post/PhamePostArchiveController.php
--- a/src/applications/phame/controller/post/PhamePostArchiveController.php
+++ b/src/applications/phame/controller/post/PhamePostArchiveController.php
@@ -42,8 +42,9 @@
$title = pht('Archive Post');
$body = pht(
- 'This post will revert to archived status and no longer be visible '.
- 'to other users or members of this blog.');
+ 'If you archive this post, it will only be visible to users who can '.
+ 'edit %s.',
+ $viewer->renderHandle($post->getBlogPHID()));
$button = pht('Archive Post');
return $this->newDialog()
diff --git a/src/applications/phame/controller/post/PhamePostViewController.php b/src/applications/phame/controller/post/PhamePostViewController.php
--- a/src/applications/phame/controller/post/PhamePostViewController.php
+++ b/src/applications/phame/controller/post/PhamePostViewController.php
@@ -46,8 +46,10 @@
->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
->setTitle(pht('Draft Post'))
->appendChild(
- pht('Only you can see this draft until you publish it. '.
- 'Use "Publish" to publish this post.')));
+ pht(
+ 'This is a draft, and is only visible to you and other users '.
+ 'who can edit %s. Use "Publish" to publish this post.',
+ $viewer->renderHandle($post->getBlogPHID()))));
}
if ($post->isArchived()) {
@@ -56,8 +58,10 @@
->setSeverity(PHUIInfoView::SEVERITY_ERROR)
->setTitle(pht('Archived Post'))
->appendChild(
- pht('Only you can see this archived post until you publish it. '.
- 'Use "Publish" to publish this post.')));
+ pht(
+ 'This post has been archived, and is only visible to you and '.
+ 'other users who can edit %s.',
+ $viewer->renderHandle($post->getBlogPHID()))));
}
if (!$post->getBlog()) {
diff --git a/src/applications/phame/storage/PhamePost.php b/src/applications/phame/storage/PhamePost.php
--- a/src/applications/phame/storage/PhamePost.php
+++ b/src/applications/phame/storage/PhamePost.php
@@ -200,8 +200,9 @@
}
public function getPolicy($capability) {
- // Draft posts are visible only to the author. Published posts are visible
- // to whoever the blog is visible to.
+ // Draft and archived posts are visible only to the author and other
+ // users who can edit the blog. Published posts are visible to whoever
+ // the blog is visible to.
switch ($capability) {
case PhabricatorPolicyCapability::CAN_VIEW:

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 24, 5:58 PM (2 d, 15 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8596887
Default Alt Text
D18182.id43743.diff (2 KB)

Event Timeline