Skip to content
Snippets Groups Projects
Commit 1695307b authored by Jared Hancock's avatar Jared Hancock
Browse files

email: Fix incorrect matching of user ids

parent 770fe4e0
Branches
Tags
No related merge requests found
...@@ -370,7 +370,10 @@ Class ThreadEntry { ...@@ -370,7 +370,10 @@ Class ThreadEntry {
} }
function getEmailReferencesForUser($user) { function getEmailReferencesForUser($user) {
return $this->getTaggedEmailReferences('u', $user->getId()); return $this->getTaggedEmailReferences('u',
($user instanceof Collaborator)
? $user->getUserId()
: $user->getId());
} }
function getEmailReferencesForStaff($staff) { function getEmailReferencesForStaff($staff) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment