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

1768 commits

Author SHA1 Message Date
b3cb0a12fe Add number of images and omitted images to catalog.json
Also slightly cleaned up some duplicated code.
2017-08-29 06:18:43 -07:00
6d8d7aee49 Remove debugging code for checksums 2017-08-28 03:36:29 -07:00
f659691af2 Generate the majority of the catalog.json file
Missing omitted_images and images currently, need to work on a clean way of calculating those.
2017-08-28 03:34:55 -07:00
34c55dd785 Create and use function for making the post JSON object to reduce code duplication 2017-08-27 06:35:56 -07:00
1e01c171f9 Fix thread JSON for anonymous posts, and the tripcode field 2017-08-27 05:10:49 -07:00
2a3ee1f72f Add on ! to the tripcode for the JSON files, because the JSON spec we are matching does include it. 2017-08-27 02:48:00 -07:00
e4a6e58655 Add the thread JSON types and generation. Bump to version 1.4. 2017-08-27 01:55:39 -07:00
f6ddc66627 Update size of original filename field in database to 255 (the max for most filesystems) 2017-08-27 01:42:03 -07:00
01b7338092 Cleanup insertPost and write message text to database immediately
Changed insertPost to return a sql.Result as well as an error, callers to insertPost can use that error returned. With this change insertPost no longer needs accesss to a *http.ResponseWriter. The only call to insertPost already had a error check right after it anyways.
Writing the message immediately saves another query to the database.
2017-08-27 01:31:25 -07:00
c41d351e13 Actually calculate MD5 for uploads and set created date for boards 2017-08-24 06:05:29 -07:00
4c0de06070 Add the board list JSON generation
Also made sure Gochan's HTTP server servers JSON as the correct type, fix a bug in resetBoardSectionArrays that would have really messed things up if sections were used
2017-08-22 19:00:13 -07:00
5b7e6e04b2 Remove actual log files from git, but add placeholder file.
Also readded actual log files to gitignore.
2017-08-21 17:49:41 -07:00
d1d9c26b2c Merge branch 'master' of github.com:Eggbertx/gochan 2017-08-21 17:10:23 -07:00
72d58503f8 Add the reply subjects to the template so they show up. 2017-08-21 17:05:25 -07:00
Joshua Merrell
b2c2d8f36b update vagrant bootstrap, add log dir to git repo 2017-08-19 21:19:17 -07:00
Josh
6bfdac6974 Merge pull request #2 from Eggbertx/swap-sql-driver
Swap sql driver
2017-08-19 20:06:25 -07:00
722df46443 Bump version due to config change involved 2017-08-19 19:58:37 -07:00
a6101a6bec Add new Unix socket example 2017-08-19 19:51:38 -07:00
c2ddde2837 Migrate to different SQL driver, this works with emojis it seems. 2017-08-19 19:10:03 -07:00
Joshua Merrell
7ca552801b fix vagrant invalid file path error, update README 2017-08-12 16:46:00 -07:00
Joshua Merrell
f9c7912a2c Add Vagrant setup scripts 2017-08-12 01:17:26 -07:00
Joshua Merrell
41fa3a7c04 Add example nginx configuration files 2017-08-06 15:39:05 -07:00
b7e9815ebd Fix chopping off n at the end of posts.
Cause was some escaped backslashes that shouldn't have been escaped.
2017-08-05 01:23:22 -07:00
bf446f25f4 Fixed cookies for names with & and '. 2017-08-05 01:06:48 -07:00
2dd84f4d42 Finish removing old config file
Change .gitignore to ignore gochan.json, config.cfg was left in ignore
for now.
Remove references to goconf package that are unneeded.
2017-08-03 01:28:46 -07:00
f294fd39d5 Remove a debugging feature I was using 2017-08-02 02:06:00 -07:00
33b0c6985d Fix trips with & and ' characters, and don't test an empty Akismet API key 2017-08-02 01:44:34 -07:00
cac77437b0 Fix new cookie domain for when you use a port number, and fix getRemoteAddr, which has been broken for a while lol. 2017-08-01 03:05:29 -07:00
9503f989ca Fix the manage cookies to use Host header as well 2017-08-01 00:37:23 -07:00
b47a3a7666 Fix cookies in posting, uses the Host header that came in. 2017-08-01 00:29:41 -07:00
b0cd99d789 Fix a small typo in the README 2017-05-15 12:30:47 -07:00
7c73d73906 add regex to example config, fix default regex if you don't set it in your config 2016-12-22 00:13:24 -08:00
d0d57e20bb Move compilation of regex to initServer 2016-12-21 23:37:44 -08:00
528d854860 Fix regex referrer check
Going to move compiling to initServer()
2016-12-21 23:34:48 -08:00
4a105d6ba6 First shot at using regex for referrer check to improve situation on gochan.org 2016-12-21 23:01:52 -08:00
Joshua Merrell
6b87ed4748 Add comments to Makefile so I don't forget 2016-12-15 11:37:14 -08:00
Joshua Merrell
02f42b38b9 remove "CURRENT_TIMESTAMP" setting from the deleted_timestamp column 2016-10-12 18:21:25 -07:00
Josh
703e05e686 Create ROADMAP.md 2016-09-21 12:05:47 -07:00
Joshua Merrell
116fe3a035 remove unnecessary legacy config.example.cfg 2016-09-17 16:01:53 -07:00
Joshua Merrell
8a95501964 replace cfg configuration with JSON 2016-09-17 16:00:31 -07:00
Joshua Merrell
f8293115a2 display benchmark times as float instead of int 2016-09-17 15:39:33 -07:00
Joshua Merrell
76cb0ecafa fix verbsotity variable name for last commit 2016-09-16 00:44:01 -07:00
Joshua Merrell
6cb2e577b5 Add release, debug, and verbose Makefile targets 2016-09-16 00:39:14 -07:00
Joshua Merrell
05ccabd7af Merge branch 'master' of https://github.com/eggbertx/gochan 2016-09-16 00:34:57 -07:00
Joshua Merrell
af899dcfe6 Add release, debug, and verbose Makefile targets 2016-09-16 00:33:19 -07:00
a125a2dc47 Fix horrible mistake in attempting to simplify referrer check lol. 2016-08-26 02:57:40 -07:00
4c99630144 Fix the initial setup detection after removal of tempposts 2016-08-24 20:12:50 -07:00
368ee618fb Simplify referrer check, some cleanup in Akismet integration 2016-08-24 18:26:33 -07:00
Josh
1b397b773c prevent browsers from autofilling subject field with staff username. Also, hot purging action! 2016-08-19 23:24:38 -07:00
Josh
c0932c1a42 remove legacy kusaba theme, normalize manage function names 2016-08-19 22:45:32 -07:00