aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-23 19:05:32 -0700
committerFriendika <info@friendika.com>2011-10-23 19:05:32 -0700
commit3512adda33328e8fbc9ccc810d2caf22513589a2 (patch)
tree7d6513058747d1a1910cbeb15f5c9ca3bb5add08
parent6eea312c213d34b21681b90a51bd83e6cfe936f4 (diff)
downloadvolse-hubzilla-3512adda33328e8fbc9ccc810d2caf22513589a2.tar.gz
volse-hubzilla-3512adda33328e8fbc9ccc810d2caf22513589a2.tar.bz2
volse-hubzilla-3512adda33328e8fbc9ccc810d2caf22513589a2.zip
never enough comments
-rw-r--r--include/diaspora.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index 8c2640afc..2379ae8e3 100644
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -1377,6 +1377,13 @@ function diaspora_send_status($item,$owner,$contact,$public_batch = false) {
$body = $item['body'];
/*
+ // We're trying to match Diaspora's split message/photo protocol but
+ // all the photos are displayed on D* as links and not img's - even
+ // though we're sending pretty much precisely what they send us when
+ // doing the same operation.
+ // Commented out for now, we'll use bb2diaspora to convert photos to markdown
+ // which seems to get through intact.
+
$cnt = preg_match_all('|\[img\](.*?)\[\/img\]|',$body,$matches,PREG_SET_ORDER);
if($cnt) {
foreach($matches as $mtch) {