1d92cad560
Add file_clean tool for managing S3 files and database references; implement file key extraction and reporting
master
cialloo2025-11-01 08:39:58 +08:00
cef65deb23
Refactor file key extraction in CreatePost and EditPost logic to handle multiple file types; enhance error logging and simplify utility functions
cialloo2025-10-29 08:13:08 +08:00
797638e67a
Remove document file type categorization from getFileType function
cialloo2025-10-29 08:03:45 +08:00
7de60ad0c0
Add archive file key extraction to CreatePost and EditPost logic; enhance file migration handling
cialloo2025-10-27 21:41:23 +08:00
ecd7926452
Refactor UploadPresignedURL logic to categorize file types based on extensions and generate file keys accordingly
cialloo2025-10-26 21:35:48 +08:00
0ae4d1705b
Refactor GetPost and ListPosts logic to use time.Time for timestamps; convert to Unix milliseconds and improve error handling
cialloo2025-10-26 17:44:49 +08:00
116adb7922
Refactor ListPosts logic to use time.Time for createdAt and updatedAt; convert timestamps to Unix milliseconds
cialloo2025-10-26 17:22:40 +08:00
df712e8715
Add tag filtering to ListPosts and enhance ListTags with post count
cialloo2025-10-26 16:00:30 +08:00
a8b2457762
Add hashtag extraction and management in CreatePost and EditPost logic; improve error handling
cialloo2025-10-26 14:31:48 +08:00
57d8286607
Refactor file migration logic in CreatePost and EditPost to remove S3 verification; improve error handling for tmpfiles
cialloo2025-10-26 14:11:10 +08:00
80e9b961b5
Refactor CreatePost and EditPost logic to migrate images from tmpfiles to files; add utility function to extract image keys from content
cialloo2025-10-26 09:38:54 +08:00
183c6e9ece
Remove public read access bucket policy setup from S3 client initialization; improve error handling by logging warnings instead of panicking
cialloo2025-10-26 09:24:18 +08:00
28fb0ca1c8
Refactor S3 client initialization to streamline configuration and add public read policy setup; improve error handling for bucket policy application
cialloo2025-10-26 07:03:35 +08:00
efc20ac1ab
Refactor CreatePost and EditPost logic to handle cover images with transactions; improve error handling and logging
cialloo2025-10-25 21:54:52 +08:00
0e4a7e29a3
Add comments to configuration parameters in blog.yaml for clarity
cialloo2025-10-25 21:41:37 +08:00
3d7a81d70e
Update super admin check to use correct SteamID for authorization
cialloo2025-10-25 20:27:02 +08:00
7c994e6fba
Refactor pagination logic in ListPosts to enhance readability and maintainability
cialloo2025-10-25 14:04:14 +08:00
aaa89bf8b7
Refactor blog post logic to standardize field names and improve error handling; implement pagination for post listing and add tag retrieval functionality.
cialloo2025-10-25 12:21:17 +08:00