Commit graph

115 commits

Author SHA1 Message Date
Alex Gleason
aaf01462c1
Update code to use new DittoEvent and DittoFilter. Event -> NostrEvent 2024-01-23 12:07:22 -06:00
Alex Gleason
937ae1eab6
Refactor EventStore to use a more Set-like interface 2024-01-08 15:18:01 -06:00
Alex Gleason
b3e4b79439
Delete db/events.ts, db/memorelay.ts, move to @/storages.ts 2024-01-03 21:56:41 -06:00
Alex Gleason
43359f787b
web.ts -> api.ts 2024-01-01 17:03:32 -06:00
Alex Gleason
57d7f7ff40
Support pinned param in accountStatusesController 2024-01-01 16:30:11 -06:00
Alex Gleason
3807ca175f
Add unblock and unfollow endpoints 2024-01-01 12:50:09 -06:00
Alex Gleason
5b7c3a1d5e
Support GET /api/v1/blocks 2024-01-01 12:44:50 -06:00
Alex Gleason
84eb4cec2e
Add blockController, fix bugs 2023-12-31 23:35:37 -06:00
Alex Gleason
63fb934220
setTag -> addTag 2023-12-31 22:06:35 -06:00
Alex Gleason
8023cfa7b2
Use a cleaner API for updating lists 2023-12-31 22:01:57 -06:00
Alex Gleason
f665c5f825
Remove isFollowing util 2023-12-31 20:31:06 -06:00
Alex Gleason
dc27ee05d4
Create updateListEvent helper function 2023-12-31 20:13:49 -06:00
Alex Gleason
358396fdac
Drop users table 2023-12-29 17:01:23 -06:00
Alex Gleason
e6c8d1dad9
Add an EventStore interface, refactor eventsDB 2023-12-29 13:12:16 -06:00
Alex Gleason
5ed2ecbabd
Remove mixer module 2023-12-29 12:43:59 -06:00
Alex Gleason
ad0aaf97dd
Replace all timeouts with AbortSignal 2023-12-22 10:47:47 -06:00
Alex Gleason
a5369d9826
Ensure relations are loaded throughout the API where needed 2023-12-10 16:21:18 -06:00
Alex Gleason
a6947441fc
renderStatus: don't fetch the author, expect it to be passed in 2023-12-06 12:04:24 -06:00
Alex Gleason
9cd0a9bf22
Stop querying the pool 2023-10-09 13:17:02 -05:00
Alex Gleason
45d42f7ea4
Delete nostr-to-mastoapi.ts, add notifications.ts and relationships.ts 2023-10-06 15:40:34 -05:00
Alex Gleason
d49c63bb1a
Move statuses view into its own file 2023-10-06 15:37:31 -05:00
Alex Gleason
0b77e7d888
Add views/mastodon/accounts.ts, views/mastodon/emojis.ts 2023-10-06 15:28:02 -05:00
Alex Gleason
9ca3ec08a3
Delete transformers directory, rename views 2023-10-06 12:02:24 -05:00
Alex Gleason
62ac9bffa3
accounts: set nip05 during update_credentials 2023-09-11 18:44:44 -05:00
Alex Gleason
93d8e0b22b
accounts: support updating avatar and banner 2023-09-11 18:02:17 -05:00
Alex Gleason
31114b6094
accounts: return a blank account for verify_credentials if it isn't resolved 2023-09-11 09:08:15 -05:00
Alex Gleason
1b2f4d9a54
accounts: return token after registering account 2023-09-11 07:17:00 -05:00
Alex Gleason
82c4f0827e
Make registrations configurable by env 2023-09-10 23:44:30 -05:00
Alex Gleason
052c00821d
Enable registrations, require proof-of-work 2023-09-10 15:07:31 -05:00
Alex Gleason
3fc60c78d2
Add a mediaController for s3 uploads 2023-09-06 17:55:46 -05:00
Alex Gleason
4ff27ddc04
Add /api/v1/favourites 2023-09-01 13:14:27 -05:00
Alex Gleason
9b67d7a7c0
Add followers/following endpoints
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/69
2023-08-30 10:27:45 -05:00
Alex Gleason
ad823e587a
accounts: remove unecessary sort call 2023-08-29 15:29:12 -05:00
Alex Gleason
2ee29bf1e2
Make favourites stick, refactor some async logic in threads 2023-08-29 14:44:59 -05:00
Alex Gleason
4216a7931a
Add paginated helper function, DRY pagination code 2023-08-29 12:55:00 -05:00
Alex Gleason
320d2f493e
change .positive() to .nonnegative() !!! 2023-08-26 23:13:48 -05:00
Alex Gleason
bcfc3e2414
Use createEvent in more places 2023-08-19 22:25:45 -05:00
Alex Gleason
f198779ebe Merge branch 'sync' into 'develop'
Sync the user on verify_credentials

Closes #11

See merge request soapbox-pub/ditto!17
2023-08-19 19:09:09 +00:00
Alex Gleason
23928c0024
Move hono-related functions until utils/web 2023-08-19 14:05:08 -05:00
Alex Gleason
eb4aebedd7
Sync the user on verify_credentials
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/11
2023-08-19 13:57:17 -05:00
Alex Gleason
c08c801e71
Make following work 2023-08-19 13:37:44 -05:00
Alex Gleason
719b703e7c
client: remove publish function, create statuses through pipeline 2023-08-17 20:54:11 -05:00
Alex Gleason
0158a6979e
Publish events through pipeline 2023-08-17 20:45:50 -05:00
Alex Gleason
299a1a0db0
Refactor some code that uses getFilters to import the whole module under a namespace 2023-08-17 15:41:27 -05:00
Alex Gleason
870a6f5261
Add queries module for getting events for certain application needs 2023-08-17 13:12:38 -05:00
Alex Gleason
d4721fb82d
Add mixer module to combine results from DB and pool 2023-08-16 16:12:27 -05:00
Alex Gleason
80775d8bf0
Move more Nostr schema stuff into schemas/nostr.ts 2023-08-12 11:48:11 -05:00
Alex Gleason
e5082ed805
transmogrify --> transformers 2023-07-13 20:47:09 -05:00
Alex Gleason
97e6f1385c
Move transmute into transmogrify directory 2023-07-13 20:23:04 -05:00
Alex Gleason
cc751f03a7
Refactor to use nostrDate() and nostrNow() 2023-07-08 15:04:50 -05:00