1
0
Fork 0
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:
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,
$options) {
$viewer = $this->getEngine()->getConfig('viewer');
$embed_mock = id(new PholioMockEmbedView())
->setUser($viewer)
->setMock($object);
if (strlen($options)) {

View file

@ -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)