aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 720597a83..30bd2d89b 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -602,11 +602,11 @@
case 'owner_guid' : // Convert owner guid to uuid, this will be stored in metadata
$k = 'owner_uuid';
$v = guid_to_uuid($v);
- $meta = new ODDMetadata($uuid . "attr/$k/", $uuid, $k, $v);
+ $meta = new ODDMetaData($uuid . "attr/$k/", $uuid, $k, $v);
break;
default :
- $meta = new ODDMetadata($uuid . "attr/$k/", $uuid, $k, $v);
+ $meta = new ODDMetaData($uuid . "attr/$k/", $uuid, $k, $v);
}
// set the time of any metadata created
@@ -617,6 +617,17 @@
}
}
+ // Now we do something a bit special.
+ /*
+ * This provides a rendered view of the entity to foreign sites.
+ */
+
+ elgg_set_viewtype('default');
+ $view = elgg_view_entity($this, 'default');
+ elgg_set_viewtype();
+
+ $tmp[] = new ODDMetaData($uuid . "volatile/renderedentity/", $uuid, 'renderedentity', $view , 'volatile');
+
return $tmp;
}