Compare commits

...

475 commits

Author SHA1 Message Date
Laura Hausmann dbd65a335a
[docs] Add postgresql-contrib to installation requirements 2024-03-21 14:41:07 +01:00
Laura Hausmann 01fbd1a5c7
[backend] Fix video playback for files hosted from different origins 2024-03-18 15:34:14 +01:00
Jegler b1b9616572
Add support for decoding AVIF images 2024-03-14 16:59:04 +01:00
Norm c8704f4517 [docs] Enable gzip compression in example nginx config
This should help reduce the bandwith usage of Iceshrimp when using
Nginx.

The `gzip_types` setting is copied from Akkoma's nginx config:
889b57df82/installation/nginx/akkoma.nginx (L66)
2024-03-14 00:18:21 -04:00
Laura Hausmann 0022e9d0e0
Update README.md 2024-03-07 17:44:17 +01:00
CookiLover311 ccec3e7e63 [mastodon-client] Add default reaction to /v1/instance 2024-03-01 14:25:41 +01:00
老周部落 3824767cc9 [backend] Fix resolver cannot parse some follows and notes request 2024-02-26 08:49:45 +01:00
naskya e9ef70e272
fix (backend): check url properly
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2024-02-26 00:11:21 +01:00
Norm 9ac99d9f86 [docs] Improve podman guide
- Create the `$HOME/.config/containers/systemd` dir if it doesn't
  already exists
- Fix the copy command for podman services
- Call `systemctl --user daemon-reload` to reload services before
  starting them.
2024-02-25 14:24:28 -05:00
konkonkon ef66626c43 [client] Update translations (Filipino)
Currently translated at 1.1% (21 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/fil/
2024-02-24 22:04:41 +01:00
konkonkon 594c7d7551 [client] Added translations (Filipino) 2024-02-23 20:34:53 +01:00
Salif Mehmed 799f83a1c8 [client] Update translations (Bulgarian)
Currently translated at 39.4% (742 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/bg/
2024-02-21 16:04:43 +01:00
jeder 9472dc7a8d [client] Update translations (Polish)
Currently translated at 96.4% (1817 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/pl/
2024-02-18 21:04:43 +01:00
Laura Hausmann 5de32c6097
Fix typo in changelog 2024-02-18 02:52:14 +01:00
Laura Hausmann f1a3965881
Release: v2023.12.5 2024-02-18 02:13:18 +01:00
Laura Hausmann 27017272b8
Update README 2024-02-17 19:15:09 +01:00
Laura Hausmann e2cff0340f
[backend] When fetching activities, specify the acceptable JSON-LD profile explicitly 2024-02-17 16:11:23 +01:00
Laura Hausmann 099ba9ce65
[backend] Enforce JSON-LD profile when fetching activities 2024-02-17 15:59:24 +01:00
Laura Hausmann 31122636d3
[backend] Fix federation for incoming note edits with an attachment that has no alt text 2024-02-17 04:04:25 +01:00
Laura Hausmann 20ae0829a5
Release: v2023.12.4 2024-02-16 19:42:36 +01:00
Laura Hausmann 5f6096c1b7
[backend] Verify object id host matches final URL when fetching remote activities 2024-02-16 18:42:23 +01:00
Laura Hausmann 9fc45f166c
[backend] Verify response content type when fetching remote activities 2024-02-16 18:42:22 +01:00
tournesol 4cd9c002e6 [client] Update translations (French)
Currently translated at 100.0% (1883 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/fr/
2024-02-15 09:04:43 +01:00
Laura Hausmann 129cc4408a
[mastodon-client] Register full OAuth scopes as well 2024-02-14 23:56:11 +01:00
Laura Hausmann 3399187302
[mastodon-client] Fix /v2/suggestions endpoint (undocumented API behavior strikes again) 2024-02-14 23:55:50 +01:00
Laura Hausmann e49d168ecd
[mastodon-client] Add support for quote_id parameter when creating posts (#515) 2024-02-13 16:51:08 +01:00
Laura Hausmann 63fa244ea8
[client] Fix migration page when migrating from/to the same account twice, resolves #514 2024-02-10 15:52:48 +01:00
Laura Hausmann 4b20ab6ad4
[backend] Fix typo in audience.ts isPublic check 2024-02-07 19:56:02 +01:00
Pyrox 826e2c2867
[nix] Update packaged yarn 2024-02-04 19:21:36 -05:00
Laura Hausmann dd6bd0267c
Release: v2023.12.3 2024-02-04 20:41:06 +01:00
Laura Hausmann 1378037384
[backend] Only allow author to see hidden posts 2024-02-04 20:23:42 +01:00
Laura Hausmann f14c5ed4ef
[backend/frontend] Disable post imports for security reasons 2024-02-04 20:12:51 +01:00
corite 3dff9eac78 fix: k8s persistence access mode 2024-02-02 21:35:24 +01:00
Laura Hausmann 827370c9df
[yarn] Update version to 4.1.0 2024-01-31 22:06:22 +01:00
Laura Hausmann a0acc7ef83
Release: v2023.12.2 2024-01-30 18:30:09 +01:00
Laura Hausmann a1460503cf
Make sure unresponsive split domain instances that come back to life don't get stuck isNotResponding 2024-01-30 18:27:06 +01:00
Laura Hausmann 7ed43b76b5
Improve dead instances pruning
This fixes a couple edge cases in which inactive but working instances could be caught by the dead instances filter
2024-01-30 18:00:54 +01:00
Laura Hausmann 0d28b07203
Don't send activities to dead instances
Co-authored-by: Johann150 <johann.galle@protonmail.com>
2024-01-29 21:50:05 +01:00
Salif Mehmed 565c2efbe5 [client] Update translations (Bulgarian)
Currently translated at 34.9% (658 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/bg/
2024-01-29 16:04:41 +01:00
Laura Hausmann dbaec21750
[docs] Add disclaimer for migrations from Misskey v13 and forks 2024-01-26 17:44:03 +01:00
Salif Mehmed c578172b42 [client] Update translations (Bulgarian)
Currently translated at 19.5% (369 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/bg/
2024-01-26 17:17:05 +01:00
Laura Hausmann d86205d8b5
[locales] Rename files to correct language/region code format 2024-01-26 17:16:57 +01:00
Laura Hausmann 1d2da1a7fb
Update README.md 2024-01-25 04:10:49 +01:00
Laura Hausmann 42fe936e96
Update README.md
Added information on the ongoing rewrite efforts
2024-01-20 20:53:34 +01:00
corite 4d9b8df5c6 feat: enable persistence in chart 2024-01-14 21:25:57 +01:00
corite 5c405defa0 chore: update chart dependencies 2024-01-14 20:35:52 +01:00
corite 6b91be1b0e fix: update image link 2024-01-13 08:25:44 +01:00
corite a5ef9b9d94 fix: helm chart issues 2024-01-13 08:25:44 +01:00
Daks d07f5c4bd7 [client] Update translations (Ukrainian)
Currently translated at 100.0% (1883 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/uk/
2024-01-05 00:04:40 +01:00
jolupa b05ad9eada [client] Update translations (Catalan)
Currently translated at 98.0% (1847 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/ca/
2024-01-05 00:04:39 +01:00
Laura Hausmann 197002df8a
[backend] Fix emojis with special characters
This is an adaptation of 3968a6ca07 and ada577bde6

Co-authored-by: Johann150 <johann.galle@protonmail.com>
2024-01-04 23:55:00 +01:00
Jeder 299a20fb71
[docs] Add podman (quadlet/systemd) installation guide
Co-authored-by: Jeder <jeder+git@jeder.pl>
Co-committed-by: Jeder <jeder+git@jeder.pl>
2024-01-03 22:57:10 +01:00
Laura Hausmann 0a3fedfd4f
Release: v2023.12.1 (now with the correct package version) 2023-12-21 21:34:25 +01:00
Laura Hausmann 2d76fe4c8b
Release: v2023.12.1 2023-12-21 20:05:10 +01:00
mia 87360eab9c prevent extra colon from showing up 2023-12-21 08:40:45 -08:00
Laura Hausmann 52b0c6c8f8
[backend] Add a new index to the user table for faster notifications queries
This should drastically improve performance of the i/notification endpoint
2023-12-16 17:43:15 +01:00
Laura Hausmann 384fb76a26
[backend] Add a new index to the note table for faster generation of following query heuristics 2023-12-15 23:56:16 +01:00
Laura Hausmann bd63e16e5f
Release: v2023.12 2023-12-15 15:51:34 +01:00
Tournesol 7aa33f2497 Allow autocompletion of center and small MFM by adding them to the tag list 2023-12-15 15:01:00 +01:00
Laura Hausmann 0cb6f578ad
[backend] Don't join avatar and banner on i/notifications
This was an oversight on the recent database refactor and is no longer required
2023-12-14 20:34:24 +01:00
Salif Mehmed a8da3e94e4 [client] Update translations (Bulgarian)
Currently translated at 18.9% (357 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/bg/
2023-12-13 13:04:38 +01:00
AverageDood bb4ffc6c5c [client] Update translations (Spanish)
Currently translated at 100.0% (1883 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/es/
2023-12-11 21:04:38 +01:00
Salif Mehmed 536bc88bf5 [client] Update translations (Bulgarian)
Currently translated at 12.3% (232 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/bg/
2023-12-11 21:04:37 +01:00
Laura Hausmann e9a5b2cb7f
[meta] Disable JetBrains AI features for the project globally 2023-12-11 17:22:42 +01:00
Laura Hausmann 9c598fe3bf
[docs] Fix line breaks in migrate.md 2023-12-11 16:10:14 +01:00
Laura Hausmann 91d84649fd
[docs] Link to migration docs in README.md 2023-12-11 16:03:10 +01:00
Jeder 204f8bcd01
[docs] Add firefish migration docs 2023-12-11 15:52:48 +01:00
Laura Hausmann 8a642be6d9
[client] Fix pages and gallery tab navigation
This also adds a much nicer "add new gallery post" button to the gallery page
2023-12-08 15:15:34 +01:00
Laura Hausmann ffb1e11648
[yarn] Fix @babel/eslint-parser checksum 2023-12-08 13:51:51 +01:00
Laura Hausmann 4a50e464b6
[yarn] Fix @babel/eslint-parser package resolution 2023-12-08 13:50:22 +01:00
Pyrox c59adf1ac9 [feat] Dedupe babel dependencies
Removes 18 dependencies further from iceshrimp, which is ~1.9MB in dependency space saving
2023-12-08 13:30:27 +01:00
Pyrox c5e0dce64d [feat] Upgrade rollup plugins to rollup 4 compatible versions
This updates all rollup plugins to their latest version and ensures that there are no more peer dependency version warnings for rollup.
2023-12-08 13:30:03 +01:00
Pyrox ee23bd56a3 [feat] Upgrade Rollup to version 4 2023-12-08 13:30:03 +01:00
AntoineÐ a38caae060 add ALTER DATABASE in install.md 2023-12-08 13:12:48 +01:00
tournesol 8ed9ec53f9 [client] Update translations (French)
Currently translated at 100.0% (1883 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/fr/
2023-12-07 03:00:08 +01:00
AverageDood 911fa6efbb [client] Update translations (Spanish)
Currently translated at 100.0% (1883 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/es/
2023-12-07 03:00:07 +01:00
Laura Hausmann e8057d890e
[changelog] Update attribution lists 2023-12-04 16:26:06 +01:00
Laura Hausmann bc86299e43
Release: v2023.12-pre4 2023-12-04 16:14:41 +01:00
AntoineÐ 3d2cd873b9 #227 fix apps link 2023-12-04 14:18:08 +01:00
Laura Hausmann b2f5df1b19
[yarn] Update lockfile 2023-12-04 14:05:38 +01:00
Pyrox 64603dd584 [feat] Upgrade biome from 1.3.1 to 1.4.0 2023-12-04 14:04:37 +01:00
Pyrox 60f7e2cf6a [feat] Remove Twitter Integration 2023-12-04 13:49:36 +01:00
AntoineÐ 042e8c552d enhanced boot.js style 2023-12-04 13:39:46 +01:00
AntoineÐ d0e995639b fix boot.js color with new branding 2023-12-04 13:39:46 +01:00
Laura Hausmann 4a90408386
[backend] Don't proxy relative URLs
This fixes the instance icon for the local instance not being rendered correctly. Resolves #426
2023-12-04 13:34:36 +01:00
AntoineÐ 1c06b84011 Enhanced switch A11Y
>
>
Co-authored-by: Minybol <aimabol@skiff.com>
2023-12-04 13:17:56 +01:00
Pyrox 70ee2b9258 [iceshrimp-js] Update typescript to 5.1.6
This unifies the typescript version used throughout all packages, which removes 2 packages from the yarn cache and also makes things a bit neater.

We should try to bump this for all packages at the same time in the future.
2023-12-04 13:17:36 +01:00
AverageDood 4ad02b3e65 [client] Update translations (Spanish)
Currently translated at 100.0% (1883 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/es/
2023-12-01 17:00:06 +01:00
flimpie 74a7ad4e36 [client] Update translations (Dutch)
Currently translated at 75.8% (1429 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/nl/
2023-11-30 16:45:35 +01:00
AntoineÐ c4a988b02f [client] Update translations (French)
Currently translated at 99.9% (1882 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/fr/
2023-11-30 16:45:34 +01:00
flimpie ad63dc8161 [client] Update translations (English)
Currently translated at 100.0% (1883 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/en/
2023-11-30 16:45:32 +01:00
Laura Hausmann 2e8598acb5
[mastodon-client] Fix /v1/accounts/relationships for clients that don't use the id[] parameter 2023-11-30 16:45:00 +01:00
flimpie cb8b736592 [client] Update translations (Dutch)
Currently translated at 42.7% (805 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/nl/
2023-11-29 23:10:22 +01:00
AverageDood de5fd90113 [client] Update translations (Spanish)
Currently translated at 100.0% (1883 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/es/
2023-11-29 23:10:21 +01:00
Laura Hausmann 4794702e6f
[client] isUpdateAvailable should not block UI rendering 2023-11-29 21:21:34 +01:00
Laura Hausmann cd8809e927
[client] Fix update check 2023-11-29 17:59:47 +01:00
Laura Hausmann aaed62bde1
[mastodon-client] Fix html cache prewarm not including quote uris 2023-11-28 17:52:28 +01:00
Laura Hausmann 30631418d9
[changelog] Add missing changes for v2023.12-pre2
This was missed in the hectic surrounding the security fix.
2023-11-28 02:21:38 +01:00
AverageDood 5ffbe88c7e [client] Update translations (Spanish)
Currently translated at 98.0% (1846 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/es/
2023-11-28 01:08:10 +01:00
Pyrox 45444a4196 [client] Update translations (English)
Currently translated at 100.0% (1883 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/en/
2023-11-28 01:08:09 +01:00
Froggo cbf0413c92 [client] Update translations (English)
Currently translated at 100.0% (1883 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/en/
2023-11-28 01:08:09 +01:00
Laura Hausmann 2652391a1f
Release: v2023.12-pre3 2023-11-28 00:09:59 +01:00
Laura Hausmann 58137c9482
[mastodon-client] Preserve state parameter during OAuth
This fixes login with clients that require the state parameter to be preserved during /oauth/authorize.
2023-11-27 23:31:07 +01:00
Laura Hausmann 89bc799765
[mastodon-client] Fix login with clients that leave a trailing + in the scope parameter 2023-11-27 23:11:54 +01:00
AverageDood 8b41cba3e1 [client] Update translations (Spanish)
Currently translated at 90.8% (1711 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/es/
2023-11-27 22:38:55 +01:00
Pyrox 16b7d596de [client] Update translations (English)
Currently translated at 100.0% (1883 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/en/
2023-11-27 22:38:54 +01:00
Laura Hausmann 7c5bc06bb8
[backend] Actually utilize packed user cache in notes.packMany 2023-11-27 22:33:06 +01:00
Laura Hausmann 913f1659b3
[backend] Use correct identifier for filteredNoteCache 2023-11-27 22:22:24 +01:00
Laura Hausmann 436fb826ac
[client] Fix copyToClipboard so it no longer copies things with weird formatting
This also switches to a non-deprecated clipboard API
2023-11-27 22:20:14 +01:00
Laura Hausmann 8a7c7cb0c9
[backend] Increase length of database columns containing hostnames 2023-11-27 21:58:26 +01:00
Laura Hausmann 03cdf4ec4a
[mastodon-client] Add basic support for filters
Currently you have to configure these in the web ui, but this will eventually be implemented as well
2023-11-27 21:41:09 +01:00
Laura Hausmann ef3463e8dc
[backend] Rework note hard mutes
It's been shown that the current approach doesn't scale. This implementation should scale perfectly fine.
2023-11-27 19:43:45 +01:00
Laura Hausmann 2d475cb632
[backend] Fix html cache dbFallback for user profiles 2023-11-27 14:38:16 +01:00
Laura Hausmann 683e01d286
[backend] Improve updateUserProfileData
Now only runs updateMentions once, and correctly triggers prewarmCacheById
2023-11-27 01:37:00 +01:00
Laura Hausmann 58d70d005f
[mastodon-client] Handle html cache misses properly 2023-11-27 01:02:12 +01:00
Laura Hausmann 7ab7edeefd
[mastodon-client] Improve html cache performance 2023-11-27 00:07:24 +01:00
Laura Hausmann 61c532a854
[mastodon-client] Add html cache for user profiles and note contents 2023-11-26 21:41:20 +01:00
Laura Hausmann 6832347b6c
[backend] Set updatedAt on local user update 2023-11-26 21:41:19 +01:00
Laura Hausmann 21319a5573
Release: v2023.12-pre2 2023-11-26 21:13:29 +01:00
Laura Hausmann 8890902675 [backend] Fix HTTP signature validation
Co-authored-by: perillamint <perillamint@silicon.moe>
Co-authored-by: yunochi <yuno@yunochi.com>
2023-11-26 20:34:25 +01:00
PrivateGER b814ebcdfb Add setting for an autofollowed account on signup 2023-11-25 18:50:54 +01:00
AntoineÐ 4f9b5d9f72 fix branding gradient angle 2023-11-25 18:50:19 +01:00
Laura Hausmann 7a031bb8ce
[changelog] Add missing attribution section and fix wording for v2023.12-pre1 2023-11-25 18:44:13 +01:00
Laura Hausmann c18cb3acae
Release: v2023.12-pre1 2023-11-25 18:26:49 +01:00
Laura Hausmann 13e93dc461
[backend] [client] Import the proper userland punycode module 2023-11-25 03:58:30 +01:00
Laura Hausmann 9cc900faae
[backend] Use happy-dom in generic mfm-to-html as well 2023-11-25 03:47:44 +01:00
Laura Hausmann 49e2edfa6c
[docs] Add information on running with multiple workers 2023-11-25 03:18:39 +01:00
Laura Hausmann 6849a10a6a
[docs] Add ICESHRIMP_SECRETS to installation docs 2023-11-25 03:09:49 +01:00
Laura Hausmann 026538f8a1
[backend] Add support for a second config file containing secrets
This is required for some packaging scenarios
2023-11-25 03:08:15 +01:00
Laura Hausmann 5490137f44
[mastodon-client] Fix user profile aggregate when only target is self 2023-11-25 02:12:02 +01:00
Laura Hausmann f350755721
[mastodon-client] Switch to happy-dom 2023-11-25 02:11:44 +01:00
Laura Hausmann 60a6e08c0b
[mastodon-client] Add note.user joins to all timeline queries 2023-11-25 01:50:49 +01:00
Laura Hausmann b1d3e1d05f
[mastodon-client] Aggregate applicable fields in NoteConverter and UserConverter 2023-11-25 01:37:23 +01:00
Laura Hausmann 3ccfd0417b
[backend] Improve renote status aggregate query 2023-11-24 21:14:17 +01:00
Laura Hausmann 8a6101059f
[client] Revert pull-to-refresh changes for now 2023-11-24 18:30:05 +01:00
Laura Hausmann cbedd28724
[client] Upgrade vue and vite to their respective latest versions 2023-11-24 05:08:11 +01:00
Laura Hausmann 706ff84d8d
[client] Reset lastFetchScrollTop on MkPagination reload 2023-11-24 04:31:27 +01:00
Laura Hausmann 55f5966343
[client] Add custom pull-to-refresh component to MkPagination 2023-11-24 04:08:19 +01:00
Laura Hausmann 7aa3bdb641
[backend] Use more efficient home timeline heuristics query 2023-11-24 04:08:10 +01:00
Laura Hausmann b9b669570b
[docs] Add section on environment variables to install.md 2023-11-24 00:51:36 +01:00
Laura Hausmann d408bdd6aa
[client] Further adjust timeline prefetch parameters 2023-11-24 00:33:34 +01:00
Laura Hausmann dc7d06ff74
[client] Remove debug logging 2023-11-24 00:20:56 +01:00
Laura Hausmann c742729796
[client] Adjust timeline prefetch parameters 2023-11-24 00:20:07 +01:00
AntoineÐ ff55cad0fb [client] Update translations (French)
Currently translated at 100.0% (1883 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/fr/
2023-11-23 23:50:23 +01:00
Laura Hausmann c08f0894c5
Update README.md
Co-authored-by: AntoineÐ <ad-git@kher.nl>
2023-11-23 22:53:04 +01:00
Laura Hausmann 8ed1bda017
[backend] Don't emit followRequestAccepted if followee is not locked
Resolves #395
2023-11-23 22:22:05 +01:00
Laura Hausmann e5276e2765
[backend] Add environment variables to configure config file location, files directory and custom assets directory 2023-11-23 20:31:08 +01:00
AntoineÐ bb669edb82 [client] Update translations (French)
Currently translated at 100.0% (1883 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/fr/
2023-11-23 20:00:04 +01:00
Laura Hausmann f9f7553ecd
[client] Improve prefetchMore debounce 2023-11-23 19:35:50 +01:00
Laura Hausmann 248bf22b94
[client] Use defaultStore instead of $store, debounce fetches 2023-11-23 19:08:37 +01:00
Laura Hausmann 9a34c38d0b
[client] Fix smart timeline fetching 2023-11-23 18:36:07 +01:00
Laura Hausmann 151e7499c3
[client] Smarter timeline fetching 2023-11-23 18:18:05 +01:00
Laura Hausmann c347eca737
[client] Remove url card animation 2023-11-23 17:17:29 +01:00
Laura Hausmann 789fd97512
[client] Allow async+lazy rendering of all images in timeline views 2023-11-23 17:16:52 +01:00
Laura Hausmann 3cb46cd6fc
[backend] Update re2 dependency
re2 was updated to include https://github.com/uhop/node-re2/pull/198 which fixes build on nixOS
2023-11-23 14:59:49 +01:00
Laura Hausmann b4214d257f
[client] Disable overscroll for root element 2023-11-23 01:16:02 +01:00
Laura Hausmann 5132411e76
[client] Provide option to use vue devtools despite NODE_ENV=production
In theory we wouldn't need this but since the UI is completely unresponsive if NODE_ENV is set to development, this provides partial frontend debugging support until that issue is fixed.
2023-11-22 23:18:40 +01:00
Laura Hausmann fd6ee32832
[backend] Don't fetch more notes than requested 2023-11-22 20:25:47 +01:00
Laura Hausmann 735fd37707
[backend] Only pack each user once per request 2023-11-22 20:25:47 +01:00
Laura Hausmann 4e6e22633e
[backend] Rework media proxying for better performance 2023-11-22 19:23:51 +01:00
Laura Hausmann c00e28712e
[backend] Revert postgres geqo threshold and collapse limits to defaults
This is no longer required due to the refactored user table requiring significantly less table joins in more complex queries
2023-11-22 18:59:38 +01:00
Laura Hausmann 302b112f05
[backend] Include avatar & banner url and blurhash in the user table
This drastically improves timeline performance due to the many (2-6 per query) database joins that are now no longer required
2023-11-22 18:59:38 +01:00
Laura Hausmann 6e82e18eea
[backend] Add multi column index for userHost to note table
This drastically improves local and social timeline performance
2023-11-22 04:39:37 +01:00
Laura Hausmann eff0f32dc1
[backend] We don't need to check for visibility if we already filter for public posts only 2023-11-22 04:39:37 +01:00
AntoineÐ 6bc42c2a9b [client] Update translations (French)
Currently translated at 100.0% (1883 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/fr/
2023-11-22 02:26:31 +01:00
Laura Hausmann c112aff7cb [client] Update translations (German)
Currently translated at 98.0% (1846 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/de/
2023-11-22 02:26:31 +01:00
Laura Hausmann e2b8c95530
[client] Fix typo in translations 2023-11-22 02:26:20 +01:00
Laura Hausmann 8fa2bf5dca
[backend] Fix an edge case where notifications wouldn't load properly 2023-11-22 00:28:37 +01:00
Laura Hausmann 8ecf361870
[backend] Implement heuristics for home timeline queries
After lots of performance analysis, we've ended up with a cutoff value of 250 posts in the last 7d, after which we should switch which query plan to nudge postgres towards. This should greatly improve performance of users who were previously performance edge cases.
2023-11-22 00:14:54 +01:00
Laura Hausmann a5b30a6adc
[backend] Fix notifications not loading correctly
This fixes a regression introduced in a6fa393359
2023-11-21 01:27:00 +01:00
Laura Hausmann 661c31db0c
[backend] Set postgres geqo threshold and collapse limits to something more reasonable until we've refactored the backend to require less joins 2023-11-21 01:22:07 +01:00
Laura Hausmann a6fa393359
[backend] Return isRenoted status in Notes.pack instead of requesting it individually 2023-11-21 01:00:14 +01:00
Laura Hausmann efde111779
[client] Fix search filter syntax window replacing the page title 2023-11-20 20:39:22 +01:00
AntoineÐ 534bc5cc98 [client] Update translations (French)
Currently translated at 100.0% (1883 of 1883 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/fr/
2023-11-20 17:18:45 +01:00
Laura Hausmann 84737cdc7c
[client] Update search filter translations 2023-11-20 17:18:35 +01:00
Laura Hausmann a660ea6dea
[client] Don't display back button for search page 2023-11-19 16:47:16 +01:00
Laura Hausmann 51065dd170
[client] Fix search page behavior in windows 2023-11-19 16:22:09 +01:00
Laura Hausmann ed6d5d2db6
[docker] BuildKit caches break immutable cache, let's stick to immutable lockfile 2023-11-19 04:40:44 +01:00
Laura Hausmann e5a003d6fb
[client] Fix search page not being rendered when query is empty 2023-11-19 04:35:52 +01:00
Laura Hausmann 47d4b3aba1
[client] Fix spaces in search query parameter parsing 2023-11-19 04:18:15 +01:00
Laura Hausmann 4c12a8882e
[docs] Remove search backends from installation docs, example config & example docker-compose.yml 2023-11-19 04:10:00 +01:00
Laura Hausmann 78c5e1dcdb
[client] Fix guest search disclaimer not being displayed properly 2023-11-19 03:58:36 +01:00
Laura Hausmann b346cc20d9
[client] Fix search tab reactivation 2023-11-19 03:51:13 +01:00
Laura Hausmann 16057fb237
[client] Don't load inactive tabs in search 2023-11-19 03:51:13 +01:00
Laura Hausmann a703638199
[client] Don't show FTS filters in user search and guest view 2023-11-19 03:51:13 +01:00
Laura Hausmann dcee692caf
[client] Add in:favorites and in:bookmarks to FTS filter menu 2023-11-19 03:51:12 +01:00
Laura Hausmann ee4b58dee8
[client] Add proper search page 2023-11-19 03:51:12 +01:00
Laura Hausmann 855409332b
[backend] Add in:bookmarks and in:favorites postgres FTS filters 2023-11-19 01:36:57 +01:00
Laura Hausmann 8c43c5cae6
[backend] Make inverse postgres FTS filters consistent with regular ones 2023-11-19 01:36:57 +01:00
Laura Hausmann 98f40d8865
[backend] Add instance:local postgres FTS filter 2023-11-19 01:36:57 +01:00
Laura Hausmann e1ae37dbdb
[backend] Improve postgres FTS filters 2023-11-19 01:36:57 +01:00
Laura Hausmann 5d1bb36be3
[client] Improve postgres FTS filter menu and guide 2023-11-19 01:36:56 +01:00
Laura Hausmann 768165776d
[backend] Allow case sensitive and word search for postgres FTS 2023-11-19 01:36:56 +01:00
Laura Hausmann 4f3bf91e7f
[client] Remove post indexing UI 2023-11-19 01:36:56 +01:00
Laura Hausmann 361176448e
[backend] Add postgres FTS migration 2023-11-19 01:36:56 +01:00
Laura Hausmann b2f6808bef
[backend] Make postgres FTS filter: filters slightly more typo-safe 2023-11-19 01:36:56 +01:00
Laura Hausmann b7a5c192d8
[backend] Improve postgres FTS mention filter query 2023-11-19 01:36:56 +01:00
Laura Hausmann 292e537dc7
[backend] Improve postgres FTS attachment filter query 2023-11-19 01:36:55 +01:00
Laura Hausmann 1b4fedc59f
[client] Improve search filter menu 2023-11-19 01:36:55 +01:00
Laura Hausmann b4616d3f36
[backend] Don't exclude local user in search-by-username-and-host 2023-11-19 01:36:55 +01:00
Laura Hausmann 5b672e20af
[backend] Postgres FTS query should be trimmed 2023-11-19 01:36:55 +01:00
Laura Hausmann c72eb36d66
[backend] Improve postgres FTS tokenizer 2023-11-19 01:36:55 +01:00
Laura Hausmann e405d348ed
[backend] Implement basic tokenizer for postgres FTS 2023-11-19 01:36:54 +01:00
Laura Hausmann a88d581413
[backend] Implement filters for postgres FTS 2023-11-19 01:36:54 +01:00
Laura Hausmann 9b2e966c19
[backend] Remove external search backends 2023-11-19 01:36:54 +01:00
Laura Hausmann cdec8c4efd
Release: v2023.11.3 2023-11-19 01:29:39 +01:00
Pyrox 33f5217fad [yarn]: Enable support for corepack offline installs
This is required to enable building from nix, as corepack cannot fetch the yarn version from npmjs.com during a build.
Thus, an offline version is required.

This also means that when upgrading yarn, also ensure to run `yarn fetch-yarn` to fetch the latest yarn version to the correct place, and commit that with your version bump.
This will ensure that the version in the repo is kept in sync with the version in package.json.
2023-11-19 01:12:51 +01:00
Jeder 054a40d5f4
[locales] Change default locale to en-US
Fixes settings page on jp-JP locale
2023-11-18 22:33:52 +01:00
Laura Hausmann b73a07011a
[backend] Backslash needs to be escaped in sqlLikeEscape 2023-11-18 19:46:37 +01:00
Laura Hausmann cca23bf5d9
[ci] Fix immutable cache breaking CI builds due to caching 2023-11-18 02:35:10 +01:00
Laura Hausmann 2231b9ca19
[yarn] Update .yarnrc.yml in focus-production 2023-11-17 01:52:56 +01:00
Laura Hausmann 64cffd2d68
[docker] Build with immutable lockfile and cache 2023-11-17 00:21:59 +01:00
Laura Hausmann a5b072016a
[docker] Copy all files in initial pass
Efficient layers in the build stage aren't really useful, as we're only uploading layers from the runtime stage anyway
2023-11-17 00:10:51 +01:00
Laura Hausmann 3a02f5492f
[docker] Fix yarn cache not being loaded due to missing files in dependency yarn pass 2023-11-17 00:08:18 +01:00
Laura Hausmann bf64af37af
Release: v2023.11.2 2023-11-16 23:03:44 +01:00
Laura Hausmann 9ee786e888
[mastodon-client] Verify scopes are identical between /oauth/authorize and /oauth/token instead of testing whether they are a subset 2023-11-16 20:37:21 +01:00
Laura Hausmann 3def0bdf7f
[docs] Update badges in README 2023-11-16 20:37:11 +01:00
Pyrox 1b10406474 [docs] Update nix development docs
Updates them to note you need to install git-lfs
Removes parts related to the rust parts of the environment that no longer exist
Also adds that if you have problems with the environment, you should join the matrix room and ping me.
2023-11-15 23:37:24 +01:00
Laura Hausmann e17f2659f5
[docs] Improve git-lfs disclaimers
Not all distros automatically run git lfs install, so we should advise users to do so themselves.
2023-11-15 21:32:42 +01:00
Laura Hausmann bea635620c
[yarn] Update .pnp.cjs 2023-11-15 19:35:02 +01:00
Laura Hausmann 258f15e842
[yarn] Fix another runtime peer dep 2023-11-15 19:31:15 +01:00
Laura Hausmann 4561461ab3
[yarn] Set pnpMode to strict 2023-11-15 19:31:15 +01:00
Laura Hausmann 67c4f65f31
[yarn] Fix buildtime peer deps 2023-11-15 19:29:21 +01:00
Laura Hausmann ed2050e6be
[yarn] Make dev script only build things once 2023-11-15 15:53:55 +01:00
Laura Hausmann 141c134698
[yarn] Fix dev script compatibility with yarn v4 2023-11-15 15:50:46 +01:00
Laura Hausmann c60414f347
[backend] Fix re2 imports 2023-11-15 15:17:35 +01:00
Laura Hausmann 20410b0543
[backend] Move back to upstream re2 dependency
Upstream accepted my patches for both re2 (fixing build on arm64-musl) and the install-artifact-from-github dependency (cutting down build times for architectures where prebuilts are available from ~2 minutes to ~2 seconds), so there's no reason to stick with our fork.
2023-11-15 15:12:59 +01:00
AntoineÐ f7111925af Translated using Weblate (French)
Currently translated at 100.0% (1860 of 1860 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/fr/
2023-11-14 21:00:04 +01:00
Laura Hausmann c6272c6482
[yarn] Upgrade to v4.0.2 2023-11-14 19:59:22 +01:00
Laura Hausmann b45be30d19
[mastodon-client] Fix scope parameter in /oauth/token 2023-11-14 17:19:17 +01:00
Laura Hausmann f2d7716f1a
[docs] Fix instructions on loading LFS data after cloning without git-lfs being installed 2023-11-12 19:55:49 +01:00
Laura Hausmann 0214b6c4c4
Update .gitattributes
This commit removes old gitattributes and adds a bunch of common binary file types to the file. This should minimize future accidental commits of binary data to the repository.
2023-11-10 20:08:43 +01:00
Laura Hausmann 188390f6e9
[docs] Don't recommend depth=1 for non-deployment-only docker clones
Due to the Git LFS migration this barely saves any disk space and it prevents users from switching branches
2023-11-10 19:19:11 +01:00
Pyrox 1a55a2404a
[flake] Allow building on arm systems, nodejs: 18 -> 20
This also changes from the `pkgs.yarn-berry` package to the `pkgs.corepack_20` package.

This allows us to use the package manager version from the package.json, negating the need to keep the nixpkgs `yarn-berry` package updated.
2023-11-10 12:49:41 -05:00
Laura Hausmann 6041f17c86
Build node-gyp dependencies with all available threads 2023-11-10 05:13:13 +01:00
Laura Hausmann 016e7dc752
[yarn] Upgrade to v4.0.1 2023-11-10 05:11:30 +01:00
Laura Hausmann ddb96686b2
Update ci-env Dockerfile 2023-11-10 04:32:28 +01:00
Laura Hausmann 4abab16b25
[docs] Add git-lfs disclaimers 2023-11-10 04:30:43 +01:00
Alexis 76db23855c
added more selective control over users show endpoint 2023-11-10 03:05:08 +01:00
AntoineÐ 84e8e095ec
#212 remove sub label 2023-11-10 02:05:03 +01:00
AntoineÐ 239d073a59
#212 i18n fix 2023-11-10 02:05:03 +01:00
AntoineÐ c33189bb63
#212 /about-iceshrimp grid links 2023-11-10 02:05:03 +01:00
AntoineÐ 5cfc5783fb
#212 Enhanced /about-iceshrimp 2023-11-10 02:05:03 +01:00
AntoineÐ 9b36a544d8
#225 Fix local only icon 2023-11-10 02:04:31 +01:00
Laura Hausmann 2baa787b72
[backend] Dynamically import redisClient in postgre.ts and dependencies
This fixes unnecessary redisClient instances being created during migration runs, which previously prevented the revertmigration command from exiting by itself due to a TypeORM inconsistency between migration:run and migration:revert.
2023-11-07 23:12:20 +01:00
Laura Hausmann 1488529228
[docs] Update bare metal install guide 2023-11-07 01:53:31 +01:00
Laura Hausmann ecb54be00b
Update COPYING 2023-11-07 00:09:27 +01:00
Laura Hausmann 0bf429488c
[yarn] Make regen-version log output nicer 2023-11-06 23:06:24 +01:00
Laura Hausmann 780cfcaa4d
[yarn] Allow overriding the revision for the regen-version script 2023-11-06 22:52:53 +01:00
Laura Hausmann 57b966d7c0
[yarn] Add regen-version script 2023-11-06 22:40:20 +01:00
Laura Hausmann 698584f7aa
[docker] Utilize focus-production script 2023-11-06 21:51:43 +01:00
Laura Hausmann 9e53d46b71
[yarn] Add focus-production script 2023-11-06 20:00:09 +01:00
AntoineÐ c033e54225 Translated using Weblate (French)
Currently translated at 100.0% (1856 of 1856 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/fr/
2023-11-06 12:00:03 +01:00
Laura Hausmann 1fa33f594d
[yarn] Patch in missing peer dependencies 2023-11-05 21:51:27 +01:00
Laura Hausmann fbd3259893
[docker] Remove all unnecessary dependencies from Dockerfile 2023-11-05 21:31:19 +01:00
Laura Hausmann 921bf1ca5f
Release: v2023.11.1 2023-11-05 18:23:07 +01:00
Laura Hausmann 7cf00d1503
[backend] Move to our own fork of the re2 package
This fixes builds on alpine-arm64 (and presumably also other musl-arm64 distros)
2023-11-05 16:54:00 +01:00
Laura Hausmann b5a26e1667
[docs] Add corepack disclaimer to bare metal install guide 2023-11-05 15:20:05 +01:00
Laura Hausmann f358c31162
[docker] Use corepack yarn version instead of @stable 2023-11-05 15:20:05 +01:00
Laura Hausmann 42aa8b7126
[backend] Remove cache server configuration, migrate back to unified redis in-memory cache 2023-11-05 15:03:17 +01:00
Laura Hausmann 9d4f74d290
[backend] Add _misskey_summary field
This fixes federation of MFM in user bios between *key instances

Co-authored-by: default avatarkakkokari-gtyih <daisho7308+f@gmail.com>
ref: https://github.com/misskey-dev/misskey/pull/12184
2023-11-05 14:49:51 +01:00
Laura Hausmann b6ee1c5dc4
[mastodon-client] Add missing semicolon 2023-11-04 23:51:58 +01:00
Laura Hausmann 734c6685f7
[mastodon-client] Don't duplicate RE: for pleroma/akkoma quotes 2023-11-04 23:50:08 +01:00
Laura Hausmann 35c75bbebf
[backend] Reset poll votes when choices change on note edit 2023-11-04 23:22:34 +01:00
Laura Hausmann 8b78709378
[backend] Fix errors in updateNote
This fixes incoming federation of poll edits
2023-11-04 23:08:29 +01:00
AntoineÐ 4d3d1b270c Translated using Weblate (French)
Currently translated at 100.0% (1851 of 1851 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/fr/
2023-11-04 22:25:27 +01:00
Laura Hausmann c61bf59b11 Translated using Weblate (German)
Currently translated at 98.7% (1828 of 1851 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/de/
2023-11-04 22:25:27 +01:00
Laura Hausmann dbdd60d89f
[client] Add wellness preferences 2023-11-04 22:24:05 +01:00
Laura Hausmann 3c2143efd5
[client] Include another missing setting in preference backups 2023-11-04 20:38:14 +01:00
Laura Hausmann cc62237ae8
[client] Include missing settings in preference backups
Resolves #272
2023-11-04 20:37:14 +01:00
Laura Hausmann 0e03f305cb
Change icon for 'Mark as read' buttons 2023-11-04 19:44:13 +01:00
Laura Hausmann a6f5a1dbbb
Update README to better reflect project goals 2023-11-04 18:07:24 +01:00
Aylam 7d85de4d5c Don't show tooltips when touch input is used 2023-11-04 17:23:03 +02:00
Laura Hausmann 1d8217e9a0
[ci] Remove cargo volumes from test-build workflow 2023-11-04 15:09:46 +01:00
Laura Hausmann 17f683542b Translated using Weblate (German)
Currently translated at 97.3% (1802 of 1851 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/de/
2023-11-04 00:42:33 +01:00
Laura Hausmann 8231d8910e
[client] Use i18n strings for the reworked OAuth login page 2023-11-04 00:37:25 +01:00
Laura Hausmann 093f13646e
[client] Rework OAuth login page 2023-11-04 00:34:48 +01:00
Laura Hausmann be02bc78ad
[client] Hide channels from guest view 2023-11-03 22:56:03 +01:00
Laura Hausmann 2166ea019d
[backend] Require authentication to view channels 2023-11-03 22:56:02 +01:00
Aylam fe2a97a6c3
Remove title attribute from MkUrl 2023-11-03 22:32:28 +01:00
Aylam e007004a72
Remove 'Twitter (soon)' option 2023-11-03 22:31:17 +01:00
Aylam cd82073953
Extend CW and 'Show more' buttons to post edges 2023-11-03 22:31:00 +01:00
Laura Hausmann 00b8622612
[client] Make switch layout a toggle instead of a dropdown 2023-11-03 22:22:42 +01:00
Laura Hausmann cd48af6393
[backend] Fix polls not federating properly to non-*key servers
This fixes a regression that caused the `content` attribute of rendered notes with polls attached to be set to `{}`, causing undefined behavior in Mastodon & Akkoma. Misskey & forks just use the `_misskey_content` attribute, which was unaffected.
2023-11-03 16:09:54 +01:00
Aylam 8b44e32a1a
Remove 'Centered' layout 2023-11-03 14:41:49 +01:00
Aylam 2ff6ddc548
Replace rome with biome in .vscode/extensions.json 2023-11-03 13:51:44 +01:00
Laura Hausmann 1e2045bf33
[backend] Correctly handle tags on edit 2023-11-03 13:49:46 +01:00
Laura Hausmann 6d715cfef5
[backend] Don't return local only notes for guest users 2023-11-02 18:47:54 +01:00
Laura Hausmann b100b88971
Migrate from rome to biome 2023-10-27 16:46:38 +02:00
Laura Hausmann df4664bbc2
Release: v2023.11 2023-10-27 15:53:39 +02:00
Pyrox 0a7303dfba [config] Update devenv.yml config for Nix-based development
Just removes the deprecated `id` variable as well as the (commented out)elasticsearch settings since those don't exist anymore
2023-10-26 18:30:34 -04:00
Pyrox e8fea317fa
[nix devenv] Devenv cleanup
This commit does the following:
* Removes Rust development tools from the devenv since all Rust code has been removed
* Removes the deprecated `id` parameter from the `devenv.yml` config, as well as making its formatting actually correct.
* Updates the lockfile of the Nix flake so that all latest versions of tools that are needed are installed.
2023-10-26 18:43:36 +02:00
Laura Hausmann c49780bcee
Fix build on NodeJS 21 2023-10-26 18:38:39 +02:00
Laura Hausmann 1f9a68cd9c
Release: v2023.11-pre5 2023-10-25 21:04:05 +02:00
Laura Hausmann a63ad0c132
Revert "Rename Vue files for consistency"
This reverts commit dad096ee4c4d085670b64c929bf46f65cd4c9c30.
2023-10-25 20:30:32 +02:00
Laura Hausmann 949cac91bd
Release: v2023.11-pre4 2023-10-25 19:20:50 +02:00
Aylam 72fba5fc76
Update .yarn/sdks 2023-10-25 18:49:17 +02:00
Aylam 38412e5b48
Rename Vue files for consistency 2023-10-25 18:44:51 +02:00
jeder a58e1c4e7f Translated using Weblate (Polish)
Currently translated at 99.6% (1843 of 1849 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/pl/
2023-10-25 18:23:19 +02:00
Laura Hausmann 80c9280682
[backend] Decrease default RecursionLimiter count to 10 2023-10-25 18:11:30 +02:00
Laura Hausmann 1cbfd68a39
[backend] Also use RecursionLimiter for parseAudience and noteCreateService 2023-10-25 18:10:23 +02:00
Laura Hausmann 4dd8fdbd04
[backend] Refactor database transactions
This moves all code that isn't a direct call to transactionalEntityManager to outside of the transaction blocks, and removes all transaction blocks that were unnecessary
2023-10-25 17:03:08 +02:00
Laura Hausmann 7c56ee348b
[mastodon-client] Refresh user data in background on UserConverter.encode 2023-10-25 14:15:03 +02:00
Laura Hausmann 2575588fa3
[backend] Use a recursion limiter for user profile mentions instead of disabling recursion altogether 2023-10-25 13:49:10 +02:00
Laura Hausmann 9b13ec9c0c
[backend] Catch errors in refetchPublicKeyForApId 2023-10-24 20:44:30 +02:00
Laura Hausmann 3b85491ee4
[backend] Don't recursively resolve user profile mentions 2023-10-24 18:50:41 +02:00
Laura Hausmann 7c8881f1a8
[backend] Limit user profile mentions queue to a concurrency of 5 2023-10-24 18:50:41 +02:00
Laura Hausmann 8c45d331ef
[mastodon-client] Bump compatible version to 4.2.1
This allows clients to detect support for features like "hide list members from home timeline"
2023-10-24 18:50:41 +02:00
AntoineÐ 5cdd6dd5ed Translated using Weblate (French)
Currently translated at 100.0% (1849 of 1849 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/fr/
2023-10-24 02:23:19 +02:00
Laura Hausmann d528947825
Fix typos in CHANGELOG.md 2023-10-23 00:13:10 +02:00
Laura Hausmann 7b62cbb28b
Release: v2023.11-pre3 2023-10-23 00:02:58 +02:00
Laura Hausmann d025177d2c
[mastodon-client] Fix renoteMuting for streaming API 2023-10-22 23:00:31 +02:00
Laura Hausmann 10865168bf
[backend] Fix UserListJoining delete query on unfollow 2023-10-22 22:50:47 +02:00
Laura Hausmann c7dc059116
[backend] Cleaner workaround for GoToSocial federation with authorized fetch 2023-10-22 22:00:17 +02:00
Laura Hausmann 496454cf1f
[backend] Fix initial federation initiated by GoToSocial in secure mode
This bypasses GoToSocial issue #1186 (ref: https://github.com/superseriousbusiness/gotosocial/issues/1186)
2023-10-22 19:43:31 +02:00
Laura Hausmann 89ab890331
[backend] [client] Add option to hide user lists from home timeline 2023-10-22 18:43:51 +02:00
Laura Hausmann fdd8c28aed
[backend] Don't filter search-by-username-and-host by recently active by default 2023-10-22 18:43:51 +02:00
Laura Hausmann 37ac6addd2
[backend] Remove unfollowed users from existing lists with migration 2023-10-22 18:43:51 +02:00
Laura Hausmann d1cf1b5611
[backend] Remove user from list on unfollow 2023-10-21 23:56:34 +02:00
Laura Hausmann 11b3d4fa0a
[backend] Require users to be followed before adding them to lists 2023-10-21 23:56:34 +02:00
Laura Hausmann 7ad6bbd32c
[backend] Remove user list proxy account 2023-10-21 23:56:33 +02:00
Laura Hausmann ed25373bc7
[mastodon-client] Return uri as url if status has no known url and is not local 2023-10-21 23:42:59 +02:00
Laura Hausmann d8f13b6a06
[mastodon-client] Prefer status url over uri 2023-10-21 23:24:08 +02:00
Laura Hausmann 04fa6bef15
[backend] Improved http signature verification checks
This fixes an edge case where federation with split domain instances could fail.
2023-10-21 22:39:03 +02:00
Laura Hausmann 1f53affd76
Upgrade versions of dependencies with critical vulnerabilities 2023-10-20 23:16:11 +02:00
Laura Hausmann 97c733dd72
[backend] Add cache for resolveMentionToUserAndProfile 2023-10-20 20:20:49 +02:00
Laura Hausmann 544b5a1678
[backend] Use a semaphore around populateMentions
This fixes a user-generated DoS payload for giant webring-style trees of mentions in user bios that could cause backend stalls.
2023-10-20 20:16:01 +02:00
Laura Hausmann 9b96b54c3c
[backend] Add start:debug command 2023-10-20 16:47:18 +02:00
Laura Hausmann 9a2a0b2ca8
[docker] Revert changes as they didn't actually save space 2023-10-19 03:33:17 +02:00
Laura Hausmann 151c6ec9ef
[docker] Also copy yarn plugins 2023-10-19 03:28:29 +02:00
Laura Hausmann 4d6c4fbad9
[docker] Fix release script 2023-10-19 03:25:37 +02:00
Laura Hausmann 5e4c0fd912
[docker] Update Dockerfile 2023-10-19 03:23:07 +02:00
Laura Hausmann f8281c914c
[docker] Don't run yarn focus, as it's useless due to us using zero installs
Ref: https://yarnpkg.com/cli/workspaces/focus#details
2023-10-19 02:46:16 +02:00
Laura Hausmann 766bbbfa6c
[docs] Shallow clone by default 2023-10-19 02:44:55 +02:00
Laura Hausmann f8cfdeb67d
Fix compatibility with NodeJS >= 18.6, add npm cache for all supported architectures and platforms 2023-10-19 02:26:08 +02:00
Laura Hausmann 5c7a663320
[backend] Remove nsfw detection / tensorflow 2023-10-18 23:18:00 +02:00
Laura Hausmann 6b45b7019c
[backend] Enable authorized fetch by default for new instances
This does not affect existing instances.
2023-10-18 19:19:05 +02:00
AntoineÐ 5d496a1636
#326 fix "explore" header icon 2023-10-18 18:40:01 +02:00
Laura Hausmann 8b699248af
[backend] Fix mention host fallback 2023-10-18 17:20:46 +02:00
Laura Hausmann 1351fb686a
Use a tab width of 4 everywhere 2023-10-18 17:13:14 +02:00
Aylam e43d198b1a
Fix .vue files formatting 2023-10-18 17:13:14 +02:00
Aylam 8b860cd744
Tweak default themes 2023-10-18 17:02:32 +02:00
Laura Hausmann 4748f30214
[mastodon-client] Prevent updateUserInBackground from running excessively 2023-10-18 13:20:20 +02:00
Laura Hausmann 062d256a67
[backend] Update user profile mentions in background 2023-10-18 13:02:13 +02:00
Laura Hausmann 32d471803c
[mastodon-client] Recurse one last time for reblogged quotes in NoteConverter.encode 2023-10-18 01:42:14 +02:00
Laura Hausmann b48594ef68
[mastodon-client] Switch to isQuote for detecting quotes 2023-10-18 01:30:10 +02:00
Laura Hausmann 44fb31ab13
[mastodon-client] Use new backend service for user (profile) updates
This fixes profile updates not immediately federating when edited through the Mastodon client API.
2023-10-18 00:56:49 +02:00
Laura Hausmann d42a1eeb63
[backend] Clean up unnecessary code in resolve-user 2023-10-18 00:09:53 +02:00
Laura Hausmann 998bb1ae08
[mastodon-api] Only wait up to 1500 ms for mentions to update on /accounts/update_credentials 2023-10-18 00:03:45 +02:00
Laura Hausmann b8bd0c9f3b
[backend] Use correct capitalization when rendering mentions 2023-10-17 22:36:28 +02:00
Laura Hausmann 4920b0c768
[backend] Federate outgoing invalid mentions as text 2023-10-17 20:53:36 +02:00
Laura Hausmann 5dcd4c4fff
[mastodon-client] Skip invalid mentions 2023-10-17 20:36:07 +02:00
Laura Hausmann eadf9acdc3
[backend] Generate VAPID keys during meta bootstrap 2023-10-17 18:45:11 +02:00
AntoineÐ 4006e74eca Translated using Weblate (French)
Currently translated at 100.0% (1848 of 1848 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/fr/
2023-10-17 09:23:18 +02:00
Laura Hausmann 6ffe09709e
[backend] Fix error images configuration load 2023-10-17 01:20:58 +02:00
Erin Shepherd 0c9c04f89d
[backend] Refetch user keys when HTTP Signature validation fails
If a user has had a key rotation, and nobody on this server follows
that user, we will not receive the Update activity with the new key

Therefore, when we encounter key validation errors we should check
for an up-to-date key.

References (other implementations):

 * [Mastodon](fc9ab61448/app/controllers/concerns/signature_verification.rb (L96))
 * [Akkoma](https://akkoma.dev/AkkomaGang/http_signatures/src/branch/main/lib/http_signatures/http_signatures.ex#L46)
2023-10-17 00:52:51 +02:00
Laura Hausmann 092462d3a9
[mastodon-client] Add content_type to /statuses/:id/source 2023-10-17 00:45:33 +02:00
Aylam bd366b0682
Remove cliff.toml and .woodpecker folder 2023-10-17 00:37:59 +02:00
Laura Hausmann 2830953862
[mastodon-client] Rework quote rendering 2023-10-17 00:25:24 +02:00
Laura Hausmann 775d8f6e3a
[mastodon-client] Return fqn field for accounts 2023-10-16 23:45:03 +02:00
Laura Hausmann 9c4466035e
[mastodon-client] Set class=hashtag for tags in mfm-to-html 2023-10-16 23:42:18 +02:00
Laura Hausmann 4a6d010724
[mastodon-client] Return text/x.misskeymarkdown as supported_mime_types in /v1/instance 2023-10-16 23:23:25 +02:00
Laura Hausmann 97176e00f9
[mastodon-client] Return content_type for statuses 2023-10-16 23:21:01 +02:00
Laura Hausmann c64f6b6db6
[backend] Fix populateMentions remote filter 2023-10-16 01:41:14 +02:00
Laura Hausmann 3cdf9eee94
[mastodon-client] Update mentions in background on /i/update 2023-10-16 00:54:57 +02:00
Laura Hausmann 34376b0718
[mastodon-client] Also refresh user profile data on /accounts/:id 2023-10-15 23:22:00 +02:00
Laura Hausmann 7c7c6a09a2
[mastodon-client] Refresh user profile data on /accounts/lookup 2023-10-15 23:13:58 +02:00
Laura Hausmann 75c9873796
[backend] Update user profile mentions on createPerson and updatePerson 2023-10-15 22:34:20 +02:00
Laura Hausmann 82e0ef7414
[backend] Add mentions column to user_profile table 2023-10-15 21:57:59 +02:00
Laura Hausmann bc08d8c92b
[mastodon-client] Ignore capitalization for hashtag timeline 2023-10-15 21:57:56 +02:00
Laura Hausmann 4176ac20ac
[backend] Fix an old migration 2023-10-15 21:57:55 +02:00
Laura Hausmann 7af7f1c175
[backend] Make constraint creations in ResyncWithOrm migration idempotent too 2023-10-14 21:09:47 +02:00
Laura Hausmann 5f49d62817
[backend] Make index creations in ResyncWithOrm migration idempotent too 2023-10-14 20:59:43 +02:00
Laura Hausmann f90607146d
[backend] Make ResyncWithOrm migration idempotent 2023-10-14 20:52:12 +02:00
Laura Hausmann fe165dd4d3
[backend] Cache mention uri in resolveMentionWithFallback 2023-10-14 17:45:59 +02:00
Laura Hausmann c0d7ecf5c3
[backend] Actually resolve with objectHost 2023-10-14 17:40:06 +02:00
Laura Hausmann 8719a6922e
[backend] More mentions fixes 2023-10-14 17:11:21 +02:00
Laura Hausmann 588a39f17a
[backend] Don't refresh user data in resolveMentionWithFallback 2023-10-14 16:57:04 +02:00
Laura Hausmann ce29c1dce2
[mastodon-client] Use improved mention parsing in mfm-to-html 2023-10-14 16:48:49 +02:00
Laura Hausmann 349f770166
[backend] Actually try to resolve unknown mentions in mfm-to-html 2023-10-14 16:39:24 +02:00
Laura Hausmann 72f048a24d
[backend] Parse incorrectly formatted mentions in from-html 2023-10-14 16:12:22 +02:00
Laura Hausmann c02747116d
[backend] Fix typo 2023-10-14 15:37:28 +02:00
Laura Hausmann b33ca93195
[backend] Fix resync-with-orm migration
Due to a previously missing constraint there could be references to deleted users in the renote_muting table, this cleans that up.
2023-10-14 15:35:52 +02:00
Laura Hausmann 0261a666f1
[backend] Resync migrations with TypeORM
It appears people have been writing manual migrations for a while now, often containing errors that create duplicate or unused indicies, unique constraints on primary key columns, and so on. This commit resolves these, so migrations can be autogenerated again from now on.
2023-10-14 15:23:35 +02:00
Laura Hausmann 0dc2d5efa0
[mastodon-client] Actually display early errors in the OAuth process 2023-10-14 14:47:14 +02:00
Laura Hausmann c7e0659cfb
[mastodon-client] Fix handling of long redirect URIs in the oauth_token table 2023-10-14 14:41:49 +02:00
Laura Hausmann 2c0a006af6
[mastodon-client] Fix double-urlencoded redirect URLs
This fixes login in elk.zone
2023-10-14 14:41:49 +02:00
Laura Hausmann e5dc89c1cb
[mastodon-client] Fix type hints in AuthHelpers 2023-10-14 14:07:10 +02:00
Laura Hausmann 7b951f76ed
[mastodon-client] Add additional fields to /v1/apps response
This is undocumented under https://docs.joinmastodon.org/entities/Application/ but some apps expect it anyway.
2023-10-14 13:55:03 +02:00
Laura Hausmann c46ea29ba3
[mastodon-client] Fix streaming API url
This fixes a regression where some clients were unable to connect to the streaming API.
The /mastodon suffix was previously removed in other parts of the code as too many clients didn't respect it, however it was not removed here, leaving clients that do respect it are unable to connect.
2023-10-14 13:30:31 +02:00
Laura Hausmann 2192d5c668
[mastodon-client] Fix long redirect URIs 2023-10-14 03:22:21 +02:00
Laura Hausmann c053b9a045
Release: v2023.11-pre2 2023-10-14 01:02:05 +02:00
Laura Hausmann d049de2935
[mastodon-client] Fix scopes parsing error in auth helper 2023-10-14 00:58:54 +02:00
Laura Hausmann 693916b2f6
Release: v2023.11-pre1 2023-10-14 00:44:27 +02:00
Laura Hausmann 1c2b914164
[mastodon-client] Switch from MiAuth to OAuth 2023-10-14 00:19:10 +02:00
Laura Hausmann b5393e41d0
[mastodon-client] Add support for public:allow_local_only stream 2023-10-13 23:54:55 +02:00
Laura Hausmann f14b3cec97
[backend] Automatically generate vapid/web-push keys
Co-authored-by: Johann150 (563f3672a9)
2023-10-13 19:23:36 +02:00
Laura Hausmann b53b7a8654
[backend] Remove check:connect script and js file 2023-10-13 18:46:20 +02:00
Laura Hausmann bb5d0e319d
[backend] Add missing postgres types 2023-10-13 18:44:25 +02:00
Laura Hausmann 1927151aed
[baackend] Move migrations to typescript 2023-10-13 18:44:25 +02:00
Laura Hausmann b335fda4b0
[client] Fix user autocomplete not disappearing 2023-10-13 16:42:04 +02:00
Laura Hausmann ef14e0221b
[backend] Ignore capitalization for remoteuserinfo in mfm-to-html 2023-10-13 02:20:55 +02:00
Laura Hausmann bab61d2a32
[client] Fix mention autocomplete 2023-10-12 22:38:32 +02:00
Laura Hausmann da5939d1d6
[mastodon-client] Proper user search autocomplete 2023-10-12 21:46:34 +02:00
Laura Hausmann 0e39313ac4
[mastodon-client] Correctly parse invalid remote mentions 2023-10-12 21:39:18 +02:00
Laura Hausmann 0616edffa8
[mastodon-client] Return edit history in correct order 2023-10-12 20:51:35 +02:00
Laura Hausmann 5e61be286c
[mastodon-client] Add max_toot_chars to /v1/instance 2023-10-12 19:27:37 +02:00
Laura Hausmann ef98c86958
[backend] Correctly return selected protocol for streaming API
This fixes compatibility with mastodon webclients in Google Chrome & derivatives
2023-10-12 17:59:41 +02:00
Laura Hausmann 06abf64594
Fix typos in README and CHANGELOG 2023-10-12 17:36:23 +02:00
Laura Hausmann f843453ca0
[backend] Only render trailing slashes for URLs in profile fields when explicitly specified 2023-10-12 17:07:54 +02:00
Laura Hausmann 9167ba593c
[mastodon-client] Omit paragraph tags for user profile fields 2023-10-12 16:29:48 +02:00
Laura Hausmann 8c93f7eb68
[backend] Format urls in outgoing AP messages properly 2023-10-12 16:01:07 +02:00
Laura Hausmann 19f8c0aafc
[mastodon-client] Improve mfm-to-html handling of links 2023-10-12 15:52:41 +02:00
Laura Hausmann afee7b6174
Remove Fedilab from README.md 2023-10-12 14:00:17 +02:00
Laura Hausmann e527f16381
Add Masto-FE-standalone to README.md 2023-10-12 00:51:42 +02:00
Laura Hausmann 9f8e1e5579
[mastodon-client] Don't duplicate quote uri if it's already in the note text 2023-10-12 00:29:18 +02:00
Laura Hausmann 44c70df1a6
[mastodon-client] Fix mentions in user bios 2023-10-12 00:23:20 +02:00
Laura Hausmann 1ff5102e34
[backend] Format mentions in outgoing AP messages properly 2023-10-12 00:10:53 +02:00
Laura Hausmann be28fae40f
[mastodon-client] Fix code block rendering
This doesn't work in all clients, but it works in more than the previous solution & matches what glitch-soc is doing.
2023-10-11 23:58:03 +02:00
Laura Hausmann efa2e501a4
Add Toot! to tested compatible Mastodon clients in README 2023-10-11 21:47:01 +02:00
Laura Hausmann 65f971e42a
Update README.md 2023-10-11 21:45:00 +02:00
Laura Hausmann 8d7d95fd23
[backend] Permit redirects for AP object lookups 2023-10-11 20:59:30 +02:00
Laura Hausmann 695528bed7
[mastodon-client] Log note lookup failures with logger instead of console 2023-10-11 19:55:26 +02:00
Laura Hausmann 1fdea9866a
[mastodon-client] Only display localpart for mentions in mfm-to-html 2023-10-11 19:15:56 +02:00
Laura Hausmann f5c6cba3a6
[mastodon-client] Correctly render remote mentions of local users 2023-10-11 19:15:32 +02:00
Laura Hausmann 73895e856c
[mastodon-client] Don't return 'next' link pagination header when there are not more results
This fixes clients like toot! showing ghost users
2023-10-11 18:33:33 +02:00
Aylam 53bb79706e Change 'NSFW' to 'sensitive' 2023-10-11 11:22:15 +03:00
Laura Hausmann c1354ee5e7
[mastodon-client] Don't return reactions with count=0 2023-10-11 02:36:38 +02:00
Laura Hausmann f3f2f35740
Release: v2023.10.11-rc1 2023-10-11 02:25:29 +02:00
Laura Hausmann 4717cc85b5
[mastodon-client] Use execQueryLinkPagination in more places 2023-10-11 01:45:52 +02:00
Laura Hausmann fef807a165
[mastodon-client] Fix link pagination prev attribute when minId is set 2023-10-11 01:26:29 +02:00
Laura Hausmann 3204bd9d18
[mastodon-client] Fix link pagination middleware oversight 2023-10-11 01:26:29 +02:00
Laura Hausmann a0adea70f5
[mastodon-client] Improve streaming api isMastodon check 2023-10-09 22:20:44 +02:00
Laura Hausmann 878970d318
[mastodon-client] Implement streaming API 2023-10-09 01:59:19 +02:00
Laura Hausmann 79a4259305
Release: v2023.10.08-rc1 2023-10-08 18:40:30 +02:00
Aylam 8eff42a3e0
Remove text shadow from post header 2023-10-08 14:05:32 +02:00
Laura Hausmann 01e6f7edbb
[mastodon-client] Respect ffVisibility for follower/following counts 2023-10-08 02:42:50 +02:00
Laura Hausmann db95d9a7f3
[mastodon-client] Fix polls param 2023-10-08 01:41:25 +02:00
Laura Hausmann 0f17691f00
[mastodon-client] GET /v1/accounts/search 2023-10-08 01:30:40 +02:00
Laura Hausmann c7d62223ef
[mastodon-client] Ignore invalid auth requests 2023-10-08 01:13:02 +02:00
Laura Hausmann 4d6111d1a4
[mastodon-client] Fix handling of empty tagged param in getUserStatuses 2023-10-08 01:09:30 +02:00
Laura Hausmann b3c186a14a
[mastodon-client] Only encode renote once in NoteConverter 2023-10-08 01:00:16 +02:00
Laura Hausmann 23a1114c02
[mastodon-client] Implement glitch reactions 2023-10-08 00:47:35 +02:00
Laura Hausmann 9d24f8aea5
[mastodon-client] Remove ID conversion
BREAKING: Please log out and log back in of any clients in use, as their cache is now invalid
2023-10-07 23:15:14 +02:00
Laura Hausmann 011d7f36c3
[mastodon-client] Set ctx.pagination in helper funcs 2023-10-07 22:05:58 +02:00
Laura Hausmann cc96b0ba72
[mastodon-client] Use ctx instead of ctx.user as arguments everywhere 2023-10-07 21:46:22 +02:00
Laura Hausmann 79c3e56989
[mastodon-client] Fully move cache into ctx 2023-10-07 20:29:58 +02:00
Laura Hausmann 8428f2efc4
[mastodon-client] Actually enforce NoteConverter.encode recursion prevention 2023-10-07 20:09:17 +02:00
Laura Hausmann 1cdeff9861
[mastodon-client] Generate pagination data in helper function
This also (finally) respects minId sort order.
2023-10-07 20:02:03 +02:00
Laura Hausmann 2899873b26
[mastodon-client] Use MastoApiError everywhere 2023-10-07 19:50:06 +02:00
Laura Hausmann cfd53259cb
[mastodon-client] Return emojis field for polls 2023-10-07 19:39:01 +02:00
Laura Hausmann 8bec41b554
[mastodon-client] Accept both types and exclude_types at the same time in GET /v1/notifications
This ensures compatibility with Mastodon for Android and its forks
2023-10-07 19:17:51 +02:00
Laura Hausmann 1cb935f483
[client] Reduce shadows for iceshrimp-light 2023-10-07 17:48:39 +02:00
Laura Hausmann 98fe5b3a54
[mastodon-client] Prevent duplicate reblogs 2023-10-07 17:34:22 +02:00
Laura Hausmann 47d9278eae
[mastodon-client] Return IdentifiableError ID if message is empty 2023-10-07 17:30:49 +02:00
Laura Hausmann f36515a221
[mastodon-client] Fix error when liking the same status twice 2023-10-07 17:27:45 +02:00
Laura Hausmann 6bf6a71151
[docs] Add PGTune instructions to install docs 2023-10-07 17:09:18 +02:00
Laura Hausmann 8cbcb5766a
[backend] await renote & boost count increments on note create/delete 2023-10-07 16:55:04 +02:00
Laura Hausmann f800f1806c
[mastodon-client] Fix Link pagination for /v1/statuses/:id/reblogged_by 2023-10-07 14:43:52 +02:00
Laura Hausmann 99de127376
[mastodon-client] Return error messages for error types without a .message property 2023-10-07 14:32:02 +02:00
Laura Hausmann c8415a5223
[mastodon-client] Use ctx.cache for all endpoints 2023-10-07 02:12:26 +02:00
Laura Hausmann 937a8c76c8
[mastodon-client] Fix ids of trending statuses not being converted 2023-10-07 02:05:53 +02:00
Laura Hausmann bd2df99489
[mastodon-client] Add link pagination to all remaining paginating methods 2023-10-07 01:17:59 +02:00
Laura Hausmann 9dd3277ddb
[mastodon-client] Use structuredClone for id converters 2023-10-07 00:36:49 +02:00
Laura Hausmann 3bc4afec77
[mastodon-client] Set correct access-control-expose-headers response header 2023-10-07 00:36:49 +02:00
Laura Hausmann 081b836e92
[mastodon-client] Move link header pagination to middleware 2023-10-06 23:35:13 +02:00
Laura Hausmann 3d320c0895
[mastodon-client] Fix urlencoded redirect_uris 2023-10-06 23:35:07 +02:00
Laura Hausmann 153c08fae1
[mastodon-client] Fix getNoteOr404 2023-10-06 03:26:04 +02:00
Laura Hausmann afd9e236a3
[mastodon-client] Code cleanup & reformat 2023-10-06 03:12:52 +02:00
Laura Hausmann 8bc7bf373e
[mastodon-client] Handle ApiError in CatchErrorsMiddleware 2023-10-06 03:09:22 +02:00
Laura Hausmann a3d2330f26
[mastodon-client] Code cleanup and refactor for /oauth/token 2023-10-06 01:22:42 +02:00
Laura Hausmann 4b76d0ce6f
[mastodon-client] Migrate endpoints to auth middleware 2023-10-06 01:08:30 +02:00
AntoineÐ e3186e98f8 Translated using Weblate (French)
Currently translated at 100.0% (1848 of 1848 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/fr/
2023-10-06 00:04:30 +02:00
AntoineÐ d53edfaa7d Translated using Weblate (English)
Currently translated at 100.0% (1848 of 1848 strings)

Translation: Iceshrimp/locales
Translate-URL: https://translate.iceshrimp.dev/projects/iceshrimp/locales/en/
2023-10-06 00:04:28 +02:00
Laura Hausmann 5d17996d5f
[mastodon-client] Fix verify_credentials occasionally showing outdated data 2023-10-05 21:14:15 +02:00
3925 changed files with 66608 additions and 75621 deletions

View file

@ -2,18 +2,18 @@ url: http://localhost:3000
port: 3000
db:
host: 127.0.0.1
port: 5432
host: 127.0.0.1
port: 5432
db: iceshrimp
db: iceshrimp
user: iceshrimp
pass: iceshrimp
user: iceshrimp
pass: iceshrimp
redis:
host: localhost
port: 6379
family: 4
host: localhost
port: 6379
family: 4
#sonic:
# host: localhost
# port: 1491
@ -21,18 +21,9 @@ redis:
# collection: notes
# bucket: default
#elasticsearch:
# host: localhost
# port: 9200
# ssl: false
# user:
# pass:
id: 'aid'
reservedUsernames:
- root
- admin
- administrator
- me
- system
- root
- admin
- administrator
- me
- system

View file

@ -72,42 +72,6 @@ redis:
#db: 1
#user: default
# ┌────────────────────────────┐
#───┘ Cache server configuration └──────────────────────────────
# A Redis-compatible server (DragonflyDB, Keydb, Redis) for caching
# If left blank, it will use the Redis server from above
# Possible values for host: dragonflydb, keydb, redis_cache
#cacheServer:
#host:
#port: 6379
##family: 0 # 0=Both, 4=IPv4, 6=IPv6
##pass: example-pass
##prefix: example-prefix
##db: 1
# Please configure either MeiliSearch *or* Sonic.
# If both MeiliSearch and Sonic configurations are present, MeiliSearch will take precedence.
# ┌───────────────────────────┐
#───┘ MeiliSearch configuration └───────────────────────────────
#meilisearch:
# host: meilisearch
# port: 7700
# ssl: false
# apiKey:
# ┌─────────────────────┐
#───┘ Sonic configuration └─────────────────────────────────────
#sonic:
# host: sonic
# port: 1491
# auth: SecretPassword
# collection: notes
# bucket: default
# ┌───────────────┐
#───┘ ID generation └───────────────────────────────────────────
@ -220,6 +184,30 @@ reservedUsernames: [
# Upload or download file size limits (bytes)
#maxFileSize: 262144000
# ┌────────────────────────────────┐
#───┘ Mastodon client API HTML Cache └──────────────────────────
# Caution: rendered post html content is stored in redis (in-memory cache)
# for the duration of ttl, so don't set it too high if you have little system memory.
#
# The prewarm option causes every incoming user/note create/update event to
# be rendered so the cache is always "warm". This trades background cpu load for
# better request response time and better scaling, as posts won't have to be rendered
# on request.
#
# The dbFallback option stores html data that expires into postgres,
# which is more expensive than fetching it from redis,
# but cheaper than re-rendering the HTML.
#htmlCache:
# ttl: 1h
# prewarm: false
# dbFallback: false
# Duration hard muted notes are stored in redis for.
# Increasing this trades higher memory consumption for lower cpu usage on repeated requests within the specified ttl.
#wordMuteCache:
# ttl: 24h
#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# Congrats, you've reached the end of the config file needed for most deployments!
# Enjoy your Iceshrimp server!

View file

@ -72,41 +72,6 @@ redis:
#db: 1
#user: default
# ┌────────────────────────────┐
#───┘ Cache server configuration └──────────────────────────────
# A Redis-compatible server (DragonflyDB, Keydb, Redis) for caching
# If left blank, it will use the Redis server from above
#cacheServer:
#host: localhost
#port: 6379
#family: 0 # 0=Both, 4=IPv4, 6=IPv6
#pass: example-pass
#prefix: example-prefix
#db: 1
# Please configure either MeiliSearch *or* Sonic.
# If both MeiliSearch and Sonic configurations are present, MeiliSearch will take precedence.
# ┌───────────────────────────┐
#───┘ MeiliSearch configuration └───────────────────────────────
#meilisearch:
# host: meilisearch
# port: 7700
# ssl: false
# apiKey:
# ┌─────────────────────┐
#───┘ Sonic configuration └─────────────────────────────────────
#sonic:
# host: localhost
# port: 1491
# auth: SecretPassword
# collection: notes
# bucket: default
# ┌───────────────┐
#───┘ ID generation └───────────────────────────────────────────
@ -219,6 +184,30 @@ reservedUsernames: [
# Upload or download file size limits (bytes)
#maxFileSize: 262144000
# ┌────────────────────────────────┐
#───┘ Mastodon client API HTML Cache └──────────────────────────
# Caution: rendered post html content is stored in redis (in-memory cache)
# for the duration of ttl, so don't set it too high if you have little system memory.
#
# The prewarm option causes every incoming user/note create/update event to
# be rendered so the cache is always "warm". This trades background cpu load for
# better request response time and better scaling, as posts won't have to be rendered
# on request.
#
# The dbFallback option stores html data that expires into postgres,
# which is more expensive than fetching it from redis,
# but cheaper than re-rendering the HTML.
#htmlCache:
# ttl: 1h
# prewarm: false
# dbFallback: false
# Duration hard muted notes are stored in redis for.
# Increasing this trades higher memory consumption for lower cpu usage on repeated requests within the specified ttl.
#wordMuteCache:
# ttl: 24h
#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# Congrats, you've reached the end of the config file needed for most deployments!
# Enjoy your Iceshrimp server!

View file

@ -2,7 +2,7 @@ root = true
[*]
indent_style = tab
indent_size = 2
indent_size = 4
charset = utf-8
insert_final_newline = true

1
.env.yarn Normal file
View file

@ -0,0 +1 @@
JOBS=max

View file

@ -5,7 +5,7 @@ jobs:
runs-on: docker
container:
image: iceshrimp.dev/iceshrimp/ci-env:latest
options: --volume /opt/iceshrimp-cache/yarn:/iceshrimp-caches/yarn --volume /opt/iceshrimp-cache/cargo:/root/.cargo --volume /opt/iceshrimp-cache/built:/iceshrimp-caches/built --volume /opt/iceshrimp-cache/target:/iceshrimp-caches/target
options: --volume /opt/iceshrimp-cache/yarn:/iceshrimp-caches/yarn
services:
database:
image: postgres:15
@ -20,7 +20,7 @@ jobs:
run: |
cd /iceshrimp
cp -Tr /iceshrimp-caches/yarn .yarn
yarn
yarn --immutable
rm -rf /iceshrimp-caches/yarn/* && cp -Tr .yarn /iceshrimp-caches/yarn
- name: Build the shrimp
run: |

71
.gitattributes vendored
View file

@ -1,26 +1,53 @@
*.svg -diff -text
*.psd -diff -text
*.ai -diff -text
*.mqo -diff -text
*.glb -diff -text
*.blend -diff -text
*.afdesign -diff -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.xcf filter=lfs diff=lfs merge=lfs -text
*.ai filter=lfs diff=lfs merge=lfs -text
group1-shard?of6 filter=lfs diff=lfs merge=lfs -text
*.mp3 filter=lfs diff=lfs merge=lfs -text
*.7z filter=lfs diff=lfs merge=lfs -text
*.afdesign filter=lfs diff=lfs merge=lfs -text
*.ai filter=lfs diff=lfs merge=lfs -text
*.blend filter=lfs diff=lfs merge=lfs -text
*.glb filter=lfs diff=lfs merge=lfs -text
*.psd filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.woff2 filter=lfs diff=lfs merge=lfs -text
*.BMP filter=lfs diff=lfs merge=lfs -text
*.bmp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.doc filter=lfs diff=lfs merge=lfs -text
*.docx filter=lfs diff=lfs merge=lfs -text
*.enc filter=lfs diff=lfs merge=lfs -text
*.lockb filter=lfs diff=lfs merge=lfs -text
*.webp filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.ico filter=lfs diff=lfs merge=lfs -text
*.svg filter=lfs diff=lfs merge=lfs -text
*.flac filter=lfs diff=lfs merge=lfs -text
*.gif filter=lfs diff=lfs merge=lfs -text
*.glb filter=lfs diff=lfs merge=lfs -text
*.gpg filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.ico filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
*.JPEG filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.JPG filter=lfs diff=lfs merge=lfs -text
*.lockb filter=lfs diff=lfs merge=lfs -text
*.mkv filter=lfs diff=lfs merge=lfs -text
*.mov filter=lfs diff=lfs merge=lfs -text
*.MOV filter=lfs diff=lfs merge=lfs -text
*.mp3 filter=lfs diff=lfs merge=lfs -text
*.mp4 filter=lfs diff=lfs merge=lfs -text
*.MP4 filter=lfs diff=lfs merge=lfs -text
*.MPG filter=lfs diff=lfs merge=lfs -text
*.mpg filter=lfs diff=lfs merge=lfs -text
*.mqo filter=lfs diff=lfs merge=lfs -text
*.odp filter=lfs diff=lfs merge=lfs -text
*.ods filter=lfs diff=lfs merge=lfs -text
*.odt filter=lfs diff=lfs merge=lfs -text
*.ogg filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.PNG filter=lfs diff=lfs merge=lfs -text
*.pptx filter=lfs diff=lfs merge=lfs -text
*.psd filter=lfs diff=lfs merge=lfs -text
*.rar filter=lfs diff=lfs merge=lfs -text
*.svg filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.wav filter=lfs diff=lfs merge=lfs -text
*.webm filter=lfs diff=lfs merge=lfs -text
*.webp filter=lfs diff=lfs merge=lfs -text
*.woff2 filter=lfs diff=lfs merge=lfs -text
*.xcf filter=lfs diff=lfs merge=lfs -text
*.xls filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zstd filter=lfs diff=lfs merge=lfs -text
group1-shard?of6 filter=lfs diff=lfs merge=lfs -text

7
.gitignore vendored
View file

@ -76,7 +76,12 @@ pnpm*
!.yarn/sdks
!.yarn/versions
!.yarn/unplugged/@discordapp-twemoji-npm-14.1.2-3097b95b97
!.yarn/corepack.tgz
# Nix Development shell items
.devenv
.direnv
.direnv
# helm chart dependencies
chart/charts
chart/Chart.lock

0
.noai Normal file
View file

68939
.pnp.cjs generated

File diff suppressed because one or more lines are too long

955
.pnp.loader.mjs generated

File diff suppressed because it is too large Load diff

View file

@ -2,10 +2,10 @@
"recommendations": [
"editorconfig.editorconfig",
"eg2.vscode-npm-script",
"rome.rome",
"Vue.volar",
"Vue.vscode-typescript-vue-plugin",
"vue.volar",
"vue.vscode-typescript-vue-plugin",
"arcanis.vscode-zipfs",
"Orta.vscode-twoslash-queries"
"orta.vscode-twoslash-queries",
"biomejs.biome"
]
}

View file

@ -1,22 +0,0 @@
pipeline:
testCommit:
image: node:alpine
commands:
- apk add --no-cache cargo python3 make g++
- cp .config/ci.yml .config/default.yml
- corepack enable
- corepack prepare pnpm@latest --activate
- yarn
- yarn build
- yarn migrate
services:
database:
image: postgres:15
environment:
- POSTGRES_PASSWORD=test
redis:
image: redis
branches:
include: [ main, beta, develop, feature/* ]

View file

@ -1,15 +0,0 @@
pipeline:
publish-docker-latest:
image: plugins/kaniko
settings:
repo: iceshrimp/iceshrimp
tags: latest
dockerfile: Dockerfile
username:
# Secret 'docker_username' needs to be set in the CI settings
from_secret: docker_username
password:
# Secret 'docker_password' needs to be set in the CI settings
from_secret: docker_password
branches: main

View file

@ -1,14 +0,0 @@
pipeline:
publish-docker-latest:
image: plugins/kaniko
settings:
repo: iceshrimp/iceshrimp
tags: rc
dockerfile: Dockerfile
username:
# Secret 'docker_username' needs to be set in the CI settings
from_secret: docker_username
password:
# Secret 'docker_password' needs to be set in the CI settings
from_secret: docker_password
branches: beta

View file

@ -1,18 +0,0 @@
pipeline:
publish-docker-tag:
image: plugins/kaniko
settings:
repo: iceshrimp/iceshrimp
# Uses the tag from git for the container tag
tags: ${CI_COMMIT_TAG}
dockerfile: Dockerfile
username:
# Secret 'docker_username' needs to be set in the CI settings
from_secret: docker_username
password:
# Secret 'docker_password' needs to be set in the CI settings
from_secret: docker_password
when:
# Push new version when version tag is created
event: tag
tag: v*

View file

@ -1,11 +0,0 @@
pipeline:
docker-build:
image: plugins/kaniko
settings:
repo: iceshrimp/iceshrimp
tags: test
dockerfile: Dockerfile
no_push: true
branches:
include: [ main, develop, beta ]

BIN
.yarn/cache/@aashutoshrathi-word-wrap-npm-1.2.6-5b1d95e487-6eebd12a5c.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@ampproject-remapping-npm-2.2.1-3da3d624be-e15fecbf3b.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@babel-code-frame-npm-7.22.13-2782581d20-bf6ae6ba3a.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@babel-compat-data-npm-7.22.9-f9e02d51b9-6797f59857.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@babel-core-npm-7.22.9-509b29c82e-0c209a8506.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@babel-eslint-parser-npm-7.23.3-4d4192b444-bc487f67aa.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@babel-generator-npm-7.22.9-d9fccf9328-1ee43f9951.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@babel-helpers-npm-7.23.2-aa45e8b40c-d66d949d41.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@babel-highlight-npm-7.22.20-5de7aba88d-1aabc95b2c.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@babel-parser-npm-7.22.7-7fbdf28552-f420f89ea8.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@babel-runtime-npm-7.22.6-493f6b7ad0-1d2f56797f.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@babel-template-npm-7.22.15-0b464facb4-21e768e4ee.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@babel-traverse-npm-7.23.2-4758feee42-e4fcb8f839.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@babel-types-npm-7.22.5-d1e4264bef-7f7edffe7e.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@bcoe-v8-coverage-npm-0.2.3-9e27b3c57e-1a1f0e356a.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@biomejs-biome-npm-1.4.1-908a13650b-fad12f5fdc.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@biomejs-cli-darwin-arm64-npm-1.4.1-212e448754-10.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@biomejs-cli-darwin-x64-npm-1.4.1-82a649f050-10.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@biomejs-cli-linux-arm64-npm-1.4.1-b36d609574-10.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@biomejs-cli-linux-x64-npm-1.4.1-5d16748a6f-10.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@bull-board-ui-npm-5.6.0-6d3c013820-b7b982a983.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@colors-colors-npm-1.5.0-875af3a8b4-9d226461c1.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@cropper-element-npm-2.0.0-beta.3-247c33a9b7-4c21af9214.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@cropper-elements-npm-2.0.0-beta.3-cb7091d457-1983d0e7c0.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show more