mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 02:48:48 +00:00
Changes:
- added more type-hints - cleaned up some files (curly braces, spaces)
This commit is contained in:
parent
a1e17968d1
commit
04df7f6e05
74 changed files with 603 additions and 529 deletions
|
@ -42,7 +42,7 @@ function superblock_addon_settings(App &$a, array &$data)
|
|||
];
|
||||
}
|
||||
|
||||
function superblock_addon_settings_post(&$a, &$b)
|
||||
function superblock_addon_settings_post(App $a, array &$b)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
@ -53,7 +53,8 @@ function superblock_addon_settings_post(&$a, &$b)
|
|||
}
|
||||
}
|
||||
|
||||
function superblock_enotify_store(&$a,&$b) {
|
||||
function superblock_enotify_store(App $a, array &$b)
|
||||
{
|
||||
if (empty($b['uid'])) {
|
||||
return;
|
||||
}
|
||||
|
@ -78,6 +79,7 @@ function superblock_enotify_store(&$a,&$b) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($found) {
|
||||
// Empty out the fields
|
||||
$b = [];
|
||||
|
@ -85,7 +87,7 @@ function superblock_enotify_store(&$a,&$b) {
|
|||
}
|
||||
|
||||
|
||||
function superblock_conversation_start(&$a, &$b)
|
||||
function superblock_conversation_start(App $a, array &$b)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
@ -95,8 +97,8 @@ function superblock_conversation_start(&$a, &$b)
|
|||
if ($words) {
|
||||
$a->data['superblock'] = explode(',', $words);
|
||||
}
|
||||
DI::page()['htmlhead'] .= <<< EOT
|
||||
|
||||
DI::page()['htmlhead'] .= <<< EOT
|
||||
<script>
|
||||
function superblockBlock(author) {
|
||||
$.get('superblock?block=' +author, function(data) {
|
||||
|
@ -104,12 +106,11 @@ function superblockBlock(author) {
|
|||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
EOT;
|
||||
|
||||
}
|
||||
|
||||
function superblock_item_photo_menu(&$a, &$b)
|
||||
function superblock_item_photo_menu(App $a, array &$b)
|
||||
{
|
||||
if (!local_user() || $b['item']['self']) {
|
||||
return;
|
||||
|
@ -132,7 +133,7 @@ function superblock_item_photo_menu(&$a, &$b)
|
|||
function superblock_module() {}
|
||||
|
||||
|
||||
function superblock_init(&$a)
|
||||
function superblock_init(App $a)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue