1
1
Fork 0

Merge pull request #8750 from AlfredSK/fix-continue-warnings

fix-continue-warnings in AP processor
This commit is contained in:
Hypolite Petovan 2020-06-09 12:54:38 -04:00 committed by GitHub
commit 140ae4e3cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,7 +110,7 @@ class Processor
$filetype = strtolower(substr($attach['mediaType'], 0, strpos($attach['mediaType'], '/')));
if ($filetype == 'image') {
if (!empty($activity['source']) && strpos($activity['source'], $attach['url'])) {
continue;
continue 2;
}
if (empty($attach['name'])) {
@ -120,13 +120,13 @@ class Processor
}
} elseif ($filetype == 'audio') {
if (!empty($activity['source']) && strpos($activity['source'], $attach['url'])) {
continue;
continue 2;
}
$item['body'] .= "\n[audio]" . $attach['url'] . '[/audio]';
} elseif ($filetype == 'video') {
if (!empty($activity['source']) && strpos($activity['source'], $attach['url'])) {
continue;
continue 2;
}
$item['body'] .= "\n[video]" . $attach['url'] . '[/video]';