Change to use TagURI::base() instead of common_config()
I changed the way that tag: URIs are minted, so we now use the right base. Ideally most of these would use HTTP URIs instead, but for now at least they use the right base.
This commit is contained in:
@@ -358,7 +358,7 @@ class ApiAction extends Action
|
||||
$entry['link'] = common_local_url('shownotice', array('notice' => $notice->id));
|
||||
$entry['published'] = common_date_iso8601($notice->created);
|
||||
|
||||
$taguribase = common_config('integration', 'taguri');
|
||||
$taguribase = TagURI::base();
|
||||
$entry['id'] = "tag:$taguribase:$entry[link]";
|
||||
|
||||
$entry['updated'] = $entry['published'];
|
||||
@@ -802,7 +802,7 @@ class ApiAction extends Action
|
||||
$entry['link'] = common_local_url('showmessage', array('message' => $message->id));
|
||||
$entry['published'] = common_date_iso8601($message->created);
|
||||
|
||||
$taguribase = common_config('integration', 'taguri');
|
||||
$taguribase = TagURI::base();
|
||||
|
||||
$entry['id'] = "tag:$taguribase:$entry[link]";
|
||||
$entry['updated'] = $entry['published'];
|
||||
|
Reference in New Issue
Block a user