Commit graph

5617 commits

Author SHA1 Message Date
e2471b85dd do not use media proxy if emoji is local
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
2024-11-21 12:19:31 +08:00
かっこかり
3a6c2aa835
fix(backend): fix type error(s) in security fixes (#15009)
* Fix type error in security fixes

(cherry picked from commit fa3cf6c2996741e642955c5e2fca8ad785e83205)

* Fix error in test function calls

(cherry picked from commit 1758f29364eca3cbd13dbb5c84909c93712b3b3b)

* Fix style error

(cherry picked from commit 23c4aa25714af145098baa7edd74c1d217e51c1a)

* Fix another style error

(cherry picked from commit 36af07abe28bec670aaebf9f5af5694bb582c29a)

* Fix `.punyHost` misuse

(cherry picked from commit 6027b516e1c82324d55d6e54d0e17cbd816feb42)

* attempt to fix test: make yaml valid

---------

Co-authored-by: Julia Johannesen <julia@insertdomain.name>
2024-11-21 12:10:02 +09:00
かっこかり
53e827b18c
fix(backend): fix security patches (#15008) 2024-11-21 10:30:30 +09:00
syuilo
0f59adc436 fix ap/show 2024-11-21 09:25:18 +09:00
syuilo
9fdabe3666 fix(backend): use atomic command to improve security
Co-Authored-By: Acid Chicken <root@acid-chicken.com>
2024-11-21 09:22:15 +09:00
rectcoordsystem
090e9392cd
Merge commit from fork
* fix(backend): check target IP before sending HTTP request

* fix(backend): allow accessing private IP when testing

* Apply suggestions from code review

Co-authored-by: anatawa12 <anatawa12@icloud.com>

* fix(backend): lint and typecheck

* fix(backend): add isLocalAddressAllowed option to getAgentByUrl and send (HttpRequestService)

* fix(backend): allow fetchSummaryFromProxy, trueMail to access local addresses

---------

Co-authored-by: anatawa12 <anatawa12@icloud.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-11-21 08:27:09 +09:00
Julia
b9cb949eb1
Merge commit from fork
* Fix poll update spoofing

* fix: Disallow negative poll counts

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-11-21 08:24:50 +09:00
Julia
5f675201f2
Merge commit from fork
* enhance: Add a few validation fixes from Sharkey

See the original MR on the GitLab instance:
https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/484

Co-Authored-By: Dakkar <dakkar@thenautilus.net>

* fix: primitive 2: acceptance of cross-origin alternate

Co-Authored-By: Laura Hausmann <laura@hausmann.dev>

* fix: primitive 3: validation of non-final url

* fix: primitive 4: missing same-origin identifier validation of collection-wrapped activities

* fix: primitives 5 & 8: reject activities with non
string identifiers

Co-Authored-By: Laura Hausmann <laura@hausmann.dev>

* fix: primitive 6: reject anonymous objects that were fetched by their id

* fix: primitives 9, 10 & 11: http signature validation
doesn't enforce required headers or specify auth header name

Co-Authored-By: Laura Hausmann <laura@hausmann.dev>

* fix: primitive 14: improper validation of outbox, followers, following & shared inbox collections

* fix: code style for primitive 14

* fix: primitive 15: improper same-origin validation for
note uri and url

Co-Authored-By: Laura Hausmann <laura@hausmann.dev>

* fix: primitive 16: improper same-origin validation for user uri and url

* fix: primitive 17: note same-origin identifier validation can be bypassed by wrapping the id in an array

* fix: code style for primitive 17

* fix: check attribution against actor in notes

While this isn't strictly required to fix the exploits at hand, this
mirrors the fix in `ApQuestionService` for GHSA-5h8r-gq97-xv69, as a
preemptive countermeasure.

* fix: primitive 18: `ap/get` bypasses access checks

One might argue that we could make this one actually preform access
checks against the returned activity object, but I feel like that's a
lot more work than just restricting it to administrators, since, to me
at least, it seems more like a debugging tool than anything else.

* fix: primitive 19 & 20: respect blocks and hide more

Ideally, the user property should also be hidden (as leaving it in leaks
information slightly), but given the schema of the note endpoint, I
don't think that would be possible without introducing some kind of
"ghost" user, who is attributed for posts by users who have you blocked.

* fix: primitives 21, 22, and 23: reuse resolver

This also increases the default `recursionLimit` for `Resolver`, as it
theoretically will go higher that it previously would and could possibly
fail on non-malicious collection activities.

* fix: primitives 25-33: proper local instance checks

* revert: fix: primitive 19 & 20

This reverts commit 465a9fe6591de90f78bd3d084e3c01e65dc3cf3c.

---------

Co-authored-by: Dakkar <dakkar@thenautilus.net>
Co-authored-by: Laura Hausmann <laura@hausmann.dev>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-11-21 08:20:09 +09:00
Sayamame-beans
aa48a0e207
Fix: リノートミュートが新規投稿通知に対して作用していなかった問題を修正 (#15006)
* fix(backend): renoteMute doesn't work for note notification

* docs(changelog): update changelog
2024-11-21 08:00:50 +09:00
syuilo
f0c3a4cc0b
perf(frontend): reduce api requests for non-logged-in enviroment (#15001)
* wip

* Update CHANGELOG.md

* wip
2024-11-21 07:58:34 +09:00
fly_mc
7b622d797d frontend: add same router 2024-11-21 00:47:34 +08:00
fly_mc
1eec109e33 backend: restore NoteDeleteService 2024-11-21 00:15:43 +08:00
fly_mc
2e73da70b7 Merge branch 'develop' into pari-dev 2024-11-21 00:03:02 +08:00
fly_mc
5459bc395b removed unsed files 2024-11-20 23:40:42 +08:00
fly_mc
5dc938cb93 backend: fixes 2024-11-20 23:37:16 +08:00
鴇峰 朔華
4603ab67bb
feat: 絵文字のポップアップメニューに編集を追加 (#15004)
* Mod: 絵文字のポップアップメニューに編集を追加

* fix: code styleの修正

* fix: code styleの修正

* fix
2024-11-20 20:08:26 +09:00
fly_mc
75fd0bb701 locales: aboutPari 2024-11-20 11:50:42 +08:00
fly_mc
54c5328a7f frontend: tweak showActionsOnlyHover 2024-11-20 11:42:51 +08:00
3dcb376b23 improve emoji packing
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
2024-11-20 01:02:00 +08:00
fly_mc
a131e4d9e9 backend: fix make emoji categories and names case insensitive 2024-11-20 00:32:08 +08:00
fly_mc
75d49c9262 make emoji categories and names case insensitive 2024-11-19 22:58:15 +08:00
fly_mc
f61376fce8 Merge branch 'develop' into pari 2024-11-19 22:52:15 +08:00
fly_mc
d08e13d57b frontend: use testingcf jsdelivr 2024-11-19 22:46:35 +08:00
fly_mc
7a90b3c4f9 Revert "frontend: tweak custom fonts"
This reverts commit eb5b3e4683.
2024-11-19 22:45:48 +08:00
fly_mc
8c65e9052f sw: static-assets cache 2024-11-19 22:41:29 +08:00
fly_mc
f27d2640dd frontend: fix wrong type of font 2024-11-19 22:40:30 +08:00
fly_mc
eb5b3e4683 frontend: tweak custom fonts 2024-11-19 22:28:55 +08:00
fly_mc
e72bf3eedf chores: removed unused css 2024-11-19 22:15:11 +08:00
fly_mc
915137056e frontend: fix loading fonts when boot 2024-11-19 22:00:03 +08:00
fly_mc
8caf4e33b3 frontend: fix fonts loading 2024-11-19 21:54:26 +08:00
fly_mc
966f8197eb frontend: dynamic import fonts css 2024-11-19 21:30:50 +08:00
fly_mc
1f4638b547 frontend: use local tinyld 2024-11-19 20:58:15 +08:00
zawa-ch.
763c708253
Fix(backend): アカウント削除のモデレーションログが動作していないのを修正 (#14996) (#14997)
* アカウント削除のモデレーションログが動作していないのを修正

* update CHANGELOG
2024-11-19 21:12:40 +09:00
github-actions[bot]
6c5d3113c6 Bump version to 2024.11.0-alpha.2 2024-11-19 03:56:50 +00:00
おさむのひと
7b9c884a5d
refactor(backend): SystemWebhookで送信されるペイロードの型を追加 (#14980) 2024-11-19 10:41:39 +09:00
FineArchs
c271534aba
リノートメニューに「リノートの詳細」を追加 (#14985)
* add renote-detail menu

* changelog

* Apply suggestions from code review

Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>

* Update CHANGELOG.md

---------

Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
2024-11-19 10:34:33 +09:00
饺子w (Yumechi)
e800c0f85a
fix(backend): お知らせ作成時に画像URL入力欄を空欄に変更できないのを修正 (#14990)
* fix(backend): アナウンスメントを作成ときに画像URLを後悔できないのを修正

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>

* Update CHANGELOG.md

Co-authored-by: おさむのひと <46447427+samunohito@users.noreply.github.com>

---------

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
Co-authored-by: おさむのひと <46447427+samunohito@users.noreply.github.com>
2024-11-19 10:29:42 +09:00
かっこかり
81348f1277
fix(frontend): TypeScriptの型チェック対象ファイルを限定して高速化するように (#14994)
* fix frontend tsconfig includes

* fix frontend-embed tsconfig includes

* fix eslint in frontend / frontend-embed

* Update Changelog

---------

Co-authored-by: Hazelnoot <acomputerdog@gmail.com>
2024-11-19 10:22:47 +09:00
fly_mc
95da7086b8 add missing import 2024-11-19 02:24:14 +08:00
fly_mc
4898087ddb frontend: fix import note icon 2024-11-19 02:21:20 +08:00
fly_mc
faafb6186f frontend: fix export data icon 2024-11-19 02:20:13 +08:00
fly_mc
472891a42f backend: some validation fixes?? 2024-11-19 02:16:35 +08:00
fly_mc
20ece1c408 backend: fix ApPersonService.ts 2024-11-19 02:10:00 +08:00
fly_mc
6fd7427a52 Feat: export accounts data 2024-11-19 01:56:55 +08:00
fly_mc
0be5e1c2e3 backend: check against url 2024-11-19 01:06:55 +08:00
fly_mc
5923a7f360 update avatar deco showBelow 2024-11-19 00:20:55 +08:00
fly_mc
df398ce63a backend: use text for DriveFile comment 2024-11-19 00:13:25 +08:00
fly_mc
a380f0dbf1 backend: ImportCustomEmojis normalization 2024-11-19 00:09:00 +08:00
fly_mc
d64b0b3865 backend: match Unicode in exporting emojis 2024-11-19 00:06:45 +08:00
fly_mc
8f366a39c8 backend: update CleanRemoteFileProcessorService 2024-11-19 00:04:19 +08:00
fly_mc
9b0b716d6f backend: delete reactions when deleting accounts 2024-11-19 00:03:01 +08:00
fly_mc
52f118bc2c backend: change HASHTAG_RANKING_WINDOW 2024-11-19 00:00:02 +08:00
fly_mc
9f71b3f3a0 backend: fetch full following counts 2024-11-18 23:46:48 +08:00
fly_mc
ecd0211226 fix 2024-11-18 23:35:46 +08:00
fly_mc
9263c485c4 backend: fix ApInboxService 2024-11-18 23:27:31 +08:00
fly_mc
fc2f68f1d6 backend: ap refetch key 2024-11-18 23:17:52 +08:00
fly_mc
ad51752f38 backend: tweak get-note-summary 2024-11-18 23:02:36 +08:00
fly_mc
1f85626fad fix sqlLikeEscape 2024-11-18 23:00:45 +08:00
fly_mc
e19373ea90 fix ap type.ts 2024-11-18 22:51:00 +08:00
fly_mc
5c86549456 Merge branch 'develop' into pari 2024-11-18 21:50:40 +08:00
fly_mc
f237bca772 removed unused import 2024-11-18 21:15:24 +08:00
fly_mc
d0e2f46412 Revert "try: fix: return null instead of throw error when recursively fetching note"
This reverts commit be295b19a6.
2024-11-18 10:35:47 +08:00
おさむのひと
0df6c79172
enhance(frontend): デッキ表示時にサイドバーを展開・折りたたみできるように (#14983)
* enhance(frontend): デッキ表示時にサイドバーを展開・折りたたみできるように

* wip

* wip

* Update navbar.vue

* ✌️

* Update CHANGELOG.md

* 🎨

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-11-18 10:36:51 +09:00
fly_mc
cb9385e229 Reapply "update SearchService"
This reverts commit 6c9dd99083.
2024-11-18 02:43:08 +08:00
fly_mc
1471039199 Revert "update SearchService"
This reverts commit a9acf532c1.
2024-11-18 02:41:44 +08:00
fly_mc
23a5f68e94 recursionLimit 2024-11-18 02:38:45 +08:00
fly_mc
be295b19a6 try: fix: return null instead of throw error when recursively fetching note 2024-11-18 02:36:56 +08:00
fly_mc
ff403e93ac use tinyld normal 2024-11-17 21:49:01 +08:00
fly_mc
327334dd77 lint 2024-11-17 21:28:54 +08:00
fly_mc
460bc4692a inUnexpectedLang 2024-11-17 21:21:05 +08:00
fly_mc
560a8b74b9 Revert "revert collapse unexpected lang"
This reverts commit 2265f46c55.
2024-11-17 21:06:32 +08:00
fly_mc
1ecc57f3ae Revert "tweak MkNote"
This reverts commit 5c09719351.
2024-11-17 21:06:21 +08:00
fly_mc
9efa5dce22 skipRender 2024-11-17 19:21:43 +08:00
fly_mc
a9acf532c1 update SearchService 2024-11-17 19:10:22 +08:00
fly_mc
6c9dd99083 Revert "update SearchService"
This reverts commit e692e7ac6f.
2024-11-17 19:04:47 +08:00
fly_mc
1482acd354 Revert "tweak"
This reverts commit b1798a7011.
2024-11-17 19:03:29 +08:00
fly_mc
23d3e2f7ed Revert "tweak MkNote"
This reverts commit 46cf366388.
2024-11-17 19:03:10 +08:00
CDN
b0d04713e0 fix(backend): fallback sharedInbox to null in ApPersonService (#14970) 2024-11-16 22:23:49 +08:00
syuilo
9614f74bf8 🎨 2024-11-16 20:24:31 +09:00
fly_mc
d30db97b59 increase character limits 2024-11-16 18:27:27 +08:00
fly_mc
e692e7ac6f update SearchService 2024-11-16 18:18:06 +08:00
CDN
b3c2de2b26
fix(backend): fallback sharedInbox to null in ApPersonService (#14970) 2024-11-16 18:53:28 +09:00
fly_mc
3b1b440064 Revert "use computed noteSummary"
This reverts commit eca4d8b752.
2024-11-16 17:44:41 +08:00
fly_mc
b1798a7011 tweak 2024-11-16 16:40:34 +08:00
syuilo
cf1b7c7064
add warning for open registration (#14963)
* wip

* wip

* Update ja-JP.yml

* Update index.d.ts

* ✌️
2024-11-16 17:22:34 +09:00
fly_mc
46cf366388 tweak MkNote 2024-11-16 16:21:14 +08:00
fly_mc
5c09719351 tweak MkNote 2024-11-16 16:11:59 +08:00
fly_mc
eca4d8b752 use computed noteSummary 2024-11-16 16:05:58 +08:00
fly_mc
2265f46c55 revert collapse unexpected lang 2024-11-16 16:01:12 +08:00
fly_mc
5a64e7ae5c Merge branch 'develop' into pari 2024-11-16 15:17:20 +08:00
syuilo
459449864c 🎨 2024-11-16 10:16:11 +09:00
fly_mc
32e835883b Merge branch 'develop' into pari 2024-11-15 21:53:41 +08:00
syuilo
eef0c895bc use execa 8.0.1
#14966
2024-11-15 19:48:31 +09:00
syuilo
d9d92bcfbf Revert "use nodemon 3.0.2"
This reverts commit ce1f84e5a3.
2024-11-15 19:40:12 +09:00
syuilo
ce1f84e5a3 use nodemon 3.0.2
#14966
2024-11-15 19:33:50 +09:00
github-actions[bot]
cf7df05023 Bump version to 2024.11.0-alpha.1 2024-11-15 09:06:13 +00:00
syuilo
ee2c017f48 Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop 2024-11-15 18:00:22 +09:00
syuilo
d0cdc0b7a1 chore(frontend): tweak animation style 2024-11-15 18:00:20 +09:00
かっこかり
c0d1682604
feat: 送信したフォローリクエストを確認できるように (#14856)
* FEAT: Allow users to view pending follow requests they sent

This commit implements the `following/requests/sent` interface firstly
implemented on Firefish, and provides a UI interface to view the pending
follow requests users sent.

* ux: should not show follow requests tab when have no pending sent follow req

* fix default followreq tab

* fix default followreq tab

* restore missing hasPendingReceivedFollowRequest in navbar

* refactor

* use tabler icons

* tweak design

* Revert "ux: should not show follow requests tab when have no pending sent follow req"

This reverts commit e580b92c37f27c2849c6d27e22ca4c47086081bb.

* Update Changelog

* Update Changelog

* change tab titles

---------

Co-authored-by: Lhc_fl <lhcfl@outlook.com>
Co-authored-by: Hazelnoot <acomputerdog@gmail.com>
2024-11-15 17:30:54 +09:00
syuilo
e26e24b610
update deps (#14950)
* update deps

* wip

* Revert "wip"

This reverts commit 393de249fe248ae181221266e0b7828a3ac53152.

* wip

* wip

* wip

* wip
2024-11-15 17:22:00 +09:00