mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-10 23:01:04 +01:00
Mark disabled users as "closed documents" in search
Test Plan: $ ./reindex_all_users.php Search for me in open documents. Search for @epriestley in open documents. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3216
This commit is contained in:
parent
c34dd2158b
commit
bb61f03f1d
1 changed files with 8 additions and 0 deletions
|
@ -33,6 +33,14 @@ final class PhabricatorSearchUserIndexer
|
|||
// TODO: Index the blurbs from their profile or something? Probably not
|
||||
// actually useful...
|
||||
|
||||
if (!$user->getIsDisabled()) {
|
||||
$doc->addRelationship(
|
||||
PhabricatorSearchRelationship::RELATIONSHIP_OPEN,
|
||||
$user->getPHID(),
|
||||
PhabricatorPHIDConstants::PHID_TYPE_USER,
|
||||
time());
|
||||
}
|
||||
|
||||
self::reindexAbstractDocument($doc);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue