@@ -148,7 +148,9 @@ def _notify_moderators_pending(self, event_data):
148148 'reviews_submission_url' : f'{ DOMAIN } reviews/registries/{ self .guid .referent ._id } /{ self .guid .referent ._id } ' ,
149149 'is_request_email' : False ,
150150 'is_initiator' : self .creator == user ,
151- 'profile_image_url' : user .profile_image_url ()
151+ 'profile_image_url' : user .profile_image_url (),
152+ 'logo' : self .collection .provider ._id if
153+ self .collection .provider and not self .collection .provider .is_default else settings .OSF_PREPRINTS_LOGO ,
152154 },
153155 is_digest = True ,
154156 )
@@ -189,6 +191,8 @@ def _notify_accepted(self, event_data):
189191 'domain' : settings .DOMAIN ,
190192 'osf_contact_email' : settings .OSF_CONTACT_EMAIL ,
191193 'is_initiator' : self .creator == contributor ,
194+ 'logo' : self .collection .provider ._id if
195+ self .collection .provider and not self .collection .provider .is_default else settings .OSF_PREPRINTS_LOGO ,
192196 },
193197 )
194198
@@ -228,6 +232,8 @@ def _notify_moderated_rejected(self, event_data):
228232 'reviews_submission_url' : f'{ DOMAIN } reviews/registries/{ self .guid .referent ._id } /{ self .guid .referent ._id } ' ,
229233 'rejection_justification' : event_data .kwargs .get ('comment' ),
230234 'osf_contact_email' : settings .OSF_CONTACT_EMAIL ,
235+ 'logo' : self .collection .provider ._id if
236+ self .collection .provider and not self .collection .provider .is_default else settings .OSF_PREPRINTS_LOGO ,
231237 },
232238 )
233239
@@ -271,6 +277,8 @@ def _notify_removed(self, event_data):
271277 'profile_image_url' : user .profile_image_url (),
272278 'domain' : settings .DOMAIN ,
273279 'osf_contact_email' : settings .OSF_CONTACT_EMAIL ,
280+ 'logo' : self .collection .provider ._id if
281+ self .collection .provider and not self .collection .provider .is_default else settings .OSF_PREPRINTS_LOGO ,
274282 }
275283
276284 if removed_due_to_privacy and self .collection .provider :
@@ -405,6 +413,8 @@ def _notify_cancel(self, event_data):
405413 'message' : '' ,
406414 'osf_contact_email' : settings .OSF_CONTACT_EMAIL ,
407415 'reviews_submission_url' : f'{ DOMAIN } reviews/registries/{ self .guid .referent ._id } /{ self .guid .referent ._id } ' ,
416+ 'logo' : self .collection .provider ._id if
417+ self .collection .provider and not self .collection .provider .is_default else settings .OSF_PREPRINTS_LOGO ,
408418 },
409419 )
410420
0 commit comments