mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-29 17:00:59 +01:00
Fix an issue with {M13}
and Spaces
Fixes T8529. These elements now need a viewer/object to render Spaces. Auditors: btrahan
This commit is contained in:
parent
034debede6
commit
ee8de4a9ec
2 changed files with 5 additions and 0 deletions
|
@ -64,7 +64,10 @@ final class PholioRemarkupRule extends PhabricatorObjectRemarkupRule {
|
|||
PhabricatorObjectHandle $handle,
|
||||
$options) {
|
||||
|
||||
$viewer = $this->getEngine()->getConfig('viewer');
|
||||
|
||||
$embed_mock = id(new PholioMockEmbedView())
|
||||
->setUser($viewer)
|
||||
->setMock($object);
|
||||
|
||||
if (strlen($options)) {
|
||||
|
|
|
@ -47,6 +47,8 @@ final class PholioMockEmbedView extends AphrontView {
|
|||
list($x, $y) = $xform->getTransformedDimensions($thumbfile);
|
||||
|
||||
$item = id(new PHUIPinboardItemView())
|
||||
->setUser($this->getUser())
|
||||
->setObject($mock)
|
||||
->setHeader($header)
|
||||
->setURI($uri)
|
||||
->setImageURI($thumbnail)
|
||||
|
|
Loading…
Reference in a new issue