Skip to content

Commit

Permalink
connector/tomatrix: include previewed URL in hash
Browse files Browse the repository at this point in the history
This will hopefully make it so that if the preview gets edited in by
Telegram at a later time, it will be bridged.

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
  • Loading branch information
sumnerevans committed Feb 17, 2025
1 parent dad34f9 commit e0e8370
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/connector/tomatrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ func (c *TelegramClient) convertToMatrix(ctx context.Context, portal *bridgev2.P
if err != nil {
log.Err(err).Msg("error converting webpage to link preview")
} else if preview != nil {
hasher.Write([]byte(preview.MatchedURL))
content.BeeperLinkPreviews = append(content.BeeperLinkPreviews, preview)
}
}
Expand Down

0 comments on commit e0e8370

Please sign in to comment.