@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.

Rename setViewer() to setUser() in views

Summary: I prefer consistency.

Test Plan: /paste/

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

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

vrana 96e5264f 9c27c7ab

+11 -37
+1 -7
src/applications/feed/view/PhabricatorFeedStoryView.php
··· 6 6 private $image; 7 7 private $phid; 8 8 private $epoch; 9 - private $viewer; 10 9 private $viewed; 11 10 private $href; 12 11 13 12 private $oneLine; 14 - 15 - public function setViewer(PhabricatorUser $viewer) { 16 - $this->viewer = $viewer; 17 - return $this; 18 - } 19 13 20 14 public function setTitle($title) { 21 15 $this->title = $title; ··· 98 92 $this->renderChildren()); 99 93 100 94 if ($this->epoch) { 101 - $foot = phabricator_datetime($this->epoch, $this->viewer); 95 + $foot = phabricator_datetime($this->epoch, $this->user); 102 96 } else { 103 97 $foot = ''; 104 98 }
+1 -1
src/applications/files/controller/PhabricatorFileListController.php
··· 83 83 $highlighted_ids = array_fill_keys($highlighted_ids, true); 84 84 85 85 $list_view = id(new PhabricatorObjectItemListView()) 86 - ->setViewer($user); 86 + ->setUser($user); 87 87 88 88 foreach ($files as $file) { 89 89 $id = $file->getID();
+1 -1
src/applications/macro/controller/PhabricatorMacroViewController.php
··· 56 56 $engine->process(); 57 57 58 58 $timeline = id(new PhabricatorApplicationTransactionView()) 59 - ->setViewer($user) 59 + ->setUser($user) 60 60 ->setTransactions($xactions) 61 61 ->setMarkupEngine($engine); 62 62
+1 -1
src/applications/paste/controller/PhabricatorPasteListController.php
··· 80 80 $lang_map = PhabricatorEnv::getEnvConfig('pygments.dropdown-choices'); 81 81 82 82 $list = new PhabricatorObjectItemListView(); 83 - $list->setViewer($user); 83 + $list->setUser($user); 84 84 foreach ($pastes as $paste) { 85 85 $created = phabricator_date($paste->getDateCreated(), $user); 86 86 $author = $this->getHandle($paste->getAuthorPHID())->renderLink();
+1 -1
src/applications/phame/controller/PhameController.php
··· 41 41 assert_instances_of($posts, 'PhamePost'); 42 42 43 43 $list = id(new PhabricatorObjectItemListView()) 44 - ->setViewer($user) 44 + ->setUser($user) 45 45 ->setNoDataString($nodata); 46 46 47 47 foreach ($posts as $post) {
+1 -1
src/applications/phame/controller/blog/PhameBlogListController.php
··· 71 71 72 72 $view = new PhabricatorObjectItemListView(); 73 73 $view->setNoDataString($nodata); 74 - $view->setViewer($user); 74 + $view->setUser($user); 75 75 foreach ($blogs as $blog) { 76 76 77 77 $item = id(new PhabricatorObjectItemView())
+1 -1
src/applications/phame/skins/PhameBasicBlogSkin.php
··· 283 283 $views = array(); 284 284 foreach ($posts as $post) { 285 285 $view = id(new PhamePostView()) 286 - ->setViewer($user) 286 + ->setUser($user) 287 287 ->setSkin($this) 288 288 ->setPost($post) 289 289 ->setBody($engine->getOutput($post, PhamePost::MARKUP_FIELD_BODY))
+1 -11
src/applications/phame/view/PhamePostView.php
··· 7 7 8 8 private $post; 9 9 private $author; 10 - private $viewer; 11 10 private $body; 12 11 private $skin; 13 12 private $summary; ··· 20 19 21 20 public function getSkin() { 22 21 return $this->skin; 23 - } 24 - 25 - public function setViewer(PhabricatorUser $viewer) { 26 - $this->viewer = $viewer; 27 - return $this; 28 - } 29 - 30 - public function getViewer() { 31 - return $this->viewer; 32 22 } 33 23 34 24 public function setAuthor(PhabricatorObjectHandle $author) { ··· 93 83 'Published on %s by %s', 94 84 phabricator_datetime( 95 85 $this->getPost()->getDatePublished(), 96 - $this->getViewer()), 86 + $this->getUser()), 97 87 $this->getAuthor()->getName()))); 98 88 } 99 89
+1 -1
src/applications/ponder/controller/PonderFeedController.php
··· 90 90 $user = $this->getRequest()->getUser(); 91 91 92 92 $view = new PhabricatorObjectItemListView(); 93 - $view->setViewer($user); 93 + $view->setUser($user); 94 94 $view->setNoDataString(pht('No matching questions.')); 95 95 foreach ($questions as $question) { 96 96 $item = new PhabricatorObjectItemView();
+1 -1
src/applications/ponder/view/PonderUserProfileView.php
··· 55 55 $answers = $apagebuttons->sliceResults($answers); 56 56 57 57 $view = new PhabricatorObjectItemListView(); 58 - $view->setViewer($user); 58 + $view->setUser($user); 59 59 $view->setNoDataString(pht('No matching answers.')); 60 60 61 61 foreach ($answers as $answer) {
+1 -1
src/applications/transactions/controller/PhabricatorApplicationTransactionCommentHistoryController.php
··· 60 60 } 61 61 62 62 $view = id(new PhabricatorApplicationTransactionView()) 63 - ->setViewer($user) 63 + ->setUser($user) 64 64 ->setTransactions($xactions) 65 65 ->setShowEditActions(false); 66 66
-10
src/view/layout/PhabricatorObjectItemListView.php
··· 6 6 private $items; 7 7 private $pager; 8 8 private $noDataString; 9 - private $viewer; 10 - 11 - public function setViewer($viewer) { 12 - $this->viewer = $viewer; 13 - return $this; 14 - } 15 - 16 - public function getViewer() { 17 - return $this->viewer; 18 - } 19 9 20 10 public function setHeader($header) { 21 11 $this->header = $header;