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:
parent
034debede6
commit
ee8de4a9ec
2 changed files with 5 additions and 0 deletions
|
@ -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)) {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue