mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:55:15 +00:00
check array path
This commit is contained in:
parent
48f97a5044
commit
61953c11ca
1 changed files with 1 additions and 1 deletions
|
@ -2989,7 +2989,7 @@ class Activity {
|
|||
}
|
||||
}
|
||||
|
||||
if (array_key_exists('source',$act) && array_key_exists('mediaType',$act['source'])) {
|
||||
if (array_path_exists('source/mediaType',$act) && array_path_exists('source/content',$act)) {
|
||||
if ($act['source']['mediaType'] === 'text/bbcode') {
|
||||
$content['bbcode'] = purify_html($act['source']['content']);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue