558 Commits

Author SHA1 Message Date
Alex Gleason
7686371183
Implement frontend configurations 2023-09-03 18:49:45 -05:00
Alex Gleason
3c45a4a3aa
sign: simplify awaitSignedEvent (remove unnecessary conditional, rearrange error, fix crash) 2023-09-02 22:39:35 -05:00
Alex Gleason
93f06fd342
config: preserve query params in Conf.local 2023-09-02 22:38:21 -05:00
Alex Gleason
b81091f5da
auth98: requireProof --> requireAdmin 2023-09-02 20:52:17 -05:00
Alex Gleason
f7d74c97ca
db/users: add admin column 2023-09-02 20:52:02 -05:00
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
4ff27ddc04
Add /api/v1/favourites 2023-09-01 13:14:27 -05:00
Alex Gleason
54481ab96b
Fix unfurl timeout 2023-08-30 21:40:52 -05: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
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
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
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
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
ccb8c534ca
Add hashtag timeline 2023-08-28 19:51:21 -05: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
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