Commit Graph

292 Commits

Author SHA1 Message Date
perennial e1d38e6f3d renaming in core/user 2024-10-20 01:11:45 +11:00
perennial 292fd774f7 more comment fix 2024-10-20 00:41:34 +11:00
perennial cae7638555 fix inline comment 2024-10-20 00:40:06 +11:00
perennial 822aa3f0e9 Revert "refactor getUserArtworksIDAndSeries"
This reverts commit a835174406.

Breaks pagination; need to redo
2024-10-20 00:39:29 +11:00
perennial 58bce33994 fix strings.Join 2024-10-20 00:29:46 +11:00
perennial 0784ca12ec add inline comment to core/user 2024-10-20 00:19:14 +11:00
perennial 05ce3f0964 fix bad getTags code 2024-10-20 00:11:34 +11:00
perennial 6ae13d11a0 rm duplicate getUserArtworksIDAndSeries call 2024-10-20 00:11:34 +11:00
perennial a835174406 refactor getUserArtworksIDAndSeries 2024-10-20 00:11:34 +11:00
VnPower a6405f3c4b Fix frequent tags when user doesn't have artworks 2024-10-19 19:52:43 +07:00
perennial fd9e7ed703 retrieve everything in fetchUserWorks + differentiate tags per work cat 2024-10-19 23:11:58 +11:00
perennial 6b444e08a2 replace HasID old name and fix typo 2024-10-19 22:59:29 +11:00
perennial 958819ea4f try refactoring core/user again 2024-10-19 22:56:05 +11:00
perennial f770d91a91 use CountInfo struct more in core/user 2024-10-19 21:50:44 +11:00
perennial 77c6acf53f unexport ParseSocial() 2024-10-19 20:40:44 +11:00
perennial da67db0559 move getWorkIDs() 2024-10-19 20:39:37 +11:00
perennial b541c8ce43 split GetUserProfile in core/user 2024-10-19 20:39:04 +11:00
perennial aa5439f369 move GetUserProfile to top 2024-10-19 20:24:05 +11:00
perennial 778b8a8597 dont export random functions in core/user 2024-10-19 20:23:20 +11:00
perennial 74f1109915 rename GetUserWorks() to GetWorkIDs() 2024-10-19 20:20:27 +11:00
perennial ea14f339a6 rename constants in core/user 2024-10-19 20:18:22 +11:00
perennial 4fb1e53278 rename functions in core/user 2024-10-19 20:11:18 +11:00
perennial a175533853 add comments to core/user 2024-10-19 20:07:58 +11:00
perennial dde341193b Revert "core/user refactor (without breakage)"
This reverts commit c3bb5cb837.
2024-10-19 20:02:41 +11:00
perennial c3bb5cb837 core/user refactor (without breakage) 2024-10-19 19:59:59 +11:00
perennial 5eaf26614b return more helpful logging on server error 2024-10-19 19:11:20 +11:00
perennial a4a5100b5b reorganise core/user 2024-10-19 18:31:07 +11:00
perennial c5bd4fe797 bring back some core/user refactor 2024-10-19 18:28:12 +11:00
perennial 3799f68251 bump GetNovelRelatedURL to limit=180 2024-10-18 16:05:00 +11:00
perennial 4486d5020c clean up inline comments 2024-10-18 13:58:03 +11:00
perennial e76f049cff core/user undo refactors
grabbing everything in GetUserArtworksIDAndSeries in one go
isn't that easy due to how idsString is constructed

nightmare function
2024-10-18 00:58:02 +11:00
perennial 0e4a089ab9 reorganise core/user 2024-10-18 00:07:52 +11:00
perennial 602d52051c bump GetArtworkRelatedURL to limit=180 2024-10-17 23:10:41 +11:00
perennial 395f675175 fix ShouldUseCached 2024-10-17 20:54:47 +11:00
perennial b917e8deab check for "no-cache" before serving cache 2024-10-17 20:52:54 +11:00
perennial bd1bc5c605 fix caching 2024-10-17 20:50:13 +11:00
perennial 0952dda06a use strings.HasPrefix for shortTTLPaths 2024-10-17 20:45:58 +11:00
perennial 54dcde38af rework caching functions 2024-10-17 20:45:58 +11:00
perennial f5c6e62e73 core/user: more refactor 2024-10-17 19:38:17 +11:00
perennial f57e2f0305 refactor core/user 2024-10-17 19:27:56 +11:00
perennial 37fa48b9d2 core/index: consolidate functions 2024-10-17 17:16:54 +11:00
perennial 87aba9c0d2 requests.go: consolidate functions 2024-10-17 17:11:18 +11:00
perennial 803f2ccb0e refactor core/index.go 2024-10-17 15:50:00 +11:00
perennial 2e439c2383 user.go: handle both JSON objects and empty arrays correctly 2024-10-17 14:08:54 +11:00
perennial 150c9edda9 edit comments 2024-10-17 13:15:57 +11:00
perennial fd7914bc2d rm unused import 2024-10-17 13:14:47 +11:00
perennial 5fbe2c1ec9 dont i18n panics 2024-10-17 13:13:51 +11:00
perennial 9485a29377 implement excludedCachePaths + reorganise requests.go 2024-10-17 13:05:49 +11:00
perennial 610bb13108 use seeded xxhash for cache keys 2024-10-17 12:50:33 +11:00
perennial 6953282962 refactor requests.go
Probably broke something but retryRequest became too big
in #130 and was unreadable
2024-10-17 02:37:09 +11:00