aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-04 13:50:12 -0800
committerfriendica <info@friendica.com>2012-01-04 13:50:12 -0800
commitc1cf6e48c225725c380472e1f730f6dc02917ecd (patch)
tree62d94c563ac1a8e719f64b64e576f7e4e26d9dc2
parent48a5a2484e762a9804237ae28c24dafe5db7f953 (diff)
downloadvolse-hubzilla-c1cf6e48c225725c380472e1f730f6dc02917ecd.tar.gz
volse-hubzilla-c1cf6e48c225725c380472e1f730f6dc02917ecd.tar.bz2
volse-hubzilla-c1cf6e48c225725c380472e1f730f6dc02917ecd.zip
Allow Diaspora to post to forums
-rw-r--r--boot.php2
-rw-r--r--include/items.php7
2 files changed, 7 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 61deae18b..b06c2d0bf 100644
--- a/boot.php
+++ b/boot.php
@@ -9,7 +9,7 @@ require_once('include/nav.php');
require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica');
-define ( 'FRIENDICA_VERSION', '2.3.1215' );
+define ( 'FRIENDICA_VERSION', '2.3.1216' );
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
define ( 'DB_UPDATE_VERSION', 1115 );
diff --git a/include/items.php b/include/items.php
index a63468d92..0bd77582a 100644
--- a/include/items.php
+++ b/include/items.php
@@ -945,10 +945,15 @@ function tgroup_deliver($uid,$item_id) {
$link = normalise_link($a->get_baseurl() . '/profile/' . $u[0]['nickname']);
+ // Diaspora uses their own hardwired link URL in @-tags
+ // instead of the one we supply with webfinger
+
+ $dlink = normalise_link($a->get_baseurl() . '/u/' . $u[0]['nickname']);
+
$cnt = preg_match_all('/[\@\!]\[url\=(.*?)\](.*?)\[\/url\]/ism',$item['body'],$matches,PREG_SET_ORDER);
if($cnt) {
foreach($matches as $mtch) {
- if(link_compare($link,$mtch[1])) {
+ if(link_compare($link,$mtch[1]) || link_compare($dlink,$mtch[1])) {
$deliver_to_tgroup = true;
logger('tgroup_deliver: local group mention found: ' . $mtch[2]);
}