]> git.mxchange.org Git - friendica.git/commitdiff
can't use ActivityStreams for location. Grrr.
authorMike Macgirvin <mike@macgirvin.com>
Tue, 24 Aug 2010 23:25:02 +0000 (16:25 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Tue, 24 Aug 2010 23:25:02 +0000 (16:25 -0700)
include/items.php
view/atom_item.tpl

index f57f3a833b6aa98217bfe78e1e729b81abd0075b..87e680e32425984428a650e9207ec1328ac485ba 100644 (file)
@@ -176,7 +176,7 @@ function get_atom_elements($item) {
        if($rawcreated)
                $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)
                $res['location'] = unxmlify($rawlocation[0]['data']);
 
index 99b18e05f7e38de2f22b0768fa8c3f5f6c46738a..1dae06db56ba63275c9f1904154d13dedd82030c 100644 (file)
@@ -15,6 +15,6 @@
                <published>$published</published>
                <updated>$updated</updated>
                <content>$content</content>
-               <as:place>$location</as:place>
+               <dfrn:location>$location</dfrn:location>
                <dfrn:comment-allow>$comment_allow</dfrn:comment-allow>
        </entry>