appnet: This should mostly prevent picture posts with two links to the same picture
This commit is contained in:
parent
23490bda0a
commit
a0d67d8b44
1 changed files with 2 additions and 3 deletions
|
@ -944,7 +944,7 @@ function appnet_createpost($a, $uid, $post, $me, $user, $ownid, $createuser, $th
|
||||||
$links[$url] = $link["url"];
|
$links[$url] = $link["url"];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sizeof($content["annotations"]))
|
/* if (sizeof($content["annotations"]))
|
||||||
foreach($content["annotations"] AS $annotation) {
|
foreach($content["annotations"] AS $annotation) {
|
||||||
if ($annotation[type] == "net.app.core.oembed") {
|
if ($annotation[type] == "net.app.core.oembed") {
|
||||||
if (isset($annotation["value"]["embeddable_url"])) {
|
if (isset($annotation["value"]["embeddable_url"])) {
|
||||||
|
@ -953,7 +953,6 @@ function appnet_createpost($a, $uid, $post, $me, $user, $ownid, $createuser, $th
|
||||||
unset($links[$url]);
|
unset($links[$url]);
|
||||||
}
|
}
|
||||||
} elseif ($annotation[type] == "com.friendica.post") {
|
} elseif ($annotation[type] == "com.friendica.post") {
|
||||||
// Nur zum Testen deaktiviert
|
|
||||||
//$links = array();
|
//$links = array();
|
||||||
//if (isset($annotation["value"]["post-title"]))
|
//if (isset($annotation["value"]["post-title"]))
|
||||||
// $postarray['title'] = $annotation["value"]["post-title"];
|
// $postarray['title'] = $annotation["value"]["post-title"];
|
||||||
|
@ -974,7 +973,7 @@ function appnet_createpost($a, $uid, $post, $me, $user, $ownid, $createuser, $th
|
||||||
$postarray['author-avatar'] = $annotation["value"]["author-avatar"];
|
$postarray['author-avatar'] = $annotation["value"]["author-avatar"];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
} */
|
||||||
|
|
||||||
$page_info = "";
|
$page_info = "";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue