Revert "adapt to new domain"
Some checks failed
CI/CD Pipeline / test (push) Has been cancelled
CI/CD Pipeline / deploy-staging (push) Has been cancelled
CI/CD Pipeline / deploy-main (push) Has been cancelled

This reverts commit c7b5b7e39d.
This commit is contained in:
2024-11-27 08:20:54 +01:00
parent 85c759d9b7
commit 0ad62e2ece
8 changed files with 129 additions and 16 deletions

View File

@ -9,7 +9,7 @@ function rot_auth( $user, $username, $password ){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://rudi.rudernlinz.at/wikiauth');
curl_setopt($ch, CURLOPT_URL, 'https://app.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://rudi.rudernlinz.at/new-blogpost';
$api_url = 'https://app.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://rudi.rudernlinz.at/blogpost-unpublished';
$api_url = 'https://app.rudernlinz.at/blogpost-unpublished';
// Prepare the data for the POST request
$body = array(