Commit Graph

535 Commits

Author SHA1 Message Date
Robert C. Martin
ea9d070fba Trust button in user show-info 2023-05-10 14:18:06 -05:00
Robert C. Martin
5b0716c583 NIP-19 for nostr:nevent works. None of the other NIP-19 encodings work. 2023-05-10 11:32:35 -05:00
Robert C. Martin
7bbb366aee Encode simple NIP-19 TLV for nevent. 2023-05-10 11:09:34 -05:00
Robert C. Martin
c7c79b0910 Decode nevent tlv strings according to NIP-19 2023-05-10 10:50:12 -05:00
Robert C. Martin
afd5c65dbc Don't reload article window if the contents have not changed. 2023-05-09 07:23:12 -05:00
Robert C. Martin
3f30ead8c9 Reload article window every second to resolve references as they come in from the relays. 2023-05-08 16:36:59 -05:00
Robert C. Martin
6eae2c0a8d Lots of little fixes around nostr: and Get info etc. 2023-05-08 15:11:14 -05:00
Robert C. Martin
8cd202eb07 Add try/catch around get-author-name 2023-05-07 10:36:06 -05:00
Robert C. Martin
726dff6c6d In Get Info for events, expand the sig to 64 bytes. 2023-05-06 14:34:07 -05:00
Robert C. Martin
c51d6536ff Fix silly test failure due to order of events. 2023-05-03 08:07:25 -05:00
Robert C. Martin
131c5b4a50 Version 2023-05-03T08:00 2023-05-03 08:00:28 -05:00
Robert C. Martin
3247891069 Read user profile from relays after changing it. 2023-05-02 16:35:06 -05:00
Robert C. Martin
932d0ddcf9 Relay info NIP-11. Minimal implementation. 2023-05-02 10:05:08 -05:00
Robert C. Martin
91229b18c9 Fix the log level getting set back to 1. 2023-04-30 10:48:46 -05:00
Robert C. Martin
46f5f9fdc3 Tabs menu seems to work. 2023-04-30 10:40:25 -05:00
Robert C. Martin
ffc2ce835b dev and test log level = 2. Regular is 1. 2023-04-29 11:09:57 -05:00
Robert C. Martin
d595f3180e Click on name in user window will request contact info. 2023-04-29 10:50:29 -05:00
Robert C. Martin
0868aefa4d Fix timing error in tests. 2023-04-28 18:44:13 -05:00
Robert C. Martin
efe247968f A couple of little oopsies. But it all seems to work now. 2023-04-28 14:09:09 -05:00
Robert C. Martin
e2c8ee502c Batching works now -- as best as I can tell. 2023-04-28 13:33:37 -05:00
Robert C. Martin
83ff992bf2 Batching is beginning to work. There could be issues still. Does not wait for backlog to drain. 2023-04-28 10:37:08 -05:00
Robert C. Martin
e9e3a09fa2 GRUMBLE. I got all the mention stuff working. NIP-08 and NIP-27 (sorta). So @<username> creates p tags. nostr:<bech32> does not. @<username> renders as @<username>. nostr:<bech32> renders either as nostr:<username> or nostr<bech32> depending on if the profile exists. 2023-04-24 10:31:28 -05:00
Robert C. Martin
75d83d4cc0 Replace nostr:<bech32> with @<bech32> or @<username> in the article tree headers. 2023-04-23 09:43:02 -05:00
Robert C. Martin
f71f79b7b9 handle incoming nostr: tokens and turn them into appropriate links or @references. Ugh. 2023-04-22 22:27:08 -05:00
Robert C. Martin
a3c00964a9 Set up the closing of subscriptions upon EOSE. This is in preparation for batching subscriptions and throttling based on backlog. 2023-04-21 11:37:00 -05:00
Robert C. Martin
ab6a3936ea Query relays for event when clicking on Citing or Root in article panel. 2023-04-21 09:09:53 -05:00
Robert C. Martin
11308a8b6a Fix zap warning messages to show sats instead of millisats 2023-04-20 17:20:08 -05:00
Robert C. Martin
b3d4183dd7 Get nostr: and @ working... Sorta. 2023-04-20 17:00:17 -05:00
Robert C. Martin
4db675ca4c User window reload button, and query for profiles. 2023-04-20 11:02:18 -05:00
Robert C. Martin
3cc57090c8 Repaint main window every second so that when new profile events come in, the names are re-rendered.
Set up the user window for the same thing.
2023-04-20 09:59:04 -05:00
Robert C. Martin
208c8b529d Fix broken tests... (blush). 2023-04-19 15:30:49 -05:00
Robert C. Martin
04194cd068 Restrict subscriptions to get the kinds we actually want. 2023-04-19 13:42:56 -05:00
Robert C. Martin
b4c2469619 Show zaps in article tree and article panel. 2023-04-19 13:32:42 -05:00
Robert C. Martin
1c5622565e Zap receipt recorded in event. 2023-04-18 08:56:44 -05:00
Robert C. Martin
4fffab9efd Request metadata and contacts from authors when you click on their articles. 2023-04-17 16:17:56 -05:00
Robert C. Martin
8e949d0d0b I can zap. Yee Haa! Next I need to mark events as having been zapped, and keep track of the zaps on an event. 2023-04-17 15:05:49 -05:00
Robert C. Martin
f538ab26c0 Added string encoders to bech32 and can receive zap reciepts. 2023-04-17 14:12:29 -05:00
Robert C. Martin
00857e8398 Zap can now get invoice from the callback provided by the wallet. A valid pr is returned. 2023-04-16 12:06:53 -05:00
Robert C. Martin
69da293068 Check the zap request against the constraints set by the wallet. 2023-04-16 11:16:33 -05:00
Robert C. Martin
f6ccc0d9c1 Zap feature creates the Zap Request. Tenative, no error checking yet. But the event format looks right. 2023-04-16 09:35:48 -05:00
Robert C. Martin
671598c3dc Begin the ZAP feature. So far we can get the zap address and query the wallet for the recipient's fields. 2023-04-15 12:24:17 -05:00
Robert C. Martin
bdcf9eda99 Add the hours: command line argument to request old events. 2023-04-14 16:12:17 -05:00
Robert C. Martin
9f7df5b87c Compressed DB is now moved to prod-db, and old prod-db is moved to prod-db-old. 2023-04-13 14:44:51 -05:00
Robert C. Martin
b3466c1147 Compress DB (not finished. Leaves old database in place. temp-db is compressed but not activated..) 2023-04-13 13:50:07 -05:00
Robert C. Martin
90663dca44 Fix some odds and ends with relays and the user window. Works much better now. 2023-04-07 12:26:11 -05:00
Robert C. Martin
9174855366 Add left-click menu to the users-window selection boxes. "Get Info..." and "Add author to tab..." 2023-04-06 16:26:24 -05:00
Robert C. Martin
2360c362d1 Add a sync-db where appropriate. 2023-04-06 15:39:11 -05:00
Robert C. Martin
c9cf1dd360 User window seems to function properly. Can trust and untrust users. 2023-04-06 12:35:31 -05:00
Robert C. Martin
c511a1566d User window seems to function properly. Can trust and untrust users. 2023-04-06 12:22:08 -05:00
Robert C. Martin
a8c6ad120b Can trust a user from the selection box. All lists seem to be updated properly. 2023-04-05 16:38:37 -05:00