Skip to content

Commit 9438eeb

Browse files
committed
fixup! fix: rework attributes
1 parent cf0215f commit 9438eeb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Controller/FeedController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public function __construct(
4848
#[BruteForceProtection('activityRssFeed')]
4949
public function show(): TemplateResponse {
5050
$response = new TemplateResponse('activity', 'rss', [], '');
51-
$title = $this->themingDefaults->getTitle();
5251
try {
5352
$user = $this->activityManager->getCurrentUserId();
5453
$userLang = $this->config->getUserValue($user, 'core', 'lang');
@@ -57,9 +56,9 @@ public function show(): TemplateResponse {
5756
$this->l = $this->l10nFactory->get('activity', $userLang);
5857
$this->helper->setL10n($this->l);
5958

59+
$description = $this->l->t('Personal activity feed for %s', $user);
6060
$data = $this->data->get($this->helper, $this->settings, $user, 0, self::DEFAULT_PAGE_SIZE, 'desc', 'all');
6161
$activities = $data['data'];
62-
$description = $this->l->t('Personal activity feed for %s', $user);
6362
} catch (\UnexpectedValueException $e) {
6463
$this->l = $this->l10nFactory->get('activity');
6564
$description = $this->l->t('Your feed URL is invalid');
@@ -74,6 +73,8 @@ public function show(): TemplateResponse {
7473
$response->throttle();
7574
}
7675

76+
$title = $this->themingDefaults->getTitle();
77+
7778
$response->setParams([
7879
'rssLang' => $this->l->getLanguageCode(),
7980
'rssLink' => $this->urlGenerator->linkToRouteAbsolute('activity.Feed.show'),

0 commit comments

Comments
 (0)