Commit Graph

27374 Commits

Author SHA1 Message Date
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 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
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
viridian 70c87848dd feat: Filter notifications by edit 2024-07-14 23:55:25 +02:00
dakkar 05a568e5aa merge: reduce differences from misskey: icons references in source - closes #475 (!559)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/559

Closes #475

Approved-by: Luna <her@mint.lgbt>
Approved-by: Marie <marie@kaifa.ch>
2024-07-14 14:12:09 +00:00
dakkar 4d0a340620 merge: [feat] port fetching host-meta before the webfinger endpoint from iceshrimp - fixes #539 (!567)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/567

Closes #539

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <marie@kaifa.ch>
2024-07-14 14:10:54 +00:00
dakkar 0716095b27 merge: mute users when blocking them - fixes #558 (!572)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/572

Closes #558

Approved-by: Marie <marie@kaifa.ch>
Approved-by: fEmber <acomputerdog@gmail.com>
2024-07-14 14:09:46 +00:00
slonkazoid 2232f65410
use more concise syntax for env var checking 2024-07-14 16:11:11 +03:00
slonkazoid 1fa92ad763
rename fetchHostMeta to fetchWebFingerTemplateFromHostMeta 2024-07-14 16:11:02 +03:00
dakkar 9a9570ab62 mute users when blocking them - fixes #558
we already unfollow them, and make them unfollow us, so muting them is
a very sensible thing to want

since the mute is handled separately, users can un-mute the people
they block (same as they can re-follow them)
2024-07-13 10:53:40 +01:00
slonkazoid d81aadfe23
replace useHttp with defaultProtocol 2024-07-12 15:46:23 +03:00
slonkazoid 6fa6f1ba45
i re-read the code several times but oh well 2024-07-12 15:28:05 +03:00
slonkazoid 0b6fb394c0
apply fixes from review 2024-07-12 14:28:19 +03:00
dakkar 872460404a use correct user for preview/link of collapsed parent - fixes #575 2024-07-12 12:17:30 +01:00
dakkar 1253f080dd slightly better translations for delivery admin - fixes #570 2024-07-12 12:03:46 +01:00
dakkar d433c336d8 only require alt-text on image/video/audio - fixes #536 2024-07-12 11:40:37 +01:00
dakkar cced87da7f rate limit all password checks - fixes #540
all of these endpoints require the caller to already be logged in, so
it's not really much of a security problem, but it's still safer to
limit any endpoints that can be used to guess the current password
2024-07-12 11:15:58 +01:00
Amelia Yukii 7dfe9087b2 remove fedidb link 2024-07-11 19:49:52 +00:00
slonkazoid 7a62e1be31
implement fetching host-meta before the webfinger endpoint
code ported from iceshrimp: c3e685a925/packages/backend/src/remote/webfinger.ts
2024-07-09 05:45:41 +03:00
dakkar c4f4041cf8 merge: cache URL previews on the server (!565)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/565

Approved-by: fEmber <acomputerdog@gmail.com>
Approved-by: Luna <her@mint.lgbt>
2024-07-05 10:43:39 +00:00
dakkar 320db585e3 pass all the options to the cache constructor 2024-06-30 11:08:21 +01:00
dakkar 8cdea537e9 cache URL previews on the server
we already tell browsers to cache the preview for 7 days, but each
browser will ask the server, and the server will talk to the network,
hammering the poor site that got mentioned on fedi

let's instead cache the preview on the server!
2024-06-30 10:55:13 +01:00
Leah b5a69c3aea Add locales for search bar 2024-06-28 17:17:13 +02:00
Leah 1c0b1cab4f Style the searchbar 2024-06-28 16:55:48 +02:00