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

339 commits

Author SHA1 Message Date
Eggbertx
f37dbbc840 Rename threads column spoilered to is_spoilered for consistency 2025-04-16 16:57:44 -07:00
Eggbertx
3dc45fef53 Add spoilered column and migration, update tests in gctemplates to use goquery to not have to test against really big strings 2025-04-13 01:18:55 -07:00
Eggbertx
052a75da28 Update database provision testing strings 2025-04-12 14:54:56 -07:00
Eggbertx
556de0d4ac Show secure tripcodes 2025-04-06 16:07:37 -07:00
Eggbertx
4c0ce122ad Add is_secure_tripcode column to posts and update gochan-migration to add it 2025-04-06 15:08:46 -07:00
Eggbertx
7690bad025 Exclude embed entries from the list of thread files retrieved 2025-04-05 22:00:09 -07:00
Eggbertx
7368fca829 Remove unused intPtrToBoardDir template function 2025-03-31 22:04:17 -07:00
Eggbertx
a47e03def4 Add text formatting classes and update report handling logic to dismissing in bulk 2025-03-28 21:55:15 -07:00
Eggbertx
4aab676c67 Improve request validation and logging, implement cleanup for reports of deleted posts. 2025-03-28 17:34:00 -07:00
Eggbertx
faf1457c36 Remove mostly unused Verbose config field, add LogLevel 2025-03-25 21:55:21 -07:00
Eggbertx
309c8cede9 Add more testing stuff, start splitting up embed matching and rendering 2025-03-15 21:33:25 -07:00
Eggbertx
82099a76a7 Use CookieMaxAge when making a post 2025-03-03 20:58:05 -08:00
Eggbertx
c5aa7a438d Merge branch 'master' into staff-rank-update 2025-02-24 17:28:09 -08:00
deepsource-autofix[bot]
c842ca53f5
refactor: unused parameter should be replaced by underscore
Unused parameters in functions or methods should be replaced with `_`
(underscore) or removed.
2025-02-19 03:57:55 +00:00
Eggbertx
d5ac9bff11 Refactor, replace use of interface{} with any, fix register_handler args not being usd 2025-02-09 15:54:33 -08:00
Eggbertx
30c1c1c037 Rename all preload.go to lua.go and preload_test.go to lua_test.go 2025-02-09 12:47:37 -08:00
Eggbertx
7ceda2b218 Fully refactor all (or at least most) uses of ExecSQL, QuerySQL, and QueryRowSQL, QueryContextSQL, etc with their replacement functions 2025-02-05 23:32:12 -08:00
Eggbertx
10e0da4492 Add future-proof functions using struct for context, tx, etc 2025-02-05 17:32:10 -08:00
Eggbertx
a38a519e4e Fix database locked error in announcement migration 2025-02-02 15:35:57 -08:00
Eggbertx
9298aa42c3 Return error if section doesn't exist while updating 2025-02-02 15:07:47 -08:00
Eggbertx
09c059edd2 Change naming convention from cyclical to cyclic, as the latter is more acurate 2025-01-19 11:58:18 -08:00
Eggbertx
2af46eb9be Add some post tests 2025-01-12 21:30:23 -08:00
Eggbertx
17fa8470c4 Check if cyclical threads are enabled 2025-01-12 16:33:43 -08:00
Eggbertx
0b175ef2e5 Fully implement cyclical threads 2025-01-12 16:26:49 -08:00
Eggbertx
d0241f3a09 Prune posts in cyclical threads 2025-01-12 14:52:06 -08:00
Eggbertx
b966604d1d Avoid using Select * in SQL queries, normalize some view columns 2025-01-12 14:01:36 -08:00
Eggbertx
74d8136f26 Re-add upload.PostID and upload.FileOrder assignment 2025-01-11 14:39:21 -08:00
Eggbertx
442319e77a Use fmt.Errorf and %w for unwrappable errors 2025-01-10 17:33:19 -08:00
Eggbertx
3faec688cc Make function for registering components and Post.NextFileOrder public 2025-01-05 13:57:44 -08:00
Eggbertx
9ca424f4da Ad test for pre2021 ban migration and start adding implementation 2025-01-03 23:21:16 -08:00
Eggbertx
ee0b91059f Add pre-2021 post upload migration 2025-01-03 22:01:16 -08:00
Eggbertx
95460e91d6 Add thread post migration for pre2021 2025-01-02 23:15:23 -08:00
Eggbertx
0dcffa06df Make createThread function public 2025-01-02 21:31:41 -08:00
Eggbertx
0d0aca83af Add gcsql.GetSectionFromName and start overhaul of pre2021 migration 2024-12-31 15:36:20 -08:00
Eggbertx
75d5b32cdc Start working on making it possible to migrate old imageboard DB in place 2024-12-29 17:49:05 -08:00
Eggbertx
564fa19d17 Start adding stuff to update staff rank 2024-12-19 15:08:49 -08:00
Eggbertx
478e8a1abe Add rank updating for admins 2024-12-14 22:17:45 -08:00
Eggbertx
7c417e6b7c Fix bug with videos getting tripped by the image fingerprint matcher 2024-11-23 11:19:47 -08:00
Eggbertx
f593f70bad Return all post IDs in v_top_post_board_dir 2024-11-21 10:35:54 -08:00
Eggbertx
98a279d039 Add docker compose file for sqlite3 DB 2024-11-07 12:11:47 -08:00
Eggbertx
e7ddcf1418 Remove old pre-view column reference and comment unused function 2024-10-20 01:13:23 -07:00
Eggbertx
658ee0f41d Fix some issues with views (not getting the expected data, columns not matching, etc) 2024-10-20 01:01:13 -07:00
Eggbertx
7a3130635a Reset views on gochan startup 2024-10-18 13:05:37 -07:00
Eggbertx
c7fa173d3a Add more views 2024-10-17 12:36:26 -07:00
Eggbertx
1f7e75417e Update versions for v4 release 2024-10-13 23:18:29 -07:00
Eggbertx
7eabd5bfd8 Split filter migration back into their own methods and separate transactions 2024-10-13 21:47:12 -07:00
Eggbertx
8d98bc39df Move filter migration out of common 2024-10-13 20:30:38 -07:00
Eggbertx
eb06047055 Use more context/timeout queries in gochan-migrate, start using zerolog 2024-10-13 13:43:08 -07:00
Eggbertx
605972bd86 Properly handle multiple gochan databases in MySQL/Postgres, use wrapper for "Get posts with this IP" JSON request 2024-09-20 23:13:44 -07:00
Eggbertx
52adfc0847 Move some building.Post fields to gcsql.Post to reduce reusage 2024-09-20 15:47:21 -07:00