this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

beemo: fix silly nil embed panic

+1 -1
+1 -1
cmd/beemo/notify_mentions.go
··· 42 42 return err 43 43 } 44 44 msg := fmt.Sprintf("Mention of `@%s` by `@%s` (<https://bsky.app/profile/%s/post/%s|post link>):\n```%s```", targetIdent.Handle, authorIdent.Handle, did, rkey, post.Text) 45 - if post.Embed.EmbedImages != nil || post.Embed.EmbedRecordWithMedia != nil || post.Embed.EmbedRecord != nil || post.Embed.EmbedExternal != nil { 45 + if post.Embed != nil && (post.Embed.EmbedImages != nil || post.Embed.EmbedRecordWithMedia != nil || post.Embed.EmbedRecord != nil || post.Embed.EmbedExternal != nil) { 46 46 msg += "\n(post also contains an embed/quote/media)" 47 47 } 48 48 return sendSlackMsg(ctx, msg, mc.slackWebhookURL)