From 0193c7548f075ecf2f07dd8ca55b1b8f45e708ff Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 15 Jan 2015 21:13:21 +0100 Subject: [PATCH] RSS feed items did not get a type assigned --- lib/activityobject.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/activityobject.php b/lib/activityobject.php index 9a6218de3a..aa7636c713 100644 --- a/lib/activityobject.php +++ b/lib/activityobject.php @@ -274,6 +274,10 @@ class ActivityObject // @todo FIXME: rationalize with Activity::_fromRssItem() private function _fromRssItem($item) { + if (empty($this->type)) { + $this->type = ActivityObject::NOTE; + } + $this->title = ActivityUtils::childContent($item, ActivityObject::TITLE, Activity::RSS); $contentEl = ActivityUtils::child($item, ActivityUtils::CONTENT, Activity::CONTENTNS); -- 2.39.5