diff options
author | friendica <info@friendica.com> | 2014-10-10 19:14:37 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-10-10 19:14:37 -0700 |
commit | 3d0d36b2bc6d134e1140b9fc8c40206be5bd7d2d (patch) | |
tree | 7194160f6f58766beb2670f89cd88f94844dd258 | |
parent | f26cd5a636d0a1de4cef66d26da505e8a29b1b40 (diff) | |
download | volse-hubzilla-3d0d36b2bc6d134e1140b9fc8c40206be5bd7d2d.tar.gz volse-hubzilla-3d0d36b2bc6d134e1140b9fc8c40206be5bd7d2d.tar.bz2 volse-hubzilla-3d0d36b2bc6d134e1140b9fc8c40206be5bd7d2d.zip |
fix diaspora reshare tags
-rw-r--r-- | include/externals.php | 2 | ||||
-rw-r--r-- | mod/item.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/externals.php b/include/externals.php index acfaae3b6..280daf4a4 100644 --- a/include/externals.php +++ b/include/externals.php @@ -85,6 +85,8 @@ function externals_run($argv, $argc){ if($j['success'] && $j['messages']) { $sys = get_sys_channel(); foreach($j['messages'] as $message) { + // on these posts, clear any route info. + $message['route'] = ''; $results = process_delivery(array('hash' => 'undefined'), get_item_elements($message), array(array('hash' => $sys['xchan_hash'])), false, true); $total ++; diff --git a/mod/item.php b/mod/item.php index 2364e6abf..ac15e50e8 100644 --- a/mod/item.php +++ b/mod/item.php @@ -979,7 +979,7 @@ function handle_tag($a, &$body, &$access_tag, &$str_tags, $profile_uid, $tag) { } } // if the tag is already replaced... - elseif(strpos($tag,'[zrl=')) { + elseif((strpos($tag,'[zrl=')) || (strpos($tag,'[url='))) { //...do nothing return $replaced; } |