public function __construct(UserGServerRepository $userGServer, LoggerInterface $logger, Profiler $profiler, Activity $activity, L10n $l10n, Item $item, Arguments $args, BaseURL $baseURL, IManageConfigValues $config, IManagePersonalConfigValues $pConfig, Page $page, Mode $mode, EventDispatcherInterface $eventDispatcher, IHandleUserSessions $session)
{
- $this->activity = $activity;
- $this->item = $item;
- $this->config = $config;
- $this->mode = $mode;
- $this->baseURL = $baseURL;
- $this->profiler = $profiler;
- $this->logger = $logger;
- $this->l10n = $l10n;
- $this->args = $args;
- $this->pConfig = $pConfig;
- $this->page = $page;
+ $this->activity = $activity;
+ $this->item = $item;
+ $this->config = $config;
+ $this->mode = $mode;
+ $this->baseURL = $baseURL;
+ $this->profiler = $profiler;
+ $this->logger = $logger;
+ $this->l10n = $l10n;
+ $this->args = $args;
+ $this->pConfig = $pConfig;
+ $this->page = $page;
$this->eventDispatcher = $eventDispatcher;
- $this->session = $session;
- $this->userGServer = $userGServer;
+ $this->session = $session;
+ $this->userGServer = $userGServer;
}
/**
{
parent::__construct($l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters);
- $this->systemMessages = $systemMessages;
- $this->ACLFormatter = $ACLFormatter;
- $this->page = $page;
- $this->pConfig = $pConfig;
- $this->config = $config;
- $this->session = $session;
- $this->appHelper = $appHelper;
+ $this->systemMessages = $systemMessages;
+ $this->ACLFormatter = $ACLFormatter;
+ $this->page = $page;
+ $this->pConfig = $pConfig;
+ $this->config = $config;
+ $this->session = $session;
+ $this->appHelper = $appHelper;
$this->eventDispatcher = $eventDispatcher;
}
switch ($posttype) {
case Item::PT_PERSONAL_NOTE:
- $compose_title = $this->l10n->t('Compose new personal note');
- $type = 'note';
- $doesFederate = false;
+ $compose_title = $this->l10n->t('Compose new personal note');
+ $type = 'note';
+ $doesFederate = false;
$contact_allow_list = [$this->appHelper->getContactId()];
- $circle_allow_list = [];
- $contact_deny_list = [];
- $circle_deny_list = [];
+ $circle_allow_list = [];
+ $contact_deny_list = [];
+ $circle_deny_list = [];
break;
default:
$compose_title = $this->l10n->t('Compose new post');
- $type = 'post';
- $doesFederate = true;
+ $type = 'post';
+ $doesFederate = true;
$contact_allow = $_REQUEST['contact_allow'] ?? '';
- $circle_allow = $_REQUEST['circle_allow'] ?? '';
- $contact_deny = $_REQUEST['contact_deny'] ?? '';
- $circle_deny = $_REQUEST['circle_deny'] ?? '';
+ $circle_allow = $_REQUEST['circle_allow'] ?? '';
+ $contact_deny = $_REQUEST['contact_deny'] ?? '';
+ $circle_deny = $_REQUEST['circle_deny'] ?? '';
if ($contact_allow
. $circle_allow
. $contact_deny
- . $circle_deny)
- {
+ . $circle_deny) {
$contact_allow_list = $contact_allow ? explode(',', $contact_allow) : [];
$circle_allow_list = $circle_allow ? explode(',', $circle_allow) : [];
$contact_deny_list = $contact_deny ? explode(',', $contact_deny) : [];
break;
}
- $title = $_REQUEST['title'] ?? '';
- $category = $_REQUEST['category'] ?? '';
- $body = $_REQUEST['body'] ?? '';
- $location = $_REQUEST['location'] ?? $user['default-location'];
- $wall = $_REQUEST['wall'] ?? $type == 'post';
+ $title = $_REQUEST['title'] ?? '';
+ $category = $_REQUEST['category'] ?? '';
+ $body = $_REQUEST['body'] ?? '';
+ $location = $_REQUEST['location'] ?? $user['default-location'];
+ $wall = $_REQUEST['wall'] ?? $type == 'post';
$jotplugins = $this->eventDispatcher->dispatch(
new HtmlFilterEvent(HtmlFilterEvent::JOT_TOOL, ''),
'wait' => $this->l10n->t('Please wait'),
'placeholdertitle' => $this->l10n->t('Set title'),
'placeholdercategory' => Feature::isEnabled($this->session->getLocalUserId(), Feature::CATEGORIES) ? $this->l10n->t('Categories (comma-separated list)') : '',
- 'always_open_compose' => $this->pConfig->get($this->session->getLocalUserId(), 'frio', 'always_open_compose',
- $this->config->get('frio', 'always_open_compose', false)) ? '' :
+ 'always_open_compose' => $this->pConfig->get(
+ $this->session->getLocalUserId(),
+ 'frio',
+ 'always_open_compose',
+ $this->config->get('frio', 'always_open_compose', false)
+ ) ? '' :
$this->l10n->t('You can make this page always open when you use the New Post button in the <a href="/settings/display">Theme Customization settings</a>.'),
],
$this->l10n->t('Scheduled at'),
'scheduled_at'
),
- '$created_at' => $created_at,
- '$title' => $title,
- '$category' => $category,
- '$body' => $body,
- '$location' => $location,
+ '$created_at' => $created_at,
+ '$title' => $title,
+ '$category' => $category,
+ '$body' => $body,
+ '$location' => $location,
'$contact_allow' => implode(',', $contact_allow_list),
'$circle_allow' => implode(',', $circle_allow_list),
'$jotplugins' => $jotplugins,
'$rand_num' => Crypto::randomDigits(12),
- '$acl_selector' => ACL::getFullSelectorHTML($this->page, $this->session->getLocalUserId(), $doesFederate, [
+ '$acl_selector' => ACL::getFullSelectorHTML($this->page, $this->session->getLocalUserId(), $doesFederate, [
'allow_cid' => $contact_allow_list,
'allow_gid' => $circle_allow_list,
'deny_cid' => $contact_deny_list,