+1
-1
pkg/mostliked/handler.go
+1
-1
pkg/mostliked/handler.go
···
52
52
53
53
if post.Text != "" {
54
54
return post.Text
55
-
} else if post.Embed.EmbedImages != nil {
55
+
} else if post.Embed != nil && post.Embed.EmbedImages != nil && post.Embed.EmbedImages.Images != nil {
56
56
for _, image := range post.Embed.EmbedImages.Images {
57
57
if image.Alt != "" {
58
58
return image.Alt