Differential D20969 Diff 49965 src/applications/subscriptions/engineextension/PhabricatorSubscriptionsCurtainExtension.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/subscriptions/engineextension/PhabricatorSubscriptionsCurtainExtension.php
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | foreach ($subscriber_phids as $subscriber_phid) { | ||||
$sort_name = ''; | $sort_name = ''; | ||||
$is_complete = false; | $is_complete = false; | ||||
if ($handles) { | if ($handles) { | ||||
if (isset($handles[$subscriber_phid])) { | if (isset($handles[$subscriber_phid])) { | ||||
$handle = $handles[$subscriber_phid]; | $handle = $handles[$subscriber_phid]; | ||||
if ($handle->isComplete()) { | if ($handle->isComplete()) { | ||||
$is_complete = true; | $is_complete = true; | ||||
$sort_name = $handle->getLinkName(); | $sort_name = $handle->getLinkName(); | ||||
$sort_name = phutil_utf8_strtolower($sort_name); | |||||
} | } | ||||
} | } | ||||
} | } | ||||
$subscriber_map[$subscriber_phid] = id(new PhutilSortVector()) | $subscriber_map[$subscriber_phid] = id(new PhutilSortVector()) | ||||
->addInt($is_viewer ? 0 : 1) | ->addInt($is_viewer ? 0 : 1) | ||||
->addInt($is_complete ? 0 : 1) | ->addInt($is_complete ? 0 : 1) | ||||
->addInt($type_order) | ->addInt($type_order) | ||||
Show All 9 Lines |