Commit Graph

1279 Commits

Author SHA1 Message Date
Alex Gleason 7221b5f203
grant_type nostr -> nostr_bunker, connections -> nip46_tokens 2024-05-29 16:14:21 -05:00
P. Reis 83020e9111 fix: expose 'Ln-Invoice' header 2024-05-29 09:02:17 -03:00
P. Reis 27ed364f4a fix(zapController): purify event before getting invoice 2024-05-28 22:42:00 -03:00
Alex Gleason a617e32d65
Merge remote-tracking branch 'origin/main' into connections 2024-05-28 18:28:50 -05:00
Alex Gleason 78044cc8b6
Remove NWC, return a Ln-Invoice header on the zap endpoint 2024-05-28 16:54:57 -05:00
Alex Gleason 5d05d1d570
Merge remote-tracking branch 'origin/main' into connections 2024-05-28 16:01:49 -05:00
Alex Gleason a690fa3096 Merge branch 'fix-zap-remove-user-field-check' into 'main'
Allow zap request event to proceed even if it does not have a 'user' field

See merge request soapbox-pub/ditto!327
2024-05-28 20:45:44 +00:00
P. Reis a519637bee fix(pipeline-zap): allow 'event' to proceed even without 'user' field 2024-05-28 17:40:10 -03:00
Alex Gleason 5f73232418
relay: remove enforceFilters function 2024-05-28 14:51:07 -05:00
Alex Gleason 981f8c5d22
relay: remove enforceFilters function 2024-05-28 13:59:57 -05:00
Alex Gleason a6a74a16a8
Have OAuth form accept a bunker URI 2024-05-28 13:48:27 -05:00
Alex Gleason 1aa2bafc44
OAuth: add a "nostr" grant_type 2024-05-26 21:26:59 -05:00
Alex Gleason c55cd2a977
blob -> bytea 2024-05-26 20:41:14 -05:00
Alex Gleason b1a497b127
signerMiddleware: accept token1 bech32's 2024-05-26 20:27:46 -05:00
Alex Gleason 0141a732c3
Add connections table 2024-05-26 19:21:15 -05:00
Alex Gleason a6cae8f878
renderAccount: display_name cannot be undefined 2024-05-26 12:59:04 -05:00
Alex Gleason 1fff0834eb Merge branch 'fix-reblog' into 'main'
Fix renderReblog on other Mastodon apps

See merge request soapbox-pub/ditto!323
2024-05-26 17:57:40 +00:00
Alex Gleason 875b678948
Fix renderReblog on other Mastodon apps 2024-05-26 12:55:01 -05:00
Alex Gleason c03be1726e
Add `encrypted` tag to Pleroma configs event 2024-05-26 12:43:08 -05:00
Alex Gleason a66df583fb
Don't encrypt settings_store 2024-05-26 12:34:18 -05:00
Alex Gleason 16558e24c9
Set idleTimeout to 30s for WebSocket connections 2024-05-25 13:39:19 -05:00
Alex Gleason a15013e22a
Remove Optimizer and Reqmeister 2024-05-25 12:22:01 -05:00
Alex Gleason 6684edaeaf
pipeline: fix race condition in encounterEvent 2024-05-25 12:13:55 -05:00
Alex Gleason 1ee0ca8d5c
Optimize filesystem routes 2024-05-25 11:18:17 -05:00
Alex Gleason 1ffc1fc8f4
hydrate.bench: move the `events` variable above the bench 2024-05-25 10:49:09 -05:00
Alex Gleason 3c950fb4ba
Update assembleEvents bench with stats 2024-05-25 10:40:23 -05:00
Alex Gleason 14e5948394
Add assembleEvents bench 2024-05-25 10:33:23 -05:00
Alex Gleason c89867f486
Remove unused NostrMetadata import 2024-05-25 09:25:09 -05:00
Alex Gleason b64ea84b82
Use z.or 2024-05-25 09:20:16 -05:00
Alex Gleason 4f32972d85
updateCredentialsController: delete empty fields from metadata 2024-05-25 09:17:56 -05:00
P. Reis 5dee6450ec fix(update credentials): allow only valid data or empty string 2024-05-25 10:41:39 -03:00
Alex Gleason 622a2b2a4f
Implement familiar followers 2024-05-24 22:30:56 -05:00
Alex Gleason c4ea243bdc
reactionController: fix the response 2024-05-24 20:59:53 -05:00
Alex Gleason 69ff568214
Stop recounting author stats constantly 2024-05-24 20:24:17 -05:00
Alex Gleason 4330cae626
Fix Conf.db in migrations 2024-05-24 20:16:51 -05:00
Alex Gleason 04018015c5
stats: fix race conditions (on Postgres) 2024-05-24 20:11:22 -05:00
Alex Gleason 250998405a
Rework database Conf to easily get the dialect 2024-05-24 20:07:38 -05:00
Alex Gleason 8344ac6b39
stats.test: insert the note for FK constraint 2024-05-24 17:55:25 -05:00
Alex Gleason c6dea07ac3
Add back reactions_count column so trending can still work 2024-05-24 17:51:32 -05:00
Alex Gleason f7c9a96719
Nuke the old stats module, support emoji reactions on posts 2024-05-24 17:40:51 -05:00
Alex Gleason ee2065b76b
stats: add (and test) countAuthorStats 2024-05-24 16:24:47 -05:00
Alex Gleason 34f3cc8d24
Fully test the new stats module 2024-05-24 15:52:30 -05:00
Alex Gleason 83b2a627c3
Merge remote-tracking branch 'origin/main' into rework-stats 2024-05-24 13:15:30 -05:00
Alex Gleason 307090e32f
updateCredentialsController: stricter validation, support bot field 2024-05-24 13:09:32 -05:00
Alex Gleason 0a346228ee
Merge remote-tracking branch 'origin/main' into rework-stats 2024-05-24 12:57:12 -05:00
Alex Gleason c30d6beea2
Upgrade nostrify to v0.22.4, zod to v3.23.8 2024-05-24 12:45:26 -05:00
Alex Gleason 8c12ffaaa1
Upgrade Nostrify to v0.22.2, enforce http(s) in website field 2024-05-24 11:30:56 -05:00
Alex Gleason 0fd5f26977
stats: handle kind 5 deletions 2024-05-23 23:02:21 -05:00
Alex Gleason 1da4566c42
Basically rewrite the stats module 2024-05-23 22:41:16 -05:00
Alex Gleason 834c9f2171
reactionsController: filter out non-RGI reactions 2024-05-23 14:20:15 -05:00
Alex Gleason ea1c06f0c3 Merge branch 'save-lightning-address' into 'main'
Save user lud16 & website into kind 0

Closes soapbox#1662

See merge request soapbox-pub/ditto!305
2024-05-23 19:07:05 +00:00
P. Reis c7726b652b feat: save user lud16 & website into kind 0 2024-05-23 15:59:29 -03:00
Alex Gleason c7e5076434
favouritedByController: filter only likes 2024-05-23 13:50:45 -05:00
Alex Gleason 3f3a302002
Order imports 2024-05-23 13:23:42 -05:00
Alex Gleason b197b57ea8
Support reactionsController with a single emoji 2024-05-23 13:22:04 -05:00
Alex Gleason 86a931d725
Add reactionsController 2024-05-23 13:16:24 -05:00
Alex Gleason 777686939c
Add pleroma_emoji_reactions to instance features 2024-05-23 11:47:01 -05:00
Alex Gleason b0a53f4789
Add delete reaction controller 2024-05-22 18:33:00 -05:00
Alex Gleason 93922b3f93
Add reactionController 2024-05-22 17:06:02 -05:00
Alex Gleason 9c7a650d1f
Set trending statuses default limit to 20 2024-05-22 13:07:54 -05:00
Alex Gleason 823f389bce
NIP05: skip network request for invalid TLDs 2024-05-22 12:52:59 -05:00
Alex Gleason 1d37106b27
unreblogStatusController: repostedEvent -> repostEvent 2024-05-22 12:08:20 -05:00
Alex Gleason b33f7d2cc4
renderEventAccounts: rework the logic, call hydrateEvents 2024-05-22 11:44:48 -05:00
Alex Gleason 1a66570b56
Use linkify to parse hashtags when creating a status, too 2024-05-21 21:30:26 -05:00
Alex Gleason 5de7366ff0
Add r-tags to statuses 2024-05-21 21:22:25 -05:00
Alex Gleason 80e886bfff
Rework trending posts (it's much faster) 2024-05-21 20:38:57 -05:00
Alex Gleason 5da5848ca6
Trending statuses first iteration 2024-05-21 19:48:26 -05:00
Alex Gleason 80344e3c5f
Fix trends cache 2024-05-21 18:15:17 -05:00
Alex Gleason 5822253796
Fix trends 2024-05-21 18:00:57 -05:00
Alex Gleason b2a5ff3eaf
Make Trends use SQLite again 2024-05-21 17:14:26 -05:00
Alex Gleason 4d21dd05a8
Merge remote-tracking branch 'origin/main' into refactor-trends 2024-05-21 16:45:58 -05:00
Alex Gleason 101a16bc12
Index the Postgres FTS column 2024-05-21 16:30:48 -05:00
Alex Gleason 9ab38203df
getDescendants: filter out non-replies 2024-05-21 14:37:18 -05:00
Alex Gleason d4625fe60d Merge branch 'reply-root' into 'main'
Add root tags to replies

See merge request soapbox-pub/ditto!293
2024-05-21 19:30:47 +00:00
Alex Gleason fc325880d2
Add root tags to replies 2024-05-21 14:27:49 -05:00
Alex Gleason bf6dc22c5a
Fix imeta stripping so it doesn't remove a bunch of newlines 2024-05-21 14:05:48 -05:00
Alex Gleason 9873afab69
Remove old tags.test.ts 2024-05-21 13:37:24 -05:00
Alex Gleason 5e607f664e
Add tags test 2024-05-21 13:32:27 -05:00
Alex Gleason 9839b8138f
tags.ts -> utils/tags.ts 2024-05-21 13:08:08 -05:00
Alex Gleason f30aad11a5
Fix legacy quote posts 2024-05-21 13:04:23 -05:00
Alex Gleason 938e26e2a0
Remove webfinger and host-meta 2024-05-21 12:54:10 -05:00
Alex Gleason 8f393aa604
Remove ActivityPub actor endpoint, remove deps.ts 2024-05-21 12:51:19 -05:00
Alex Gleason d4a029b35b
sanitize-html -> isomorphic-dompurify 2024-05-21 12:44:54 -05:00
Alex Gleason 83e51ad67e
lodash -> entities 2024-05-21 12:21:35 -05:00
Alex Gleason 590da75cf2
Merge remote-tracking branch 'origin/main' into feat-persist-user-preference 2024-05-20 14:02:38 -05:00
Alex Gleason a961eabb0e Merge branch 'lnurl-fix' into 'main'
Fix crash parsing Lightning URL

Closes #139

See merge request soapbox-pub/ditto!286
2024-05-20 17:54:13 +00:00
Alex Gleason 839c95f9a9 Merge branch 'refactor-test' into 'main'
Refactor EventsDB test to use eventFixture()

Closes #135

See merge request soapbox-pub/ditto!285
2024-05-20 17:51:52 +00:00
Alex Gleason 6861dc1d57
Fix crash parsing Lightning URL
Fixes https://gitlab.com/soapbox-pub/ditto/-/issues/139
2024-05-20 12:49:01 -05:00
P. Reis 98fd4babce test(EventsDB): use eventFixture() 2024-05-20 14:46:53 -03:00
Alex Gleason 7b099ee565
EventsDB: don't index the user's bio for kind 0 events 2024-05-20 11:39:44 -05:00
Alex Gleason 6f6e87525e
Remove DittoUploader interface in favor of NUploader 2024-05-19 15:57:04 -05:00
Alex Gleason 0541287f0e
Replace our NostrBuildUploader with the one from Nostrify 2024-05-19 15:43:46 -05:00
Alex Gleason f0b247130f
Add support for Blossom uploader 2024-05-19 15:42:45 -05:00
Siddharth Singh 29eb87dab3
format 2024-05-20 00:14:29 +05:30
Siddharth Singh 949697d80a
fix type error caused by trends refactor 2024-05-20 00:11:29 +05:30
Siddharth Singh f19629600d
rewrite trendsworker with kysely and deno cron, format changes 2024-05-20 00:05:03 +05:30
Alex Gleason 9754e29603
accountSearchController: respect the `limit` param 2024-05-19 11:45:42 -05:00
Alex Gleason 540bd058a2
Fix NIP-27 mentions 2024-05-19 11:33:59 -05:00
Alex Gleason 7f5179efca
renderAttachment: guess mime from url 2024-05-19 09:13:53 -05:00
Alex Gleason 5523c3fc0e
verifyCredentials: wait up to 5 seconds 2024-05-18 23:02:59 -05:00