Commit graph

27446 commits

Author SHA1 Message Date
4censord
0386e52d6f
Impove the check_connect script 2024-08-06 00:35:35 +02:00
dakkar
58d329e3bd make sure that sensitive is a boolean - fixes #596
Some remote instances may send garbage. If the `sensitive` value
passed to `driveService.uploadFromUrl` is not a boolean, eventually
we'll get an exception from the database complaining about that. This
change avoids that problem.
2024-08-05 10:12:27 +01:00
dakkar
1e86cba7dc delete old emoji file when replaced - fixes #608
it's the same code that 5f7fc54ee9 added
to `delete` and `deleteBulk`, with the extra check that we're not
deleting the same file we're setting
2024-08-05 09:27:06 +01:00
dakkar
265afa9097 merge: allow overriding more config settings via env vars (!585)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/585

Approved-by: fEmber <acomputerdog@gmail.com>
Approved-by: Marie <marie@kaifa.ch>
2024-08-05 08:01:20 +00:00
Hazel K
ba09338268 optimize cache GC by stopping early 2024-08-04 09:58:01 -04:00
Marie
4ed4547f4a upd: add icon for moving files/folders 2024-08-03 22:45:49 +00:00
Hazel K
672f1ea684 tune cache lifetimes 2024-08-03 14:49:06 -04:00
Hazel K
3688f1dadf implement pull-through caching 2024-08-03 14:09:08 -04:00
Hazel K
613706f6b8 add missing awaits to internally synchronize caches 2024-08-03 14:02:18 -04:00
Hazel K
b1f1e3eb0e encapsulate other caches 2024-08-03 13:54:59 -04:00
Hazel K
bc236a4bd2 remove infinity caches 2024-08-03 13:42:23 -04:00
4censord
e1b0faa18f
Fall back to port 3000 if none is specified
Originally, because `parseInt` can return `NaN`, sharkey would happily
try to listen on port `NaN`.
2024-08-03 17:43:02 +02:00
4censord
12aeaa5f95
Complain if no config-files are loaded 2024-08-03 17:42:59 +02:00
dakkar
955fda6e1c also allow db.disableCache 2024-08-03 15:29:09 +01:00
dakkar
16601fa766 allow overriding more config settings via env vars
`id` in particular is necessary if one wants to do a working basic
configuration without a config file at all, thanks to @4censord for
making me notice
2024-08-03 14:56:29 +01:00
Hazel K
114b698034 encapsulate MemoryKVCache<T> 2024-08-03 09:18:44 -04:00
dakkar
5496aa27db merge: error out when we can't start workers - fixes #586 (!578)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/578

Closes #586

Approved-by: Tess K <me@thvxl.se>
Approved-by: Marie <marie@kaifa.ch>
2024-08-02 18:41:57 +00:00
dakkar
41e32e792a merge: pass redis config as-is to postgres cache (!577)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/577

Approved-by: Tess K <me@thvxl.se>
Approved-by: Marie <marie@kaifa.ch>
2024-08-02 18:41:29 +00:00
dakkar
d9c23e92fd merge: fix: pass current user into InstanceEntityService.packMany (!582)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/582

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <marie@kaifa.ch>
2024-08-02 18:40:53 +00:00
Hazel K
858ba18876 fix: pass current user into InstanceEntityService.packMany 2024-08-01 08:24:50 -04:00
dakkar
015d601527 use correct user for preview/link of collapsed parent - fixes #575
yes, again… I had only fixed it for `SkNote` ☹
2024-07-29 18:46:19 +01:00
dakkar
ad9848acfa merge: rate limit all password checks - fixes #540 (!568)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/568

Closes #540

Approved-by: Marie <marie@kaifa.ch>
Approved-by: Tess K <me@thvxl.se>
2024-07-29 10:47:33 +00:00
dakkar
518de221c5 merge: select note component in <setup> (!517)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/517

Approved-by: Marie <marie@kaifa.ch>
Approved-by: Tess K <me@thvxl.se>
2024-07-29 10:44:32 +00:00
dakkar
cc48b26c1b merge: rename our components - fixes #534 (!563)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/563

Closes #534

Approved-by: Marie <marie@kaifa.ch>
Approved-by: Tess K <me@thvxl.se>
2024-07-29 10:44:04 +00:00
dakkar
d52d557ead merge: only require alt-text on image/video/audio - fixes #536 (!569)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/569

Closes #536

Approved-by: Marie <marie@kaifa.ch>
Approved-by: Tess K <me@thvxl.se>
2024-07-29 10:42:04 +00:00
dakkar
adbb3a14fa merge: slightly better translations for delivery admin - fixes #570 (!570)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/570

Closes #570

Approved-by: Amelia Yukii <amelia.yukii@shourai.de>
Approved-by: Tess K <me@thvxl.se>
2024-07-29 10:41:45 +00:00
dakkar
9646858cbe merge: use correct user for preview/link of collapsed parent - fixes #575 (!571)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/571

Closes #575

Approved-by: Marie <marie@kaifa.ch>
Approved-by: Tess K <me@thvxl.se>
2024-07-29 10:38:18 +00:00
Hazel K
378408226b tweak wording 2024-07-26 22:45:07 -04:00
Hazel K
916509dd6a revert more import changes 2024-07-26 10:17:02 -04:00
Hazel K
fecdff7fa0 revert import changes 2024-07-26 09:42:49 -04:00
Hazel K
32872181dd feat: implement attachLdSignatureForRelays to control signing of Relayed activities 2024-07-25 10:37:23 -04:00
dakkar
c344705d67 merge: preserve ti-fw classes for icons - fixes #580 (!575)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/575

Closes #580

Approved-by: Marie <marie@kaifa.ch>
Approved-by: Tess K <me@thvxl.se>
2024-07-24 15:52:11 +00:00
dakkar
f18f30cb79 ignore cpuCount when it's 0 - fixes #586
seems more useful this way
2024-07-21 13:29:54 +01:00
dakkar
3eff85a3d3 error out when we can't spawn workers - fixes #586
Setting `clusterLimit` to 0 means no workers are started, which
usually breaks things. Also, some "hardening" things may prevent node
from seeing how many CPUs the machine has, which has the same effect.

With this commit we provide hopefully-useful error messages.
2024-07-21 11:32:39 +01:00
dakkar
6e1e3bc0ea pass redis config as-is to postgres cache
also, explicitly state that `path` is a valid config option for
redis (tells `ioredis` to connect via UNIX socked instead of TCP
socket)
2024-07-21 11:02:46 +01:00
dakkar
69bdbf22b3 merge: Stop banners and backgrounds from being animated when showing animated images is disabled - fixes #435 (!574)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/574

Closes #435

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Leah <kevinlukej@gmail.com>
2024-07-19 16:36:07 +00:00
dakkar
f675f5a074 merge: fix drive search query (!576)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/576

Approved-by: Marie <marie@kaifa.ch>
Approved-by: Leah <kevinlukej@gmail.com>
2024-07-19 16:31:41 +00:00
dakkar
01b10d0d3b fix drive search query
`.andWhere` does not add parentheses, so that `or` changed the whole
meaning of the query
2024-07-19 14:32:14 +01:00
dakkar
3d5fd4a12d merge: Drive searching by alt text and title (!564)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/564

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <marie@kaifa.ch>
2024-07-19 12:19:00 +00:00
Marie
8ca5c3e5f3 lint 2024-07-19 05:14:10 +00:00
KevinWh0
374a16a0d4 Fix vertical align of ... 2024-07-16 23:26:15 +02:00
KevinWh0
5e65b6d01d Merge develop into feature/search-drive-via-alt-text 2024-07-16 23:02:15 +02:00
KevinWh0
f97417cfca Add stuff talked about on MR 2024-07-16 22:06:38 +02:00
Marie
b9d66f824c chore: flip ternary 2024-07-15 18:51:04 +00:00
Marie
2783fe5f5b chore: nest ternary 2024-07-15 16:54:29 +00:00
dakkar
ded459304e preserve ti-fw classes for icons - fixes #580
I thought that `ti-fw` was mostly useless, but it turns out that:

- it affects the alignment of icons in many places

- it's set separately in some places
  (e.g. `packages/frontend/src/ui/_common_/navbar.ts` has `<i
  class="ti-fw" :class="[$style.itemIcon,
  navbarItemDef[item].icon]"></i>`)

so we have to keep it around.
2024-07-15 16:33:10 +01:00
Marie
8fe2596316 fix: stop animating banner and backgrounds when stop showing animated images is enabled 2024-07-15 10:48:05 +00:00
dakkar
f9a09b0358 merge: feat: Filter notifications by edit (!573)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/573

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <marie@kaifa.ch>
2024-07-15 10:34:13 +00:00
viridian
71f30a8cb7 Auto generate locals/index.d.ts 2024-07-15 08:53:01 +02:00
viridian
de2f85e88d Add locals en-US and ja-JP (machine translated) 2024-07-14 23:56:33 +02:00