update node to v18
This commit is contained in:
parent
49daa56a64
commit
1751bfea5f
|
@ -1 +1 @@
|
||||||
v16.15.0
|
v18.12.1
|
||||||
|
|
|
@ -12,6 +12,7 @@ You should also include the user name that made the change.
|
||||||
## 12.x.x (unreleased)
|
## 12.x.x (unreleased)
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
- Node.js 18.x or later is required
|
||||||
- Elasticsearchのサポートが削除されました
|
- Elasticsearchのサポートが削除されました
|
||||||
- 代わりに今後任意の検索プロバイダを設定できる仕組みを構想しています。その仕組みを使えば今まで通りElasticsearchも利用できます
|
- 代わりに今後任意の検索プロバイダを設定できる仕組みを構想しています。その仕組みを使えば今まで通りElasticsearchも利用できます
|
||||||
- ノートのウォッチ機能が削除されました
|
- ノートのウォッチ機能が削除されました
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM node:16.15.1-bullseye AS builder
|
FROM node:18.12.1-bullseye AS builder
|
||||||
|
|
||||||
ARG NODE_ENV=production
|
ARG NODE_ENV=production
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ RUN yarn install
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
RUN rm -rf .git
|
RUN rm -rf .git
|
||||||
|
|
||||||
FROM node:16.15.1-bullseye-slim AS runner
|
FROM node:18.12.1-bullseye-slim AS runner
|
||||||
|
|
||||||
WORKDIR /misskey
|
WORKDIR /misskey
|
||||||
|
|
||||||
|
|
|
@ -105,9 +105,7 @@ export class RelayService {
|
||||||
}));
|
}));
|
||||||
if (relays.length === 0) return;
|
if (relays.length === 0) return;
|
||||||
|
|
||||||
// TODO
|
const copy = structuredClone(activity);
|
||||||
//const copy = structuredClone(activity);
|
|
||||||
const copy = JSON.parse(JSON.stringify(activity));
|
|
||||||
if (!copy.to) copy.to = ['https://www.w3.org/ns/activitystreams#Public'];
|
if (!copy.to) copy.to = ['https://www.w3.org/ns/activitystreams#Public'];
|
||||||
|
|
||||||
const signed = await this.apRendererService.attachLdSignature(copy, user);
|
const signed = await this.apRendererService.attachLdSignature(copy, user);
|
||||||
|
|
|
@ -55,9 +55,7 @@ export class DriveFileEntityService {
|
||||||
|
|
||||||
public getPublicProperties(file: DriveFile): DriveFile['properties'] {
|
public getPublicProperties(file: DriveFile): DriveFile['properties'] {
|
||||||
if (file.properties.orientation != null) {
|
if (file.properties.orientation != null) {
|
||||||
// TODO
|
const properties = structuredClone(file.properties);
|
||||||
//const properties = structuredClone(file.properties);
|
|
||||||
const properties = JSON.parse(JSON.stringify(file.properties));
|
|
||||||
if (file.properties.orientation >= 5) {
|
if (file.properties.orientation >= 5) {
|
||||||
[properties.width, properties.height] = [properties.height, properties.width];
|
[properties.width, properties.height] = [properties.height, properties.width];
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,9 +86,7 @@ export class ClientServerService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async manifestHandler(ctx: Koa.Context) {
|
private async manifestHandler(ctx: Koa.Context) {
|
||||||
// TODO
|
const res = structuredClone(manifest);
|
||||||
//const res = structuredClone(manifest);
|
|
||||||
const res = JSON.parse(JSON.stringify(manifest));
|
|
||||||
|
|
||||||
const instance = await this.metaService.fetch(true);
|
const instance = await this.metaService.fetch(true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue