adapt to new domain

This commit is contained in:
2024-10-28 16:13:37 +01:00
parent d76ce744f1
commit c7b5b7e39d
8 changed files with 16 additions and 129 deletions

View File

@ -9,7 +9,7 @@ function rot_auth( $user, $username, $password ){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://app.rudernlinz.at/wikiauth');
curl_setopt($ch, CURLOPT_URL, 'https://rudi.rudernlinz.at/wikiauth');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "name=$username&password=$password");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
@ -86,7 +86,7 @@ function send_article_url_on_publish($new_status, $old_status, $post) {
$article_title = get_the_title($post->ID);
// URL to send the POST request to
$api_url = 'https://app.rudernlinz.at/new-blogpost';
$api_url = 'https://rudi.rudernlinz.at/new-blogpost';
// Prepare the data for the POST request
$body = array(
@ -119,7 +119,7 @@ function send_article_url_on_publish($new_status, $old_status, $post) {
if ($new_status != 'publish' && $old_status == 'publish' && $post->post_type == 'post') {
$article_url = get_permalink($post->ID);
// URL to send the POST request to
$api_url = 'https://app.rudernlinz.at/blogpost-unpublished';
$api_url = 'https://rudi.rudernlinz.at/blogpost-unpublished';
// Prepare the data for the POST request
$body = array(