diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php
index 1f76c1008..830be6a1b 100755
--- a/pumpio/pumpio.php
+++ b/pumpio/pumpio.php
@@ -218,8 +218,13 @@ function pumpio_settings(&$a,&$s) {
/* Add some HTML to the existing form */
- $s .= '
';
+ $s .= '';
$s .= '
' . t('Pump.io Post Settings') . '
';
+ $s .= '';
+ $s .= '
';
+ $s .= '';
+ $s .= '
' . t('Pump.io Post Settings') . '
';
+ $s .= '';
$s .= '
';
$s .= '';
@@ -712,8 +717,13 @@ function pumpio_fetchtimeline(&$a, $uid) {
$_REQUEST["body"] = html2bbcode($post->object->content);
- if ($post->object->fullImage->url != "")
- $_REQUEST["body"] = "[url=".$post->object->fullImage->url."][img]".$post->object->image->url."[/img][/url]\n".$_REQUEST["body"];
+ // To-Do: Picture has to be cached and stored locally
+ if ($post->object->fullImage->url != "") {
+ if ($post->object->fullImage->pump_io->proxyURL != "")
+ $_REQUEST["body"] = "[url=".$post->object->fullImage->pump_io->proxyURL."][img]".$post->object->image->pump_io->proxyURL."[/img][/url]\n".$_REQUEST["body"];
+ else
+ $_REQUEST["body"] = "[url=".$post->object->fullImage->url."][img]".$post->object->image->url."[/img][/url]\n".$_REQUEST["body"];
+ }
logger('pumpio: posting for user '.$uid);