Commit graph

155 commits

Author SHA1 Message Date
Jesse Wierzbinski 3c3814a3c1
fix(api): 🐛 Fix favourited attribute not being correct on serialized API notes 2024-05-08 11:51:47 -10:00
Jesse Wierzbinski 7b05a34cce
refactor: 🔥 Remove dead code 2024-05-07 03:13:37 +00:00
Jesse Wierzbinski 826a260e90
refactor(api): ♻️ Move to Hono for HTTP 2024-05-06 07:16:33 +00: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 9e9998ea82
refactor(api): 🎨 Move createLocalUser to a static method of User 2024-04-24 17:48:39 -10:00
Jesse Wierzbinski 9d70778abd
refactor(api): 🎨 Move User methods into their own class similar to Note 2024-04-24 17:40:27 -10:00
Jesse Wierzbinski abc8f1ae16
refactor(api): 🎨 Improve Markdown parsing with markdown-it instead of marked 2024-04-22 11:02:09 -10:00
Jesse Wierzbinski 5cb48b2f3b
feat(api): Make Lysand a full OAuth2/OpenID Connect provider as well as still Mastodon compatible 2024-04-17 22:42:12 -10:00
Jesse Wierzbinski 88b3ec7b43
refactor(database): 🎨 Update database and schema names to be clearer 2024-04-16 20:36:01 -10:00
Jesse Wierzbinski 9081036c6d
refactor(database): 🎨 Refactor note handling into its own class instead of separate functions 2024-04-16 18:09:21 -10:00
Jesse Wierzbinski d441fca1a1
fix(federation): 🐛 Fix wrong URI being generated in federated posts 2024-04-16 11:20:18 -10:00
Jesse Wierzbinski 47040ad273
feat(federation): Allow objects to be fetched via their ID 2024-04-16 11:18:47 -10:00
Jesse Wierzbinski 0ca8000186
feat(api): Add dismiss, id and clear API endpoints for notifications 2024-04-15 20:00:40 -10:00
Jesse Wierzbinski 47133ac3fe
feat(api): Add notifications for follow requests again and mentions 2024-04-15 19:40:35 -10:00
Jesse Wierzbinski 06bcbbe451
fix(api): 🐛 Fix statuses not saving the user's applicationId 2024-04-15 16:09:16 -10:00
Jesse Wierzbinski 937b2c3cde
refactor: 🎨 Remove useless function parameter (status.instanceId doesnt exist anymore) 2024-04-15 14:41:33 -10:00
Jesse Wierzbinski 1aacf7d743
feat(api): 🐛 Provide non-static avatar and header URL for users when a static version does not exist 2024-04-14 21:59:40 -10:00
Jesse Wierzbinski 95a79a4585
fix(api): 🐛 Make thumbnail url for attachments default to attachment url 2024-04-14 20:35:53 -10:00
Jesse Wierzbinski e67dc07473
Fix errors flagged by Biome 2024-04-14 01:22:47 -10:00
Jesse Wierzbinski ab6fe6988c
Refactor debugging and logging more 2024-04-14 01:20:55 -10:00
Jesse Wierzbinski 82c6dc17a8
Update Mastodon API types 2024-04-14 00:53:21 -10:00
Jesse Wierzbinski 0b1c1ba128
Switch all routes to use Zod for strict validation 2024-04-14 00:36:25 -10:00
Jesse Wierzbinski bc296194b6
Replaces regexes with magic-regexp, simplify code 2024-04-13 17:49:32 -10:00
Jesse Wierzbinski 0ca77e9dcc
Clean up database with new schema 2024-04-13 15:21:38 -10:00
Jesse Wierzbinski a65249b79d
Remove Prisma once and for all 2024-04-13 14:46:33 -10:00
Jesse Wierzbinski ad0bf1a350
More work on converting old Prisma calls to Drizzle 2024-04-13 02:20:12 -10:00
Jesse Wierzbinski 66922faa51
Fix error caused by no emojis on a federated post 2024-04-11 18:31:51 -10:00
Jesse Wierzbinski 0af63dda3c
fix: Null value being set in updatedAt column when creating user 2024-04-11 18:23:36 -10:00
Jesse Wierzbinski 2b02cfa00a
Don't display full host in mentions if user is local 2024-04-11 15:52:09 -10:00
Jesse Wierzbinski a1b251dfdf
Bugfix quote posts with mentions not working 2024-04-11 13:55:58 -10:00
Jesse Wierzbinski 310f8d2739
Mom, I'm debugging in production again! 2024-04-11 13:43:31 -10:00
Jesse Wierzbinski 3ccff003f5
Add more tests, fix roiutes 2024-04-11 13:12:23 -10:00
Jesse Wierzbinski 6b3c604c33
Add new tests to server routes 2024-04-11 03:52:44 -10:00
Jesse Wierzbinski df939a6a7a
Fix not working routes 2024-04-11 02:12:16 -10:00
Jesse Wierzbinski f7abe06a60
Begin moving project to use Drizzle instead of prisma 2024-04-11 01:39:07 -10:00
Jesse Wierzbinski dcdee7e4bf
Fix emoji parsing in the remote emoji fetcher 2024-04-10 16:13:09 -10:00
Jesse Wierzbinski 275244b941
Resolve custom emojis from federated posts 2024-04-10 15:40:43 -10:00
Jesse Wierzbinski ec7b5dcbab
Add fetching of attachments when fetching a remote post 2024-04-10 15:31:33 -10:00
Jesse Wierzbinski 5024eee5db
Safeguard for local users 2024-04-10 12:47:44 -10:00
Jesse Wierzbinski b076d61d36
Add automatic WebFinger resolution for users that are not found in mentions 2024-04-10 12:47:02 -10:00
Jesse Wierzbinski 742913a911
Don't replace text mentions twice 2024-04-10 12:41:06 -10:00
Jesse Wierzbinski fde0ff509e
Fixes for mentions being wrong 2024-04-10 12:21:42 -10:00
Jesse Wierzbinski 63f046d281
one last fix please 2024-04-09 23:47:11 -10:00
Jesse Wierzbinski 607711c8b4
Other fix 2024-04-09 23:41:29 -10:00
Jesse Wierzbinski d444f53286
Last fix for today 2024-04-09 23:38:48 -10:00
Jesse Wierzbinski 1c8847ac6d
Few bugfixes 2024-04-09 23:33:21 -10:00
Jesse Wierzbinski 38a6f9a809
Add resolving of threads, mentions and quote posts 2024-04-09 22:37:58 -10:00
Jesse Wierzbinski cf295a596a
Add ability to accept and reject remote follows if account is locked 2024-04-09 22:07:03 -10:00
Jesse Wierzbinski f72671fb07
Folreq fix 2024-04-09 21:54:15 -10:00