Differential D10392 Diff 25011 src/applications/people/event/PhabricatorPeopleHovercardEventListener.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/event/PhabricatorPeopleHovercardEventListener.php
| Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | if ($user->getIsDisabled()) { | ||||
| } | } | ||||
| } | } | ||||
| $hovercard->addField(pht('User since'), | $hovercard->addField(pht('User since'), | ||||
| phabricator_date($user->getDateCreated(), $user)); | phabricator_date($user->getDateCreated(), $user)); | ||||
| if ($profile->getBlurb()) { | if ($profile->getBlurb()) { | ||||
| $hovercard->addField(pht('Blurb'), | $hovercard->addField(pht('Blurb'), | ||||
| phutil_utf8_shorten($profile->getBlurb(), 120)); | id(new PhutilUTF8StringTruncator()) | ||||
| ->setMaximumGlyphs(120) | |||||
| ->truncateString($profile->getBlurb())); | |||||
| } | } | ||||
| $event->setValue('hovercard', $hovercard); | $event->setValue('hovercard', $hovercard); | ||||
| } | } | ||||
| } | } | ||||