diff options
author | friendica <info@friendica.com> | 2014-09-09 01:14:15 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-09-09 01:14:15 -0700 |
commit | 4384fa8b12331b369b313efb938a23b8bde34e61 (patch) | |
tree | 163f864264f32e086eb2f7b3b046f87eb7b3d5d6 | |
parent | 384eace32a0fb0f86880d66500419ebdb2498e31 (diff) | |
download | volse-hubzilla-4384fa8b12331b369b313efb938a23b8bde34e61.tar.gz volse-hubzilla-4384fa8b12331b369b313efb938a23b8bde34e61.tar.bz2 volse-hubzilla-4384fa8b12331b369b313efb938a23b8bde34e61.zip |
d* friending vsprintf error
-rw-r--r-- | include/bb2diaspora.php | 4 | ||||
-rwxr-xr-x | include/diaspora.php | 2 | ||||
-rw-r--r-- | version.inc | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php index 5fb708706..0f91c8bc8 100644 --- a/include/bb2diaspora.php +++ b/include/bb2diaspora.php @@ -91,7 +91,7 @@ function diaspora_mention_callback($matches) { if(! $link) $link = 'https://' . $matches[3] . '/u/' . $matches[2]; - return '@[url=' . $link . ']' . trim($matches[1]) . '[/url]'; + return '@[url=' . $link . ']' . trim($matches[1]) . ((substr($mentions[0],-1,1) === '+') ? '+' : '') . '[/url]' ; } @@ -119,6 +119,8 @@ function diaspora2bb($s,$use_zrl = false) { // $s = preg_replace('/\@\{(.+?)\; (.+?)\@(.+?)\}/','@[url=https://$3/u/$2]$1[/url]',$s); + // first try plustags + $s = preg_replace_callback('/\@\{(.+?)\; (.+?)\@(.+?)\}\+/','diaspora_mention_callback',$s); $s = preg_replace_callback('/\@\{(.+?)\; (.+?)\@(.+?)\}/','diaspora_mention_callback',$s); // Escaping the hash tags - doesn't always seem to work diff --git a/include/diaspora.php b/include/diaspora.php index c93ca089b..8da256bc5 100755 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -689,7 +689,7 @@ function diaspora_request($importer,$xml) { $their_perms = PERMS_R_STREAM|PERMS_R_PROFILE|PERMS_R_PHOTOS|PERMS_R_ABOOK|PERMS_W_STREAM|PERMS_W_COMMENT|PERMS_W_MAIL|PERMS_W_CHAT|PERMS_R_STORAGE|PERMS_R_PAGES; - $r = q("insert into abook ( abook_account, abook_channel, abook_xchan, abook_my_perms, abook_their_perms, abook_closeness, abook_rating, abook_created, abook_updated, abook_connected, abook_dob, abook_flags, abook_profile) values ( %d, %d, '%s' %d %d, %d, %d, '%s', '%s', '%s', '%s', %d, '%s')", + $r = q("insert into abook ( abook_account, abook_channel, abook_xchan, abook_my_perms, abook_their_perms, abook_closeness, abook_rating, abook_created, abook_updated, abook_connected, abook_dob, abook_flags) values ( %d, %d, '%s', %d, %d, %d, %d, '%s', '%s', '%s', '%s', %d )", intval($importer['channel_account_id']), intval($importer['channel_id']), dbesc($ret['xchan_hash']), diff --git a/version.inc b/version.inc index d04d03ce9..8bfa1e0be 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2014-09-08.792 +2014-09-09.793 |