Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.1 on 2022-01-26 at 16:00 UTC+1 (a few minutes of down time)

Commit b73ffbd3 authored by Douwe Maan's avatar Douwe Maan
Browse files

Fix for snippets.

parent 3419db60623e
......@@ -133,11 +133,13 @@ def new_note(note)
# Add all users participating in the thread (author, assignee, comment authors)
participants =
if target.is_a?(Commit)
if target.respond_to?(:participants)
target.participants
elsif target.is_a?(Commit)
author_ids = Note.for_commit_id(target.id).pluck(:author_id).uniq
User.where(id: author_ids)
else
target.participants
note.mentioned_users
end
recipients = recipients.concat(participants)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment