diff --git a/config.sample.yaml b/config.sample.yaml index 455c27fabaa34cfad4f688b50f2e63b972367d46..795900e5e26be35f3c23fa901ddcd2cd264b9737 100644 --- a/config.sample.yaml +++ b/config.sample.yaml @@ -94,11 +94,11 @@ urlPreviews: # Note: URL previews are limited to a given number of words, which are then limited to a number # of characters, taking off the last word if it needs to. This also applies for the title. - numWords: 30 # The number of words to include in a preview (maximum) + numWords: 50 # The number of words to include in a preview (maximum) maxLength: 200 # The maximum number of characters for a description numTitleWords: 30 # The maximum number of words to include in a preview's title - maxTitleLength: 100 # The maximum number of characters for a title + maxTitleLength: 150 # The maximum number of characters for a title # The mime types to preview when OpenGraph previews cannot be rendered. OpenGraph previews are # calculated on anything matching "text/*". To have a thumbnail in the preview the URL must be diff --git a/src/github.com/turt2live/matrix-media-repo/config/config.go b/src/github.com/turt2live/matrix-media-repo/config/config.go index 2f1271de996d1acf694e2bac45f0aaf3e2df0a6d..3ac71e3ced4102cc30cfda039fb0cf0ba369509d 100644 --- a/src/github.com/turt2live/matrix-media-repo/config/config.go +++ b/src/github.com/turt2live/matrix-media-repo/config/config.go @@ -207,10 +207,10 @@ func NewDefaultConfig() *MediaRepoConfig { }, UrlPreviews: &UrlPreviewsConfig{ Enabled: true, - NumWords: 30, + NumWords: 50, NumTitleWords: 30, MaxLength: 200, - MaxTitleLength: 100, + MaxTitleLength: 150, MaxPageSizeBytes: 10485760, // 10mb NumWorkers: 10, FilePreviewTypes: []string{