tpl: Alias tweet shortode to twitter

See #4765
This commit is contained in:
Bjørn Erik Pedersen
2018-05-24 11:24:38 +02:00
parent 6aa2c38507
commit 3bfe8f4be6
5 changed files with 19 additions and 8 deletions

View File

@@ -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"`
}

View File

@@ -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)