1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 21:40:55 +01:00

Fix a URI construction in remarkup macro/meme rules

Summary: Ref T13250. Some of these parameters may be NULL, and `alter()` is no longer happy about that.

Test Plan: Ran daemon tasks that happened to render some memes.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13250

Differential Revision: https://secure.phabricator.com/D20176
This commit is contained in:
epriestley 2019-02-15 04:53:42 -08:00
parent b09cf166a8
commit 66060b294b

View file

@ -47,10 +47,13 @@ final class PhabricatorMemeEngine extends Phobject {
}
public function getGenerateURI() {
return id(new PhutilURI('/macro/meme/'))
->alter('macro', $this->getTemplate())
->alter('above', $this->getAboveText())
->alter('below', $this->getBelowText());
$params = array(
'macro' => $this->getTemplate(),
'above' => $this->getAboveText(),
'below' => $this->getBelowText(),
);
return new PhutilURI('/macro/meme/', $params);
}
public function newAsset() {