Commit d207f19d authored by Evan Prodromou's avatar Evan Prodromou

accept null constructor for ActivityContext

parent 9771a719
......@@ -54,8 +54,12 @@ class ActivityContext
const MENTIONED = 'mentioned';
const CONVERSATION = 'ostatus:conversation';
function __construct($element)
function __construct($element = null)
if (empty($element)) {
$replyToEl = ActivityUtils::child($element, self::INREPLYTO, self::THR);
if (!empty($replyToEl)) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment