Joshua Merrell
b9ab1f5ca2
more parameters, new beta versioning scheme
2017-12-19 18:13:47 -08:00
Joshua Merrell
ddf2aaff92
Parameterize most SQL queries
2017-12-03 13:26:39 -08:00
600e81e0d8
Fix compilation issue with ban page template rendering.
2017-11-13 22:54:58 -08:00
Joshua Merrell
3dcc9db6b6
change default charset from utf8 to utf8mb4 for meme characters, fix $GOPATH not being kept after provision
2017-11-04 22:45:29 -07:00
Joshua Merrell
1586fcdb4a
fix leftover template execution code (causing panics and/or template execution failure when not building board page)
2017-10-29 01:01:25 -07:00
Joshua Merrell
6edda7b5e1
Replace clunky template rendering with (slightly) less clunky template rendering
2017-10-29 00:59:42 -07:00
66fd647c3e
Fixed post order issue on thread pages
...
There was a dependency on the DB returning posts in order.
2017-10-26 22:36:02 -07:00
Joshua Merrell
6f38e0e71b
Fix missing GochanServer.ServeErrorPage function after refactor
2017-10-02 15:47:09 -07:00
Josh
b39add0ac0
Merge pull request #4 from xPushkin/master
...
Completely refactored server.go
2017-10-01 11:15:42 -07:00
xPushkin
a7df9cea0a
Completely refactored server.go
2017-09-27 14:11:25 +01:00
Josh
9e69c25c84
Merge pull request #3 from xPushkin/patch-1
...
Update server.go
2017-09-26 16:43:40 -07:00
xPushkin
fe537e3490
Update server.go
2017-09-25 21:29:56 +01:00
xPushkin
ee81dcb07e
Update server.go
2017-09-25 18:07:16 +01:00
xPushkin
977429a612
Update server.go
2017-09-25 18:01:44 +01:00
xPushkin
1d2735f061
Update server.go
2017-09-25 17:58:36 +01:00
Joshua Merrell
56491eb35d
Improve vagrant bootstrapper script, make links from /vagrant to ~/gochan instead of copying
2017-08-31 15:09:38 -07:00
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