mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Network was moved to src
update all function calls to use class, insert use statements and remove require_once statements
This commit is contained in:
parent
e09e16fd56
commit
ca3c45101e
19 changed files with 76 additions and 71 deletions
|
@ -272,11 +272,9 @@ function buffer_send(App $a, &$b)
|
|||
$client_secret = Config::get("buffer", "client_secret");
|
||||
$access_token = PConfig::get($b['uid'], "buffer","access_token");
|
||||
|
||||
if($access_token) {
|
||||
if ($access_token) {
|
||||
$buffer = new BufferApp($client_id, $client_secret, $callback_url, $access_token);
|
||||
|
||||
require_once 'include/network.php';
|
||||
|
||||
$profiles = $buffer->go('/profiles');
|
||||
if (is_array($profiles)) {
|
||||
logger("Will send these parameter ".print_r($b, true), LOGGER_DEBUG);
|
||||
|
@ -353,11 +351,11 @@ function buffer_send(App $a, &$b)
|
|||
|
||||
//if ($includedlinks) {
|
||||
// if (isset($post["url"]))
|
||||
// $post["url"] = short_link($post["url"]);
|
||||
// $post["url"] = Network::shortLink($post["url"]);
|
||||
// if (isset($post["image"]))
|
||||
// $post["image"] = short_link($post["image"]);
|
||||
// $post["image"] = Network::shortLink($post["image"]);
|
||||
// if (isset($post["preview"]))
|
||||
// $post["preview"] = short_link($post["preview"]);
|
||||
// $post["preview"] = Network::shortLink($post["preview"]);
|
||||
//}
|
||||
|
||||
// Seems like a bug to me
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue