diff --git a/herald/src/main/kotlin/by/jprof/telegram/bot/herald/impl/send.kt b/herald/src/main/kotlin/by/jprof/telegram/bot/herald/impl/send.kt index 4349f05a..37f31fcb 100644 --- a/herald/src/main/kotlin/by/jprof/telegram/bot/herald/impl/send.kt +++ b/herald/src/main/kotlin/by/jprof/telegram/bot/herald/impl/send.kt @@ -48,7 +48,7 @@ suspend fun send(post: Post) { text = post.content.forChat(chat), parseMode = MarkdownV2ParseMode, replyMarkup = votes?.toInlineKeyboardMarkup(), - disableWebPagePreview = true, + disableWebPagePreview = post.frontmatter.disableWebPagePreview, ) } } diff --git a/herald/src/main/kotlin/by/jprof/telegram/bot/herald/model/Frontmatter.kt b/herald/src/main/kotlin/by/jprof/telegram/bot/herald/model/Frontmatter.kt index 6b90629c..6c500f10 100644 --- a/herald/src/main/kotlin/by/jprof/telegram/bot/herald/model/Frontmatter.kt +++ b/herald/src/main/kotlin/by/jprof/telegram/bot/herald/model/Frontmatter.kt @@ -7,4 +7,5 @@ data class Frontmatter( val chats: List, val image: String? = null, val votes: List? = null, + val disableWebPagePreview: Boolean = true, )