Commit Graph

3076 Commits

Author SHA1 Message Date
ThatOneCalculator
7b2a34a364
add argon 2023-03-30 19:19:09 -07:00
ThatOneCalculator
acfc88389a
formatting 2023-03-30 19:10:03 -07:00
ThatOneCalculator
12769bd1ab
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
c58ce6c53b 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
naskya
fe9ed9fcba
Fix a bug in the macro expander 2023-03-31 06:31:18 +09:00
cutestnekoaqua
01b9dad61d
send vlaue 2023-03-30 18:05:39 +02:00
cutestnekoaqua
021e86a0ab
make sure its not checked for akkoma 2023-03-30 17:52:38 +02:00
cutestnekoaqua
897b5f928d
check for signatures while post import 2023-03-30 17:52:17 +02:00
cutestnekoaqua
09aeb6e2f5
nyaa 2023-03-30 17:31:29 +02:00
Cleo
00dc860574 remove debug msgs 2023-03-30 09:30:38 +00:00
Cleo
a3c0d56600 „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
0a79b6b9f0 Yeet mentions 2023-03-30 08:40:20 +00:00
naskya
82db61ede0 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
naskya
9489543180 feat: custom KaTeX macro (#9779)
Closes: #9759
Co-authored-by: naskya <m@naskya.net>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9779
Co-authored-by: naskya <naskya@noreply.codeberg.org>
Co-committed-by: naskya <naskya@noreply.codeberg.org>
2023-03-30 03:11:57 +00:00
ThatOneCalculator
ab9476ea27
fix sounds settings 2023-03-29 13:38:59 -07:00
ThatOneCalculator
f33eb43ea5
typo 2023-03-29 13:35:10 -07:00
ThatOneCalculator
32dd494424
feat: button in admin dash to index posts 2023-03-29 13:30:02 -07:00
ThatOneCalculator
48e0333e71
fix: 🐛 formlink -> button
fixes notifications and drive in settings
2023-03-29 12:53:07 -07:00
ThatOneCalculator
5f5caf1ef4
better icons 2023-03-29 12:47:25 -07:00
ThatOneCalculator
e518e86a79
Merge branch 'develop' of codeberg.org:calckey/calckey into develop 2023-03-29 12:39:17 -07:00
ThatOneCalculator
9a56764fe0
Merge branch 'develop' of codeberg.org:calckey/calckey into develop 2023-03-29 12:38:55 -07:00
cutestnekoaqua
eed9c63247
get post details from object 2023-03-29 21:38:52 +02:00
ThatOneCalculator
bae4bce8c3
header icon for queue page 2023-03-29 12:38:38 -07:00
cutestnekoaqua
4181bee43c
catch text parsing error 2023-03-29 21:25:28 +02:00
cutestnekoaqua
2398aab82b
add info 2023-03-29 21:16:45 +02:00
cutestnekoaqua
66429527ca
catch errors 2023-03-29 21:15:06 +02:00
cutestnekoaqua
21c7f93d7a
handle mastodon style posts 2023-03-29 21:10:01 +02:00
cutestnekoaqua
7650c60cdf
dont ping users 2023-03-29 20:01:56 +02:00
cutestnekoaqua
12698bf1e8
actually increase line num 2023-03-29 19:37:31 +02:00
cutestnekoaqua
82f342cf45
update post job 2023-03-29 19:36:23 +02:00
cutestnekoaqua
220b022461
note import debug logs 2023-03-29 19:23:37 +02:00
cutestnekoaqua
50aa4667bb
temporary set import limit to infinity for debug 2023-03-29 19:16:39 +02:00
naskya
6b8be4ddb7 Merge branch 'develop' into fix/followers-only-boost 2023-03-29 02:24:21 +00:00
cutestnekoaqua
450f798f12
why is this git ignored? 2023-03-29 00:09:31 +02:00
cutestnekoaqua
99b471d43b
why is this git ignored? 2023-03-28 23:48:27 +02:00
cutestnekoaqua
d5c80e74de
feat: experimental post import 2023-03-28 23:33:16 +02:00
Kagami Sascha Rosylight
7acb2b7c09
fix: allow announces with followers visibility 2023-03-29 04:55:16 +09:00
naskya
492a81104a
Try to fix calckey/calckey#9770 2023-03-28 03:59:07 +09:00
Free
83c7dd177b note-improvements (#9768)
Fixes #9745, quote icon, note spacing adjustments, border radius's in noGap

Co-authored-by: Freeplay <Freeplay@duck.com>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9768
Co-authored-by: Free <freeplay@duck.com>
Co-committed-by: Free <freeplay@duck.com>
2023-03-26 03:33:44 +00:00
cutestnekoaqua
1278200ae7
[PATCH] set workers to reduce their processing priority
Authored-by: Kaitlyn Allan <kaitlyn.allan@enlabs.cloud>
2023-03-25 12:35:30 +01:00
ThatOneCalculator
5b575c67ed
fix? 2023-03-24 13:14:41 -07:00
ThatOneCalculator
8acf3833fa
Merge branch 'develop' of codeberg.org:calckey/calckey into develop 2023-03-24 12:45:32 -07:00
ThatOneCalculator
35bf174273
dev15 2023-03-24 12:45:25 -07:00
Namekuji
86e5a19971 fix callback url 2023-03-24 06:55:23 -04:00
ThatOneCalculator
765c61bf52
don't show buttons if mobile 2023-03-24 00:42:36 -07:00
ThatOneCalculator
a1efc980d4
fix 2023-03-24 00:34:13 -07:00
ThatOneCalculator
9ca00d73b5
fix 2023-03-24 00:04:00 -07:00
ThatOneCalculator
25d44f500b
console log 2023-03-23 23:59:42 -07:00
ThatOneCalculator
b7a5799698
feat: new chat button on mobile 2023-03-23 23:51:59 -07:00
ThatOneCalculator
434e2f24e9
feat: post metadata uses full @
Closes #9660
2023-03-23 18:03:50 -07:00
ThatOneCalculator
765d90b789
chore: 📦 upgrade megalodon 2023-03-23 16:20:21 -07:00
ThatOneCalculator
f80dcca6d5
feat: masto api add display name 2023-03-23 16:16:27 -07:00
ThatOneCalculator
94640486c5
Merge branch 'develop' of codeberg.org:calckey/calckey into develop 2023-03-23 09:07:25 -07:00
ThatOneCalculator
d5cafde7d1
Revert "refactor: nyaize on the frontend"
This reverts commit aff90b3ef2.
2023-03-23 09:06:32 -07:00
yawhn
df68d5ffff feat: swap home timeline with social's functionality (#9597)
The Home timeline functionality is swapped with social's. Meaning that Home timeline now consists of followee's and local posts. Social from now on will contain only followee's posts. See more info in the attached ticket.

Some changes applied in english locales as well. Probably the rest of the languages need to be fixed though.

This PR closes the ticket: https://codeberg.org/calckey/calckey/issues/9552

Co-authored-by: yawhn <kordaris@gmail.com>
Co-authored-by: ThatOneCalculator <kainoa@t1c.dev>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9597
Co-authored-by: yawhn <yawhn@noreply.codeberg.org>
Co-committed-by: yawhn <yawhn@noreply.codeberg.org>
2023-03-23 16:02:37 +00:00
amy bones
c5de597079
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
ThatOneCalculator
d05ab9bf46
fix color in follow button 2023-03-22 14:29:07 -07:00
ThatOneCalculator
18eed9607b
Merge branch 'develop' of codeberg.org:calckey/calckey into develop 2023-03-22 12:24:45 -07:00
yawhn
25c72943c7
fix: a bug in ads 2023-03-22 12:24:37 -07:00
Kainoa Kanter
8243b635f4 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
ThatOneCalculator
3a412b955d
fix: 🐛 no nyaizing undefined text
Closes #9752
2023-03-22 11:54:38 -07:00
Free
4b1af35b39 Allows ctrl+clicking internal links (#9603) (#9743)
Co-authored-by: Freeplay <Freeplay@duck.com>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9743
Co-authored-by: Free <freeplay@duck.com>
Co-committed-by: Free <freeplay@duck.com>
2023-03-22 18:50:30 +00:00
cutestnekoaqua
4714e966f1
Masto api :) 2023-03-22 17:43:05 +01:00
cutestnekoaqua
30bc16daba
allow client credentials not just for tapbots 2023-03-22 14:40:59 +01:00
amy bones
1f840aa7b9
fix: max user profile length to db field length
Resolves: #9749
2023-03-22 02:10:43 -07:00
Free
bcd0488cf1 note-improvements (#9742)
Increases the limit of the replies loaded above the focused post from 10 to 30

Co-authored-by: Freeplay <Freeplay@duck.com>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9742
Co-authored-by: Free <freeplay@duck.com>
Co-committed-by: Free <freeplay@duck.com>
2023-03-21 04:41:50 +00:00
naskya
49d3df43d3
fix: local time for users 2023-03-21 08:24:02 +09:00
Free
74bb79792d note-improvements (#9739)
fixes #9735, translations, plus other tweaks

Co-authored-by: Freeplay <Freeplay@duck.com>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9739
Co-authored-by: Free <freeplay@duck.com>
Co-committed-by: Free <freeplay@duck.com>
2023-03-20 20:26:05 +00:00
ThatOneCalculator
14201f465b
typo 2023-03-19 20:19:40 -07:00
ThatOneCalculator
4ce8e83d3e
fix: make sure cw button is on new line 2023-03-19 20:15:49 -07:00
ThatOneCalculator
43bca8ed38
validate blank messages on backend 2023-03-19 20:03:49 -07:00
ThatOneCalculator
4c4c641804
fix: 🐛 can't send blank messages
Closes #9661
2023-03-19 20:02:14 -07:00
ThatOneCalculator
2de02cf655
Merge branch 'develop' of codeberg.org:calckey/calckey into develop 2023-03-19 19:59:36 -07:00
ThatOneCalculator
aff90b3ef2
refactor: nyaize on the frontend 2023-03-19 19:59:00 -07:00
Free
c2df136dda note-improvements (#9734)
Not sure if this is the best way to jump to the post

This also lets you select text w/out clicking to the post (and clicking normally on top of the text opens the post)

Co-authored-by: Freeplay <Freeplay@duck.com>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9734
Co-authored-by: Free <freeplay@duck.com>
Co-committed-by: Free <freeplay@duck.com>
2023-03-20 02:31:02 +00:00
ThatOneCalculator
d75a4e56e3
change follow button background, finally 2023-03-19 19:30:08 -07:00
ThatOneCalculator
b18864946a
theme names 2023-03-19 18:49:25 -07:00
ThatOneCalculator
710a89d343
feat: more themes! 2023-03-19 18:44:08 -07:00
ThatOneCalculator
28c1419612
generic color for online user count 2023-03-19 16:58:54 -07:00
ThatOneCalculator
f73ff912f1
fix: repo url 2023-03-19 16:53:49 -07:00
cutestnekoaqua
16ef00b6fe
chore: add emoji aliases 2023-03-20 00:37:49 +01:00
cutestnekoaqua
d81bfd30ef
Revert "fix: unicode aliases"
This reverts commit 989b497588.
2023-03-20 00:30:05 +01:00
cutestnekoaqua
989b497588
fix: unicode aliases 2023-03-20 00:24:33 +01:00
Kainoa Kanter
60a5c4012c Merge pull request 'bug: Fix error saving drive file caption > 512 chars' (#9729) from supakaity/hajkey:hk/fix-9728 into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9729
2023-03-19 21:54:38 +00:00
kakkokari-gtyih
27fedf9d6e
fix: don't show smartphone UI when settings icon is double-clicked 2023-03-19 21:43:07 +09:00
Kaitlyn Allan
1b134467ed Fix error saving drive file caption > 512 chars 2023-03-19 20:06:24 +10:00
ThatOneCalculator
749117a2ce
cli images 2023-03-19 02:33:44 -07:00
ThatOneCalculator
0fa22b8598
fix cli more 2023-03-19 02:08:08 -07:00
ThatOneCalculator
2dcf88b732
feat: spruce up CLI 2023-03-19 01:59:33 -07:00
Kaity A
706b4ae602 Add sonic full-text search support (#9714)
This pull request adds support for the [sonic](https://github.com/valeriansaliou/sonic) full text indexing server into Calckey.

In addition to this, a stateful endpoint has been added that will completely (re-)index all notes into any (elasticsearch and/or sonic) indexing server defined in your config at `/api/admin/search/index-all`. It can (optionally) take input data to define the starting point, such as:

```
{"cursor": "9beg3lx6ad"}
```

Currently if both sonic and elasticsearch are defined in the config, sonic will take precedence for searching, but both indexes will continue to be updated for new note creations. Future enhancements may include the ability to choose which indexer to use (or combine multiple).

Co-authored-by: Kaitlyn Allan <kaitlyn.allan@enlabs.cloud>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9714
Co-authored-by: Kaity A <supakaity@noreply.codeberg.org>
Co-committed-by: Kaity A <supakaity@noreply.codeberg.org>
2023-03-19 08:26:47 +00:00
ThatOneCalculator
77912ae7b5
Merge branch 'develop' of codeberg.org:calckey/calckey into develop 2023-03-19 00:26:32 -07:00
ThatOneCalculator
76935a91e1
feat: compile time compression 2023-03-19 00:26:26 -07:00
naskya
1c0d4546f7 feat: set license information for custom emojis (#9719)
Closes: #9711 (please check this issue first)

I cherry-picked two commits ([1](8ae9d2eaa8), [2](ed51209172)) from [Misskey](https://github.com/misskey-dev/misskey) and made a few changes.
「ライセンス」should be written as "License" in the following screenshots, but it has not yet been translated.

It would be nice if we could include multiple lines of text, but I just ported what's been implemented so far in Misskey not to mess things up.

This is my first pull request (aside from typo correction). Feel free to point out any issues!

![](https://cdn.discordapp.com/attachments/823878222897741868/1086372711841935440/2023-03-18_042011.png)
![](https://cdn.discordapp.com/attachments/823878222897741868/1086373178214981853/01.png)
![](https://cdn.discordapp.com/attachments/823878222897741868/1086373336709341246/2023-03-18_042629.png)

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Co-authored-by: naskya <m@naskya.net>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9719
Co-authored-by: naskya <naskya@noreply.codeberg.org>
Co-committed-by: naskya <naskya@noreply.codeberg.org>
2023-03-19 07:22:28 +00:00
ThatOneCalculator
c5d9f3bf59
Merge branch 'develop' of codeberg.org:calckey/calckey into develop 2023-03-19 00:14:08 -07:00
ThatOneCalculator
2117977d88
fix: when count is actually 0 2023-03-19 00:13:30 -07:00
Free
b2bc51a4ee note-improvements (#9721)
boop

Co-authored-by: Freeplay <Freeplay@duck.com>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9721
Co-authored-by: Free <freeplay@duck.com>
Co-committed-by: Free <freeplay@duck.com>
2023-03-19 07:13:02 +00:00
ThatOneCalculator
681cefcda5
Merge branch 'develop' of codeberg.org:calckey/calckey into develop 2023-03-19 00:12:33 -07:00
ThatOneCalculator
2ea458e2db
fix: mobile button alignment 2023-03-19 00:12:24 -07:00
Kainoa Kanter
dbe45e1838 Merge pull request 'Don't show channel edit button unless owner' (#9722) from supakaity/hajkey:hk-channel-owner-edit into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9722
2023-03-18 23:11:47 +00:00
cutestnekoaqua
025f149440
pass auth to metadata 2023-03-18 13:06:49 +01:00