barkey/packages/backend/src
Julia d10fdfe973
Merge commit from fork
* SP-2025-03.1 always wrap icon&thumbnail URLs

if they're not HTTP URLs, the frontend won't be able to display them
anyway (`<img src="mailto:…">` or '<div stile="background-image:
url(nntp:…)">` aren't going to work!), so let's always run them through the
media proxy, which will fail harder (fetching a `javascript:` URL
won't do anything in the backend, might do something in the frontend)
and will always protect the client's address in cases like `gemini:`
where the browser could try to fetch

* SP-2025-03.2 use object binding for more styles

interpolating a random (remote-controlled!) string into a `style`
attribute is a bad idea; using VueJS object binding, we should get
proper quoting and therefore safe parse failures instead of CSS
injections / XSS

* SP-2025-03.3 slightly more robust "self" URL handling

parse URLs instead of treating them as strings; this is still not
perfect, but the `URL` class only handles full URLs, not relative
ones, so there's so way to ask it "give me a URL object that
represents this resource relative to this base URL"

notice that passing very weird URLs to `MkUrl` and `MkUrlPreview` will
break the frontend (in dev mode) because there's an untrapped `new
URL(…)` that may explode; production builds seem to safely ignore the
error, though

---------

Co-authored-by: dakkar <dakkar@thenautilus.net>
2025-04-29 08:15:54 +09:00
..
@types revert 5f88d56d96 2024-07-20 21:33:20 +09:00
boot fix(backend): デフォルト起動時のメインプロセスはHTTPサーバモジュールのみ読み込む (#15355) 2025-01-27 13:10:00 +00:00
core Exclude blocked instance note from most timelines (#15792) 2025-04-28 07:21:00 +09:00
daemons refactor/perf(backend): provide metadata statically (#14601) 2024-09-22 12:53:13 +09:00
misc fix: チャット周りの修正 (#15741) 2025-04-03 15:28:10 +09:00
models feat: アップロード可能な最大ファイルサイズをロールごとに設定可能に 2025-04-27 09:35:44 +09:00
queue feat: Job queue inspector (#15856) 2025-04-19 14:00:38 +09:00
server Merge commit from fork 2025-04-29 08:15:54 +09:00
config.ts enhance: implement sentryForFrontend (#15433) 2025-04-02 15:44:04 +09:00
const.ts feat: 新カスタム絵文字管理画面(β)の追加 (#13473) 2025-01-20 11:35:37 +00:00
decorators.ts refactor(backend): use Reflet for autobind deco (#14482) 2024-09-15 17:43:24 +09:00
di-symbols.ts Feat: Chat (#15686) 2025-03-24 21:32:46 +09:00
env.ts (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
global.d.ts (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
GlobalModule.ts enhance(backend): refine system account (#15530) 2025-03-02 20:06:20 +09:00
logger.ts refactor(backend): remove unused logger option 2024-06-06 10:01:50 +09:00
MainModule.ts (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
NestLogger.ts lint fixes 2024-06-06 11:40:11 +09:00
postgres.ts レプリケーション設定時におけるinsertOne()の挙動を調整 (#15109) 2025-04-13 20:44:44 +09:00
types.ts enhance: モデレーターがチャットルームの内容を確認・削除できるように 2025-03-25 15:51:45 +09:00