1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-02 23:26:23 -07:00
Commit graph

1706 commits

Author SHA1 Message Date
Eggbertx
39908d74c6 Set up lua GeoIP handler registration and Cloudflare GeoIP header example plugin 2024-01-22 16:48:20 -08:00
Eggbertx
c26b7e9e1d Push gctemplates module table to the stack in preload function 2024-01-22 09:52:34 -08:00
Eggbertx
ea37e22ea6 Fix postbox boardConfig typo 2024-01-22 09:40:52 -08:00
Eggbertx
77f8ad9bcd Save flag selection on post submission and load it on page start (per board) 2024-01-22 00:17:52 -08:00
Eggbertx
1e29426509 Add flag preview functionality to frontend, add flag to QR 2024-01-21 18:02:35 -08:00
Eggbertx
6a102bce6a Update dependencies 2024-01-21 17:27:04 -08:00
Eggbertx
5b000385da Log GC_TESTIP (testing IP address) if it is set 2024-01-21 17:21:40 -08:00
Eggbertx
f78bcd3704 Add custom flag usage during post processing 2024-01-21 17:16:27 -08:00
Eggbertx
19e27da5a6 Don't enable gochan service in vagrant bootstrap, add bbig alias 2024-01-21 16:48:50 -08:00
Eggbertx
6085988889 Add flag selection to template 2024-01-21 16:42:01 -08:00
Eggbertx
51c884ae6b Add custom flag validation, as well as custom flag validation 2024-01-21 16:02:53 -08:00
Eggbertx
2007b90556 Add basic geoip detection to posts, add image to post flag template 2024-01-20 22:41:40 -08:00
Eggbertx
04d25a211f Add post flag template 2024-01-17 15:56:01 -08:00
Eggbertx
24ff232c59 Add flag and country to post queries 2024-01-17 15:55:41 -08:00
Eggbertx
c77121db80 Add international flag sprites and flag css 2024-01-17 15:53:29 -08:00
Eggbertx
13652d4fa2 Update example config file with mmdb geoip settings 2024-01-17 07:48:32 -08:00
Eggbertx
1deec0e462 Add country and flag columns to DB version 3 schema 2024-01-12 15:51:05 -08:00
Eggbertx
b3e7af65f7 Add configurable ISO code to MMDB, optionally get IP from env for debugging 2024-01-12 15:00:32 -08:00
Eggbertx
44ec667544 Add geoip package, make geoip config more flexible 2024-01-12 13:54:05 -08:00
Eggbertx
b12e00252c Add flag sprites 2024-01-12 13:10:42 -08:00
Eggbertx
9352f0b611 Fix prefix not being applied in DB update 2024-01-09 21:45:39 -08:00
Eggbertx
912fad3473 Make a symbolic link to get_previous_version.sh in vagrant bootstrap script 2024-01-09 21:41:30 -08:00
Eggbertx
3fd9778427 Simplify querying for building.Post 2024-01-09 13:51:24 -08:00
Eggbertx
0e34698257 Add more Postgres db migration for IP -> INET, split dbtypes into their own files 2024-01-09 13:11:22 -08:00
Eggbertx
d294462968 Fix SQL string replacer messing with prepared statements in Postgres 2024-01-02 17:02:42 -08:00
Eggbertx
121959fa15 Convert DBPREFIXposts.ip and DBPREFIXreports.ip to VARBINARY 2024-01-01 13:30:32 -08:00
Eggbertx
204ae9506f Update ban page and ban submission to accomodate ranges 2023-12-31 18:02:42 -08:00
Eggbertx
57693ba549 Replace IP field of IPBan with RangeStart and RangeEnd 2023-12-28 23:06:44 -08:00
Eggbertx
04c892bba8 Update gochan frontend version in package-lock, update db version in generated SQL files 2023-12-28 15:43:13 -08:00
Eggbertx
84ae85628f Add LogTime function and don't log expires or appealAt values if ban is permanent or can't be appealed, respectively 2023-12-28 15:40:17 -08:00
Eggbertx
28963eb813 Add IP Range parsing, start working on adding range bans 2023-12-28 00:36:24 -08:00
Eggbertx
8e9543970a Remove "Verbosity" config field and rename "DebugMode" to "Verbose" for enabling command line output on errors 2023-12-27 17:07:33 -08:00
Eggbertx
138b41bf0a Don't check GeoIP (to be fixed in the next release) 2023-12-27 12:01:02 -08:00
Eggbertx
e968dc875a Finish browser-based template editor, resolves issue #90 2023-12-26 17:02:09 -08:00
Eggbertx
6fbfb731bd Sort template list before it is returned 2023-12-21 16:58:53 -08:00
Eggbertx
7e07e24f16 Add template loading to the templates manage action 2023-12-21 15:55:29 -08:00
Eggbertx
a8436c5ee4 Fix some issues reported by DeepSource 2023-12-19 14:33:40 -08:00
Eggbertx
28a5ef63e3
Merge pull request #92 from gochan-org/template-editor
Update Go dependencies
2023-12-19 13:59:11 -08:00
Eggbertx
b252e65ba7 Make templates private, accessible via template filename 2023-12-19 13:32:25 -08:00
Eggbertx
9781726ce5
Merge pull request #91 from gochan-org/dependabot/go_modules/golang.org/x/crypto-0.17.0
Bump golang.org/x/crypto from 0.14.0 to 0.17.0
2023-12-19 09:21:40 -08:00
dependabot[bot]
499700bf80
Bump golang.org/x/crypto from 0.14.0 to 0.17.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-18 23:37:17 +00:00
Eggbertx
4c73891ff5 Add template override page (doesn't do anything yet) 2023-12-10 20:46:08 -08:00
Eggbertx
72d6b08a27 Close QR box if persistentqr is false (or not set, defaults to false) 2023-12-10 12:59:46 -08:00
Eggbertx
00a02a699a Fix storage -> element goofiness 2023-12-09 12:38:59 -08:00
Eggbertx
edd2c30d32 Use the default style set in the boards table before checking board.json 2023-12-08 15:29:04 -08:00
Eggbertx
ad8fb416bd Fix boolean settings, store default theme value as backup DOM attribute 2023-12-07 14:36:10 -08:00
Eggbertx
d4335cf5b9 Fix board-specific theming being overwritten by the frontend, update some NPM packages 2023-12-07 12:47:43 -08:00
Eggbertx
2e5e56b142 Add webPathDir template function (appends a trailing slash) 2023-12-07 12:11:58 -08:00
Eggbertx
5785530279 Set Username field in example config to empty string, remove unused SiteHeaderURL 2023-12-07 11:23:39 -08:00
Eggbertx
5980283218 Add MaxMind GeoIP loading 2023-12-06 14:54:51 -08:00