Allow @localuser@mysite.example to be looked up as a mention
This commit is contained in:
28
plugins/OStatus/lib/ostatusshadowexception.php
Normal file
28
plugins/OStatus/lib/ostatusshadowexception.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
if (!defined('GNUSOCIAL')) { exit(1); }
|
||||
|
||||
/**
|
||||
* @package OStatusPlugin
|
||||
* @maintainer Mikael Nordfeldth <mmn@hethane.se>
|
||||
*/
|
||||
|
||||
/**
|
||||
* Exception indicating we've got a remote reference to a local user,
|
||||
* not a remote user!
|
||||
*
|
||||
* If we can ue a local profile after all, it's available as $e->profile.
|
||||
*/
|
||||
class OStatusShadowException extends Exception
|
||||
{
|
||||
public $profile;
|
||||
|
||||
/**
|
||||
* @param Profile $profile
|
||||
* @param string $message
|
||||
*/
|
||||
function __construct(Profile $profile, $message) {
|
||||
$this->profile = $profile;
|
||||
parent::__construct($message);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user