- def check_new_user_many_replies
- return unless replying? && @user.posted_too_much_in_topic?(@details[:topic_id])
-
- {
- templateName: 'composer/education',
- body: PrettyText.cook(I18n.t('education.too_many_replies', newuser_max_replies_per_topic: SiteSetting.newuser_max_replies_per_topic))
- }
- end
-
- # Should a user be contacted to update their avatar?
- def check_avatar_notification
-
- # A user has to be basic at least to be considered for an avatar notification
- return unless @user.has_trust_level?(TrustLevel[1])
-
- # We don't notify users who have avatars or who have been notified already.
- return if @user.uploaded_avatar_id || UserHistory.exists_for_user?(@user, :notified_about_avatar)
-
- # If we got this far, log that we've nagged them about the avatar
- UserHistory.create!(action: UserHistory.actions[:notified_about_avatar], target_user_id: @user.id )
-