Only use activity log after system init is done.

This commit is contained in:
Martin Edenhofer 2014-11-06 23:54:34 +01:00
parent 0b76a38fe3
commit caaad57691
3 changed files with 9 additions and 0 deletions

View file

@ -23,6 +23,9 @@ returns
# return if we run import mode
return if Setting.get('import_mode')
# return if we run on init mode
return if !Setting.get('system_init_done')
role = self.class.activity_stream_support_config[:role]
updated_at = self.updated_at
if force

View file

@ -20,6 +20,9 @@ returns
# return if we run import mode
return if Setting.get('import_mode')
# return if we run on init mode
return if !Setting.get('system_init_done')
return if !self.class.activity_stream_support_config
role = self.class.activity_stream_support_config[:role]
ActivityStream.add(

View file

@ -20,6 +20,9 @@ returns
# return if we run import mode
return if Setting.get('import_mode')
# return if we run on init mode
return if !Setting.get('system_init_done')
return if !self.class.activity_stream_support_config
role = self.class.activity_stream_support_config[:role]
ticket = Ticket.lookup( :id => self.ticket_id )