Select the types of activity you want to include in your feed.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
···11+<?php
22+33+/*
44+ * Copyright 2011 Facebook, Inc.
55+ *
66+ * Licensed under the Apache License, Version 2.0 (the "License");
77+ * you may not use this file except in compliance with the License.
88+ * You may obtain a copy of the License at
99+ *
1010+ * http://www.apache.org/licenses/LICENSE-2.0
1111+ *
1212+ * Unless required by applicable law or agreed to in writing, software
1313+ * distributed under the License is distributed on an "AS IS" BASIS,
1414+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1515+ * See the License for the specific language governing permissions and
1616+ * limitations under the License.
1717+ */
1818+1919+class PhabricatorUserPreferences extends PhabricatorUserDAO {
2020+2121+ const PREFERENCE_MONOSPACED = 'monospaced';
2222+ const PREFERENCE_TITLES = 'titles';
2323+2424+ protected $userPHID;
2525+ protected $preferences;
2626+2727+ public function getConfiguration() {
2828+ return array(
2929+ self::CONFIG_SERIALIZATION => array(
3030+ 'preferences' => self::SERIALIZATION_JSON,
3131+ ),
3232+ self::CONFIG_TIMESTAMPS => false,
3333+ ) + parent::getConfiguration();
3434+ }
3535+3636+ public function getPreference($key) {
3737+ return $this->getPreferences()[$key];
3838+ }
3939+}
···11+<?php
22+/**
33+ * This file is automatically generated. Lint this module to rebuild it.
44+ * @generated
55+ */
66+77+88+99+phutil_require_module('phabricator', 'applications/people/storage/base');
1010+1111+1212+phutil_require_source('PhabricatorUserPreferences.php');
···11+<?php
22+33+/*
44+ * Copyright 2011 Facebook, Inc.
55+ *
66+ * Licensed under the Apache License, Version 2.0 (the "License");
77+ * you may not use this file except in compliance with the License.
88+ * You may obtain a copy of the License at
99+ *
1010+ * http://www.apache.org/licenses/LICENSE-2.0
1111+ *
1212+ * Unless required by applicable law or agreed to in writing, software
1313+ * distributed under the License is distributed on an "AS IS" BASIS,
1414+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1515+ * See the License for the specific language governing permissions and
1616+ * limitations under the License.
1717+ */
1818+1919+abstract class PhabricatorPreferencesController extends PhabricatorController {
2020+2121+ public function buildStandardPageResponse($view, array $data) {
2222+2323+ $page = $this->buildStandardPageView();
2424+2525+ $page->setApplicationName('Preferences');
2626+ $page->setBaseURI('/preferences/');
2727+ $page->setTitle(idx($data, 'title'));
2828+ $page->setGlyph("\xE2\x9A\x92");
2929+ $page->appendChild($view);
3030+3131+ $response = new AphrontWebpageResponse();
3232+ return $response->setContent($page->render());
3333+ }
3434+}