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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user