added faq link

hash-command-arbitrary
Avril 4 years ago
parent 8f0ac165d7
commit 5219dde953
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -202,7 +202,7 @@ var OS = OneeSama.prototype;
var break_re = new RegExp("(\\S{" + DEFINES.WORD_LENGTH_LIMIT + "})"); var break_re = new RegExp("(\\S{" + DEFINES.WORD_LENGTH_LIMIT + "})");
/* internal refs, embeds */ /* internal refs, embeds */
var ref_re = />>(\d+|>\/s\/.+|>\/music\/s\/.+|>\/watch\?v=[\w-]{11}(?:#t=[\dhms]{1,9})?|>\/soundcloud\/[\w-]{1,40}\/[\w-]{1,80}|>\/@\w{1,15}\/\d{4,20}(?:\?s=\d+)?|>\/(?:a|sysint|nap)\/\d{0,10})/; var ref_re = />>(\d+|>\/s\/.+|>\/music\/s\/.+|>\/watch\?v=[\w-]{11}(?:#t=[\dhms]{1,9})?|>\/soundcloud\/[\w-]{1,40}\/[\w-]{1,80}|>\/@\w{1,15}\/\d{4,20}(?:\?s=\d+)?|>\/(?:a|sysint|nap)\/\d{0,10}|>\/rurus\/)/;
OS.hook = function (name, func) { OS.hook = function (name, func) {
var hs = this.hooks[name]; var hs = this.hooks[name];
@ -263,6 +263,9 @@ OS.red_string = function (ref) {
var num = parseInt(ref.slice(4+2), 10); var num = parseInt(ref.slice(4+2), 10);
dest = '../outbound/nap/' + (num ? ''+num : ''); dest = '../outbound/nap/' + (num ? ''+num : '');
} }
else if (prefix == '>/r') {
dest ="/faq.html";
}
else { else {
this.tamashii(parseInt(ref, 10)); this.tamashii(parseInt(ref, 10));
return; return;

@ -608,6 +608,14 @@ web.resource(/^\/outbound\/sysint\/(\d{0,10})$/, function (req, params, cb) {
cb(null, 303.1, url); cb(null, 303.1, url);
}); });
web.resource(/^\/outbound\/rurus\/(\d{0,10})$/, function (req, params, cb) {
var thread = parseInt(params[1], 10);
var url = '/faq.html';
if (thread)
url += thread;
cb(null, 303.1, url);
});
web.resource(/^\/outbound\/nap\/(\d{0,10})$/, function (req, params, cb) { web.resource(/^\/outbound\/nap\/(\d{0,10})$/, function (req, params, cb) {
var thread = parseInt(params[1], 10); var thread = parseInt(params[1], 10);
var url = 'https://nineball.party/nap/'; var url = 'https://nineball.party/nap/';

Loading…
Cancel
Save