Commit Graph

1338 Commits

Author SHA1 Message Date
Alex Gleason a4b96f0a9c Revert "Merge branch 'nip19-mentions' into 'main'"
This reverts merge request !353
2024-06-03 17:49:24 +00:00
Alex Gleason 605948267d
Render mentions as nip19, fix href 2024-06-03 12:31:54 -05:00
Alex Gleason 3092030dde
EventsDB: index "r" tags on labels 2024-06-03 00:18:52 -05:00
Alex Gleason 4329d8ed9f
Implement trending links 2024-06-02 23:19:53 -05:00
Alex Gleason 6d5dbc029e
Remove self from suggested list 2024-06-02 22:59:06 -05:00
Alex Gleason a325908d41
Fix rendering suggested accounts 2024-06-02 22:54:38 -05:00
Alex Gleason 68375c555e
Add trending users to suggested 2024-06-02 22:52:05 -05:00
Alex Gleason da0139ff4e
Suggestions: add offset based pagination 2024-06-02 22:46:07 -05:00
Alex Gleason 3874a7fe8d
Add quotesController to list the quotes of a status 2024-06-02 20:36:34 -05:00
Alex Gleason 22c840092f
Add quotes count 2024-06-02 20:30:57 -05:00
Alex Gleason a9dcebd7c2
Index r tags 2024-06-02 20:10:32 -05:00
Alex Gleason 9d2194a928
trendingStatusesController: enforce kind 1 events 2024-06-02 19:54:48 -05:00
Alex Gleason 6a4fc7b6ba
Track trending pubkeys too, why not 2024-06-02 19:51:04 -05:00
Alex Gleason 051f23d908
Remove TrendsWorker 2024-06-02 19:44:20 -05:00
Alex Gleason c7c75a7147
Get rid if trending-events.ts, do everything with tag values (brave) 2024-06-02 19:40:55 -05:00
Alex Gleason 3373673706
updateTrendingTags: accept limit param 2024-06-02 19:27:44 -05:00
Alex Gleason b35090ef10
cron: DRY updateTrendingTags 2024-06-02 19:25:49 -05:00
Alex Gleason 7e44368c08
trends: reverse the history dates 2024-06-02 19:07:10 -05:00
Alex Gleason 133a684d32
Fix tag order 2024-06-02 19:02:31 -05:00
Alex Gleason fc11e34499
trends: notes -> #e, normalize 2024-06-02 18:28:43 -05:00
Alex Gleason 76c882d836
Crunch the tag history in the controller 2024-06-02 17:47:36 -05:00
Alex Gleason b46bcc559e
cron: hashtags -> #t, links -> #r 2024-06-02 16:59:11 -05:00
Alex Gleason e236e98259
cron: remove the unnecessary word "cache" from all the things 2024-06-02 16:45:20 -05:00
Alex Gleason 7f16a8d556
Support trending links 2024-06-02 16:42:25 -05:00
Alex Gleason cd46d63999
getTrendingHashtags -> getTrendingTagValues 2024-06-02 16:17:42 -05:00
Alex Gleason b5545ddb60
getTrendingNotes -> getTrendingEvents 2024-06-02 16:07:25 -05:00
Alex Gleason 03ea457933
Merge remote-tracking branch 'origin/main' into hashtag-labels 2024-06-02 15:46:11 -05:00
Alex Gleason bafb42f034
Fix suggested timeline endpoint typo 2024-06-02 13:53:45 -05:00
Alex Gleason 857cfc7259
Add suggested timeline endpoint 2024-06-02 13:40:44 -05:00
Alex Gleason c969738736
Save trending hashtags as labels 2024-06-02 13:15:05 -05:00
Alex Gleason 3363688977
trends: support `offset` parameter 2024-06-02 13:07:49 -05:00
Alex Gleason 498f69f024
stats: track replies_count 2024-06-02 12:26:43 -05:00
Alex Gleason a911e36a7e
trendingStatusesController: sort a simpler way 2024-06-02 12:15:32 -05:00
Alex Gleason 45d9a113c3
trendingStatusesController: sort events in the order they appear in the label 2024-06-02 12:08:23 -05:00
Alex Gleason 0f59b3c96b
Trends: label trending posts by publishing an event 2024-06-02 11:58:21 -05:00
Alex Gleason 832e1c7e60
Fix label missing nip05 marker 2024-06-01 18:15:31 -05:00
Alex Gleason 816f3c806d
Remove the console.log from accountLookupController 2024-06-01 10:46:19 -05:00
Alex Gleason 4e80fdcc7d
Revert "renderAccount: fix crash encoding invalid pubkey"
This reverts commit ffda62a4b0.
2024-06-01 10:40:00 -05:00
Alex Gleason efaa5323ec
Upgrade Nostrify to v0.22.5, don't render media dimensions with 0x0 dim 2024-06-01 10:28:30 -05:00
Alex Gleason ffda62a4b0
renderAccount: fix crash encoding invalid pubkey 2024-05-31 21:42:39 -05:00
Alex Gleason adcaad2863
paginatedList: only return `next` when page isn't empty 2024-05-31 16:10:59 -05:00
Alex Gleason 2ff929ca95
renderAccounts: reverse the list of pubkeys 2024-05-31 15:30:04 -05:00
Alex Gleason b7943669b2
Paginate list events (kind 3, 10000) 2024-05-31 15:26:55 -05:00
Alex Gleason 761143a317
relay: give a nice "fuck you" to clients sending invalid filters 2024-05-31 13:58:06 -05:00
Alex Gleason 5ca1e2fd26
CustomPolicy: switch to NoOpPolicy if the policy isn't found 2024-05-31 13:51:10 -05:00
Alex Gleason 9d50a76c0c
Merge remote-tracking branch 'origin/main' into policy-once 2024-05-31 13:47:53 -05:00
Alex Gleason 3dd25feddc
EventsDB: throw an error if `since` and `until` are too large 2024-05-31 13:33:53 -05:00
Alex Gleason a2c5e824b9
Import the custom policy only once 2024-05-31 12:27:38 -05:00
Alex Gleason f98ebd359a Merge branch 'rm-empty-tag-filters' into 'main'
Remove empty tag filters

See merge request soapbox-pub/ditto!337
2024-05-30 18:05:19 +00:00
Alex Gleason f4f3c8d4d1
Remove empty tag filters 2024-05-30 13:01:39 -05:00
Alex Gleason ec6b72229c
pipeline: move created_at check up 2024-05-30 12:33:55 -05:00
Alex Gleason e8ca21acde
mediaCompat consistency 2024-05-30 12:05:25 -05:00
Alex Gleason c0123df79a
Strip newlines from end of status 2024-05-30 12:03:01 -05:00
Alex Gleason 86b3a51590
Add quote URI to the event content 2024-05-30 11:55:03 -05:00
Alex Gleason c9302cae6a
Fix reblogs showing up in replies 2024-05-30 11:31:33 -05:00
Alex Gleason 74e141ba08
Fix streaming token 2024-05-29 21:57:53 -05:00
Alex Gleason 60b762a165
Enforce a created_at max value 2024-05-29 18:26:10 -05:00
Alex Gleason 1ad1808ee2 Merge branch 'connections' into 'main'
Add OAuth tokens

See merge request soapbox-pub/ditto!325
2024-05-29 21:44:52 +00:00
Alex Gleason 625b9a3ae5
ReadOnlySigner: improve error message 2024-05-29 16:16:17 -05:00
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