Rename variable to make it more generic

This commit is contained in:
Oliver Davies 2021-01-01 21:46:04 +00:00
parent 26b9e3a84d
commit e2d7f08893
3 changed files with 4 additions and 4 deletions

View file

@ -14,7 +14,7 @@ ansistrano_after_update_code_tasks_file: '{{ playbook_dir }}/deploy/after-update
app_hash_salt: '{{ vault_app_hash_salt }}'
zapier_post_tweet_url: '{{ vault_zapier_post_tweet_url }}'
post_tweet_webhook_url: '{{ vault_post_tweet_webhook_url }}'
release_drush_path: '{{ ansistrano_release_path.stdout }}/bin/drush'
release_web_path: '{{ ansistrano_release_path.stdout }}/{{ project_web_dir }}'
@ -63,4 +63,4 @@ drupal_settings:
$settings['reverse_proxy_header'] = 'CF-Connecting-IP';
$settings['omit_vary_cookie'] = TRUE;
$config['opdavies_blog.settings']['zapier_post_tweet_url'] = '{{ zapier_post_tweet_url }}';
$config['opdavies_blog.settings']['post_tweet_webhook_url'] = '{{ post_tweet_webhook_url }}';

View file

@ -2,5 +2,5 @@ opdavies_blog.settings:
type: config_object
label: 'Blog module configuration'
mapping:
zapier_post_tweet_url:
post_tweet_webhook_url:
type: string

View file

@ -66,7 +66,7 @@ final class PushBlogPostToSocialMedia implements EventSubscriberInterface {
return;
}
if (!$url = $this->config->get('zapier_post_tweet_url')) {
if (!$url = $this->config->get('post_tweet_webhook_url')) {
return;
}