mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
[various] Remove App dependency from hook functions
This commit is contained in:
parent
b53914ee11
commit
39c654da00
87 changed files with 419 additions and 451 deletions
|
@ -38,7 +38,7 @@ function planets_install()
|
|||
* - A status post by a profile owner
|
||||
* - The profile owner must have allowed our addon
|
||||
*/
|
||||
function planets_post_hook(App $a, &$item)
|
||||
function planets_post_hook(&$item)
|
||||
{
|
||||
Logger::notice('planets invoked');
|
||||
|
||||
|
@ -93,7 +93,7 @@ function planets_post_hook(App $a, &$item)
|
|||
*
|
||||
*/
|
||||
|
||||
function planets_settings_post(App $a, $post)
|
||||
function planets_settings_post($post)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
|
@ -113,7 +113,7 @@ function planets_settings_post(App $a, $post)
|
|||
|
||||
|
||||
|
||||
function planets_settings(App &$a, array &$data)
|
||||
function planets_settings(array &$data)
|
||||
{
|
||||
if(!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue