dakkar
b13781632f
fix DeepLX
...
`??` binds tighter than `? :`, so that expression was parsed as:
```ts
( deeplFreeInstance ?? this.serverSettings.deeplIsPro )
? 'https://api.deepl.com/v2/translate '
: 'https://api-free.deepl.com/v2/translate '
```
which ended up calling the non-free DeepL instead of the local DeepLX
2025-06-01 14:44:49 +01:00
dakkar
034bfc02bd
allow fragments in AP ID URLs - fixes polls
...
our own `renderVote` generates IDs like
`${this.config.url}/users/${user.id}#votes/${vote.id}/activity`
also `renderUpdate` generates
`${this.config.url}/users/${user.id}#updates/${new Date().getTime()}`
so we can't reject IDs with fragments
2025-06-01 14:06:04 +01:00
Hazelnoot
89586bf790
correctly render reblogs and quotes-with-CW for discord previews
2025-06-01 00:26:21 -04:00
Hazelnoot
a5857d2724
allow passing user/note into convertStatus for performance
2025-06-01 00:25:53 -04:00
Hazelnoot
efd378f963
return typed relations from MastodonDataService note fetchers
2025-06-01 00:25:39 -04:00
Hazelnoot
c41a4a6860
merge: Add configuration option for the "query is slow" warning ( !1061 )
...
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1061
Approved-by: Marie <github@yuugi.dev>
Approved-by: Julia <julia@insertdomain.name>
2025-05-31 16:48:30 +00:00
dakkar
993bd03134
merge: Block remote interactions with local-only posts ( resolves #972 ) ( !1070 )
...
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1070
Closes #972
Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-30 20:45:55 +00:00
Hazelnoot
693cdde327
upsert reactions to avoid error+retry overhead
2025-05-30 15:37:27 -04:00
dakkar
bba8e9fc79
merge: Add web optimization for video files during processing ( !1054 )
...
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1054
Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: dakkar <dakkar@thenautilus.net>
2025-05-30 19:24:05 +00:00
PrivateGER
f0207211d9
Import fs module with new syntax
2025-05-30 20:41:51 +02:00
Hazelnoot
9c4e3934d1
exclude local notes from bubble timeline
2025-05-30 14:39:37 -04:00
Hazelnoot
b0a5efb357
block remote interactions with local-only posts
2025-05-30 13:10:46 -04:00
Hazelnoot
c13beacb3a
change default value of canUseTranslator to false
2025-05-30 12:35:31 -04:00
Hazelnoot
50a64f97df
allow unauthenticated (logged-out) users to translate notes
2025-05-30 12:35:31 -04:00
Hazelnoot
4637d4eb3f
clarify query truncation message
2025-05-30 12:28:01 -04:00
Hazelnoot
dd1969c800
suppress messages from TypeORM migration and schema loading in production
2025-05-30 12:28:01 -04:00
Hazelnoot
3fecde29b5
fix TypeORM logger implementation
2025-05-30 12:28:01 -04:00
Hazelnoot
8e660d2aaf
don't highlight queries in production
2025-05-30 12:28:01 -04:00
Hazelnoot
04160af3ae
fix TypeORM logging to native console instead of NestJS logger
2025-05-30 12:28:01 -04:00
Hazelnoot
b057d3be0d
add slowQueryThreshold setting to configure slow query warning
2025-05-30 12:27:59 -04:00
Hazelnoot
eeb175ab2b
increase logging indent, since some logger contexts are really long
2025-05-30 12:26:33 -04:00
Marie
5d8a8bba2a
merge: Log config file paths at startup ( !1066 )
...
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1066
Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-30 16:25:28 +00:00
Marie
544d169884
merge: Increase chart rate limits ( !1065 )
...
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1065
Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-30 16:25:01 +00:00
Marie
48f3910036
merge: Add MK_HIDE_WORKER_ID to exclude worker ID from logs ( !1063 )
...
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1063
Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-30 16:24:33 +00:00
Marie
4a55692f7a
merge: Disable TypeORM's Redis cache by default ( !1062 )
...
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1062
Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-05-30 16:23:53 +00:00
PrivateGER
31f4325e86
make logger property readonly
2025-05-30 18:01:36 +02:00
PrivateGER
8948369a1b
import fs dep at file level
2025-05-30 18:00:12 +02:00
Hazelnoot
1cd0ed3256
add MK_HIDE_WORKER_ID to exclude worker ID from logs
2025-05-30 09:38:33 -04:00
Hazelnoot
43d975896a
use standard logger class in config.ts
2025-05-30 09:15:40 -04:00
Hazelnoot
47a81ba235
clarify error when configs fail to load
2025-05-30 09:09:15 -04:00
Hazelnoot
1a414f1cfb
log configuration file paths when loading
2025-05-30 09:06:50 -04:00
Hazelnoot
7d79c77842
disable TypeORM query cache by default
2025-05-30 08:01:01 -04:00
Hazelnoot
53ec45482d
use more robust fixup in 1748128176881-add_instance_foreign_keys.js
2025-05-30 07:46:23 -04:00
Hazelnoot
979c7628b1
disable status badge strip in admin-user and instance-info
2025-05-29 22:20:21 -04:00
Hazelnoot
548000bb98
fix the AddMissingIndexes1747938628395 migration
...
- Delete duplicate list memberships
- Drop indexes if they already exist
2025-05-29 17:20:11 -04:00
PrivateGER
7ce8d0de44
Add error handling for video optimization in DriveService
2025-05-29 21:20:46 +02:00
PrivateGER
4ab3abaa14
Move supported MIME types into file-level const
2025-05-29 21:18:02 +02:00
PrivateGER
0bf006b7d7
Fix formatting and import spacing in VideoProcessingService
2025-05-29 20:40:15 +02:00
PrivateGER
7cba9c11d4
Add web optimization for video files during processing
2025-05-29 20:29:42 +02:00
Hazelnoot
0912a8bb10
fix tests
2025-05-28 21:31:41 -04:00
Hazelnoot
4738b14d1c
fix TypeORM error from MetaService.fetch
2025-05-28 21:31:40 -04:00
Hazelnoot
070084889f
re-analyze all tables affected by new indexes
2025-05-28 21:31:40 -04:00
Hazelnoot
12c2bbc7de
add npm scripts to create or generate a migration
2025-05-28 21:31:40 -04:00
Hazelnoot
9e282b1d10
fix arrays in migration add_instance_block_columns
2025-05-28 21:31:40 -04:00
Hazelnoot
ab96402c2a
add backend npm script to roll back a migration
2025-05-28 21:31:40 -04:00
Hazelnoot
35dfde838b
add function diffArraysSimple for more efficient change detection
2025-05-28 21:31:40 -04:00
Hazelnoot
8a2ed3bc86
minor optimization to diff-arrays
2025-05-28 21:31:40 -04:00
Hazelnoot
788e59f046
fix type errors caused by new User, Note, and Instance fields
2025-05-28 21:31:40 -04:00
Hazelnoot
7385f30903
clear federatedInstanceCache when meta host lists change
2025-05-28 21:31:40 -04:00
Hazelnoot
3e7ab07b3c
avoid race conditions in meta / instance insert
2025-05-28 21:31:40 -04:00