Use RemoteUrl instead of PreviewUrl and increase API timeout to 60 seconds

This commit is contained in:
2025-06-05 18:15:16 +03:30
parent c4a192ac80
commit 22adcee9d2
2 changed files with 4 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].PreviewUrl,
"imageUrl": post.Attachments[0].RemoteUrl,
})
}