From f10524df2d225855e8ddc86a0bb362ae1084b8e6 Mon Sep 17 00:00:00 2001 From: luap42 <21335202+luap42@users.noreply.github.com> Date: Wed, 29 Jul 2020 15:05:38 +0200 Subject: [PATCH] Don't do it on the system user. --- app/models/user.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/user.rb b/app/models/user.rb index 20f2d8bd7..e28943a8e 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -188,6 +188,7 @@ class User < ApplicationRecord end def send_welcome_tour_message + return if id == -1 create_notification('👋 Welcome to ' + SiteSetting['SiteName'] + '! Take our tour to find out ' \ 'how this site works.', '/tour') end -- GitLab