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
|
@ -21,7 +21,7 @@ function showmore_install()
|
|||
Hook::register('addon_settings_post', 'addon/showmore/showmore.php', 'showmore_addon_settings_post');
|
||||
}
|
||||
|
||||
function showmore_addon_settings(App &$a, array &$data)
|
||||
function showmore_addon_settings(array &$data)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
|
@ -45,7 +45,7 @@ function showmore_addon_settings(App &$a, array &$data)
|
|||
];
|
||||
}
|
||||
|
||||
function showmore_addon_settings_post(App $a, array &$b)
|
||||
function showmore_addon_settings_post(array &$b)
|
||||
{
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
return;
|
||||
|
@ -93,7 +93,7 @@ function get_body_length($body)
|
|||
return strlen($string);
|
||||
}
|
||||
|
||||
function showmore_prepare_body(App $a, &$hook_data)
|
||||
function showmore_prepare_body(&$hook_data)
|
||||
{
|
||||
// No combination with content filters
|
||||
if (!empty($hook_data['filter_reasons'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue