1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-01 18:30: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:
epriestley 2015-06-13 06:53:36 -07:00
parent 034debede6
commit ee8de4a9ec
2 changed files with 5 additions and 0 deletions

View file

@ -64,7 +64,10 @@ final class PholioRemarkupRule extends PhabricatorObjectRemarkupRule {
PhabricatorObjectHandle $handle, PhabricatorObjectHandle $handle,
$options) { $options) {
$viewer = $this->getEngine()->getConfig('viewer');
$embed_mock = id(new PholioMockEmbedView()) $embed_mock = id(new PholioMockEmbedView())
->setUser($viewer)
->setMock($object); ->setMock($object);
if (strlen($options)) { if (strlen($options)) {

View file

@ -47,6 +47,8 @@ final class PholioMockEmbedView extends AphrontView {
list($x, $y) = $xform->getTransformedDimensions($thumbfile); list($x, $y) = $xform->getTransformedDimensions($thumbfile);
$item = id(new PHUIPinboardItemView()) $item = id(new PHUIPinboardItemView())
->setUser($this->getUser())
->setObject($mock)
->setHeader($header) ->setHeader($header)
->setURI($uri) ->setURI($uri)
->setImageURI($thumbnail) ->setImageURI($thumbnail)