mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:40:15 +00:00
Merge pull request #11396 from annando/issue-11393
Issue 11393: Fix failing preview
This commit is contained in:
commit
8669f12176
1 changed files with 2 additions and 2 deletions
|
@ -3191,9 +3191,9 @@ class Item
|
||||||
*/
|
*/
|
||||||
public static function getPlink($item)
|
public static function getPlink($item)
|
||||||
{
|
{
|
||||||
if (Network::isValidHttpUrl($item['plink'])) {
|
if (!empty($item['plink']) && Network::isValidHttpUrl($item['plink'])) {
|
||||||
$plink = $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'];
|
$plink = $item['uri'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue