mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-30 08:28:20 +01:00
Add user profile icons to Phame authorship
Summary: Huge omission. Test Plan: {F1093955} Reviewers: chad Reviewed By: chad Differential Revision: https://secure.phabricator.com/D15192
This commit is contained in:
parent
4132ba0853
commit
a19be7697c
1 changed files with 10 additions and 1 deletions
|
@ -101,9 +101,18 @@ final class PhamePostViewController
|
||||||
$subtitle = pht('Written by %s on %s.', $author, $date);
|
$subtitle = pht('Written by %s on %s.', $author, $date);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$user_icon = $blogger_profile->getIcon();
|
||||||
|
$user_icon = PhabricatorPeopleIconSet::getIconIcon($user_icon);
|
||||||
|
$user_icon = id(new PHUIIconView())->setIcon($user_icon);
|
||||||
|
|
||||||
$about = id(new PhameDescriptionView())
|
$about = id(new PhameDescriptionView())
|
||||||
->setTitle($subtitle)
|
->setTitle($subtitle)
|
||||||
->setDescription($blogger_profile->getTitle())
|
->setDescription(
|
||||||
|
array(
|
||||||
|
$user_icon,
|
||||||
|
' ',
|
||||||
|
$blogger_profile->getTitle(),
|
||||||
|
))
|
||||||
->setImage($blogger->getProfileImageURI())
|
->setImage($blogger->getProfileImageURI())
|
||||||
->setImageHref('/p/'.$blogger->getUsername());
|
->setImageHref('/p/'.$blogger->getUsername());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue