From 3bfe8f4be653f44674293685cb5750d90668b2f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 24 May 2018 11:24:38 +0200 Subject: tpl: Alias tweet shortode to twitter See #4765 --- config/privacy/privacyConfig.go | 6 +++--- config/privacy/privacyConfig_test.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'config') diff --git a/config/privacy/privacyConfig.go b/config/privacy/privacyConfig.go index ee7b7be2c..bcffec8af 100644 --- a/config/privacy/privacyConfig.go +++ b/config/privacy/privacyConfig.go @@ -31,7 +31,7 @@ type Config struct { GoogleAnalytics GoogleAnalytics Instagram Instagram SpeakerDeck SpeakerDeck - Tweet Tweet + Twitter Twitter Vimeo Vimeo YouTube YouTube } @@ -64,8 +64,8 @@ type SpeakerDeck struct { Service `mapstructure:",squash"` } -// Tweet holds the privacy configuration settingsrelated to the Tweet shortcode. -type Tweet struct { +// Twitter holds the privacy configuration settingsrelated to the Twitter shortcode. +type Twitter struct { Service `mapstructure:",squash"` } diff --git a/config/privacy/privacyConfig_test.go b/config/privacy/privacyConfig_test.go index f945ac8c2..0efc734db 100644 --- a/config/privacy/privacyConfig_test.go +++ b/config/privacy/privacyConfig_test.go @@ -39,7 +39,7 @@ disable = true simple = true [privacy.speakerDeck] disable = true -[privacy.tweet] +[privacy.twitter] disable = true [privacy.vimeo] disable = true @@ -61,7 +61,7 @@ simple = true assert.True(pc.Instagram.Disable) assert.True(pc.Instagram.Simple) assert.True(pc.SpeakerDeck.Disable) - assert.True(pc.Tweet.Disable) + assert.True(pc.Twitter.Disable) assert.True(pc.Vimeo.Disable) assert.True(pc.YouTube.PrivacyEnhanced) -- cgit v1.2.3