summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/activitycontext.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/activitycontext.php b/lib/activitycontext.php
index 09a457924..f568c791f 100644
--- a/lib/activitycontext.php
+++ b/lib/activitycontext.php
@@ -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)) {