Commit Graph

87 Commits

Author SHA1 Message Date
Kainoa Kanter
698d4f7607 Update 'packages/backend/src/models/repositories/instance.ts' 2022-12-26 14:48:34 +00:00
Francis Dinh
8ff259f573 Block subdomains of blocked hosts 2022-12-24 14:46:09 -05:00
Cleo
530664ccbc Merge pull request '[Chore] Partial translating of ActivityPub/Boot code + Formatting' (#9229) from prettykool/calckey:develop into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9229
2022-12-18 21:01:22 +00:00
ThatOneCalculator
1a9e55b0f3 refactor: new repo link 2022-12-18 10:12:24 -08:00
PK
52cc014e4d Translate portions of backend/src/remote/activitypub, the suspend-user service, and the boot process.
Some of these weren't translated so I thought I'd do 'em cause why not ¯\_(ツ)_/¯
2022-12-15 12:44:03 -06:00
Kainoa Kanter
01f463ff7a Merge branch 'develop' into account_migration 2022-12-12 01:51:17 +00:00
ThatOneCalculator
f500fb6a52 fix liked pages endpoint 2022-12-11 14:50:16 -08:00
cutestnekoaqua
635290bd33 fix remote move queue 2022-12-07 18:16:37 +01:00
cutestnekoaqua
abe351c283 fixed it for good 2022-12-07 01:15:32 +01:00
cutestnekoaqua
a3e2897bfc found my DB mistakes 💀 2022-12-07 00:09:12 +01:00
Cleo
6141e1a723 Merge pull request 'just using merge bc easier' (#9185) from recieve_moveto into account_migration
Reviewed-on: https://codeberg.org/thatonecalculator/calckey/pulls/9185
2022-12-06 16:56:12 +00:00
cutestnekoaqua
a3011e6b8e commit 1 of 2 of fixing the Account migration to Calckey 2022-12-06 17:46:08 +01:00
ThatOneCalculator
dbb950d0eb movedTo -> movedToUri 2022-12-04 17:20:36 -08:00
ThatOneCalculator
b93d390af8 cleo ide moment 2022-12-04 12:53:55 -08:00
Kainoa Kanter
29c1b81f12 Merge pull request 'develop' (#9178) from develop into account_migration
Reviewed-on: https://codeberg.org/thatonecalculator/calckey/pulls/9178
2022-12-04 06:26:26 +00:00
Cleo
cfab9ff2ad Display moved info.
It already fetches the moved to info on regular user fetches, now only the notification of a new "moved to" is missing.

Signed-off-by: cutestnekoaqua <waterdev@galaxycrow.de>
Co-authored-by: Mary Strodl <ipadlover8322@gmail.com>
Signed-off-by: cutestnekoaqua <waterdev@galaxycrow.de>
2022-11-30 20:29:01 +01:00
ThatOneCalculator
729210b1c6 temp notification api fix, thank you @supakaity 2022-11-26 09:31:54 -08:00
Cleo John
fe7ac800d7 Add movedToUri and knownAs to DB model user 2022-11-24 11:39:40 +00:00
Cleo John
9ab2599e0d db migration for moved to 2022-11-24 11:32:25 +00:00
ThatOneCalculator
331b8664f8 feat: Page drafts 2022-11-18 19:24:05 -08:00
syuilo
bf87e9586b improve performance (merge deepClone from Misskey dev) 2022-11-18 17:28:58 -08:00
ThatOneCalculator
f3f63a5dc1 AVIF support 2022-11-14 18:53:38 -08:00
ThatOneCalculator
8046495882 meta 2022-09-13 20:23:52 -07:00
ThatOneCalculator
f2bf9cb36b chore: ♻️ about-misskey -> about-calckey 2022-09-10 12:25:22 -07:00
ThatOneCalculator
0cc002f789 Obliteration of Ai-chan 🐱🔫 2022-08-08 14:58:27 -07:00
ThatOneCalculator
49b4635866 More Calckey branding 2022-08-05 14:07:40 -07:00
ThatOneCalculator
bcacfc0811 Recommended timeline! 2022-07-28 21:28:13 -07:00
ThatOneCalculator
690b03979b Custom splash icons! 2022-07-27 10:25:30 -07:00
ThatOneCalculator
3efd03800d Custom MOTD! 2022-07-27 09:46:35 -07:00
Johann150
fed2085138 Merge: enhance privacy of notes
https://akkoma.dev/FoundKeyGang/FoundKey/pulls/14
2022-07-25 13:36:44 -07:00
ThatOneCalculator
80ea452b9b Calckey as software name, finally! 2022-07-19 10:49:43 -07:00
ThatOneCalculator
db7fbce3b1 Merge remote-tracking branch 'nullobsi/secure-fetch' into develop 2022-07-18 20:50:15 -07:00
ThatOneCalculator
005d557502 Calckey 2022-07-18 19:00:45 -07:00
nullobsi
8f6605eb63 Add Secure Mode and Private Mode
- Add instance actor
- Add private mode, which uses an allowlist
- Add Secure Mode, restricts access to blocked instances
2022-07-17 15:25:39 -07:00
syuilo
638f0eba12 enhance: make active email validation configurable 2022-07-09 15:05:55 +09:00
syuilo
ed5d81859f feat: auto nsfw detection (#8840)
* feat: auto nsfw detection

* ✌️

* Update ja-JP.yml

* Update ja-JP.yml

* ポルノ判定のしきい値を高めに

* エラーハンドリングちゃんとした

* Update ja-JP.yml

* 感度設定を強化

* refactor

* feat: add video support for auto nsfw detection

* rename: image -> media

* .js

* fix: add missing error handling

* fix: use valid pathname instead of using filename due to invalid usage

* perf(nsfw-detection): decode frames

* disable detection of video for some reasons

* perf(nsfw-detection): streamify detection process for video

* disable disallowUploadWhenPredictedAsPorn option

* fix(nsfw-detection): improve reliability

* fix(nsfw-detection): use Math.ceil instead of Math.round

* perf(nsfw-detection): delete tmp frames after used

* fix(nsfw-detection): FSWatcher does not emit ready event

* perf(nsfw-detection): skip black frames

* refactor: strip exists check

* Update package.json

* めっちゃ変えた

* lint

* Update COPYING

* オプションで動画解析できるように

* Update yarn.lock

* Update CHANGELOG.md

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
2022-07-07 21:06:37 +09:00
CyberRex
bc49a0e9be Add additional drive capacity change support (#8867)
* Add additional drive capacity change support

* Update packages/backend/src/server/api/endpoints/admin/drive-capacity-override.ts

Co-authored-by: Johann150 <johann@qwertqwefsday.eu>

* 🎨

* show instance default capacity in placeholder

* fix

* update api/drive

* fix

* remove :

* fix lint

Co-authored-by: Johann150 <johann@qwertqwefsday.eu>
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2022-07-05 00:21:01 +09:00
syuilo
e5ccfa5158 feat: moderation note 2022-07-03 00:15:03 +09:00
syuilo
e23e7de453 feat: Log user ips (#8872)
* wip

* store ip and headers

* Update admin-file.vue

* require admin for view ip/headers

* IP (recent) 消した

* admin必須

* opt in

* clean ips periodically

* respect logging setting in drive/files/create
2022-07-02 15:12:11 +09:00
syuilo
31474fc66d fix(api): fix instance schema 2022-06-28 12:16:11 +09:00
syuilo
aa3914d7a2 fix(api): add missing themeColor property of instance 2022-06-28 10:40:49 +09:00
syuilo
69c45e4474 tweak client 2022-06-21 17:55:38 +09:00
syuilo
0fddc528ed fix(server): faviconUrl of federated instance is missing 2022-06-21 14:28:43 +09:00
Johann150
e161c0abe4 chore: synchronize visibility checks (#8687)
* reuse single meId parameter

* unify code style

Use template string to avoid having to use escaped quote marks.

* fix: follower only notes are visible to mentioned users

This synchronizes the visibility rules with the Notes.isVisibleForMe
method from packages/backend/src/models/repositories/note.ts

* add comment
2022-06-11 16:14:44 +09:00
syuilo
3f4101d17b use node 16 2022-06-04 17:26:56 +09:00
Johann150
ec47b46423 refactor: improve code quality (#8751)
* remove unnecessary if

`Array.prototype.some` already returns a boolean so an if to return
true or false is completely unnecessary in this case.

* perf: use count instead of find

When using `count` instead of `findOneBy`, the data is not
unnecessarily loaded.

* remove duplicate null check

The variable is checked for null in the lines above and the function
returns if so. Therefore, it can not be null at this point.

* simplify `getJsonSchema`

Because the assigned value is `null` and the used keys are only
shallow, use of `nestedProperty.set` seems inappropriate. Because the
value is not read, the initial for loop can be replaced by a `for..in`
loop.

Since all keys will be assigned `null`, the condition of the ternary
expression in the nested function will always be true. Therefore the
recursion case will never happen. With this the nested function can be
eliminated.

* remove duplicate condition

The code above already checks `dragging` and returns if it is truthy.
Checking it again later is therefore unnecessary.

To make this more obvious the `return` is removed in favour of using
an if...else construct.

* remove impossible "unknown" time

The `ago` variable will always be a number and all non-negative numbers
are already covered by other cases, the negative case is handled with
`future` so there is no case when `unkown` could be achieved.
2022-05-29 15:15:52 +09:00
Johann150
62ab5b4015 fix: assume remote users are following each other (#8734)
Misskey does not know if two remote users are following each other.
Because ActivityPub actions would otherwise fail on followers only
notes, we have to assume that two remote users are following each other
when an interaction about a remote note occurs.
2022-05-25 23:17:00 +09:00
Johann150
79072916af chore: synchronize code and database schema (#8577)
* chore: remove default null

null is always the default value if a table column is nullable, and typeorm's
@Column only accepts strings for default.

* chore: synchronize code with database schema

* chore: sync generated migrations with code
2022-05-05 22:45:22 +09:00
syuilo
4bf45e968e refactor: use structuredClone for deep clone 2022-04-23 12:38:02 +09:00
syuilo
cd7b04e90d fix ogp rendering and refactor 2022-04-17 21:18:18 +09:00