From 711edaaf85a7725de12dc22dba8729699063f974 Mon Sep 17 00:00:00 2001 From: 4tanner Date: Sun, 22 Jan 2017 05:45:13 -0500 Subject: [PATCH 1/3] Add 4tan.org Also, why do some archives offer HTTP alongside HTTPS? Should I offer HTTP aswell? --- archives.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/archives.json b/archives.json index fa3da1984..ef930eef3 100644 --- a/archives.json +++ b/archives.json @@ -107,4 +107,15 @@ "software": "foolfuuka", "boards": ["h", "hc", "hm", "r", "s", "soc"], "files": ["h", "hc", "hm", "r", "s", "soc"] -}] +}, { + "uid": 32, + "name": "4tan", + "domain": "boards.4tan.org", + "http": false, + "https": true, + "software": "foolfuuka", + "boards": ["3", "a", "aco", "adv", "an", "asp", "b", "biz", "c", "cgl", "ck", "cm", "co", "d", "diy", "e", "f", "fa", "fit", "g", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "int", "jp", "k", "lgbt", "lit", "m", "mlp", "mu", "n", "news", "o", "out", "p", "po", "pol", "qa", "qst", "r", "r9k", "s", "s4s", "sci", "soc", "sp", "t", "tg", "toy", "trash", "trv", "tv", "u", "v", "vg", "vip", "vp", "vr", "w", "wg", "wsg", "wsr", "x", "y"], + "files": [], + "search": [], + "report": "https://sys.4tan.org/report/" +] From db290e40ffb1cff6ab90391758579940ae5d1044 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 22 Jan 2017 06:00:20 -0800 Subject: [PATCH 2/3] Fixes/tweaks to 4tan.org addition. - Fix missing brace. - Switch to more flexible report URL format. - Document `report` field. - Add 4tan to the archives.md table. --- CONTRIBUTING.md | 5 ++++- archives.json | 4 ++-- archives.md | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dc1f56b85..c7e2ee44d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,7 +10,8 @@ Generic archive information: "software": "foolfuuka", "boards": ["a"], "files": ["a"], - "search": ["a"] + "search": ["a"], + "report": "https://example.com/report/?board=%board&no=%post" } ``` @@ -26,4 +27,6 @@ make sure it does not overlap with an archive that previously died for example. `search` is the list of boards where search is enabled. If this field is missing then it implies that search is enabled on all boards. +`report` is the URL of a form for reporting posts. The board name and post number will be substituted for `%board` and `%post`, respectively. If missing, it means your site has no such form. + Also, be sure to add your board to [archives.md](https://github.com/MayhemYDG/archives.json/blob/gh-pages/archives.md) at some point. \ No newline at end of file diff --git a/archives.json b/archives.json index ef930eef3..a3ae24f90 100644 --- a/archives.json +++ b/archives.json @@ -117,5 +117,5 @@ "boards": ["3", "a", "aco", "adv", "an", "asp", "b", "biz", "c", "cgl", "ck", "cm", "co", "d", "diy", "e", "f", "fa", "fit", "g", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "int", "jp", "k", "lgbt", "lit", "m", "mlp", "mu", "n", "news", "o", "out", "p", "po", "pol", "qa", "qst", "r", "r9k", "s", "s4s", "sci", "soc", "sp", "t", "tg", "toy", "trash", "trv", "tv", "u", "v", "vg", "vip", "vp", "vr", "w", "wg", "wsg", "wsr", "x", "y"], "files": [], "search": [], - "report": "https://sys.4tan.org/report/" -] + "report": "https://sys.4tan.org/report/?board=%board&no=%post" +}] diff --git a/archives.md b/archives.md index 190b815a7..c812ccc33 100644 --- a/archives.md +++ b/archives.md @@ -32,3 +32,4 @@ uid | name | domain | software `29`|`Archived.Moe`|[archived.moe](http://archived.moe)|[FoolFuuka](https://github.com/FoolCode/FoolFuuka) `30`|`TheBArchive.com`|[thebarchive.com](http://thebarchive.com)|[FoolFuuka](https://github.com/FoolCode/FoolFuuka) `31`|`Archive Of Sins`|[archiveofsins.com](http://archiveofsins.com)|[FoolFuuka](https://github.com/FoolCode/FoolFuuka) +`32`|`4tan`|[boards.4tan.org](https://boards.4tan.org)|[FoolFuuka](https://github.com/FoolCode/FoolFuuka) From 06ee6e8d49ffd8055966ba7ddea77d2da5efa0a2 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 23 Jan 2017 21:00:25 -0800 Subject: [PATCH 3/3] Switch to new format for declaring offsite reporting API. See https://github.com/ccd0/4chan-x/issues/1260. Currently 4plebs and 4tan have it. --- CONTRIBUTING.md | 4 ++-- archives.json | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c7e2ee44d..9000d249e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,7 +11,7 @@ Generic archive information: "boards": ["a"], "files": ["a"], "search": ["a"], - "report": "https://example.com/report/?board=%board&no=%post" + "reports": true } ``` @@ -27,6 +27,6 @@ make sure it does not overlap with an archive that previously died for example. `search` is the list of boards where search is enabled. If this field is missing then it implies that search is enabled on all boards. -`report` is the URL of a form for reporting posts. The board name and post number will be substituted for `%board` and `%post`, respectively. If missing, it means your site has no such form. +`reports` indicates that you have enabled the offsite reporting API from https://github.com/pleebe/foolfuuka-plugin-popup-report. It is assumed false if missing. Also, be sure to add your board to [archives.md](https://github.com/MayhemYDG/archives.json/blob/gh-pages/archives.md) at some point. \ No newline at end of file diff --git a/archives.json b/archives.json index a3ae24f90..612678974 100644 --- a/archives.json +++ b/archives.json @@ -6,7 +6,8 @@ "https": true, "software": "foolfuuka", "boards": ["adv", "f", "hr", "o", "pol", "s4s", "sp", "tg", "trv", "tv", "x"], - "files": ["adv", "f", "hr", "o", "pol", "s4s", "sp", "tg", "trv", "tv", "x"] + "files": ["adv", "f", "hr", "o", "pol", "s4s", "sp", "tg", "trv", "tv", "x"], + "reports": true }, { "uid": 4, "name": "Nyafuu Archive", @@ -117,5 +118,5 @@ "boards": ["3", "a", "aco", "adv", "an", "asp", "b", "biz", "c", "cgl", "ck", "cm", "co", "d", "diy", "e", "f", "fa", "fit", "g", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "int", "jp", "k", "lgbt", "lit", "m", "mlp", "mu", "n", "news", "o", "out", "p", "po", "pol", "qa", "qst", "r", "r9k", "s", "s4s", "sci", "soc", "sp", "t", "tg", "toy", "trash", "trv", "tv", "u", "v", "vg", "vip", "vp", "vr", "w", "wg", "wsg", "wsr", "x", "y"], "files": [], "search": [], - "report": "https://sys.4tan.org/report/?board=%board&no=%post" + "reports": true }]