mirror of
https://github.com/friendica/friendica
synced 2025-01-23 12:59:50 +00:00
fix-continue-warnings
This commit is contained in:
parent
6665eb76f9
commit
66723023f9
1 changed files with 3 additions and 3 deletions
|
@ -110,7 +110,7 @@ class Processor
|
||||||
$filetype = strtolower(substr($attach['mediaType'], 0, strpos($attach['mediaType'], '/')));
|
$filetype = strtolower(substr($attach['mediaType'], 0, strpos($attach['mediaType'], '/')));
|
||||||
if ($filetype == 'image') {
|
if ($filetype == 'image') {
|
||||||
if (!empty($activity['source']) && strpos($activity['source'], $attach['url'])) {
|
if (!empty($activity['source']) && strpos($activity['source'], $attach['url'])) {
|
||||||
continue;
|
continue 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($attach['name'])) {
|
if (empty($attach['name'])) {
|
||||||
|
@ -120,13 +120,13 @@ class Processor
|
||||||
}
|
}
|
||||||
} elseif ($filetype == 'audio') {
|
} elseif ($filetype == 'audio') {
|
||||||
if (!empty($activity['source']) && strpos($activity['source'], $attach['url'])) {
|
if (!empty($activity['source']) && strpos($activity['source'], $attach['url'])) {
|
||||||
continue;
|
continue 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
$item['body'] .= "\n[audio]" . $attach['url'] . '[/audio]';
|
$item['body'] .= "\n[audio]" . $attach['url'] . '[/audio]';
|
||||||
} elseif ($filetype == 'video') {
|
} elseif ($filetype == 'video') {
|
||||||
if (!empty($activity['source']) && strpos($activity['source'], $attach['url'])) {
|
if (!empty($activity['source']) && strpos($activity['source'], $attach['url'])) {
|
||||||
continue;
|
continue 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
$item['body'] .= "\n[video]" . $attach['url'] . '[/video]';
|
$item['body'] .= "\n[video]" . $attach['url'] . '[/video]';
|
||||||
|
|
Loading…
Add table
Reference in a new issue