From: Michael Vogel Date: Mon, 25 Aug 2014 12:17:53 +0000 (+0200) Subject: appnet: This should mostly prevent picture posts with two links to the same picture X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a0d67d8b445f52e95bfe6a416b0d735fe8c25980;hp=23490bda0a5ec9889afca89189db9c59f76fbcc5;p=friendica-addons.git appnet: This should mostly prevent picture posts with two links to the same picture --- diff --git a/appnet/appnet.php b/appnet/appnet.php index b647c545..7e80c6ab 100644 --- a/appnet/appnet.php +++ b/appnet/appnet.php @@ -944,7 +944,7 @@ function appnet_createpost($a, $uid, $post, $me, $user, $ownid, $createuser, $th $links[$url] = $link["url"]; } - if (sizeof($content["annotations"])) + /* if (sizeof($content["annotations"])) foreach($content["annotations"] AS $annotation) { if ($annotation[type] == "net.app.core.oembed") { if (isset($annotation["value"]["embeddable_url"])) { @@ -953,7 +953,6 @@ function appnet_createpost($a, $uid, $post, $me, $user, $ownid, $createuser, $th unset($links[$url]); } } elseif ($annotation[type] == "com.friendica.post") { - // Nur zum Testen deaktiviert //$links = array(); //if (isset($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"]; } - } + } */ $page_info = "";