X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=diaspora%2Fdiaspora.php;h=35234c3907c7b8731c5bcabcac895061417c4e73;hb=db53afa85f32be78900047bc26bec72fdaabb8de;hp=ef8ff51b633c3a80d06c4021c0aafacc98db5612;hpb=e28b559bfca1430b05b267d32d64c5b9865f8660;p=friendica-addons.git diff --git a/diaspora/diaspora.php b/diaspora/diaspora.php index ef8ff51b..35234c39 100755 --- a/diaspora/diaspora.php +++ b/diaspora/diaspora.php @@ -5,6 +5,7 @@ * Description: Post to Diaspora * Version: 0.1 * Author: Michael Vogel + * Status: Unsupported */ function diaspora_install() { @@ -39,6 +40,8 @@ function diaspora_jot_nets(&$a,&$b) { } function diaspora_queue_hook(&$a,&$b) { + $hostname = $a->get_hostname(); + $qi = q("SELECT * FROM `queue` WHERE `network` = '%s'", dbesc(NETWORK_DIASPORA2) ); @@ -85,7 +88,7 @@ function diaspora_queue_hook(&$a,&$b) { logger('diaspora_queue: try to log in '.$diaspora_username, LOGGER_DEBUG); $conn->login($diaspora_username, $diaspora_password); logger('diaspora_queue: try to send '.$body, LOGGER_DEBUG); - $conn->post($post); + $conn->post($post, $hostname); logger('diaspora_queue: send '.$userdata['uid'].' success', LOGGER_DEBUG); @@ -117,8 +120,8 @@ function diaspora_settings(&$a,&$s) { /* Get the current state of our config variables */ $enabled = get_pconfig(local_user(),'diaspora','post'); - $checked = (($enabled) ? ' checked="checked" ' : ''); + $css = (($enabled) ? '' : '-disabled'); $def_enabled = get_pconfig(local_user(),'diaspora','post_by_default'); @@ -144,11 +147,11 @@ function diaspora_settings(&$a,&$s) { /* Add some HTML to the existing form */ $s .= ''; - $s .= '

' . t('Diaspora') . '

'; + $s .= '

'. t('Diaspora Export').'

'; $s .= '
'; $s .= '