protected function execute(ConduitAPIRequest $request)
 {
     $user = $request->getUser();
     $macro_name = $request->getValue('macroName');
     $upper_text = $request->getValue('upperText');
     $lower_text = $request->getValue('lowerText');
     $uri = PhabricatorMacroMemeController::generateMacro($user, $macro_name, $upper_text, $lower_text);
     if (!$uri) {
         throw new ConduitException('ERR-NOT-FOUND');
     }
     return array('uri' => $uri);
 }
 public function processRequest()
 {
     $request = $this->getRequest();
     $macro_name = $request->getStr('macro');
     $upper_text = $request->getStr('uppertext');
     $lower_text = $request->getStr('lowertext');
     $user = $request->getUser();
     $uri = PhabricatorMacroMemeController::generateMacro($user, $macro_name, $upper_text, $lower_text);
     if ($uri === false) {
         return new Aphront404Response();
     }
     return id(new AphrontRedirectResponse())->setIsExternal(true)->setURI($uri);
 }