X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=dwpost%2Fdwpost.php;h=ebba023279e13b128afbc0a364fbd9d41f45cbbc;hb=80ec21c76bc7a0cc5f1e73acf91db16ceaa06b04;hp=1fdf003de7f14462de19f88762e011f230e39dab;hpb=3e202f8ee4edc75f21f47fec86442878d95470f7;p=friendica-addons.git diff --git a/dwpost/dwpost.php b/dwpost/dwpost.php index 1fdf003d..ebba0232 100644 --- a/dwpost/dwpost.php +++ b/dwpost/dwpost.php @@ -37,20 +37,21 @@ function dwpost_uninstall() Hook::unregister('connector_settings_post', 'addon/dwpost/dwpost.php', 'dwpost_settings_post'); } -function dwpost_jot_nets(App $a, &$b) +function dwpost_jot_nets(App $a, array &$jotnets_fields) { if (!local_user()) { return; } - $dw_post = PConfig::get(local_user(), 'dwpost', 'post'); - - if (intval($dw_post) == 1) { - $dw_defpost = PConfig::get(local_user(), 'dwpost', 'post_by_default'); - $selected = ((intval($dw_defpost) == 1) ? ' checked="checked" ' : ''); - - $b .= '