Warnings are skipped for valid users

Created on 9 December 2021, almost 3 years ago
Updated 5 August 2024, about 2 months ago

When running cron, to try and generate a warning about the expiration of an account, I got the log message:

Skipping warning 261 as it failed to load a valid user

and the warning was not generated. 261 is the uid of the user for whom I was expecting the warning to be generated.

The cause of the problem is testing for the existence of an account for the user after loading that user. The test should be for an account not existing for the user after loading that user.

The problem is fixed by the attached patch.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States ShaunLaws

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024