Commit Graph

771 Commits

Author SHA1 Message Date
Alex Gleason 6e09e6f9e5
Fix NIP-05 cache 2023-05-07 11:44:22 -05:00
Alex Gleason af9f376ad0
Verify NIP05's with cache, fixes #1 2023-05-06 22:29:41 -05:00
Alex Gleason f567acb58f
Cache rich media cards for 12 hours 2023-05-06 20:30:11 -05:00
Alex Gleason 78b1c24ee0
card: sane defaults 2023-05-06 20:09:33 -05:00
Alex Gleason b6ce22cfaf
Unfurl card in link previews 2023-05-06 19:58:41 -05:00
Alex Gleason 2fff0ed879
First pass linkifying status content and rendering attachments 2023-05-06 15:17:50 -05:00
Alex Gleason 0c71b5a696
Try Deno's experimental KV as a cache 2023-05-03 22:15:18 -05:00
Alex Gleason 9539eb5055
Try to make relationshipsController reflect following 2023-05-03 21:56:22 -05:00
Alex Gleason 192ee7f76d
Make getFilter return a pure event object instead of the class from nostr-relaypool 2023-05-03 21:54:22 -05:00
Alex Gleason e3dca47241
Extend getFollows timeout 2023-05-03 21:53:36 -05:00
Alex Gleason 3880fdd61c
accountStatusesController: sort results by timestamp 2023-05-03 15:33:54 -05:00
Alex Gleason 502af2cd48
Return first page of statuses in profile 2023-05-03 15:22:24 -05:00
Alex Gleason 6fa897145e
Include source property on own account 2023-05-02 13:58:45 -05:00
Alex Gleason e93fcdc643
Add default banner to account 2023-04-30 23:31:30 -05:00
Alex Gleason 8b3eab80b3
Add email field to /api/v1/instance 2023-04-30 23:27:29 -05:00
Alex Gleason 0a12bbb42f
Refactor client code, hope for the best 2023-04-30 20:21:55 -05:00
Alex Gleason 7bb8821b1b
Escape HTML fields 2023-04-30 16:07:07 -05:00
Alex Gleason d7805ae65b
Add logger middleware 2023-04-30 15:16:33 -05:00
Alex Gleason cb8e78ab59
Add landing page 2023-04-30 14:51:56 -05:00
Alex Gleason 610ce4444a
api --> controllers/api 2023-04-30 14:45:30 -05:00
Alex Gleason 2554379cef
api/home.ts --> api/timelines.ts 2023-04-30 14:16:30 -05:00
Alex Gleason e26b540246
OAuth token endpoint: support formData 2023-04-30 14:13:27 -05:00
Alex Gleason 81357fa1e3
Make OAuth form mostly work 2023-04-30 13:28:49 -05:00
Alex Gleason d860ef7f98
Apps: get the redirect_uri into the app 2023-04-30 12:41:01 -05:00
Alex Gleason 9734d0a961
lint 2023-04-29 21:57:30 -05:00
Alex Gleason 693c7cc7bf
Sign events from app context 2023-04-29 21:48:22 -05:00
Alex Gleason 1ba822abaa
Add Markers fallback controller 2023-04-29 21:14:00 -05:00
Alex Gleason 780b3aeb01
Enable Link header in CORS 2023-04-29 21:07:59 -05:00
Alex Gleason 26cf528fca
Use findReplyTag from Mostr 2023-04-29 20:33:52 -05:00
Alex Gleason b42d1f3564
Make threads work, sorta 2023-04-29 20:23:51 -05:00
Alex Gleason f1333cb131
Deduplicate mentions 2023-04-29 19:27:13 -05:00
Alex Gleason a48ee148ae
Fix in_reply_to for root 2023-04-29 19:01:24 -05:00
Alex Gleason 586f20b23d
Improve NIP-05 display in mentions 2023-04-29 18:59:40 -05:00
Alex Gleason 4962f31296
Fix in_reply_to for legacy clients 2023-04-29 18:02:24 -05:00
Alex Gleason acabc7c4ad
Add dummy relationships endpoint 2023-04-29 17:59:54 -05:00
Alex Gleason 64102699ac
Perform NIP-05 lookups 2023-04-29 17:49:03 -05:00
Alex Gleason d84e593e53
Add GET /api/v1/statuses/:id 2023-04-29 17:26:56 -05:00
Alex Gleason f87a17e609
Remove unused code 2023-04-29 17:20:51 -05:00
Alex Gleason dabc3b7e3a
Remove unused imports 2023-04-29 17:07:26 -05:00
Alex Gleason 693b200562
Fix import 2023-04-29 16:39:11 -05:00
Alex Gleason 07e072bc48
Narrow pubkey paths with regex 2023-04-29 16:35:44 -05:00
Alex Gleason 70f69b80f3
Add account search controller, which does basically the same thing as account lookup for now 2023-04-29 16:28:53 -05:00
Alex Gleason 9e73a8e43c
Add account lookup endpoint 2023-04-29 16:25:07 -05:00
Alex Gleason 5118aaf46c
Rename some client functions 2023-04-29 15:54:21 -05:00
Alex Gleason 6341987088
Delete src/nostr directory 2023-04-29 15:51:54 -05:00
Alex Gleason b33a3a21fc
OAuth: don't decode bech32 string 2023-04-29 15:33:25 -05:00
Alex Gleason 8c48b9f625
Add nip19 auth middleware 2023-04-29 15:22:10 -05:00
Alex Gleason a0f4a7d9b5
Upgrade nostr-tools, signEvent --> getSignature 2023-04-27 21:10:51 -05:00
Alex Gleason 4664609047
apps: add comments 2023-04-10 21:13:57 -05:00
Alex Gleason 53655f99bf
We do a little refactoring 2023-04-10 19:34:00 -05:00
Alex Gleason c3b8ad1c28
Scaffold db, handler, query 2023-04-07 21:38:05 -05:00
Alex Gleason ecf3841ee4
Rename to Ditto 2023-04-02 14:10:50 -05:00
Alex Gleason d8e0a1c7fc
Validate and transform json at the same time 2023-03-18 19:14:19 -05:00
Alex Gleason d365ea26dc
Improve feed query 2023-03-18 18:09:16 -05:00
Alex Gleason 1d6ebf6ba6
Support pagination with Link headers... but of course Soapbox doesn't do that 2023-03-18 17:47:34 -05:00
Alex Gleason dcf6b69501
Improve fqn 2023-03-18 17:20:46 -05:00
Alex Gleason 46cdda7f7f
Parse mentions 2023-03-18 17:03:32 -05:00
Alex Gleason c28c644265
Upgrade nostr-tools, do npub stuff, query own events in feed 2023-03-18 16:39:34 -05:00
Alex Gleason 9f81d0d572
Reuse existing transmute functions, lol forgot I already wrote that 2023-03-18 16:30:46 -05:00
Alex Gleason 6748e13a36
Make Home feed kind of work 2023-03-18 14:49:44 -05:00
Alex Gleason 2ab9e60048
Add additional fallback controllers 2023-03-05 00:36:37 -06:00
Alex Gleason cde34bffd8
Refactor transmute, fix account in status 2023-03-05 00:16:05 -06:00
Alex Gleason 2acfecc1eb
Allow posting a status to Nostr 2023-03-04 23:26:25 -06:00
Alex Gleason 73884c212f
Transform nsec1 better 2023-03-04 22:54:57 -06:00
Alex Gleason 48f04e48de
Enable CORS, fix nsec1 keys 2023-03-04 22:49:08 -06:00
Alex Gleason 825fed7d21
This is probably enough to log in? 2023-03-04 22:10:56 -06:00
Alex Gleason 7285d71bda
Add boilerplate accounts controller and fallback controller 2023-03-04 21:49:33 -06:00
Alex Gleason b36b8ea7d2
Add OAuth controller 2023-03-04 21:36:53 -06:00
Alex Gleason 8ed662321d
Implement apps API (the stupid way) 2023-03-04 20:59:39 -06:00
Alex Gleason 484a396a64
Add /api/v1/instance 2023-03-04 20:19:57 -06:00
Alex Gleason d855c05fac
Boilerplate Deno stuff 2023-03-04 19:59:27 -06:00