mirror of
https://github.com/friendica/friendica
synced 2025-04-26 00:30:12 +00:00
Avoid "DB Error" messages
This commit is contained in:
parent
1e6031fc23
commit
69c6a5f567
3 changed files with 5 additions and 4 deletions
|
@ -451,7 +451,7 @@ class BBCode
|
|||
// Only send proxied pictures to API and for internal display
|
||||
if (!in_array($simplehtml, [self::INTERNAL, self::API])) {
|
||||
return $image;
|
||||
} elseif ($uriid) {
|
||||
} elseif ($uriid > 0) {
|
||||
return Post\Link::getByLink($uriid, $image, $size);
|
||||
} else {
|
||||
return ProxyUtils::proxifyUrl($image, $size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue