Commit Graph

1086 Commits

Author SHA1 Message Date
amybones
89e27d8418 fix: toggling the blocking state from the instance-info admin view (#9809)
Because the admin meta information was never loaded on this page, no amount of toggling the block or suspend sliders on the instance-info page (e.g. `https://calckey.example.com/instance-info/instance.tld`) will result in the instance actually being added to the blocklist. You could still do it from the bulk blocklist management page, but that can get unwieldy quickly if you just want to do a quick block of an instance.

Co-authored-by: amy bones <amy@spookygirl.boo>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9809
Co-authored-by: amybones <amybones@noreply.codeberg.org>
Co-committed-by: amybones <amybones@noreply.codeberg.org>
2023-04-04 03:46:23 +00:00
ThatOneCalculator
3e7d64ac4b feat: push notifs button
Co-authored-by: Tamania <tamaina@hotmail.co.jp>
2023-04-03 20:36:59 -07:00
Kainoa Kanter
8cdadd70ba Merge pull request 'Require timeline endpoints to return the requested limit of notes.' (#9805) from supakaity/hajkey:hk/notes-pagination into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9805
2023-04-03 17:02:01 +00:00
Kaity A
d7e253eb62 Requested limit to be fulfilled if possible 2023-04-04 02:50:53 +10:00
amy bones
3f3bf0a9e7 fix: changing passwords, 2fa, and password resets.
The argon2 usage was only implemented for sign-ins which broke a bunch of other
endpoints and features.
2023-04-03 05:14:50 -07:00
Kaity A
eaa6bc2da3 Separate cat-avatar mode and speak-as-cat nyanification 2023-04-02 21:24:12 +10:00
ThatOneCalculator
c5522d0207 fix import 2023-04-01 23:28:55 -07:00
ThatOneCalculator
33718bdd5d chore: 🎨 format 2023-04-01 21:10:31 -07:00
ThatOneCalculator
cb1b13e879 fix: 🛂 no longer need 2fa for webauthn 2023-04-01 21:04:22 -07:00
ThatOneCalculator
7522cdf445 fix migration 2023-04-01 12:14:54 -07:00
ThatOneCalculator
64d6b987ab chore: add cleanup migration 2023-04-01 12:03:49 -07:00
Kaitlyn Allan
52f06a2e14 Clarify variable names 2023-04-01 22:49:14 +10:00
Kaitlyn Allan
a86f8d4911 Improve performance of charts
Fix some undefined !== deleted issues
2023-04-01 21:42:03 +10:00
kabo2468
021f667976 fix: don't nyaize quoted text 2023-03-31 23:30:57 +09:00
ThatOneCalculator
df83d4c211 add argon 2023-03-30 19:19:09 -07:00
ThatOneCalculator
19c4a59513 formatting 2023-03-30 19:10:03 -07:00
ThatOneCalculator
5be627b869 feat: 🔒 add argon2 support
Passwords will be automatically re-hashed on sign-in. All new password hashes will be argon2 by default.  This uses argon2id and is not configurable. In the very unlikely case someone has more specific needs, a fork is recommended.  ChangeLog: Added  Co-authored-by: Chloe Kudryavtsev <code@toast.bunkerlabs.net>

Breaks Calckey -> Misskey migration, but fixes Foundkey -> Calckey migration
2023-03-30 19:09:44 -07:00
s1idewhist1e
981d3ee725 Refactor: use rust for native mastodon id conversion (#9786)
This uses [napi-rs](https://napi.rs/) to allow for automatic generation of node bindings for the native code.

I also changed the `isolatedModules` TS flag to false to allow for `static enum` to be shared across modules. It doesn't seem to be necessary for the build system that CK uses.

Currently this method does not work with ID generators with longer IDs. Likely the best solution is to add another key in the database.

Some benchmarks for 1 million conversions:

```
	node, x1_000_000: 2.847s
	rust, x1_000_000: 1.265s
```

There are still optimizations that can be made, but I think this is a good starting point and a good way to bring rust into the CK stack.

Co-authored-by: s1idewhist1e <trombonedude05@gmail.com>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9786
Co-authored-by: s1idewhist1e <s1idewhist1e@noreply.codeberg.org>
Co-committed-by: s1idewhist1e <s1idewhist1e@noreply.codeberg.org>
2023-03-31 01:58:28 +00:00
cutestnekoaqua
1b61d1a58d check for signatures while post import 2023-03-30 17:52:17 +02:00
cutestnekoaqua
cf5671cb05 nyaa 2023-03-30 17:31:29 +02:00
Cleo
7a31740e20 remove debug msgs 2023-03-30 09:30:38 +00:00
Cleo
69daa49403 „packages/backend/src/server/api/endpoints/i/import-posts.ts“ ändern
Signed-off-by: Cleo <cutestnekoaqua@noreply.codeberg.org>
2023-03-30 09:12:51 +00:00
Cleo
fcbdde47d0 Yeet mentions 2023-03-30 08:40:20 +00:00
naskya
c2883ea95b fix: direct boost (#9783)
Sorry to create PR multiple times. I should have included this in #9778.

Co-authored-by: naskya <m@naskya.net>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9783
Co-authored-by: naskya <naskya@noreply.codeberg.org>
Co-committed-by: naskya <naskya@noreply.codeberg.org>
2023-03-30 03:15:06 +00:00
cutestnekoaqua
4df655126d get post details from object 2023-03-29 21:38:52 +02:00
cutestnekoaqua
db392efae8 catch text parsing error 2023-03-29 21:25:28 +02:00
cutestnekoaqua
41c7dfe208 add info 2023-03-29 21:16:45 +02:00
cutestnekoaqua
da322a086b catch errors 2023-03-29 21:15:06 +02:00
cutestnekoaqua
d640af9714 handle mastodon style posts 2023-03-29 21:10:01 +02:00
cutestnekoaqua
365d9bc40a dont ping users 2023-03-29 20:01:56 +02:00
cutestnekoaqua
dfb6178ddf actually increase line num 2023-03-29 19:37:31 +02:00
cutestnekoaqua
f43b5a2537 update post job 2023-03-29 19:36:23 +02:00
cutestnekoaqua
d0f2cbd664 note import debug logs 2023-03-29 19:23:37 +02:00
cutestnekoaqua
b9b693c233 temporary set import limit to infinity for debug 2023-03-29 19:16:39 +02:00
naskya
3eccb04e92 Merge branch 'develop' into fix/followers-only-boost 2023-03-29 02:24:21 +00:00
cutestnekoaqua
86e02468ce why is this git ignored? 2023-03-29 00:09:31 +02:00
cutestnekoaqua
c05703001c why is this git ignored? 2023-03-28 23:48:27 +02:00
cutestnekoaqua
624f305d9c feat: experimental post import 2023-03-28 23:33:16 +02:00
Kagami Sascha Rosylight
4e78a4e0b0 fix: allow announces with followers visibility 2023-03-29 04:55:16 +09:00
Kaitlyn Allan
e696a13fb2 set workers to reduce their processing priority 2023-03-25 21:19:06 -07:00
ThatOneCalculator
cdcd4320a9 fix? 2023-03-24 13:14:41 -07:00
ThatOneCalculator
bf358a2fb3 dev15 2023-03-24 12:45:25 -07:00
ThatOneCalculator
8d1c7c787c feat: post metadata uses full @
Closes #9660
2023-03-23 18:03:50 -07:00
ThatOneCalculator
9fa73242a0 chore: 📦 upgrade megalodon 2023-03-23 16:20:21 -07:00
ThatOneCalculator
21061b6803 feat: masto api add display name 2023-03-23 16:16:27 -07:00
ThatOneCalculator
6b298823ff Merge branch 'develop' of codeberg.org:calckey/calckey into develop 2023-03-23 09:07:25 -07:00
ThatOneCalculator
ae9ba9b2c3 Revert "refactor: nyaize on the frontend"
This reverts commit aff90b3ef225e5d4453469b36b7bf3a8565c7a68.
2023-03-23 09:06:32 -07:00
amy bones
88295aad8f fix: relay signature handling
A change sometime ago moved to setting some signature fields in the incoming
object to undefined as opposed to deleting them. The trouble is that downstream
code checks against existence, not undefinedness and rejects the message.

Resolves: #9665
2023-03-22 17:32:49 -07:00
Kainoa Kanter
10d8d41580 Merge pull request 'fix: max user profile length to db field length' (#9750) from amybones/calckey:fix-profile-length into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9750
2023-03-22 18:58:32 +00:00
cutestnekoaqua
abfbb15fef Masto api :) 2023-03-22 17:43:05 +01:00