|
|
|
@ -17,27 +17,15 @@ module.exports = function (req, res, next) {
|
|
|
|
|
function generateXML() {
|
|
|
|
|
return xml([{
|
|
|
|
|
OpenSearchDescription: [
|
|
|
|
|
{
|
|
|
|
|
{ _attr: { xmlns: 'http://a9.com/-/spec/opensearch/1.1/' }},
|
|
|
|
|
{ ShortName: String(meta.config.title || meta.config.browserTitle || 'NodeBB') },
|
|
|
|
|
{ Description: String(meta.config.description || '') },
|
|
|
|
|
{ Url: [{
|
|
|
|
|
_attr: {
|
|
|
|
|
xmlns: 'http://a9.com/-/spec/opensearch/1.1/',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ShortName: String(meta.config.title || meta.config.browserTitle || 'NodeBB'),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
Description: String(meta.config.description || ''),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
Url: [
|
|
|
|
|
{
|
|
|
|
|
_attr: {
|
|
|
|
|
type: 'text/html',
|
|
|
|
|
method: 'get',
|
|
|
|
|
template: nconf.get('url') + '/search?term={searchTerms}&in=titlesposts',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
type: 'text/html',
|
|
|
|
|
method: 'get',
|
|
|
|
|
template: nconf.get('url') + '/search?term={searchTerms}&in=titlesposts' },
|
|
|
|
|
}],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
}], { declaration: true, indent: '\t' });
|
|
|
|
|