@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow builtin Phame UI to be publicly viewable

Summary: These weren't open to the public even if the blog was public.

Test Plan: View a blog post, blog view, and blog manage page while logged out.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D14619

+13 -3
+4
src/applications/phame/controller/blog/PhameBlogManageController.php
··· 2 2 3 3 final class PhameBlogManageController extends PhameBlogController { 4 4 5 + public function shouldAllowPublic() { 6 + return true; 7 + } 8 + 5 9 public function handleRequest(AphrontRequest $request) { 6 10 $viewer = $request->getViewer(); 7 11 $id = $request->getURIData('id');
+5 -3
src/applications/phame/controller/blog/PhameBlogViewController.php
··· 4 4 5 5 private $blog; 6 6 7 + public function shouldAllowPublic() { 8 + return true; 9 + } 10 + 7 11 public function handleRequest(AphrontRequest $request) { 8 12 $viewer = $request->getViewer(); 9 13 $id = $request->getURIData('id'); ··· 158 162 id(new PhabricatorActionView()) 159 163 ->setIcon('fa-pencil') 160 164 ->setHref($this->getApplicationURI('blog/manage/'.$blog->getID().'/')) 161 - ->setName(pht('Manage Blog')) 162 - ->setDisabled(!$can_edit) 163 - ->setWorkflow(!$can_edit)); 165 + ->setName(pht('Manage Blog'))); 164 166 165 167 return $actions; 166 168 }
+4
src/applications/phame/controller/post/PhamePostViewController.php
··· 2 2 3 3 final class PhamePostViewController extends PhamePostController { 4 4 5 + public function shouldAllowPublic() { 6 + return true; 7 + } 8 + 5 9 public function handleRequest(AphrontRequest $request) { 6 10 $viewer = $request->getViewer(); 7 11