Publish rel="me" in Link HTTP headers
This commit is contained in:
parent
731fd01139
commit
1d0a448e07
|
@ -155,6 +155,17 @@ class ShowstreamAction extends NoticestreamAction
|
|||
sprintf(_('FOAF for %s'), $this->target->getNickname())));
|
||||
}
|
||||
|
||||
public function extraHeaders()
|
||||
{
|
||||
parent::extraHeaders();
|
||||
// Publish all the rel="me" in the HTTP headers on our main profile page
|
||||
if (get_class($this) == 'ShowstreamAction') {
|
||||
foreach ($this->target->getRelMes() as $relMe) {
|
||||
header('Link: <'.htmlspecialchars($relMe['href']).'>'.$type.'; rel="me"', false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function extraHead()
|
||||
{
|
||||
if ($this->target->bio) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user