From a0d67d8b445f52e95bfe6a416b0d735fe8c25980 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 25 Aug 2014 14:17:53 +0200 Subject: [PATCH] appnet: This should mostly prevent picture posts with two links to the same picture --- appnet/appnet.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/appnet/appnet.php b/appnet/appnet.php index b647c5459..7e80c6abd 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 = "";