Added imagekit optimization support

This commit is contained in:
2025-07-29 17:52:39 +03:30
parent 48b893a403
commit 051408fcdd
6 changed files with 43 additions and 5 deletions
+1 -1
View File
@@ -22,6 +22,6 @@ func (ps *EmbedCardHandler) GetEmbedCard(c *gin.Context) {
post := ps.PostService.GetRandomPost()
c.HTML(200, "home/embed.html", gin.H{
"postUrl": post.Url,
"imageUrl": post.Attachments[0].RemoteUrl,
"imageUrl": services.GetRemoteUrl(post.Attachments[0].RemoteUrl),
})
}