Commit Graph

1264 Commits

Author SHA1 Message Date
Alex Gleason c8a5da086e
sign: ensure the NIP-46 result matches the template 2023-09-02 20:09:28 -05:00
Alex Gleason 007565b513
eventSchema: ensure the event ID matches its hash 2023-09-02 19:40:28 -05:00
Alex Gleason 7595dfa2e5
auth98: make requireProof obtain the event over NIP-46 2023-09-02 19:33:13 -05:00
Alex Gleason c8d6389132
sign: refactor the unnecessarily complex awaitSignedEvent function 2023-09-02 18:56:42 -05:00
Alex Gleason 61f5acc937
nip98: add a dedicated nip98 module, refactor auth98.ts 2023-09-02 18:32:01 -05:00
Alex Gleason 4c41ce8c0a
@/nip05.ts --> @/utils/nip05.ts 2023-09-02 13:43:01 -05:00
Alex Gleason 6ef997fbd9
Merge branch 'favourites' into 'develop'
Add /api/v1/favourites

Closes #64

See merge request soapbox-pub/ditto!32
2023-09-01 18:17:02 +00:00
Alex Gleason 4ff27ddc04
Add /api/v1/favourites 2023-09-01 13:14:27 -05:00
Alex Gleason 7c2de9b2cf Merge branch 'unfurl-timeout' into 'develop'
Fix unfurl timeout

See merge request soapbox-pub/ditto!31
2023-08-31 02:43:11 +00:00
Alex Gleason 54481ab96b
Fix unfurl timeout 2023-08-30 21:40:52 -05:00
Alex Gleason 305c5035a2 Merge branch 'fts' into 'develop'
Add full-text search with SQLite FTS5

Closes #61 and #60

See merge request soapbox-pub/ditto!30
2023-08-30 22:32:44 +00:00
Alex Gleason b9fc663db4
Switch to my fork of deno-sqlite with FTS support 2023-08-30 17:29:45 -05:00
Alex Gleason 3cd6b6f3f3
db/events: index profiles in search 2023-08-30 17:09:44 -05:00
Alex Gleason e976f51d55
schemas/nostr: add `search` key to filters 2023-08-30 16:19:21 -05:00
Alex Gleason af76d8cbae
Bump kysely-deno-sqlite to v1.0.1, remove `as any` from database type 2023-08-30 16:12:39 -05:00
Alex Gleason b7b5e67118
search: refactor/cleanup searchController 2023-08-30 15:40:18 -05:00
Alex Gleason 080cfe817b
search: support account_id query param 2023-08-30 15:31:07 -05:00
Alex Gleason 799a9c1e9a
search: support searching by account_id 2023-08-30 15:22:39 -05:00
Alex Gleason 8079679f18
search: support MastoAPI params, improve performance, improve value lookup 2023-08-30 15:02:28 -05:00
Alex Gleason 675010ddec
search: fix FTS special characters, optimize search 2023-08-30 14:03:16 -05:00
Alex Gleason df14ff66bc
search: search use FTS to search for statuses 2023-08-30 12:16:04 -05:00
Alex Gleason 5e9a3dd8d1
db/events: only index kind 1 events in search 2023-08-30 12:07:49 -05:00
Alex Gleason 02e1a4ce58
db/events: support "search" filter 2023-08-30 12:04:45 -05:00
Alex Gleason 0c83e759f3 Merge branch 'follows' into 'develop'
Implement followers/following endpoints and account counters

Closes #69 and #68

See merge request soapbox-pub/ditto!29
2023-08-30 16:26:52 +00: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 728f0bd657
accounts: followers/following & status counts
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/68
2023-08-30 09:50:51 -05:00
Alex Gleason 62ea00dc6a Merge branch 'favourited-by' into 'develop'
Add favourited_by and reblogged_by controllers

See merge request soapbox-pub/ditto!28
2023-08-29 23:09:47 +00:00
Alex Gleason b27b84e3fb
Add favourited_by and reblogged_by controllers 2023-08-29 18:08:00 -05:00
Alex Gleason 9b761ff960
firehose: apparently the `since` filter is essential 2023-08-29 16:40:23 -05:00
Alex Gleason 5a5604b6d2 Merge branch 'counters' into 'develop'
Make status counters work

See merge request soapbox-pub/ditto!27
2023-08-29 20:32:11 +00:00
Alex Gleason ad823e587a
accounts: remove unecessary sort call 2023-08-29 15:29:12 -05:00
Alex Gleason d01dbcbfee
relay: add support for NIP-45 COUNT 2023-08-29 15:24:07 -05:00
Alex Gleason fc1ed59002
firehose: use `limit: 0` instead of `since` 2023-08-29 14:53:12 -05:00
Alex Gleason 9d714b6173
Pass viewerPubkey to toStatus in more places 2023-08-29 14:48:28 -05:00
Alex Gleason 2ee29bf1e2
Make favourites stick, refactor some async logic in threads 2023-08-29 14:44:59 -05:00
Alex Gleason d4612d5f21
toStatus: make status counters work (local db only) 2023-08-29 14:13:41 -05:00
Alex Gleason 07ccc1934a Merge branch 'cleanup' into 'develop'
Cleanup

See merge request soapbox-pub/ditto!26
2023-08-29 18:47:06 +00:00
Alex Gleason 95761e2eef
schema: add comments 2023-08-29 13:28:16 -05:00
Alex Gleason 2841d4f399
queries: remove unused import 2023-08-29 13:25:58 -05:00
Alex Gleason 77b09baa8c
db/events: don't throw on duplicate events 2023-08-29 13:20:21 -05:00
Alex Gleason ebd933126a
webfinger: fix import order 2023-08-29 13:14:03 -05:00
Alex Gleason d21ec6d241
apps: use AppController type 2023-08-29 13:04:38 -05:00
Alex Gleason 4d211d637e
timelines: add DRY renderStatuses function 2023-08-29 13:01:47 -05:00
Alex Gleason 4216a7931a
Add `paginated` helper function, DRY pagination code 2023-08-29 12:55:00 -05:00
Alex Gleason ce4a330812
Rename timeline controllers, homeController --> homeTimelineController, etc 2023-08-29 12:41:14 -05:00
Alex Gleason b6da5a0339 Merge branch 'tag-timeline' into 'develop'
Add hashtag timeline

See merge request soapbox-pub/ditto!25
2023-08-29 00:53:08 +00:00
Alex Gleason ccb8c534ca
Add hashtag timeline 2023-08-28 19:51:21 -05:00
Alex Gleason d8b7608346 Merge branch 'notifications' into 'develop'
Notifications first pass

See merge request soapbox-pub/ditto!24
2023-08-28 21:05:02 +00:00
Alex Gleason a075c533e6
Make notifications kind of work 2023-08-28 15:56:38 -05:00
Alex Gleason 2029c73eab
requireAuth --> requirePubkey 2023-08-28 15:38:32 -05:00