This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app
Robin Ward 57ee779b1e FIX: Job exception: undefined method `email' for nil:NilClass
It seems that due to jobs being asynchronous and wrapping code in a
DistributedMutex that by the time we run the
`UserAvatar#update_gravatar!` job that the user/user email might be
destroyed.

This patch checks before a call to `user.email_hash` to make sure
the user and primary email exist to prevent the exception. If not
present, the job exits as there's nothing to do because we are
probably running after the user was destroyed for some reason.
2019-03-08 13:39:56 -05:00
..
assets UX: better handling of width and overflow for login/signup 2019-03-08 11:14:52 -05:00
controllers FEATURE: remove all expired invitations by default 2019-03-07 15:28:39 +05:30
helpers FEATURE: Calculate sprite-sheet based on currently active themes (#6973) 2019-02-06 15:51:23 +00:00
jobs DEV: Add 'starting' event to sidekiq log when interval logging enabled 2019-03-08 10:56:36 +00:00
mailers FIX: Keep original subject in emails to staged users 2019-01-18 11:07:54 +01:00
models FIX: Job exception: undefined method `email' for nil:NilClass 2019-03-08 13:39:56 -05:00
serializers FEATURE: Special call-out for new / returning posters. (#7115) 2019-03-08 10:48:35 +02:00
services REFACTOR: Migrate GoogleOAuth2Authenticator to use ManagedAuthenticator (#7120) 2019-03-07 11:31:04 +00:00
views FEATURE: Add plugin html hook to insert html before any other scripts 2019-03-05 10:41:16 -08:00