Поправил добавление ссылки для уведомлений о тредах

This commit is contained in:
Struchkov Mark 2023-02-21 12:51:29 +03:00
parent d12b8f816b
commit 2ee605119b
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6

View File

@ -373,6 +373,7 @@ public class DiscussionServiceImpl implements DiscussionService {
final MergeRequestForDiscussion mergeRequest = discussion.getMergeRequest(); final MergeRequestForDiscussion mergeRequest = discussion.getMergeRequest();
DiscussionNewNotify.DiscussionNewNotifyBuilder messageBuilder = DiscussionNewNotify.builder() DiscussionNewNotify.DiscussionNewNotifyBuilder messageBuilder = DiscussionNewNotify.builder()
.url(firstNote.getWebUrl())
.threadId(discussion.getId()) .threadId(discussion.getId())
.mrName(mergeRequest.getTitle()) .mrName(mergeRequest.getTitle())
.authorName(firstNote.getAuthor().getName()); .authorName(firstNote.getAuthor().getName());
@ -381,8 +382,7 @@ public class DiscussionServiceImpl implements DiscussionService {
final List<Note> notes = discussion.getNotes(); final List<Note> notes = discussion.getNotes();
messageBuilder messageBuilder
.discussionMessage(firstNote.getBody()) .discussionMessage(firstNote.getBody());
.url(firstNote.getWebUrl());
if (notes.size() > 1) { if (notes.size() > 1) {
for (int i = 1; i < notes.size(); i++) { for (int i = 1; i < notes.size(); i++) {