diff --git a/server/main.go b/server/main.go index 52db6bc1..6f117b48 100644 --- a/server/main.go +++ b/server/main.go @@ -296,6 +296,10 @@ type configType struct { // when the country isn't specified by the client explicitly and // it's impossible to infer it. DefaultCountryCode string `json:"default_country_code"` + // Enable service which generates link previews: in response to a GET request with a URL + // /v0/urlpreview?url=https%3A%2F%2Ftinode.co visit the URL, parse HTML, and return JSON like + // {"title": "Page title", description: "This is a demo page", image_url: "https://tinode.co/img/logo.png"}. + LinkPreviewEnabled bool `json:"link_preview_enabled"` // Configs for subsystems Cluster json.RawMessage `json:"cluster_config"`