mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
Deprecated parts removed
This commit is contained in:
parent
dd7dc77a10
commit
12994aaccd
7 changed files with 118 additions and 232 deletions
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
/**
|
||||
* Name: Buffer Post Connector
|
||||
* Description: Post to Buffer (Linkedin, App.net, Google+, Facebook, Twitter)
|
||||
* Description: Post to Buffer (Facebook, Google+, LinkedIn, Twitter)
|
||||
* Version: 0.2
|
||||
* Author: Michael Vogel <http://pirati.ca/profile/heluecht>
|
||||
*/
|
||||
|
@ -328,15 +328,14 @@ function buffer_send(&$a,&$b) {
|
|||
if (isset($post["preview"]))
|
||||
$post["preview"] = proxy_url($post["preview"]);
|
||||
|
||||
//if ($profile->service == "twitter") {
|
||||
if ($includedlinks) {
|
||||
if (isset($post["url"]))
|
||||
$post["url"] = short_link($post["url"]);
|
||||
if (isset($post["image"]))
|
||||
$post["image"] = short_link($post["image"]);
|
||||
if (isset($post["preview"]))
|
||||
$post["preview"] = short_link($post["preview"]);
|
||||
}
|
||||
//if ($includedlinks) {
|
||||
// if (isset($post["url"]))
|
||||
// $post["url"] = short_link($post["url"]);
|
||||
// if (isset($post["image"]))
|
||||
// $post["image"] = short_link($post["image"]);
|
||||
// if (isset($post["preview"]))
|
||||
// $post["preview"] = short_link($post["preview"]);
|
||||
//}
|
||||
|
||||
// Seems like a bug to me
|
||||
// Buffer doesn't add links to Twitter and App.net (but pictures)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue