Skip to content

Digests recipient selection #1768

Closed
Closed

Description

@raboof

lib/DigestSender.php is fetching users via $this->config->getUsersForUserValue('activity', 'notify_setting_activity_digest', '1');. This does not exclude disabled users on either side. Is this an oversight, or is the assumption that notify_setting_activity_digest should be disabled for disabled users?

(this is with Nextcloud 27.1.4, Activity 2.19.0)

Activity

  1. changed the title [-]Digests are sent even for disabled users[/-] [+]Digests recipient selection[/+] on Sep 4, 2024
  2. joshtrichards commented on Jan 23, 2025

    @joshtrichards
    Member

    I was about to respond that I see a check a bit farther down the code path that does check for disabled users:

    if (!$userObject->isEnabled()) {
    // User is disabled so do not send the email but update last sent since after enabling avoid flooding
    $this->updateLastSentForUser($userObject, $now);
    continue;

    But just noticed that someone else (Hi @yemkareems!) happens to have fixed this (via #1803) shortly after your original report so that's where that code comes from. :)

    So, yes, good catch and I think we're good now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions