Commit Graph

2255 Commits

Author SHA1 Message Date
Alex Gleason
d3f4cd8d8c Upgrade @nostrify/db to v0.31.2 2024-08-12 21:57:09 -05:00
Alex Gleason
27ba8b071a pg migration: advise checking out main branch 2024-08-12 16:48:42 -05:00
Alex Gleason
c4064d0fa6 pg migration: 3 days -> several hours 2024-08-12 15:54:56 -05:00
Alex Gleason
e743e14bb1 Fix EventsDB test 2024-08-12 15:45:47 -05:00
Alex Gleason
f116950a83 Fix db:migrate script 2024-08-12 15:25:51 -05:00
Alex Gleason
8a23011392 pg migration: cascade 2024-08-12 15:17:42 -05:00
Alex Gleason
617659c7fd Fix DittoDB+EventsDB relationship 2024-08-12 15:13:49 -05:00
Alex Gleason
5e4a94457f Fix tests 2024-08-12 14:57:17 -05:00
Alex Gleason
3a82c98c21 trends: make trends work in Postgres (probably) 2024-08-12 14:48:32 -05:00
Alex Gleason
5c23cb02c2 Add NPostgres migration 2024-08-12 14:37:41 -05:00
Alex Gleason
8dc3b5d5a7 trends: maybe make postgres trends work? 2024-08-11 20:20:31 -05:00
Alex Gleason
8db5489350 Implements trends for SQLite 2024-08-11 19:50:20 -05:00
Alex Gleason
e6b18e7d95 trends: disable for now 2024-08-11 19:12:05 -05:00
Alex Gleason
c8bec9b4b7 Delete unused getUnattachedMedia function 2024-08-11 19:07:27 -05:00
Alex Gleason
552de01a17 Rework DittoDB to return an object 2024-08-11 19:02:27 -05:00
Alex Gleason
f830271ce2 Merge remote-tracking branch 'origin/main' into npostgres 2024-08-11 16:27:59 -05:00
Alex Gleason
e789e08c0f Merge branch 'import-script' into 'main'
Improve performance of import script

See merge request soapbox-pub/ditto!454
2024-08-11 21:11:55 +00:00
Alex Gleason
9f9a07e618 Improve performance of import script 2024-08-11 16:08:15 -05:00
Alex Gleason
300c78ddb1 Upgrade @nostrify/db 2024-08-10 15:44:58 -05:00
Alex Gleason
916b68a3e4 Switch to NPostgres (steamroll SQLite for now) 2024-08-10 13:30:24 -05:00
Alex Gleason
66cfba5535 Remove leading @ from params.acct 2024-08-10 09:58:25 -05:00
Alex Gleason
6657a48a07 Merge branch 'at-match' into 'main'
Fix matching @ routes in app

See merge request soapbox-pub/ditto!452
2024-08-10 02:10:39 +00:00
Alex Gleason
443c8a43f7 Fix matching @ routes in app 2024-08-09 21:07:41 -05:00
Alex Gleason
4bf3096454 errorHandler: don't log timeouts 2024-08-09 13:31:36 -05:00
Alex Gleason
2cbbf2fbe7 Merge branch 'api-err' into 'main'
publishEvent: throw errors

See merge request soapbox-pub/ditto!451
2024-08-09 18:29:35 +00:00
Alex Gleason
abc1a6eb49 EventsDB.event: throw error on insertion 2024-08-09 12:47:59 -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
800e20a143 Convert og:description to plaintext 2024-08-07 21:36:02 -05:00
Alex Gleason
a46c352d3d Merge branch 'opengraph-metadata' into 'main'
OpenGraph metadata support

Closes #179

See merge request soapbox-pub/ditto!444
2024-08-08 02:22:01 +00:00
Alex Gleason
313c37564c Add MastodonAttachment type 2024-08-07 21:19:04 -05:00
Alex Gleason
efc121a4ae Fallback to favicon.ico in link previews 2024-08-07 21:10:31 -05:00
Alex Gleason
15c46ec3f0 Rework nginx file again for link previews 2024-08-07 21:08:03 -05:00
Alex Gleason
2f2fda2ac3 Render OG data on every page 2024-08-07 21:06:51 -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
Alex Gleason
349f59cc70 Merge remote-tracking branch 'origin/main' into opengraph-metadata 2024-08-07 18:19:13 -05:00
Alex Gleason
e264d6116c Merge branch 'search-fixes' into 'main'
search: parse bech32 ids from pasted URLs, improve Mastodon API compat

See merge request soapbox-pub/ditto!450
2024-08-07 23:11:20 +00:00
Alex Gleason
2e38a7b9ec mentionsCompat: wrap each mention in an h-card span 2024-08-07 17:54:45 -05:00
Alex Gleason
ab17be219c Fix parseNoteContent test 2024-08-07 17:37:44 -05:00
Alex Gleason
2f5b4557b7 compatMentions: remove post author and explicit text mentions 2024-08-07 17:34:36 -05:00
Alex Gleason
529e61be6d Return properly formatted mentions in Status API 2024-08-07 17:27:22 -05:00
Alex Gleason
a24c119c7b accountSearchController: actually use the looked up event, whoops 2024-08-07 16:56:15 -05:00
Alex Gleason
fd90c199f5 search: fix lookupPubkey for account search endpoint 2024-08-07 16:44:32 -05:00
Alex Gleason
8f5ec50a25 search: fix nip05 lookups 2024-08-07 16:41:46 -05:00
Alex Gleason
bc603188fa extractBech32 -> extractIdentifier, support extracting nip05 names 2024-08-07 16:22:10 -05:00
Alex Gleason
d3780037df search: escape @ signs in matchers 2024-08-07 16:05:04 -05:00
Alex Gleason
ff900341d5 Match every possible goddamn URL format in search 2024-08-07 15:53:59 -05:00