Select the types of activity you want to include in your feed.
@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
···6060 break;
6161 case self::QUERY_OPEN_OWNED:
6262 $this->revisions = $this->loadAllWhere(
6363- 'revision.status in (%Ld) AND revision.ownerPHID in (%Ls)',
6363+ 'revision.status in (%Ld) AND revision.authorPHID in (%Ls)',
6464 $this->getOpenStatuses(),
6565 $this->ids);
6666 break;
6767 case self::QUERY_COMMITTABLE:
6868 $this->revisions = $this->loadAllWhere(
6969- 'revision.status in (%Ld) AND revision.ownerPHID in (%Ls)',
6969+ 'revision.status in (%Ld) AND revision.authorPHID in (%Ls)',
7070 array(
7171 DifferentialRevisionStatus::ACCEPTED,
7272 ),
···8585 break;
8686 case self::QUERY_OWNED:
8787 $this->revisions = $this->loadAllWhere(
8888- 'revision.ownerPHID in (%Ls)',
8888+ 'revision.authorPHID in (%Ls)',
8989 $this->ids);
9090 break;
9191 case self::QUERY_OWNED_OR_REVIEWER:
9292 $this->revisions = $this->loadAllWhereJoinReview(
9393- 'revision.ownerPHID in (%Ls) OR relationship.objectPHID in (%Ls)',
9393+ 'revision.authorPHID in (%Ls) OR relationship.objectPHID in (%Ls)',
9494 $this->ids,
9595 $this->ids);
9696 break;
···9999 $data = queryfx_all(
100100 $rev->establishConnection('r'),
101101 'SELECT revision.* FROM %T revision
102102- WHERE revision.ownerPHID in (%Ls)
102102+ WHERE revision.authorPHID in (%Ls)
103103 AND revision.status in (%Ld)
104104105105 UNION ALL
···135135 $data = queryfx_all(
136136 $rev->establishConnection('r'),
137137 'SELECT revision.* FROM %T revision
138138- WHERE revision.ownerPHID in (%Ls)
138138+ WHERE revision.authorPHID in (%Ls)
139139 AND revision.status IN (%Ld)
140140141141 UNION ALL
···204204 if ($revision->getTitle() === null) {
205205 $revision->setTitle('Untitled Revision');
206206 }
207207- if ($revision->getOwnerPHID() === null) {
208208- $revision->setOwnerPHID($this->getActorPHID());
207207+ if ($revision->getAuthorPHID() === null) {
208208+ $revision->setAuthorPHID($this->getActorPHID());
209209 }
210210211211 $revision->save();
···315315 array_keys($add['rev']),
316316 $this->actorPHID);
317317318318- // Add the owner to the relevant set of users so they get a copy of the
318318+ // Add the author to the relevant set of users so they get a copy of the
319319 // email.
320320 if (!$this->silentUpdate) {
321321 if ($is_new) {
···11+<?php
22+33+/*
44+ * Copyright 2011 Facebook, Inc.
55+ *
66+ * Licensed under the Apache License, Version 2.0 (the "License");
77+ * you may not use this file except in compliance with the License.
88+ * You may obtain a copy of the License at
99+ *
1010+ * http://www.apache.org/licenses/LICENSE-2.0
1111+ *
1212+ * Unless required by applicable law or agreed to in writing, software
1313+ * distributed under the License is distributed on an "AS IS" BASIS,
1414+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1515+ * See the License for the specific language governing permissions and
1616+ * limitations under the License.
1717+ */
1818+1919+class DifferentialComment extends DifferentialDAO {
2020+2121+ protected $authorPHID;
2222+ protected $revisionID;
2323+ protected $action;
2424+ protected $content;
2525+2626+}
···11+<?php
22+/**
33+ * This file is automatically generated. Lint this module to rebuild it.
44+ * @generated
55+ */
66+77+88+99+phutil_require_module('phabricator', 'applications/differential/storage/base');
1010+1111+1212+phutil_require_source('DifferentialComment.php');
···11+<?php
22+33+/*
44+ * Copyright 2011 Facebook, Inc.
55+ *
66+ * Licensed under the Apache License, Version 2.0 (the "License");
77+ * you may not use this file except in compliance with the License.
88+ * You may obtain a copy of the License at
99+ *
1010+ * http://www.apache.org/licenses/LICENSE-2.0
1111+ *
1212+ * Unless required by applicable law or agreed to in writing, software
1313+ * distributed under the License is distributed on an "AS IS" BASIS,
1414+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1515+ * See the License for the specific language governing permissions and
1616+ * limitations under the License.
1717+ */
1818+1919+final class DifferentialRevisionCommentListView extends AphrontView {
2020+2121+ private $comments;
2222+ private $handles;
2323+2424+ public function setComments($comments) {
2525+ $this->comments = $comments;
2626+ return $this;
2727+ }
2828+2929+ public function setHandles(array $handles) {
3030+ $this->handles = $handles;
3131+ return $this;
3232+ }
3333+3434+ public function render() {
3535+3636+ require_celerity_resource('differential-revision-comment-list-css');
3737+3838+ $comments = array();
3939+ foreach ($this->comments as $comment) {
4040+ $view = new DifferentialRevisionCommentView();
4141+ $view->setComment($comment);
4242+ $view->setHandles($this->handles);
4343+4444+ $comments[] = $view->render();
4545+ }
4646+4747+ return
4848+ '<div>'.
4949+ implode("\n", $comments).
5050+ '</div>';
5151+ }
5252+}