]> git.mxchange.org Git - friendica-addons.git/commitdiff
appnet: This should mostly prevent picture posts with two links to the same picture
authorMichael Vogel <icarus@dabo.de>
Mon, 25 Aug 2014 12:17:53 +0000 (14:17 +0200)
committerMichael Vogel <icarus@dabo.de>
Mon, 25 Aug 2014 12:17:53 +0000 (14:17 +0200)
appnet/appnet.php

index b647c54599ba7d9e09e55617bdc5a5caefd43fd0..7e80c6abd2d9471aa3f31c6ece0d688f4e5526af 100644 (file)
@@ -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 = "";