Allow @localuser@mysite.example to be looked up as a mention

This commit is contained in:
Mikael Nordfeldth
2016-01-29 16:06:16 +01:00
parent 36f099958c
commit 689e277c62
3 changed files with 52 additions and 34 deletions

View 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);
}
}