public static function createActionableRiverObject(ElggRiverItem $river) {

		if (!$river instanceof ElggRiverItem) {
			return false;
		}

		$object = $river->getObjectEntity();

		$views = self::getActionableViews();
		if (!in_array($river->view, $views)) {
			return $object;
		}

		$access_id = $object->access_id;
		if ($object instanceof ElggUser) {
			$access_id = ACCESS_FRIENDS;
		} else if ($object instanceof ElggGroup) {
			$access_id = $object->group_acl;
		}

		$ia = elgg_set_ignore_access(true);

		$object = new RiverObject();
		$object->owner_guid = $river->subject_guid;
		$object->container_guid = $object->guid;
		$object->access_id = $access_id;
		$object->river_id = $river->id;
		$object->save();

		elgg_set_ignore_access($ia);
		
		return $object;
	}