Buffer: Don't post a link if its a photo - this irritates buffer

pull/189/head
Michael Vogel 2014-05-03 23:41:33 +02:00
parent 39d22ea281
commit 1320a26a01
1 changed files with 1 additions and 1 deletions

View File

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