forked from GNUsocial/gnu-social
Merge branch '0.9.x' into facebook-app-plugin
This commit is contained in:
commit
34a21e7605
@ -87,7 +87,7 @@ function omb_broadcast_notice($notice)
|
||||
common_debug('Posting to ' . $rp->postnoticeurl, __FILE__);
|
||||
|
||||
/* Post notice. */
|
||||
$service = new Laconica_OMB_Service_Consumer(
|
||||
$service = new StatusNet_OMB_Service_Consumer(
|
||||
array(OMB_ENDPOINT_POSTNOTICE => $rp->postnoticeurl));
|
||||
try {
|
||||
$service->setToken($rp->token, $rp->secret);
|
||||
|
@ -66,7 +66,7 @@ class UnQueueManager
|
||||
break;
|
||||
default:
|
||||
if (Event::handle('UnqueueHandleNotice', array(&$notice, $queue))) {
|
||||
throw ServerException("UnQueueManager: Unknown queue: $queue");
|
||||
throw new ServerException("UnQueueManager: Unknown queue: $queue");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -906,7 +906,6 @@ function common_broadcast_notice($notice, $remote=false)
|
||||
function common_enqueue_notice($notice)
|
||||
{
|
||||
static $localTransports = array('omb',
|
||||
'twitter',
|
||||
'facebook',
|
||||
'ping');
|
||||
|
||||
|
@ -47,7 +47,9 @@ class URLDetectionTest extends PHPUnit_Framework_TestCase
|
||||
array('127.0.0.1/\'test',
|
||||
'<a href="http://127.0.0.1/\'test" title="http://127.0.0.1/\'test" rel="external">127.0.0.1/\'test</a>'),
|
||||
array('127.0.0.1/"test',
|
||||
'<a href="http://127.0.0.1/"test" title="http://127.0.0.1/"test" rel="external">127.0.0.1/"test</a>'),
|
||||
'<a href="http://127.0.0.1/" title="http://127.0.0.1/" rel="external">127.0.0.1/</a>"test'),
|
||||
array('127.0.0.1/test"test',
|
||||
'<a href="http://127.0.0.1/test" title="http://127.0.0.1/test" rel="external">127.0.0.1/test</a>"test'),
|
||||
array('127.0.0.1/-test',
|
||||
'<a href="http://127.0.0.1/-test" title="http://127.0.0.1/-test" rel="external">127.0.0.1/-test</a>'),
|
||||
array('127.0.0.1/_test',
|
||||
@ -170,6 +172,8 @@ class URLDetectionTest extends PHPUnit_Framework_TestCase
|
||||
'\'<a href="http://example.com/" title="http://example.com/" rel="external">http://example.com</a>\''),
|
||||
array('"http://example.com"',
|
||||
'"<a href="http://example.com/" title="http://example.com/" rel="external">http://example.com</a>"'),
|
||||
array('"http://example.com/"',
|
||||
'"<a href="http://example.com/" title="http://example.com/" rel="external">http://example.com/</a>"'),
|
||||
array('http://example.com',
|
||||
'<a href="http://example.com/" title="http://example.com/" rel="external">http://example.com</a>'),
|
||||
array('(http://example.com)',
|
||||
|
Loading…
Reference in New Issue
Block a user