From 1320a26a0119a3cfde9543855d7f8292462e4c7c Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 3 May 2014 23:41:33 +0200 Subject: [PATCH] Buffer: Don't post a link if its a photo - this irritates buffer --- buffer/buffer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffer/buffer.php b/buffer/buffer.php index 76156e16..d7ad69f6 100644 --- a/buffer/buffer.php +++ b/buffer/buffer.php @@ -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"])) { -- 2.39.5