Joshua Merrell
4fcb43330f
Add webm support and update jQuery
2018-01-28 15:01:59 -08:00
Joshua Merrell
5a0d4e1ff8
Just in case Canonical desides to change the default SSH username on us again
2018-01-25 17:46:00 -08:00
Joshua Merrell
063c1c4c97
fix Staff menu not showing up because XML errors in manage_header.html
2018-01-24 21:15:01 -08:00
Joshua Merrell
38682162b2
increase max upload size to ~5 MB
2018-01-24 19:43:05 -08:00
Joshua Merrell
ec1a8bac1f
update bootstrapper (since Canonical is dumb and changed the vagrant box username), remove unnecessary warning from getCurrentStaff
2018-01-19 14:04:24 -08:00
Joshua Merrell
2f19791f89
Don't unescape HTML strings (why were they being escaped in the first place??)
2018-01-14 16:43:38 -08:00
Joshua Merrell
8080e41b40
Force favicon to show up
2018-01-14 14:08:36 -08:00
Josh
2027fa1048
Merge pull request #9 from Eggbertx/testing
...
Merge pull request #8 from Eggbertx/master
2018-01-13 12:00:47 -08:00
Josh
9452feb1e7
Merge pull request #8 from Eggbertx/master
...
Update testing branch
2018-01-13 11:51:32 -08:00
Joshua Merrell
0f7e6b2696
use template for board management page instead of several if/else blocks and "html +="
2018-01-10 17:31:54 -08:00
Joshua Merrell
e32ded4907
Cleanup function now removes deleted posts from db
2018-01-09 16:34:27 -08:00
Joshua Merrell
3de5490b21
Manage cookies expire in one month instead of two hours for convenience
2018-01-05 18:35:40 -08:00
Joshua Merrell
e640002591
Move escapeString and escapeQuotes to util.go since they're no longer necessary in sql.go (if they ever were)
2018-01-05 15:15:04 -08:00
Joshua Merrell
1b321c185b
Add MySQL/MariaDB table optimization
2018-01-05 00:04:34 -08:00
97edf4dfe1
Start using bumpThread function
...
Fixes Issue #7 .
Also adjust bumpThread to return any error it encounters to its caller.
Additionally, if bump is false in calls to insertPost, it will not bump the parent thread.
2018-01-01 22:56:28 -08:00
Joshua Merrell
7340a030bf
replace my half-baked tripcode generator with a better one, improve post sanitizing/cookie saving
2017-12-31 00:33:19 -08:00
Joshua Merrell
92a4ff638f
move getCountryCode() to util.go and remove now unnecessary geoip.go
2017-12-28 11:34:26 -08:00
Joshua Merrell
9aedc06232
add favicon and favicon2 in case any weeab-I mean admins might want to use it instead
2017-12-27 19:08:21 -08:00
Joshua Merrell
88aa2dec7b
Clean up some old get*Arr stuff, start switching to camelCase, get ready to update master with new version
2017-12-20 09:48:20 -08:00
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