Commit graph

284 commits

Author SHA1 Message Date
Jesse Wierzbinski
eb976250a4
fix(api): 🐛 Fix post editing not working with JSON content-type 2024-05-12 19:25:56 -10:00
Jesse Wierzbinski
7f6aeeb859
feat(api): Add secret rudimentary OIDC account linking support 2024-05-12 18:34:35 -10:00
Jesse Wierzbinski
ff43b19122
fix(api): 🐛 Fix OIDC 2024-05-12 18:01:51 -10:00
Jesse Wierzbinski
29d7b09677
fix(api): 🐛 Deleting emojis now removes them from object storage 2024-05-12 16:52:19 -10:00
Jesse Wierzbinski
7846a03bcf
fix(api): 🐛 Fix incorrect content_type when uploading and converting emojis 2024-05-12 16:30:26 -10:00
Jesse Wierzbinski
4f070c9b65
fix(api): 🔒 Replace bad webfinger regex with good one 2024-05-12 16:27:40 -10:00
Jesse Wierzbinski
da2520e60e
feat(api): Add user emoji upload capabilities 2024-05-12 16:09:57 -10:00
Jesse Wierzbinski
980f4c8021
fix(api): 🐛 Forbid uploading emojis with the same shortcode 2024-05-12 15:17:15 -10:00
Jesse Wierzbinski
8e5d68144c
fix(api): 🐛 Fix regression in emoji parsing caused by incorrectly changed regex 2024-05-12 15:07:55 -10:00
Jesse Wierzbinski
c6c92e716f
fix(api): Remove code that checks for missing filenames 2024-05-12 14:35:55 -10:00
Jesse Wierzbinski
303928f960
refactor(api): 🔥 Refactor media uploader code 2024-05-12 14:30:27 -10:00
Jesse Wierzbinski
9566387273
fix(api): 🐛 Fix oauth token endpoint returning an ISO-8601 string instead of a unix timestamp 2024-05-12 14:01:37 -10:00
Jesse Wierzbinski
14d3a243a2
fix(api): 🐛 Add safeguards to emoji upload routes 2024-05-12 13:43:58 -10:00
Jesse Wierzbinski
3f9ec0bc80
feat(api): Add support for urn:ietf:wg:oauth:2.0:oob oauth redirect URI 2024-05-12 12:24:15 -10:00
Jesse Wierzbinski
4713d0f93f
fix(api): 🐛 Add JSON support to every form that doesn't have a file parameter 2024-05-11 15:51:01 -10:00
Jesse Wierzbinski
9f0eab03f2
fix(api): 🐛 Add JSON support to /api/v1/statuses/:id 2024-05-11 15:47:25 -10:00
Jesse Wierzbinski
2cde8d2dd9
test(api): Fix a failing test in CI due to tests assuming we use S3 2024-05-11 15:33:32 -10:00
Jesse Wierzbinski
8fedd1a07d
feat(api): Add new admin emoji API 2024-05-11 15:27:28 -10:00
Jesse Wierzbinski
b979daa39a
feat(api): Allow more HTML tags in Markdown 2024-05-11 15:27:19 -10:00
Jesse Wierzbinski
4ce5dfeae3
fix(api): 🔒 Remove client_secret during oauth consent flow 2024-05-09 15:56:46 -10:00
Jesse Wierzbinski
e48f57a3d8
perf(database): Improve performance when fetching timelines by fetching all data in a single SQL query 2024-05-08 13:19:53 -10:00
Jesse Wierzbinski
26dfd14aaf
test(api): Add tests for account registration endpoint 2024-05-08 12:54:44 -10:00
Jesse Wierzbinski
20629b1712
fix(api): 🐛 oh my god stop breaking 2024-05-08 12:41:27 -10:00
Jesse Wierzbinski
f71c8a50d3
fix(api): 🐛 Fix incorrect zod types in registration 2024-05-08 12:37:28 -10:00
Jesse Wierzbinski
52e29e2dee
Fix megalodon accounts not registering 2024-05-08 12:34:01 -10:00
Jesse Wierzbinski
a9629b825b
fix(api): 🎨 Do wizardry on qs middleware to also work on multipart formData 2024-05-08 01:16:16 -10:00
Jesse Wierzbinski
c7423d7421
fix(api): 🐛 Fix slightly incorrect error message when logging in with wrong credentials 2024-05-08 08:09:22 +00:00
Jesse Wierzbinski
f9c9a7d527
feat(api): 🎨 Allow login with either username or email 2024-05-08 08:02:05 +00:00
Jesse Wierzbinski
7b05a34cce
refactor: 🔥 Remove dead code 2024-05-07 03:13:37 +00:00
Jesse Wierzbinski
ad4466a260
fix(api): 🐛 Fix proxy returning incorrect media due to compression 2024-05-06 17:50:50 +00:00
Jesse Wierzbinski
8557867ad8
fix(api): 🐛 Fix incorrect proxy behaviour 2024-05-06 17:31:12 +00:00
Jesse Wierzbinski
afda1f1211
fix(api): 🐛 Fix incorrect boolean/string comparisons in status creation endpoint 2024-05-06 09:20:23 +00:00
Jesse Wierzbinski
2779b76f44
fix(api): 🐛 Fix various data encoding bugs 2024-05-06 09:14:43 +00:00
Jesse Wierzbinski
e6749d9b72
fix(api): 🔥 Correctly coerce limit to an int in account statuses endpoint 2024-05-06 08:47:26 +00:00
Jesse Wierzbinski
e249b61969
fix(api): 🐛 Add jsonOrForm to /oauth/token 2024-05-06 08:42:58 +00:00
Jesse Wierzbinski
ddab167018
fix(api): 🐛 Fix incorrect OAuth changes 2024-05-06 08:40:26 +00:00
Jesse Wierzbinski
d5076590c6
fix(api): 🐛 Fix incorrect providers being returned by oauth providers endpoint 2024-05-06 08:36:00 +00:00
Jesse Wierzbinski
516bfb72e7
fix(build): 🐛 Add bodyOrJson middleware to server/api/v1/apps 2024-05-06 08:31:12 +00:00
Jesse Wierzbinski
959dd27ad6
refactor(api): 🎨 Finish Hono refactor 2024-05-06 08:19:42 +00:00
Jesse Wierzbinski
826a260e90
refactor(api): ♻️ Move to Hono for HTTP 2024-05-06 07:16:33 +00:00
Jesse Wierzbinski
f006efbfb2
fix(api): 🔥 Remove pleroma attribute on users 2024-05-05 10:55:40 -10:00
Jesse Wierzbinski
5f785c391d
refactor(api): 🎨 Switch to base64url for proxy url encoding instead of plaintext 2024-05-04 21:02:25 -10:00
Jesse Wierzbinski
3be9d1d6ce
fix(api): 🐛 Also wrap instance banner and thumbnail in proxy 2024-05-04 19:22:21 -10:00
Jesse Wierzbinski
550e8977cf
fix(api): 🐛 Fix media proxy having incorrect headers 2024-05-04 19:17:57 -10:00
Jesse Wierzbinski
ead34b818f
feat(api): 🔒 Make all media be proxied through an internal proxy 2024-05-04 19:13:23 -10:00
Jesse Wierzbinski
154f17ab12
refactor(api): 📦 Change sanitizer from DOMPurify to xss 2024-05-02 17:20:24 -10:00
Jesse Wierzbinski
febddc2a8b
feat(api): Reimplement HTML sanitization 2024-05-02 13:25:32 -10:00
Jesse Wierzbinski
76b29aef9a
fix(api): 🐛 Only send code query parameter when doing OAuth redirects 2024-05-01 18:49:33 -10:00
Jesse Wierzbinski
0baa9dd12d
fix(api): 🐛 Fix OAuth login bugs 2024-05-01 18:34:24 -10:00
Jesse Wierzbinski
edf62aa015
fix(api): 🐛 Fix incorrect error being returned when registering goes wrong 2024-04-28 14:15:33 -10:00