Skip to content

Commit

Permalink
Merge pull request #692 from nextcloud/enh/noid/disable-social-recomm…
Browse files Browse the repository at this point in the history
…endation

disable social recommendation
  • Loading branch information
AndyScherzinger authored Apr 8, 2022
2 parents 2e548da + af7d356 commit 3ced0ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/Notification/AppHint.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function __construct(INotificationManager $notificationManager, IGroupMan
public function sendAppHintNotifications(): void {
if ($this->userId !== null && $this->groupManager->isAdmin($this->userId) && $this->config->getUserValue($this->userId, 'firstrunwizard', 'apphint') !== self::APP_HINT_VERSION) {
$this->sendNotification('groupfolders', $this->userId);
$this->sendNotification('social', $this->userId);
//$this->sendNotification('social', $this->userId);
$this->sendNotification('notes', $this->userId);
$this->sendNotification('deck', $this->userId);
$this->sendNotification('tasks', $this->userId);
Expand Down
12 changes: 6 additions & 6 deletions lib/Notification/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function prepare(INotification $notification, string $languageCode): INot
case 'apphint-tasks':
case 'apphint-deck':
case 'apphint-notes':
case 'apphint-social':
//case 'apphint-social':
case 'apphint-groupfolders':
$app = $notification->getObjectId();
return $this->setAppHintDetails($notification, $languageCode, $app);
Expand Down Expand Up @@ -194,11 +194,11 @@ protected function setAppHintDetails(INotification $notification, $languageCode,
$notification->setParsedMessage($l->t('Distraction-free notes and writing.'));
$appLink = '/organization/notes';
break;
case 'social':
$notification->setParsedSubject($l->t('App recommendation: Social'));
$notification->setParsedMessage($l->t('Nextcloud becomes part of the federated social networks.'));
$appLink = '/social/social';
break;
// case 'social':
// $notification->setParsedSubject($l->t('App recommendation: Social'));
// $notification->setParsedMessage($l->t('Nextcloud becomes part of the federated social networks.'));
// $appLink = '/social/social';
// break;
case 'groupfolders':
$notification->setParsedSubject($l->t('App recommendation: Group folders'));
$notification->setParsedMessage($l->t('Admin-configured folders shared by everyone in a group.'));
Expand Down

0 comments on commit 3ced0ed

Please sign in to comment.