From: Mikael Nordfeldth Date: Thu, 15 Jan 2015 20:13:21 +0000 (+0100) Subject: RSS feed items did not get a type assigned X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0193c7548f075ecf2f07dd8ca55b1b8f45e708ff;p=quix0rs-gnu-social.git RSS feed items did not get a type assigned --- 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);