aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-19 00:29:43 -0700
committerFriendika <info@friendika.com>2011-10-19 00:29:43 -0700
commit1148cbab2253b5ae58089c39fb2ec682dc05e117 (patch)
tree11091bc6171def3a65d39dc05dc78c6bfb2549dd
parent9043e704f87ecfd6788b7acdf9d6797fd2f89f61 (diff)
downloadvolse-hubzilla-1148cbab2253b5ae58089c39fb2ec682dc05e117.tar.gz
volse-hubzilla-1148cbab2253b5ae58089c39fb2ec682dc05e117.tar.bz2
volse-hubzilla-1148cbab2253b5ae58089c39fb2ec682dc05e117.zip
fix img link format diaspora share/asphoto
-rw-r--r--include/diaspora.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index 9c27f4f55..4012c02e5 100644
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -624,9 +624,9 @@ function diaspora_reshare($importer,$xml) {
$source_xml = parse_xml_string($x,true);
if(strlen($source_xml->asphoto->objectId) && ($source_xml->asphoto->objectId != 0) && ($source_xml->asphoto->image_url))
- $body = '[url=' . notags(unxmlify($source_xml->asphoto->image_url)) . '][img=' . notags(unxmlify($source_xml->asphoto->objectId)) . '][/img][/url]' . "\n";
+ $body = '[url=' . notags(unxmlify($source_xml->asphoto->image_url)) . '][img]' . notags(unxmlify($source_xml->asphoto->objectId)) . '[/img][/url]' . "\n";
elseif($source_xml->asphoto->image_url)
- $body = '[img=' . notags(unxmlify($source_xml->asphoto->image_url)) . '][/img]' . "\n";
+ $body = '[img]' . notags(unxmlify($source_xml->asphoto->image_url)) . '[/img]' . "\n";
elseif($source_xml->status_message) {
$body = diaspora2bb($source_xml->status_message->raw_message);
}
@@ -762,9 +762,9 @@ function diaspora_asphoto($importer,$xml) {
$private = ((unxmlify($xml->public) == 'false') ? 1 : 0);
if(strlen($xml->objectId) && ($xml->objectId != 0) && ($xml->image_url))
- $body = '[url=' . notags(unxmlify($xml->image_url)) . '][img=' . notags(unxmlify($xml->objectId)) . '][/img][/url]' . "\n";
+ $body = '[url=' . notags(unxmlify($xml->image_url)) . '][img]' . notags(unxmlify($xml->objectId)) . '[/img][/url]' . "\n";
elseif($xml->image_url)
- $body = '[img=' . notags(unxmlify($xml->image_url)) . '][/img]' . "\n";
+ $body = '[img]' . notags(unxmlify($xml->image_url)) . '[/img]' . "\n";
else {
logger('diaspora_asphoto: no photo url found.');
return;