Commit graph

254 commits

Author SHA1 Message Date
Alex Gleason
874da1baad
Delete unused cacheMiddleware and ExpiringCache module 2024-10-10 14:01:18 -05:00
Alex Gleason
8d1b1b8abc
Add encrypted captcha answer, move AES utils 2024-10-03 19:36:44 -05:00
Alex Gleason
bd3d7fda94
Treat .ts links in statuses as application/typescript
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/241
2024-10-03 13:02:40 -05:00
Alex Gleason
dfae0b15c7 Merge branch 'use-sticky-notes-zap' into 'main'
refactor(lnurl): use Stickynotes instead of legacy Debug

See merge request soapbox-pub/ditto!528
2024-10-03 16:07:53 +00:00
P. Reis
e42c047362 refactor: use Stickynotes instead of legacy Debug 2024-10-03 12:56:40 -03:00
Alex Gleason
432857c2ff
Rework auth tokens table to use hashed/encrypted data 2024-10-02 18:28:24 -05:00
Alex Gleason
e73a8d71dc
auth: add encryptSecretKey & decryptSecretKey functions 2024-10-02 17:56:30 -05:00
Alex Gleason
70f56af281
Add auth utils for generating/hashing/encoding/decoding tokens 2024-10-02 15:05:37 -05:00
Alex Gleason
350671db47
DittoPglite: prevent starting PGlite instances in worker threads 2024-09-25 14:31:28 -05:00
Alex Gleason
f44b9267ad
Remove unused utils/ipfs.ts 2024-09-25 09:47:51 -05:00
Alex Gleason
6745e96c64
SimpleLRU: fix repeated calls fetching 2024-09-22 16:06:10 -05:00
Alex Gleason
454b362825
deno lint 2024-09-20 13:24:33 -05:00
Alex Gleason
807bc78472
Let caches be configurable 2024-09-20 13:22:45 -05:00
Alex Gleason
099fec6e31
Increase nip05 cache to 3000, link previews to 1000 2024-09-20 13:13:26 -05:00
Alex Gleason
58bf286ce0
Add cache metrics 2024-09-20 12:34:54 -05:00
Alex Gleason
084e3c8341
note: test that mentions with commas get parsed correctly 2024-09-20 11:46:14 -05:00
P. Reis
b13e924001 fix: build search and also return it in countAuthorStats() function 2024-09-20 10:25:47 -03:00
P. Reis
578f269a65 refactor: countAuthorStats() function does not return search 2024-09-20 09:55:25 -03:00
P. Reis
ebeb150463 refactor: use search in author_stats 2024-09-19 19:37:13 -03:00
P. Reis
1b6e9160ec test: update to use author_stats table 2024-09-19 19:36:44 -03:00
P. Reis
2727523540 feat: order search by followers count also 2024-09-19 19:36:13 -03:00
P. Reis
2f27e22b4c test(getPubkeysBySearch): change search query 2024-09-19 10:15:41 -03:00
P. Reis
148e714863 fix(pg_trgm): use <% instead of % 2024-09-19 10:07:04 -03:00
P. Reis
4ae17c4993 refactor: make getPubkeysBySearch() function return Set<string> 2024-09-18 14:15:18 -03:00
P. Reis
f1c0d8c18f refactor(getPubkeysBySearch): rename followList to followedPubkeys 2024-09-18 11:30:41 -03:00
P. Reis
f73b20bf03 refactor: make getPubkeysBySearch() function use set of strings Set<string> 2024-09-17 14:50:33 -03:00
P. Reis
8cd212e407 test: add missing argument in getPubkeysBySearch() function 2024-09-17 11:09:39 -03:00
P. Reis
52001373e0 feat: show users you follow first in search
getPubkeysBySearch() function refactored to accept a followList argument
2024-09-17 11:04:27 -03:00
P. Reis
2fe6a8fde5 refactor: move getPubkeysBySearch () function to a new location 2024-09-16 14:24:26 -03:00
Alex Gleason
d2fb3fd253
Make EventsDB not rely on Conf 2024-09-11 13:06:20 -05:00
Alex Gleason
dc8d09a9da
Remove SQLite support 2024-09-11 11:08:33 -05:00
Alex Gleason
a19b7fbe9e
Fetch link previews with facebookexternalhit instead of WhatsApp/2 by default, make it configurable 2024-09-07 13:09:10 -05:00
Alex Gleason
8efd6fbb20
Remove unattached_media table, replace with LRUCache, fix media upload order problem 2024-09-07 10:24:56 -05:00
Alex Gleason
ddba16551a
Fix rendering mentions inside of URLs 2024-09-07 09:41:43 -05:00
Alex Gleason
0b6ca9dfea
Hide non-profile nostr URIs from text 2024-08-28 21:24:50 +02:00
Alex Gleason
ba77787767
Test and fix parsing of URLs 2024-08-28 21:19:07 +02:00
Alex Gleason
7a2a8bd4f5
Wrap URL in a try-catch 2024-08-28 21:15:43 +02:00
Alex Gleason
a63b838195
Fix parsing of regular URLs 2024-08-28 21:02:52 +02:00
Alex Gleason
f9d1eed4dd
Remove unnecessary escape characters 2024-08-28 19:46:19 +02:00
Alex Gleason
c2ea4cbfd5
Fix parsing bech32 with apostrophe 2024-08-28 19:38:06 +02:00
danidfra
8d8211de09 Fixed apostrophe issue 2024-08-28 14:01:26 -03:00
danidfra
980e904ea7 Update deno-dom 2024-08-26 15:31:03 -03:00
Alex Gleason
e539a29775
Fetch favicon from NIP-05 domain 2024-08-17 09:21:12 -05:00
Alex Gleason
4db8b2d4fb
Throw when creating a replaceable event that doesn't exist yet 2024-08-15 18:10:42 -05:00
Alex Gleason
9b68d2d08a
publishEvent: throw errors 2024-08-09 12:44:25 -05:00
Alex Gleason
c7a59b50d0
Fix account search 2024-08-08 18:41:29 -05:00
Alex Gleason
5f1b87c3b6
Pretend to be WhatsApp when fetching links 2024-08-07 21:00:07 -05:00
Alex Gleason
ba241f0431
Rework opengraph 2024-08-07 20:47:53 -05:00
Alex Gleason
72970bf480
Code style changes 2024-08-07 19:01:50 -05:00
Alex Gleason
020736fd47
Escape @ in SSR routes 2024-08-07 18:19:39 -05:00