Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/response/AphrontAjaxResponse.php
| Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | public function buildResponseString() { | ||||
| $this->encodeJSONForHTTPResponse($content); | $this->encodeJSONForHTTPResponse($content); | ||||
| $response = CelerityAPI::getStaticResourceResponse(); | $response = CelerityAPI::getStaticResourceResponse(); | ||||
| $request = $this->getRequest(); | $request = $this->getRequest(); | ||||
| if ($request) { | if ($request) { | ||||
| $viewer = $request->getViewer(); | $viewer = $request->getViewer(); | ||||
| if ($viewer) { | if ($viewer) { | ||||
| $postprocessor_key = $viewer->getPreference( | $postprocessor_key = $viewer->getUserSetting( | ||||
| PhabricatorUserPreferences::PREFERENCE_RESOURCE_POSTPROCESSOR); | PhabricatorAccessibilitySetting::SETTINGKEY); | ||||
| if (strlen($postprocessor_key)) { | if (strlen($postprocessor_key)) { | ||||
| $response->setPostprocessorKey($postprocessor_key); | $response->setPostprocessorKey($postprocessor_key); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| $object = $response->buildAjaxResponse( | $object = $response->buildAjaxResponse( | ||||
| $content['payload'], | $content['payload'], | ||||
| Show All 15 Lines | |||||