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

Use remote URI, not display URI, to match repositories

Summary:
I derped this up, and it passed my tests because the two URIs are the same for hosted repositories.

Match repositories against their remote URI (like `https://github.com/user/repo.git`), not their display URI (like `/diffusion/X/`).

Test Plan: i r dums

Reviewers: talshiri, btrahan

Reviewed By: talshiri

CC: aran

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

+3 -3
+3 -3
src/applications/repository/storage/PhabricatorRepository.php
··· 490 490 case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT: 491 491 $normalized_uri = new PhabricatorRepositoryURINormalizer( 492 492 PhabricatorRepositoryURINormalizer::TYPE_GIT, 493 - $this->getURI()); 493 + $this->getRemoteURI()); 494 494 break; 495 495 case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN: 496 496 $normalized_uri = new PhabricatorRepositoryURINormalizer( 497 497 PhabricatorRepositoryURINormalizer::TYPE_SVN, 498 - $this->getURI()); 498 + $this->getRemoteURI()); 499 499 break; 500 500 case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL: 501 501 $normalized_uri = new PhabricatorRepositoryURINormalizer( 502 502 PhabricatorRepositoryURINormalizer::TYPE_MERCURIAL, 503 - $this->getURI()); 503 + $this->getRemoteURI()); 504 504 break; 505 505 default: 506 506 throw new Exception("Unrecognized version control system.");