X-Git-Url: https://reisub.nsupdate.info/git/?a=blobdiff_plain;ds=sidebyside;f=dwpost%2Fdwpost.php;fp=dwpost%2Fdwpost.php;h=6c1742e416959f987fc7e2dc812676db91e5d112;hb=39c654da00e63a58b6a930e7d0e555bfb248b44b;hp=bfcc504da1670318b3f83822262e018f9d1e90bf;hpb=b53914ee110b3223b9c57d5d97593e639280080d;p=friendica-addons.git%2F.git diff --git a/dwpost/dwpost.php b/dwpost/dwpost.php index bfcc504d..6c1742e4 100644 --- a/dwpost/dwpost.php +++ b/dwpost/dwpost.php @@ -29,7 +29,7 @@ function dwpost_install() Hook::register('connector_settings_post', 'addon/dwpost/dwpost.php', 'dwpost_settings_post'); } -function dwpost_jot_nets(App $a, array &$jotnets_fields) +function dwpost_jot_nets(array &$jotnets_fields) { if (!DI::userSession()->getLocalUserId()) { return; @@ -48,7 +48,7 @@ function dwpost_jot_nets(App $a, array &$jotnets_fields) } -function dwpost_settings(App $a, array &$data) +function dwpost_settings(array &$data) { if (!DI::userSession()->getLocalUserId()) { return; @@ -76,7 +76,7 @@ function dwpost_settings(App $a, array &$data) } -function dwpost_settings_post(App $a, array &$b) +function dwpost_settings_post(array &$b) { if (!empty($_POST['dwpost-submit'])) { DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'dwpost', 'post', intval($_POST['dwpost'])); @@ -86,7 +86,7 @@ function dwpost_settings_post(App $a, array &$b) } } -function dwpost_post_local(App $a, array &$b) +function dwpost_post_local(array &$b) { // This can probably be changed to allow editing by pointing to a different API endpoint if ($b['edit']) { @@ -120,7 +120,7 @@ function dwpost_post_local(App $a, array &$b) $b['postopts'] .= 'dwpost'; } -function dwpost_send(App $a, array &$b) +function dwpost_send(array &$b) { if ($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) { return;