Skip to content

Commit

Permalink
fix the case when in the blog comments which are resent messages medi…
Browse files Browse the repository at this point in the history
…a don't work
  • Loading branch information
nkonev committed Dec 25, 2024
1 parent 2383140 commit 0c3c536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chat/handlers/blog.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ func (h *BlogHandler) GetBlogPostComments(c echo.Context) error {
msg := convertToMessageDtoWithoutPersonalized(c.Request().Context(), h.lgr, cc, users, chatsSet)
msg.Text = PatchStorageUrlToPublic(c.Request().Context(), h.lgr, msg.Text, blogId, msg.Id)
if msg.EmbedMessage != nil {
msg.EmbedMessage.Text = PatchStorageUrlToPublic(c.Request().Context(), h.lgr, msg.EmbedMessage.Text, blogId, msg.EmbedMessage.Id)
msg.EmbedMessage.Text = PatchStorageUrlToPublic(c.Request().Context(), h.lgr, msg.EmbedMessage.Text, blogId, msg.Id) // overrideMessageId the same as in MessageHandler.GetPublishedMessage()
}
messageDtos = append(messageDtos, msg)
}
Expand Down

0 comments on commit 0c3c536

Please sign in to comment.