Commit Graph

447 Commits

Author SHA1 Message Date
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
Alex Gleason dfbad6b2e7
Add boilerplate notifications controller, fix import order in app.ts 2023-08-28 14:23:27 -05:00
Alex Gleason 6d5add92a2 Merge branch 'user-stream' into 'develop'
Streaming: support user stream

See merge request soapbox-pub/ditto!23
2023-08-28 18:41:35 +00:00
Alex Gleason e18aa878bb
streaming: reorder tag params 2023-08-28 13:37:15 -05:00
Alex Gleason e6d1494a10
streaming: make user stream mostly work, in a kind of hacky way 2023-08-28 13:34:15 -05:00
Alex Gleason e8a7dfef2b
Remove uneeded session ID from auth token 2023-08-28 13:00:00 -05:00
Alex Gleason f25284daa9
streaming: support hashtag timeline 2023-08-28 12:42:28 -05:00
Alex Gleason 2d619868aa Merge branch 'nip46' into 'develop'
Rework signing flow to use events

See merge request soapbox-pub/ditto!22
2023-08-27 15:19:18 +00:00
Alex Gleason 2e8b26cf4f
Remove legacy stream.ts module 2023-08-27 10:07:13 -05:00
Alex Gleason 320d2f493e
change .positive() to .nonnegative() !!! 2023-08-26 23:13:48 -05:00
Alex Gleason 0a9b53bbc1
sign: fix parsing connect response from string to JSON 2023-08-26 22:49:32 -05:00
Alex Gleason 0227eb3b34
deno.json: fix imports warning 2023-08-26 19:14:29 -05:00
Alex Gleason 655004e775
Rework web signer to use NIP-46 events 2023-08-26 18:03:59 -05:00
Alex Gleason 1806cf2286
filter: treat the admin pubkey as local 2023-08-26 17:31:52 -05:00
Alex Gleason 9cd1ca1861
streaming: don't forget to close the subscription when the socket closes 2023-08-26 15:57:51 -05:00
Alex Gleason c13b7f4af7
subs: allow any object in place of the socket 2023-08-26 15:55:16 -05:00
Alex Gleason 67bba508af
utils/web: make `tags` optional 2023-08-26 15:22:49 -05:00
Alex Gleason 1b2a486c65
pipeline: don't store ephemeral events 2023-08-26 13:40:10 -05:00