can't use ActivityStreams for location. Grrr.
parent
828316ce70
commit
c35dab713d
|
@ -176,7 +176,7 @@ function get_atom_elements($item) {
|
||||||
if($rawcreated)
|
if($rawcreated)
|
||||||
$res['created'] = unxmlify($rawcreated[0]['data']);
|
$res['created'] = unxmlify($rawcreated[0]['data']);
|
||||||
|
|
||||||
$rawlocation = $item->get_item_tags('http://activitystrea.ms/spec/1.0/', 'place');
|
$rawlocation = $item->get_item_tags(NAMESPACE_DFRN, 'location');
|
||||||
if($rawlocation)
|
if($rawlocation)
|
||||||
$res['location'] = unxmlify($rawlocation[0]['data']);
|
$res['location'] = unxmlify($rawlocation[0]['data']);
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,6 @@
|
||||||
<published>$published</published>
|
<published>$published</published>
|
||||||
<updated>$updated</updated>
|
<updated>$updated</updated>
|
||||||
<content>$content</content>
|
<content>$content</content>
|
||||||
<as:place>$location</as:place>
|
<dfrn:location>$location</dfrn:location>
|
||||||
<dfrn:comment-allow>$comment_allow</dfrn:comment-allow>
|
<dfrn:comment-allow>$comment_allow</dfrn:comment-allow>
|
||||||
</entry>
|
</entry>
|
||||||
|
|
Loading…
Reference in New Issue