From 3c6ebc2bfd50b72ff786a2cfd3bbdeb15b478dd3 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 13 Nov 2022 12:31:38 +0100 Subject: core: bubble up the comment ID when created, or edited the first comment --- bridge/launchpad/import.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bridge/launchpad') diff --git a/bridge/launchpad/import.go b/bridge/launchpad/import.go index 598ef80b..f81e3582 100644 --- a/bridge/launchpad/import.go +++ b/bridge/launchpad/import.go @@ -131,7 +131,7 @@ func (li *launchpadImporter) ImportAll(ctx context.Context, repo *cache.RepoCach // This is a new comment, we can add it. createdAt, _ := time.Parse(time.RFC3339, lpMessage.CreatedAt) - op, err := b.AddCommentRaw( + commentId, _, err := b.AddCommentRaw( owner, createdAt.Unix(), text.Cleanup(lpMessage.Content), @@ -144,7 +144,7 @@ func (li *launchpadImporter) ImportAll(ctx context.Context, repo *cache.RepoCach return } - out <- core.NewImportComment(op.Id()) + out <- core.NewImportComment(b.Id(), commentId) } if !b.NeedCommit() { -- cgit