PreviewBlacklist

internal object PreviewBlacklist

Blocks link previews for URLs from certain hosts (e.g., video/music streaming services). Uses substring matching for simplicity and to catch variations (e.g., youtu.be, youtube.com).

Functions

Link copied to clipboard
fun isBlacklisted(url: String): Boolean