accept null constructor for ActivityContext
This commit is contained in:
parent
9771a7193f
commit
d207f19d22
@ -54,8 +54,12 @@ class ActivityContext
|
||||
const MENTIONED = 'mentioned';
|
||||
const CONVERSATION = 'ostatus:conversation';
|
||||
|
||||
function __construct($element)
|
||||
function __construct($element = null)
|
||||
{
|
||||
if (empty($element)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$replyToEl = ActivityUtils::child($element, self::INREPLYTO, self::THR);
|
||||
|
||||
if (!empty($replyToEl)) {
|
||||
|
Loading…
Reference in New Issue
Block a user