[ActivityPub] Fix some bugs with onStartNoticeSearch
Refactored Activitypub_profile::ensure_web_finger to Activitypub_profile::ensure_webfinger Do not throw exceptions in the handling of this event because we don't want to stop the regular search just because we were unable to find ActivityPub actors or notes.
This commit is contained in:
@@ -101,7 +101,7 @@ class ProfileObjectTest extends TestCase
|
||||
/* Test ensure_web_finger() */
|
||||
// TODO: Maybe elaborate on this function's tests
|
||||
try {
|
||||
\Activitypub_profile::ensure_web_finger('test1@testinstance.net');
|
||||
\Activitypub_profile::ensure_webfinger('test1@testinstance.net');
|
||||
$this->assertTrue(false);
|
||||
} catch (\Exception $e) {
|
||||
$this->assertTrue($e->getMessage() == 'Not a valid webfinger address.' ||
|
||||
|
Reference in New Issue
Block a user