Commit Graph

1612 Commits

Author SHA1 Message Date
Alex Gleason 942260aa54
note.ts -> utils/note.ts 2024-05-18 11:53:33 -05:00
Alex Gleason 5997ff0fff
Create utils/media.ts, move some code from note.ts there 2024-05-18 11:52:33 -05:00
Alex Gleason f97064afb4
Remove dependency on npm:mime, switch to @std/media-types 2024-05-18 11:35:29 -05:00
Alex Gleason 4c87e723c0
Bump nostrify to v0.21.1 2024-05-18 10:56:34 -05:00
Alex Gleason 6ac4c072a6
Fix crash decoding url 2024-05-18 08:20:43 -05:00
Alex Gleason 3e93b42251
stats: add a debug call 2024-05-18 08:13:37 -05:00
Alex Gleason f9a0055e78
stats: add a Semaphore when refreshing author stats 2024-05-17 19:00:56 -05:00
Alex Gleason 23a366081f
stats: maybe refresh stats when updating 2024-05-17 18:42:45 -05:00
Alex Gleason 45ab5f6672 Merge branch 'recompute-stats' into 'main'
Recompute author stats

See merge request soapbox-pub/ditto!273
2024-05-17 23:32:38 +00:00
Alex Gleason bf479d0162
Move refreshAuthorStatsDebounced to stats.ts 2024-05-17 18:26:55 -05:00
Alex Gleason 5c2e3450a9
Refresh author stats: less naive way 2024-05-17 17:50:30 -05:00
Alex Gleason 17b6330193
Downgrade Deno to v1.43.3 due to TypeScript issues 2024-05-17 16:59:45 -05:00
Alex Gleason ae9516b445
refreshAuthorStats: return the stats 2024-05-17 16:23:38 -05:00
Alex Gleason 6995bd2b29
Upgrade Deno to the latest version 2024-05-17 16:23:23 -05:00
Alex Gleason a39910fa98
Add a function to recalculate author stats 2024-05-17 13:18:23 -05:00
Alex Gleason 1a32150f3d Merge branch 'nonzero-stats' into 'main'
Never let stats be less than 0

See merge request soapbox-pub/ditto!272
2024-05-17 16:42:12 +00:00
Alex Gleason 251500fba1
Never let stats be less than 0 2024-05-17 11:39:21 -05:00
Alex Gleason 80e487817e Merge branch 'fix-followers-and-following-when-no-kind-0' into 'main'
Render followers & following list when the accounts do not have a kind 0

Closes #134

See merge request soapbox-pub/ditto!271
2024-05-17 14:28:50 +00:00
P. Reis 4cc1d13d44 fix: render followers & following list when no kind 0 2024-05-17 11:25:17 -03:00
Alex Gleason bc538e182a Merge branch 'fix-repost-render' into 'main'
renderReblog() - render account from pubkey if there is no kind 0

Closes #129

See merge request soapbox-pub/ditto!270
2024-05-17 13:30:35 +00:00
P. Reis 2aee2e6bf6 fix(renderReblog): render account from pubkey if there is no kind 0 2024-05-17 09:45:19 -03:00
Siddharth Singh 83a7b1f231
create tags_usages kysely table 2024-05-17 14:46:20 +05:30
Alex Gleason 5aacbe7af5
Fix media uploads due to 'awaiting' a query builder instance 2024-05-16 18:53:04 -05:00
Alex Gleason 04980089b4 Merge branch 'pgfts' into 'main'
Upgrade Nostrify to v0.20.0, enable Postgres FTS

See merge request soapbox-pub/ditto!269
2024-05-16 22:24:21 +00:00
Alex Gleason baa6986880
EventsDB: enable fts conditionally based on DATABASE_URL 2024-05-16 15:48:22 -05:00
Alex Gleason 00d4bf2344
Upgrade Nostrify to v0.20.0, enable Postgres FTS 2024-05-16 15:42:32 -05:00
Alex Gleason cb2e8607fa Merge branch 'refactor-unreblog' into 'main'
Mastodon API (Unreblog) - Query with Storages.db()

See merge request soapbox-pub/ditto!266
2024-05-16 20:17:38 +00:00
Alex Gleason 405714960e Merge branch 'mixed-filters' into 'main'
Upgrade Nostrify to v0.19.2, fix crash on mixed filters

See merge request soapbox-pub/ditto!268
2024-05-16 18:01:22 +00:00
Alex Gleason 6c3f0849b2
Upgrade Nostrify to v0.19.2, fix crash on mixed filters 2024-05-16 12:57:01 -05:00
Alex Gleason 8c46560df4 Merge branch 'phantom-deletions' into 'main'
Upgrade Nostrify to v0.19.1, fix phantom deletions

See merge request soapbox-pub/ditto!267
2024-05-16 15:50:46 +00:00
Alex Gleason 031a3eac04
EventsDB.test: import order 2024-05-16 10:30:54 -05:00
Alex Gleason 4df2c7ba9c
Improve EventsDB error handling 2024-05-16 10:29:14 -05:00
Alex Gleason 2ede439005
Upgrade Nostrify to v0.19.1, fix phantom deletions 2024-05-16 09:29:53 -05:00
P. Reis e61cbecb3e refactor(unreblog): update error messages and query with Storages.db() 2024-05-16 10:38:30 -03:00
Alex Gleason b2c26c9374 Merge branch '4036' into 'main'
Port 8000 -> 4036 in all the places

See merge request soapbox-pub/ditto!265
2024-05-16 13:13:12 +00:00
Alex Gleason 4b07f2a12a
Actually, set default LOCAL_DOMAIN based on PORT 2024-05-16 08:10:13 -05:00
Alex Gleason 0acde23c46
Port 8000 -> 4036 in all the places 2024-05-16 08:08:36 -05:00
Alex Gleason 4fafce27eb Merge branch 'policy-env' into 'main'
Remote Policies

See merge request soapbox-pub/ditto!264
2024-05-16 01:41:30 +00:00
Alex Gleason f14b64b003
Remove useless policy dir 2024-05-15 20:35:35 -05:00
Alex Gleason 0b6b62f3b3
policyWorker: import deno-safe-fetch 2024-05-15 20:27:54 -05:00
Alex Gleason 9e9ab40886
Run the custom policy in a worker for security 2024-05-15 20:19:49 -05:00
Alex Gleason 6a1b8b0943
policy: improve error handling 2024-05-15 19:30:20 -05:00
Alex Gleason 8a672c93ec
Debug custom policies with ditto:policy 2024-05-15 18:59:51 -05:00
Alex Gleason 8e68d13ff1
Let custom policy be configured with DITTO_POLICY 2024-05-15 18:49:55 -05:00
Alex Gleason 132eed36b4 Merge branch 'docker' into 'main'
Add a basic Dockerfile

See merge request soapbox-pub/ditto!263
2024-05-15 23:41:33 +00:00
Alex Gleason 597946002d
Add a basic Dockerfile 2024-05-15 18:38:51 -05:00
Alex Gleason 750e4a8bff Merge branch 'port-4036' into 'main'
Use port 4036 by default

See merge request soapbox-pub/ditto!262
2024-05-15 22:11:58 +00:00
Alex Gleason 417bd64f4c
Use port 4036 by default 2024-05-15 17:09:12 -05:00
Alex Gleason a8fcd31999 Merge branch 'favicon' into 'main'
Add a default favicon.ico

See merge request soapbox-pub/ditto!261
2024-05-15 21:32:45 +00:00
Alex Gleason 19b2fd19e8
Add a default favicon.ico 2024-05-15 16:30:03 -05:00