Mohammad Mahdi mahdium
mahdium pushed to main at mahdium/CatsOfMastodonGo 2025-05-17 18:58:26 +02:00
81adfa1ad9 Refactor JWT auth and remove DB dependency from config
mahdium pushed to main at mahdium/CatsOfMastodonGo 2025-05-17 18:42:04 +02:00
f9d896bf72 Remove AppContext struct and update JWT secret validation error message
7b601e75ba Refactor app structure: move models to domain, centralize config and database init - TODO: add jwt
ab9254fcad Starting to improve the project structure
Compare 3 commits »
mahdium pushed to main at mahdium/CatsOfMastodonGo 2025-05-16 14:50:46 +02:00
cb5149b7bc Switch from cookie to Bearer token auth and add CORS support - Semi finished
2e4b97e4bc Implement admin media approval endpoints and add JWT role-based auth - NOT TESTED
1abc05ecd9 Add JWT authentication for admin dashboard login
Compare 3 commits »
mahdium pushed to main at mahdium/CatsOfMastodonGo 2025-05-15 20:04:15 +02:00
855c778654 Trying to add jwt shit but failing cause im tired
mahdium pushed to main at mahdium/CatsOfMastodonGo 2025-05-15 18:55:40 +02:00
49b38470cf Remove user authentication and switch to simple admin password check (It wont have more than one admin user so no need for registeration (I LOVE .Net/C# btw))
mahdium pushed to main at mahdium/CatsOfMastodonGo 2025-05-15 10:54:55 +02:00
d646515776 Implement user login with password hash verification and username lookup
mahdium pushed to main at mahdium/CatsOfMastodonGo 2025-05-15 10:40:26 +02:00
b3fae6b80c Add user registration with password hashing and restructure handlers directory
mahdium pushed to main at mahdium/CatsOfMastodonGo 2025-05-14 20:04:23 +02:00
7aa8c26da9 Remove HTML template and simplify API response with static home page
mahdium pushed to main at mahdium/CatsOfMastodonGo 2025-05-14 19:38:19 +02:00
aded00daf1 Increase post fetch interval and add initial fetch on startup
mahdium pushed to main at mahdium/CatsOfMastodonGo 2025-05-14 19:10:15 +02:00
3007b41f0d Add HTML template and implement homepage with random cat posts
mahdium pushed to main at mahdium/CatsOfMastodonGo 2025-05-14 18:45:01 +02:00
ac86f8d2f0 Update JSON tags for Approved and Rejected fields in MediaAttachment model
mahdium pushed to main at mahdium/CatsOfMastodonGo 2025-05-14 18:41:32 +02:00
b30f0d2726 Add API endpoint for random post with preloaded relationships
mahdium pushed to main at mahdium/CatsOfMastodonGo 2025-05-14 18:33:21 +02:00
943925c3e9 Refactor handlers into separate packages and implement dependency injection.
mahdium pushed to main at mahdium/CatsOfMastodonGo 2025-05-14 13:26:35 +02:00
02461d0bb0 Improve logging format and clarity for post/account insertion stats
8c7cfbd956 Replace fatal error handling with proper error propagation and logging
Compare 2 commits »
mahdium pushed to main at mahdium/CatsOfMastodonGo 2025-05-13 21:36:57 +02:00
a9dc376409 Add Rejected field to MediaAttachment model
mahdium pushed to main at mahdium/CatsOfMastodonGo 2025-05-13 21:29:03 +02:00
61a48c1cf4 Add random post selection
f9ec882cd9 Add periodic post fetching and update default Mastodon instance to mstdn.party
Compare 2 commits »
mahdium renamed repository from cats-of-mastodon to mahdium/CatsOfMastodon 2025-05-13 20:14:42 +02:00
mahdium renamed repository from cats-of-mastodon-telegram-bot to mahdium/CatsOfMastodon 2025-05-13 20:14:35 +02:00
mahdium pushed to main at mahdium/CatsOfMastodonGo 2025-05-13 16:02:37 +02:00
117fe3dd34 Refactor app context setup and move API fetch logic to PostService
mahdium pushed to main at mahdium/CatsOfMastodonGo 2025-05-13 15:16:25 +02:00
99e385889a Add database and post service to app contexts
a405289b33 Refactor db operations into PostService and add OnConflict for account inserts
Compare 2 commits »