mirror of
https://github.com/friendica/friendica
synced 2024-11-18 23:43:40 +00:00
Issue 11393: Fix failing preview
This commit is contained in:
parent
9339d4e53b
commit
65071ffc9e
1 changed files with 2 additions and 2 deletions
|
@ -3191,9 +3191,9 @@ class Item
|
|||
*/
|
||||
public static function getPlink($item)
|
||||
{
|
||||
if (Network::isValidHttpUrl($item['plink'])) {
|
||||
if (!empty($item['plink']) && Network::isValidHttpUrl($item['plink'])) {
|
||||
$plink = $item['plink'];
|
||||
} elseif (Network::isValidHttpUrl($item['uri']) && !Network::isLocalLink($item['uri'])) {
|
||||
} elseif (!empty($item['uri']) && Network::isValidHttpUrl($item['uri']) && !Network::isLocalLink($item['uri'])) {
|
||||
$plink = $item['uri'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue