forked from GNUsocial/gnu-social
Includes a sioc:reply_to link between notices. It helps with things
like http://danbri.org/words/2009/06/16/415 Thanks to Toby Inkster for the patch: http://buzzword.org.uk/2009/laconica-0.7.3-sioc-reply_to.patch
This commit is contained in:
parent
45430d2b3b
commit
1c2cf10811
@ -212,6 +212,11 @@ class Rss10Action extends Action
|
|||||||
$this->element('sioc:has_creator', array('rdf:resource' => $creator_uri.'#acct'));
|
$this->element('sioc:has_creator', array('rdf:resource' => $creator_uri.'#acct'));
|
||||||
$this->element('laconica:postIcon', array('rdf:resource' => $profile->avatarUrl()));
|
$this->element('laconica:postIcon', array('rdf:resource' => $profile->avatarUrl()));
|
||||||
$this->element('cc:licence', array('rdf:resource' => common_config('license', 'url')));
|
$this->element('cc:licence', array('rdf:resource' => common_config('license', 'url')));
|
||||||
|
if ($notice->reply_to) {
|
||||||
|
$replyurl = common_local_url('shownotice',
|
||||||
|
array('notice' => $notice->reply_to));
|
||||||
|
$this->element('sioc:reply_to', array('rdf:resource' => $replyurl));
|
||||||
|
}
|
||||||
$this->elementEnd('item');
|
$this->elementEnd('item');
|
||||||
$this->creators[$creator_uri] = $profile;
|
$this->creators[$creator_uri] = $profile;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user