From: Michael Date: Thu, 9 Aug 2018 19:38:26 +0000 (+0000) Subject: Issue 3535: Don't use the GNU Social address if the connector isn't activated X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bf1c968788b568a89ddf9b25a3800b4a9a6d88e1;p=friendica-addons.git Issue 3535: Don't use the GNU Social address if the connector isn't activated --- diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index f7574c5b..e6655f8c 100644 --- a/statusnet/statusnet.php +++ b/statusnet/statusnet.php @@ -91,7 +91,9 @@ function statusnet_uninstall() function statusnet_check_item_notification(App $a, &$notification_data) { - $notification_data["profiles"][] = PConfig::get($notification_data["uid"], 'statusnet', 'own_url'); + if (PConfig::get($notification_data["uid"], 'statusnet', 'post')) { + $notification_data["profiles"][] = PConfig::get($notification_data["uid"], 'statusnet', 'own_url'); + } } function statusnet_jot_nets(App $a, &$b) @@ -134,7 +136,7 @@ function statusnet_settings_post(App $a, $post) PConfig::delete(local_user(), 'statusnet', 'mirror_posts'); PConfig::delete(local_user(), 'statusnet', 'import'); PConfig::delete(local_user(), 'statusnet', 'create_user'); - PConfig::delete(local_user(), 'statusnet', 'own_id'); + PConfig::delete(local_user(), 'statusnet', 'own_url'); } else { if (isset($_POST['statusnet-preconf-apiurl'])) { /* * *