aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-31 11:04:34 +0200
committerChocobozzz <me@florianbigard.com>2018-05-31 11:04:34 +0200
commit351d5225d6a4fe6863f760f02454eac88f730607 (patch)
treef1f85c2cba2d59043c2d5d8f22252cf2f214299f
parent8e53163fbd14e3cb3b81cbb236cbc4659e03b307 (diff)
downloadPeerTube-351d5225d6a4fe6863f760f02454eac88f730607.tar.gz
PeerTube-351d5225d6a4fe6863f760f02454eac88f730607.tar.zst
PeerTube-351d5225d6a4fe6863f760f02454eac88f730607.zip
Improve Twitter config help
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html4
-rw-r--r--config/default.yaml2
-rw-r--r--config/production.yaml.example2
3 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
index 252d43c8f..8a1e33c56 100644
--- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
+++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
@@ -136,7 +136,7 @@
136 136
137 <div class="form-group"> 137 <div class="form-group">
138 <label for="signupLimit">Your Twitter username</label> 138 <label for="signupLimit">Your Twitter username</label>
139 <my-help helpType="custom" customHtml="The Twitter @username the cards (created by PeerTube video shares) should be attributed to."></my-help> 139 <my-help helpType="custom" customHtml="Indicates the Twitter account for the website or platform on which the content was published."></my-help>
140 <input 140 <input
141 type="text" id="servicesTwitterUsername" 141 type="text" id="servicesTwitterUsername"
142 formControlName="servicesTwitterUsername" [ngClass]="{ 'input-error': formErrors['servicesTwitterUsername'] }" 142 formControlName="servicesTwitterUsername" [ngClass]="{ 'input-error': formErrors['servicesTwitterUsername'] }"
@@ -153,7 +153,7 @@
153 <label for="servicesTwitterWhitelisted">Instance whitelisted by Twitter</label> 153 <label for="servicesTwitterWhitelisted">Instance whitelisted by Twitter</label>
154 <my-help helpType="custom" customHtml="If your instance is whitelisted by Twitter, a video player will be embedded in the Twitter feed on PeerTube video share.<br /> 154 <my-help helpType="custom" customHtml="If your instance is whitelisted by Twitter, a video player will be embedded in the Twitter feed on PeerTube video share.<br />
155If the instance is not whitelisted, we use an image link card that will redirect on your PeerTube instance.<br /><br /> 155If the instance is not whitelisted, we use an image link card that will redirect on your PeerTube instance.<br /><br />
156Check this checkbox, save the configuration and test on <a target='_blank' rel='noopener noreferrer' href='https://cards-dev.twitter.com/validator'>https://cards-dev.twitter.com/validator</a> to see if you instance is whitelisted."></my-help> 156Check this checkbox, save the configuration and test with a video URL of your instance (https://example.com/videos/watch/blabla) on <a target='_blank' rel='noopener noreferrer' href='https://cards-dev.twitter.com/validator'>https://cards-dev.twitter.com/validator</a> to see if you instance is whitelisted."></my-help>
157 157
158 </div> 158 </div>
159 </tab> 159 </tab>
diff --git a/config/default.yaml b/config/default.yaml
index b5ad0a8f2..5868ba002 100644
--- a/config/default.yaml
+++ b/config/default.yaml
@@ -105,7 +105,7 @@ instance:
105services: 105services:
106 # Cards configuration to format video in Twitter 106 # Cards configuration to format video in Twitter
107 twitter: 107 twitter:
108 username: '@Chocobozzz' # The Twitter @username the card should be attributed to 108 username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published
109 # If true, a video player will be embedded in the Twitter feed on PeerTube video share 109 # If true, a video player will be embedded in the Twitter feed on PeerTube video share
110 # If false, we use an image link card that will redirect on your PeerTube instance 110 # If false, we use an image link card that will redirect on your PeerTube instance
111 # Change it to "true", and then test on https://cards-dev.twitter.com/validator to see if you are whitelisted 111 # Change it to "true", and then test on https://cards-dev.twitter.com/validator to see if you are whitelisted
diff --git a/config/production.yaml.example b/config/production.yaml.example
index a11f0a1d6..8012134cc 100644
--- a/config/production.yaml.example
+++ b/config/production.yaml.example
@@ -119,7 +119,7 @@ instance:
119services: 119services:
120 # Cards configuration to format video in Twitter 120 # Cards configuration to format video in Twitter
121 twitter: 121 twitter:
122 username: '@Chocobozzz' # The Twitter @username the card should be attributed to 122 username: '@Chocobozzz' # Indicates the Twitter account for the website or platform on which the content was published
123 # If true, a video player will be embedded in the Twitter feed on PeerTube video share 123 # If true, a video player will be embedded in the Twitter feed on PeerTube video share
124 # If false, we use an image link card that will redirect on your PeerTube instance 124 # If false, we use an image link card that will redirect on your PeerTube instance
125 # Test on https://cards-dev.twitter.com/validator to see if you are whitelisted 125 # Test on https://cards-dev.twitter.com/validator to see if you are whitelisted