Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hubzilla
core
Commits
d984918c
Commit
d984918c
authored
Dec 07, 2020
by
Max Kostikov
Committed by
Mario
Dec 07, 2020
Browse files
Skip profile photo query from addons for undefined channel id
parent
9c7ec55b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Zotlabs/Module/Photo.php
View file @
d984918c
...
...
@@ -81,18 +81,18 @@ class Photo extends \Zotlabs\Web\Controller {
else
$data
=
dbunescbin
(
$r
[
0
][
'content'
]);
}
}
if
(
!
$data
)
{
$d
=
[
'imgscale'
=>
$resolution
,
'channel_id'
=>
$uid
,
'default'
=>
$default
,
'data'
=>
''
,
'mimetype'
=>
''
];
call_hooks
(
'get_profile_photo'
,
$d
);
$resolution
=
$d
[
'imgscale'
];
$uid
=
$d
[
'channel_id'
];
$default
=
$d
[
'default'
];
$data
=
$d
[
'data'
];
$mimetype
=
$d
[
'mimetype'
];
$modified
=
0
;
if
(
!
$data
)
{
$d
=
[
'imgscale'
=>
$resolution
,
'channel_id'
=>
$uid
,
'default'
=>
$default
,
'data'
=>
''
,
'mimetype'
=>
''
];
call_hooks
(
'get_profile_photo'
,
$d
);
$resolution
=
$d
[
'imgscale'
];
$uid
=
$d
[
'channel_id'
];
$default
=
$d
[
'default'
];
$data
=
$d
[
'data'
];
$mimetype
=
$d
[
'mimetype'
];
$modified
=
0
;
}
}
if
(
!
$data
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment