diff --git a/app/models/user.rb b/app/models/user.rb index 58eb08a15..9e953670e 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -359,7 +359,7 @@ class User < ApplicationRecord { created_at: :desc } end - result.where(archived: false).order(sort) + result.where(archived: false).distinct.order(sort) end # Finds all activities of user that is assigned to project. If user