X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=dwpost%2Fdwpost.php;h=0174bf105a247ce06f317b40ae64dbc6aafdd9f5;hb=74353e7f2d2da744e61304af7b2011c4483ac12f;hp=9afbcc833a454687637b0784b908d16dc490ff4d;hpb=fc2a367dae99899f872fc25288c5f47289b7ca92;p=friendica-addons.git diff --git a/dwpost/dwpost.php b/dwpost/dwpost.php index 9afbcc83..0174bf10 100644 --- a/dwpost/dwpost.php +++ b/dwpost/dwpost.php @@ -137,7 +137,7 @@ function dwpost_post_local(App $a, array &$b) $dw_enable = (($dw_post && x($_REQUEST,'dwpost_enable')) ? intval($_REQUEST['dwpost_enable']) : 0); - if ($_REQUEST['api_source'] && intval(PConfig::get(local_user(),'dwpost','post_by_default'))) { + if ($b['api_source'] && intval(PConfig::get(local_user(),'dwpost','post_by_default'))) { $dw_enable = 1; }