-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: URLプレビューの動作改善+動作設定を可能にする (#13579)
* wip * support new version * URLプレビュー無効化時、フロント側も非表示にしてリクエストをしないようにする * fix lint * fix lint * tweak preview request error handles * fix: CHANGELOG.md * fix * fix --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
- Loading branch information
1 parent
f4838e5
commit 831c74a
Showing
22 changed files
with
420 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
packages/backend/migration/1710512074000-url-preview-meta.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* SPDX-FileCopyrightText: syuilo and misskey-project | ||
* SPDX-License-Identifier: AGPL-3.0-only | ||
*/ | ||
|
||
export class UrlPreviewMeta1710512074000 { | ||
name = 'UrlPreviewMeta1710512074000' | ||
|
||
async up(queryRunner) { | ||
await queryRunner.query(` | ||
alter table meta | ||
rename column "summalyProxy" to "urlPreviewSummaryProxyUrl"; | ||
alter table meta | ||
add "urlPreviewEnabled" boolean default true not null; | ||
alter table meta | ||
add "urlPreviewTimeout" integer default 10000 not null; | ||
alter table meta | ||
add "urlPreviewMaximumContentLength" bigint default 10485760 not null; | ||
alter table meta | ||
add "urlPreviewRequireContentLength" boolean default false not null; | ||
alter table meta | ||
add "urlPreviewUserAgent" varchar(1024) default null; | ||
`); | ||
} | ||
|
||
async down(queryRunner) { | ||
await queryRunner.query(` | ||
alter table meta | ||
rename column "urlPreviewSummaryProxyUrl" to "summalyProxy"; | ||
alter table meta | ||
drop column "urlPreviewEnabled"; | ||
alter table meta | ||
drop column "urlPreviewTimeout"; | ||
alter table meta | ||
drop column "urlPreviewMaximumContentLength"; | ||
alter table meta | ||
drop column "urlPreviewRequireContentLength"; | ||
alter table meta | ||
drop column "urlPreviewUserAgent"; | ||
`); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
831c74a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chromatic detects changes. Please review the changes on Chromatic.