]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
RSS feed items did not get a type assigned
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 15 Jan 2015 20:13:21 +0000 (21:13 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 15 Jan 2015 20:13:21 +0000 (21:13 +0100)
lib/activityobject.php

index 9a6218de3af9e954a97d7cd92a0e509c2f88fd24..aa7636c713bc37ebdd7214505ef97439127dadf3 100644 (file)
@@ -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);