diff --git a/src/applications/pholio/remarkup/PholioRemarkupRule.php b/src/applications/pholio/remarkup/PholioRemarkupRule.php index 2b1ca0f876..00025b6326 100644 --- a/src/applications/pholio/remarkup/PholioRemarkupRule.php +++ b/src/applications/pholio/remarkup/PholioRemarkupRule.php @@ -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)) { diff --git a/src/applications/pholio/view/PholioMockEmbedView.php b/src/applications/pholio/view/PholioMockEmbedView.php index 3429cfd569..88f2f2ac55 100644 --- a/src/applications/pholio/view/PholioMockEmbedView.php +++ b/src/applications/pholio/view/PholioMockEmbedView.php @@ -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)