]> git.mxchange.org Git - friendica-addons.git/commitdiff
Buffer: Don't post a link if its a photo - this irritates buffer
authorMichael Vogel <icarus@dabo.de>
Sat, 3 May 2014 21:41:33 +0000 (23:41 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 3 May 2014 21:41:33 +0000 (23:41 +0200)
buffer/buffer.php

index 76156e16f9d04bbd50df20f0004f9680e29f34e6..d7ad69f6595617bf96aaff2d7115cb53bb3880f2 100644 (file)
@@ -354,7 +354,7 @@ function buffer_send(&$a,&$b) {
                                if (isset($post["description"]))
                                        $message["media[description]"] = $post["description"];
 
-                               if (isset($post["url"]))
+                               if (isset($post["url"]) AND ($post["type"] != "photo"))
                                        $message["media[link]"] = $post["url"];
 
                                if (isset($post["image"])) {