forked from GNUsocial/gnu-social
Output proper HTML and XML headers for single Atom entry
RFC5023 <https://tools.ietf.org/html/rfc5023> specifies that the content type parameter 'type=entry' should be used to clarify data.
This commit is contained in:
parent
7c829852b8
commit
d88e9ffd33
@ -790,7 +790,8 @@ class ApiAction extends Action
|
|||||||
|
|
||||||
function showSingleAtomStatus($notice)
|
function showSingleAtomStatus($notice)
|
||||||
{
|
{
|
||||||
header('Content-Type: application/atom+xml; charset=utf-8');
|
header('Content-Type: application/atom+xml;type=entry;charset="utf-8"');
|
||||||
|
print '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
|
||||||
print $notice->asAtomEntry(true, true, true, $this->scoped);
|
print $notice->asAtomEntry(true, true, true, $this->scoped);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user