Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gnu-social
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
194
Issues
194
List
Boards
Labels
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gnu.io
gnu-social
Commits
3dc84dd0
Commit
3dc84dd0
authored
Mar 12, 2010
by
Zach Copley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output enclosing geo elements and GeoRSS xmlns in XML timelines
parent
13556e7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
lib/apiaction.php
lib/apiaction.php
+13
-1
No files found.
lib/apiaction.php
View file @
3dc84dd0
...
...
@@ -491,7 +491,7 @@ class ApiAction extends Action
$this
->
showXmlAttachments
(
$twitter_status
[
'attachments'
]);
break
;
case
'geo'
:
$this
->
showGeo
RSS
(
$value
);
$this
->
showGeo
XML
(
$value
);
break
;
case
'retweeted_status'
:
$this
->
showTwitterXmlStatus
(
$value
,
'retweeted_status'
);
...
...
@@ -539,6 +539,18 @@ class ApiAction extends Action
}
}
function
showGeoXML
(
$geo
)
{
if
(
empty
(
$geo
))
{
// empty geo element
$this
->
element
(
'geo'
);
}
else
{
$this
->
elementStart
(
'geo'
,
array
(
'xmlns:georss'
=>
'http://www.georss.org/georss'
));
$this
->
element
(
'georss:point'
,
null
,
$geo
[
'coordinates'
][
0
]
.
' '
.
$geo
[
'coordinates'
][
1
]);
$this
->
elementEnd
(
'geo'
);
}
}
function
showGeoRSS
(
$geo
)
{
if
(
!
empty
(
$geo
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment