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

872 commits

Author SHA1 Message Date
comraderat
2513171132 Finish refactoring server.go 2020-04-19 22:26:35 +02:00
comraderat
598d07052d Make FK to post in ban nullable 2020-04-19 21:50:43 +02:00
comraderat
a94d2129d9 Finish refactor posting.go 2020-04-19 21:48:05 +02:00
comraderat
6163077e9c Finish Refactoring manage.go 2020-04-19 21:06:57 +02:00
comraderat
16e31891f3 Refactored some more 2020-04-16 17:15:18 +02:00
comraderat
58a0d5364e Add is_thread_ban to database 2020-04-14 18:48:24 +02:00
comraderat
2b834d3a01 Refactored some queries out of manage.go 2020-04-13 20:56:17 +02:00
comraderat
f7f0927ba2 Finished moving all SQL out of building.go 2020-04-13 17:53:47 +02:00
comraderat
c45e6f6350 Move recent post get to sql query file, fix errors 2020-04-13 17:37:22 +02:00
comraderat
7e3465ef2f Add file width and height, fix erd 2020-04-13 16:39:28 +02:00
comraderat
fbc3136ded Add notes for database migration 2020-04-13 16:34:38 +02:00
comraderat
8ea3bea7ed Refactored getPostArr into seperate functions
These functions dont expose/require knowledge of implementation details
(and as such obey the rules of "good code")
They are also easier to refactor later on.
2020-04-13 16:31:36 +02:00
comraderat
76e6a3e37f Fix order error 2020-04-13 15:01:13 +02:00
comraderat
89e299da78 Refactored first sql command.
kill me
2020-04-12 21:31:40 +02:00
comraderat
a51c8e049c Add dbprefix 2020-04-12 16:15:11 +02:00
comraderat
7665b78aff Move build sql to devtools, fix capitalisation 2020-04-12 16:10:30 +02:00
comraderat
82a902ebba Fixed ERD
Added "expires at" to ip ban audit.
2020-04-11 18:04:19 +02:00
comraderat
6351fe1bd8 Made master sql template + builder
SQL all follows one master sql files with the use of queries.
2020-04-11 18:02:55 +02:00
comraderat
2be7e772d5 Added is_top_post to posts & add indexes
Added is_top_post to posts because you cannot have mutually dependent
entries (original plan was to have thread point to its own top post to
avoid costly constant sort operations).

Indexed posts.is_top_post and threads.is_deleted
2020-04-10 16:54:18 +02:00
comraderat
5b58adf8c6 Changed postgresql population script to new database 2020-04-10 16:15:07 +02:00
5ad1c06646 Fixed posting to a board with a non-contiguous board id 2020-04-08 03:18:14 -07:00
Eggbertx
1c489cf08c re-add closeHandle to avoid trying to run Close on potentially nil pointers
Move bbcompiler to struct to prevent issues with garbage collection
2020-04-04 23:06:29 -07:00
Eggbertx
4eb3ae1546
Merge pull request #22 from gochan-org/docker-image
Docker image
2020-04-04 21:54:03 -07:00
DeepSource Bot
ada7c619b0 Add .deepsource.toml 2020-04-04 21:59:26 +00:00
Eggbertx
0899129066
Merge pull request #21 from nonmakina/nm/updateDocker
Nm/update docker
2020-04-02 21:58:52 -07:00
Anon
452be17b91 Remove unused code 2020-04-02 21:59:22 -06:00
Anon
2c45186e52 Fixes Docker. Adds docker-compose to run a container with mariadb 2020-04-02 21:56:29 -06:00
Eggbertx
522d217ae8
Merge pull request #20 from comraderat/master
Fixes and debug mode
2020-04-02 10:04:08 -07:00
comraderat
65dd400dc4 Added print all logs to console in debug mode 2020-04-02 13:28:28 +02:00
comraderat
5273ad160a Added vscode launch profile
Updated gitignore
2020-04-02 00:45:36 +02:00
comraderat
6b86154ec1 Add debug mode flag to config 2020-04-02 00:44:54 +02:00
comraderat
d81d73b805 Fixed error of wrong amount of arguments for sections insert main SQL query 2020-04-02 00:42:59 +02:00
comraderat
6526a1ae06 Fixed postgresql database initialise bug 2020-04-02 00:42:16 +02:00
comraderat
e3419f8e3b Fixed postgresql ssl error 2020-04-02 00:41:54 +02:00
Eggbertx
334895e650 Prevent Makefile from unintentionally deleting configuration (oops) 2020-03-31 14:36:30 -07:00
Eggbertx
42e982581a Make gochan stripping properly cross platform 2020-03-31 13:35:33 -07:00
Eggbertx
cf7cfa9d4b Remove unnecessary template functions
Also don't fail if strip fails (for example if it's an incompatible binary format)
Also also use proper switch fallthrough
2020-03-30 09:14:43 -07:00
Eggbertx
0bcd93379b Only strip debugging symbols for releases 2020-03-27 17:42:53 -07:00
Eggbertx
5986d572bb Remove thread pagination, make logger write to requested log 2020-03-26 12:09:10 -07:00
Eggbertx
598d5ba99a Add PowerShell script for building from Windows 2020-03-24 17:40:08 -07:00
Eggbertx
d8c8cabd4c Remove old manage.js reference, fix dropdown menu color 2020-03-23 17:01:04 -07:00
Eggbertx
2cf1a3c2ce Looks like I forgot to properly initialize the logger. 2020-03-23 16:37:26 -07:00
Eggbertx
7b5e4e7abe Make logs more consistent
Use GcLogger class for writing to multiple logs in one call as needed
2020-03-23 10:55:23 -07:00
Eggbertx
3dc55bcf78 Create main section on startup if the sections table is empty 2020-03-21 11:20:34 -07:00
Eggbertx
a3174936dc Fix lightbox dropdown box color and section title radius in Pipes 2020-03-21 09:36:10 -07:00
Eggbertx
758a87a38d remove 'tag' from marshalJSON parameter list 2020-03-20 12:00:58 -07:00
Eggbertx
13fffdb4c9 Replace that clunky build.sh with a slightly less clunky Makefile 2020-03-20 11:04:39 -07:00
Eggbertx
48aaad4e6d Add Dark theme based on Lynxchan/Bunkerchan's Dark theme 2020-03-19 13:56:21 -07:00
Eggbertx
a85b0f8f83 Remove old domain from DomainRegex since it's no longer used
Also make the build.sh install message
2020-03-14 11:34:44 -07:00
Eggbertx
a40b2dee0f Move password field filter remover to global.css 2020-03-09 13:26:46 -07:00