Commit graph

78 commits

Author SHA1 Message Date
Namekuji e932d6effa
use schema in native-utils 2023-06-02 23:48:24 -04:00
ThatOneCalculator 544e3a008e
feat: server info widget
Co-authored-by: Syuilo <syuilotan@yahoo.co.jp>
2023-05-28 20:14:08 -07:00
Kainoa Kanter c3456c027a hotfix: try catch hasUnreadAntenna 2023-05-26 16:32:59 +00:00
ThatOneCalculator 911704d6a8
chore: formatting 2023-05-25 19:47:10 -07:00
Freeplay 3f58162cf4 Fix polls & own reactions not showing in replies 2023-05-25 15:49:39 -04:00
Namekuji 3ddcffd169
enhance: emoji width and height 2023-05-19 22:26:13 -04:00
syuilo 6bc07036ac
feat: 投稿したコンテンツのAIによる学習を軽減するオプションを追加
Co-authored-by: GitHub <syuilo>
2023-05-10 20:50:21 -07:00
Kaity A a7c9400a42
Merge remote-tracking branch 'origin/develop' into hk/edit-federation 2023-05-02 18:24:54 +10:00
Kaity A 6eed038028
fix poll voting causing edit revisions. 2023-05-01 03:17:38 +10:00
Kaity A 627a71701f
Implement inbound note edit federation 2023-05-01 02:29:50 +10:00
Namekuji 9bc872dc00
format 2023-04-30 08:08:45 -04:00
Namekuji ba734a9f3c
instance silence 2023-04-30 07:27:55 -04:00
Kainoa Kanter 437a6e29a5 chore: formatting 2023-04-07 22:46:10 -07:00
naskya a624aeebe3 feat: per-user boost muting (#9825)
Cherry-picked from FoundKey/c414f24a2c ([commit](c414f24a2c))

This allows us to hide specified users' boosts from the timelines (the boosts will still be visible on their user page).

Co-authored-by: Hélène <pleroma-dev@helene.moe>
Co-authored-by: naskya <m@naskya.net>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9825
Co-authored-by: naskya <naskya@noreply.codeberg.org>
Co-committed-by: naskya <naskya@noreply.codeberg.org>
2023-04-08 05:44:36 +00:00
Kaity A a66eac0e5b
Separate cat-avatar mode and speak-as-cat nyanification 2023-04-02 21:24:12 +10:00
ThatOneCalculator e9b45260b5
chore: 🎨 format 2023-04-01 21:10:31 -07:00
kabo2468 b717f6d6ff
fix: don't nyaize quoted text 2023-03-31 23:30:57 +09:00
ThatOneCalculator d5cafde7d1
Revert "refactor: nyaize on the frontend"
This reverts commit aff90b3ef2.
2023-03-23 09:06:32 -07:00
amy bones 1f840aa7b9
fix: max user profile length to db field length
Resolves: #9749
2023-03-22 02:10:43 -07:00
ThatOneCalculator aff90b3ef2
refactor: nyaize on the frontend 2023-03-19 19:59:00 -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 2117977d88
fix: when count is actually 0 2023-03-19 00:13:30 -07:00
s1idewhist1e 36281ec413 feat: Make follower counts for remote users correct (#9705)
#9293

Not sure if this is the right approach for this

Co-authored-by: s1idewhist1e <trombonedude05@gmail.com>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9705
Co-authored-by: s1idewhist1e <s1idewhist1e@noreply.codeberg.org>
Co-committed-by: s1idewhist1e <s1idewhist1e@noreply.codeberg.org>
2023-03-17 01:16:31 +00:00
Kaity A 4ca445b587 Implementation of an instances wide antenna source. (#9604)
This PR contains new source for antenna posts, which is a list of instance hostnames to process all posts from.

Using this mode, a user can filter for keywords on an instance wide basis.

This change includes a new antenna source called `instances` and a new database column in the `antenna` table called `instances` to store the instance names.

On the antenna editor, there's also an "Add an instance" finder dialog to allow users to search through the known instance hostnames.

Co-authored-by: Kaity A <supakaity@blahaj.zone>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9604
Co-authored-by: Kaity A <supakaity@noreply.codeberg.org>
Co-committed-by: Kaity A <supakaity@noreply.codeberg.org>
2023-02-12 01:20:17 +00:00
ThatOneCalculator fcc59cd35f
chore: Rome Formatting 2023-02-10 15:41:19 -08:00
cutestnekoaqua 717aa899b1
feat: v1 Mastodon API
This commit adds (maybe unstable) support for Mastodons v1 api
also some v2 endpoints, maybe I miss stuff, I dont know.
We will need to test this but it should be kinda stable
and work like (old) butter.

Co-authored-by: Natty <natty.sh.git@gmail.com>
Co-authored-by: cutls <web-pro@cutls.com>
2023-02-09 23:21:50 +01:00
ThatOneCalculator 6b00abf05c
refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
Kainoa Kanter 8717f93453 Update 'packages/backend/src/models/repositories/instance.ts' 2022-12-26 14:48:34 +00:00
Francis Dinh d9b7219404
Block subdomains of blocked hosts 2022-12-24 14:46:09 -05:00
Kainoa Kanter ed02d089ed Merge branch 'develop' into account_migration 2022-12-12 01:51:17 +00:00
ThatOneCalculator a11fd6971d
fix liked pages endpoint 2022-12-11 14:50:16 -08:00
cutestnekoaqua 2694baf85d fix remote move queue 2022-12-07 18:16:37 +01:00
cutestnekoaqua f47813cf0e fixed it for good 2022-12-07 01:15:32 +01:00
ThatOneCalculator 77d088ee12 movedTo -> movedToUri 2022-12-04 17:20:36 -08:00
ThatOneCalculator 8ab290b708 cleo ide moment 2022-12-04 12:53:55 -08:00
Kainoa Kanter 0e8b155e07 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 dcda17d6f2 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 3078137596 temp notification api fix, thank you @supakaity 2022-11-26 09:31:54 -08:00
ThatOneCalculator 9daf4db0cb feat: Page drafts 2022-11-18 19:24:05 -08:00
syuilo eb9d50ec70 improve performance (merge deepClone from Misskey dev) 2022-11-18 17:28:58 -08:00
ThatOneCalculator 8eecacec4f AVIF support 2022-11-14 18:53:38 -08:00
Johann150 20763a84ee Merge: enhance privacy of notes
https://akkoma.dev/FoundKeyGang/FoundKey/pulls/14
2022-07-25 13:36:44 -07:00
syuilo e560601815
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 cd07eb222e
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 164d4a9825 fix(api): add missing themeColor property of instance 2022-06-28 10:40:49 +09:00
syuilo f880d0631c tweak client 2022-06-21 17:55:38 +09:00
syuilo 4efee455b1 fix(server): faviconUrl of federated instance is missing 2022-06-21 14:28:43 +09:00
Johann150 7db09103e7
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 89419c05b2 use node 16 2022-06-04 17:26:56 +09:00
Johann150 804fa33535
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