5c8c6eed63
feat: add prometheus metrics
2023-04-17 23:44:21 +02:00
b4c331daa0
fix: fix tokens to expire after 3 months and always inherit admin perms from user
2023-04-17 23:43:04 +02:00
94cd4cd6d3
fix(backend): don't count deleted users + unlisted members in meta endpoint
...
This technically leaked the *existence* of these users and members,
but there's never been any way to enumerate users or unlisted members,
so this is unlikely to have *actually* leaked any information. Still,
for consistency's sake, this commit hides them from the user/member
count.
2023-04-17 16:33:05 +02:00
a9463896d4
feat(backend): add cors
2023-04-13 23:33:48 +02:00
893244dc16
fix: fix internal server error in POST /members
2023-04-08 01:25:27 +02:00
62b9c1dbd6
feat(exporter): use indentation, export some new fields
2023-04-08 01:00:37 +02:00
d17b43d2a7
chore: update backend dependencies
2023-04-04 04:11:03 +02:00
691711d542
fix: return u.ListPrivate in PATCH /users/@me response
2023-04-02 23:10:57 +02:00
5bdb25866c
feat: add hidden member list
2023-04-02 23:08:44 +02:00
8433a1523a
feat: count characters consistently
2023-04-02 22:50:22 +02:00
ef9b186e66
feat(backend): add unlisted members, private member list, custom members header
2023-04-01 17:20:59 +02:00
ff75075b81
feat: restrict certain endpoints from API tokens and/or read-only tokens
2023-03-30 16:58:35 +02:00
2716471fa9
feat: add API tokens + force log out button
2023-03-30 16:50:30 +02:00
9c8b6a8f91
feat(!): return 204 instead of useless json responses, add fastFetch
2023-03-30 16:05:40 +02:00
abc78f3a9a
feat(backend): change DELETE /auth/tokens to invalidate *all* tokens
2023-03-30 16:05:10 +02:00
0ce6453bf7
chore: remove lines left over from imagemagick
2023-03-30 15:19:44 +02:00
ab39f64ad5
feat: switch to Go libraries for avatar conversion instead of ImageMagick
2023-03-30 14:44:32 +02:00
c98e4390b1
fix: validate WordStatus correctly, raise field entry length limit to 100
2023-03-30 00:15:21 +02:00
96376516b0
feat(!): use strings for WordStatus enum instead of ints
2023-03-29 23:59:51 +02:00
bca0404b71
fix: fix avatars losing transparency ( closes #39 )
2023-03-29 11:36:20 +02:00
83e38bb320
fix(backend): use correct ID in patch member endpoint
2023-03-27 05:00:16 +02:00
5be0b168c5
feat(frontend): validate username and member name client-side too
2023-03-27 01:23:04 +02:00
d86d4f5540
feat: fix foundkey support ( closes #26 )
2023-03-25 16:14:06 +01:00
75407827bc
feat: better but not perfect misskey auth support
2023-03-25 15:54:09 +01:00
987ff47704
feat: misskey oauth ( fixes #26 )
2023-03-25 03:27:40 +01:00
293f68e88c
feat: add warnings page, add delete user + acknowledge report options
2023-03-23 17:13:23 +01:00
ab77fab0ea
feat: add mod action notice to login page
2023-03-23 15:40:33 +01:00
f02e64fca7
feat: add report button to profiles
2023-03-23 15:20:07 +01:00
a0bc39bcba
feat: backend for warnings, partial frontend for reports
2023-03-23 14:54:43 +01:00
29274287a2
frontend: add reports list
2023-03-23 11:30:47 +01:00
244c13cd84
merge: branch 'main' into reports
2023-03-23 10:50:36 +01:00
9813e1795e
fix: delete current avatar when setting new avatar ( fixes #33 )
2023-03-23 10:07:51 +01:00
77a93fd148
a lil frontend work (as a treat)
2023-03-23 09:30:23 +01:00
9fe6529c1b
feat(backend): add create member report endpoint
2023-03-22 15:53:20 +01:00
3bb97b8274
feat(backend): add create user report endpoint
2023-03-21 17:16:16 +01:00
799d27b58c
feat: add list reports endpoints
2023-03-21 14:27:39 +01:00
76a8b30fe2
Merge branch 'main' into reports
2023-03-20 16:40:47 +01:00
6d32d05d98
feat(backend): add force delete endpoint
2023-03-20 15:04:32 +01:00
33f903b07d
start reports/moderation in backend
2023-03-19 16:14:09 +01:00
41edaee8ea
fix(backend): fix display_name in PATCH /members/{id} not applying
2023-03-19 04:05:11 +01:00
004403895a
fix: require >1 provider for unlink account endpoints ( fixes #29 )
2023-03-18 23:04:50 +01:00
d223cd89e8
fix: validate member name contents
2023-03-18 23:00:44 +01:00
fe0680d587
fix: crop avatars to square
2023-03-18 22:51:54 +01:00
b2bc608ec8
feat: allow unlinking auth providers
2023-03-18 16:54:31 +01:00
8f6e280367
feat: allow linking discord account to existing user
2023-03-18 16:33:12 +01:00
97191933cb
feat: allow linking fediverse account to existing user
2023-03-18 15:19:53 +01:00
d6bb2f7743
fix(backend): return fedi info in /users/@me routes
2023-03-17 14:14:31 +01:00
sam
05919e4ecd
fix(backend): correct paths to export endpoints
2023-03-16 16:49:40 +00:00
cf424d3ae4
feat: sign up/log in with mastodon
2023-03-16 15:50:39 +01:00
f087e9a29f
feat!(backend): move /auth/export to /users/@me/export
2023-03-16 12:49:27 +01:00
17f6ac4d23
feat(backend): start on fediverse auth support
2023-03-16 11:43:25 +01:00
15109819df
feat(backend): add data export
2023-03-15 15:24:51 +01:00
ded9d06e4a
feat: build entire backend into single executable (including migrations etc)
2023-03-15 10:04:48 +01:00
ec6043df30
feat: member edit page
2023-03-14 17:06:35 +01:00
9bfabcc1f1
feat: cancel user deletion
2023-03-14 16:16:07 +01:00
fb8733befa
fix(backend): return 400 error on bad request, not 500
2023-03-14 01:30:46 +01:00
1647ec16a4
feat: add invites page
2023-03-14 00:16:19 +01:00
fb10f29e2b
feat: add clean db script
2023-03-13 23:26:12 +01:00
8d208ff7cd
fix(backend): return JSON when deleting member or user
2023-03-13 17:10:54 +01:00
62b2e3ca0d
feat(backend): add max invites to /users/@me responses, use token ID for DELETE /auth/tokens/{id}
2023-03-13 17:01:36 +01:00
57ed81add3
feat(backend): add delete avatar logic
2023-03-13 02:19:03 +01:00
163e7c3fd6
feat: hashes in avatar file names ( closes #19 )
2023-03-13 02:04:09 +01:00
e36bd247f5
fix(backend): missing return
2023-03-13 01:31:12 +01:00
9309f2f8dc
feat(backend): let frontend bypass ratelimit
2023-03-12 20:32:45 +01:00
c8b5b7e2c2
feat(frontend): working Discord login + signup
2023-03-12 04:25:53 +01:00
0e72097346
feat(backend): always return empty arrays instead of null
2023-03-12 01:31:31 +01:00
b8a7e7443d
feat(backend): use jsonb instead of composite type arrays
2023-03-12 01:31:10 +01:00
75f628c722
fix: make discord login work if no user exists
2023-03-11 16:49:07 +01:00
8c187d0fb3
feat(backend): add /api/v1/meta endpoint
2023-03-08 14:13:04 +01:00
1687f04410
feat(backend): hide soft deleted users in API responses
2023-03-08 14:04:26 +01:00
ff3d612b06
feat(backend): add DELETE /users/@me endpoint
2023-03-08 10:32:18 +01:00
11363d6769
feat(frontend): make field entries sortable
2023-03-05 04:18:35 +01:00
b41ca0b753
fix(backend): fix sql errors in CreateUser and User.UpdateFromDiscord
2023-02-25 22:16:22 +01:00
b92ced7d1a
fix(backend): add default limiter to rate limiter
2023-02-25 21:41:51 +01:00
c95285e26b
feat(backend): separate rate limits into buckets
2023-02-24 15:53:35 +01:00
d6017f1edf
feat: read/write improved names/pronouns for users, read/write improved fields/names/pronouns for members
2023-01-31 00:50:17 +01:00
c6537c920d
feat: read/write improved fields for users, read improved names/pronouns for users
2023-01-14 17:33:18 +01:00
7669595586
feat!: wip pronoun entry rework
2023-01-04 22:41:29 +01:00
e5723360a7
feat: add token IDs, store tokens in db for early invalidation
2023-01-01 00:34:38 +01:00
58c1c1794e
fix(backend): optionally support "Bearer " prefix in auth header
2022-12-23 01:44:56 +01:00
c7f486ca21
feat(backend): allow changing username in PATCH /users/@me
2022-12-23 01:31:43 +01:00
d3eaaaaa9d
feat: serve media on /media/, not separate domain
2022-12-22 15:42:43 +01:00
d58208f5ac
fix(backend): don't crash if redis isn't set, use tx in CreateMember
2022-11-24 13:41:36 +01:00
3b64ba33f6
feat(backend): add DELETE /members/{id}
2022-11-23 15:26:57 +01:00
69e5082e89
feat(backend): PATCH /members/{id} route
2022-11-21 17:01:51 +01:00
8ab4c2a91b
fix(backend): return members in /users/{userRef}
2022-11-21 02:38:08 +01:00
2be1c9550b
feat(api)!: rename User.username to User.name in json
2022-11-21 01:24:23 +01:00
17cc57a31d
feat(api): sort members in sql
2022-11-20 21:26:19 +01:00
73c5c9fc67
feat(api): add display_name to member
2022-11-20 21:09:29 +01:00
459e525415
feat: make avatars bigger + higher quality
2022-11-20 14:34:25 +01:00
8df95a78ef
fix: remove debug fmt.Printlns
2022-11-20 14:33:44 +01:00
b9101e260b
feat(api): allow not having a redis connection for development
2022-11-20 03:44:20 +01:00
552505fa53
fix(backend): actually resize avatars on upload
2022-11-20 01:54:47 +01:00
6237ea940f
feat: add invites to backend
2022-11-18 15:27:52 +01:00
1080d8a0cd
fix: save discord ID in db, add HTTP status to new error codes
2022-11-18 02:26:40 +01:00
9a3c51459b
feat: get signup via discord working
2022-11-18 02:17:27 +01:00
Sam
773f20d135
feat(api): add POST /members
2022-10-03 10:59:30 +02:00
Sam
85a061ebc5
feat(backend): remove avatar_source field, change avatar_urls on member
2022-09-20 14:12:29 +02:00
Sam
5679dbb657
feat(backend): working avatar uploading
2022-09-20 13:02:48 +02:00
Sam
b48fc74042
feat(backend): some member routes, half-broken avatar uploading
2022-09-20 12:55:00 +02:00