Commit graph

51 commits

Author SHA1 Message Date
deb574396e Backend: Add force-unfollow action after ban 2023-01-24 18:20:34 +01:00
c0ba5011b5 Fix GetUserFollowers returning wrong user's followers 2023-01-15 15:22:40 +01:00
06b93b6f40 Switch to case-insensitive in db-users:GetUserID 2023-01-12 02:02:51 +01:00
1873db9006 Fix username changing only on frontend 2023-01-12 00:39:11 +01:00
d7f35991df Add case-insensitive check for username equality 2023-01-12 00:24:33 +01:00
3de158e5a5 Improve comments and code readability 2023-01-10 01:21:53 +01:00
f434fcbc72 Add more comments 2022-12-22 18:12:00 +01:00
783e2c044d Move comments regex in helper file 2022-12-22 18:08:25 +01:00
58020420c3 Move username regex check in a helper function 2022-12-22 17:55:36 +01:00
1d11a5ba81 Add regex matching check also when creating a new user 2022-12-22 17:37:01 +01:00
13b2cc066e Remove commented line of code in database 2022-12-22 17:24:44 +01:00
1fc1df577d Revert back db tables check 2022-12-22 17:17:28 +01:00
7543fd36e0 Fix data directory not creating on first run 2022-12-22 16:40:57 +01:00
3bf1c4e262 Add missing spaces between // and the comment 2022-12-13 01:54:48 +01:00
6840c34d7b Add file mime type check & switch usercard errors to modal 2022-12-12 22:53:34 +01:00
e86526761c Add comments under posts and fix user profile 2022-12-12 18:06:56 +01:00
4c4481393d Fix profile view follow & ban status, Add ban status in GET profile API call 2022-12-12 12:37:30 +01:00
00e6b3de7b Fix fmt.Errorf issue in PostPhoto 2022-12-10 02:13:58 +01:00
607fde717d Improve comments in database.go+ 2022-12-10 02:08:05 +01:00
acfa1374ff Add followed & banned status to search result in backend 2022-12-10 01:25:38 +01:00
740aaef0ea Refine user profile and navbar 2022-12-10 01:02:48 +01:00
a2d7eb8d13 Add user profile and search in the frontend, fix PutFollow, DeleteFollow behavior in the backend 2022-12-09 22:32:02 +01:00
c4611b92f8 First webui commit 2022-12-09 03:53:16 +01:00
4fed541bb7 Add SQL rows.Err handling 2022-12-06 22:33:10 +01:00
d20b0029bb Improve GetUserBans error handling & remove useless delcaration in PostSession 2022-12-06 22:25:46 +01:00
3af4ee6c84 Improve error handling 2022-12-06 22:14:12 +01:00
df5b3fdda8 Add Regex matching 2022-11-29 16:07:42 +01:00
758be58b31 PUT username now returns also 409 2022-11-26 15:14:41 +01:00
6b4c9bb531 Fix photo count in getUserProfile 2022-11-23 11:15:52 +01:00
233217beb9 Fixed a lot of bad queries 2022-11-22 23:41:52 +01:00
a3cf4f17f8 Solved some todo(s) 2022-11-22 22:47:17 +01:00
05acfb045f Enforced ban checks 2022-11-22 22:26:05 +01:00
8d999514a5 Handled error for follow_status query in db: GetUserProfile 2022-11-22 22:15:51 +01:00
ebb5c4e6f7 Fix query errors 2022-11-22 22:02:44 +01:00
09adc06e18 Add follow status to GetUserProfile 2022-11-22 17:48:15 +01:00
4f391f0b65 Add GET bans 2022-11-22 16:43:46 +01:00
77e9f405c6 Add start_index & limit to GetFollowersFollowing 2022-11-22 15:27:05 +01:00
c134becb61 Fix inconsistency of the latest commit 2022-11-22 15:21:33 +01:00
963e392cea Add stream search, offset & limit, improved bans 2022-11-22 15:17:08 +01:00
53a764e8bb Add getUserProfile and database.IsBanned 2022-11-21 19:44:50 +01:00
44eb1e1fa6 Add auth error description 2022-11-20 19:53:24 +01:00
038730da3b Fix DELETE like 404 response message 2022-11-20 19:43:52 +01:00
50f412cd33 Fix likes response codes 2022-11-20 19:42:15 +01:00
52ae7992b1 Fix database query typo 2022-11-20 19:36:35 +01:00
abbd5bc494 Add database query status (and improved response), photos, likes, comments, bans 2022-11-20 19:21:56 +01:00
e8047c77a0 Add get followers 2022-11-18 18:58:12 +01:00
7c2c993dc3 Add update username method 2022-11-18 17:18:46 +01:00
626b7fa3e9 identity providers and bearerauth 2022-11-18 13:05:40 +01:00
5f3d4df33a Add database handlers 2022-11-18 10:54:14 +01:00
492c712835 first db support 2022-11-17 16:22:48 +01:00