1
0
Fork 0
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:
vrana 2012-08-08 21:51:07 -07:00
parent c34dd2158b
commit bb61f03f1d

View file

@ -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);
}
}