Skip to content

Commit 33f4dc1

Browse files
committed
Merge branch 'io' into bun
2 parents 44caa16 + d8fe4be commit 33f4dc1

File tree

13 files changed

+31
-27
lines changed

13 files changed

+31
-27
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "misskey",
3-
"version": "2024.5.0-io.5b",
3+
"version": "2024.5.0-io.5c",
44
"codename": "nasubi",
55
"repository": {
66
"type": "git",

packages/backend/src/server/api/stream/channels/antenna.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ class AntennaChannel extends Channel {
5454
if (this.minimize && ['public', 'home'].includes(note.visibility)) {
5555
this.send('note', {
5656
id: note.id, myReaction: note.myReaction,
57-
poll: note.poll ? { choices: note.poll.choices } : undefined,
58-
reply: note.reply ? { myReaction: note.reply.myReaction } : undefined,
59-
renote: note.renote ? { myReaction: note.renote.myReaction } : undefined,
57+
poll: note.poll?.choices ? { choices: note.poll.choices } : undefined,
58+
reply: note.reply?.myReaction ? { myReaction: note.reply.myReaction } : undefined,
59+
renote: note.renote?.myReaction ? { myReaction: note.renote.myReaction } : undefined,
6060
});
6161
} else {
6262
this.connection.cacheNote(note);

packages/backend/src/server/api/stream/channels/channel.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ class ChannelChannel extends Channel {
6060
if (this.minimize && ['public', 'home'].includes(note.visibility)) {
6161
this.send('note', {
6262
id: note.id, myReaction: note.myReaction,
63-
poll: note.poll ? { choices: note.poll.choices } : undefined,
64-
reply: note.reply ? { myReaction: note.reply.myReaction } : undefined,
65-
renote: note.renote ? { myReaction: note.renote.myReaction } : undefined,
63+
poll: note.poll?.choices ? { choices: note.poll.choices } : undefined,
64+
reply: note.reply?.myReaction ? { myReaction: note.reply.myReaction } : undefined,
65+
renote: note.renote?.myReaction ? { myReaction: note.renote.myReaction } : undefined,
6666
});
6767
} else {
6868
this.connection.cacheNote(note);

packages/backend/src/server/api/stream/channels/global-timeline.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ class GlobalTimelineChannel extends Channel {
9090
if (this.minimize && ['public', 'home'].includes(note.visibility)) {
9191
this.send('note', {
9292
id: note.id, myReaction: note.myReaction,
93-
poll: note.poll ? { choices: note.poll.choices } : undefined,
94-
reply: note.reply ? { myReaction: note.reply.myReaction } : undefined,
95-
renote: note.renote ? { myReaction: note.renote.myReaction } : undefined,
93+
poll: note.poll?.choices ? { choices: note.poll.choices } : undefined,
94+
reply: note.reply?.myReaction ? { myReaction: note.reply.myReaction } : undefined,
95+
renote: note.renote?.myReaction ? { myReaction: note.renote.myReaction } : undefined,
9696
});
9797
} else {
9898
this.connection.cacheNote(note);

packages/backend/src/server/api/stream/channels/home-timeline.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ class HomeTimelineChannel extends Channel {
9494
if (this.minimize && ['public', 'home'].includes(note.visibility)) {
9595
this.send('note', {
9696
id: note.id, myReaction: note.myReaction,
97-
poll: note.poll ? { choices: note.poll.choices } : undefined,
98-
reply: note.reply ? { myReaction: note.reply.myReaction } : undefined,
99-
renote: note.renote ? { myReaction: note.renote.myReaction } : undefined,
97+
poll: note.poll?.choices ? { choices: note.poll.choices } : undefined,
98+
reply: note.reply?.myReaction ? { myReaction: note.reply.myReaction } : undefined,
99+
renote: note.renote?.myReaction ? { myReaction: note.renote.myReaction } : undefined,
100100
});
101101
} else {
102102
this.connection.cacheNote(note);

packages/backend/src/server/api/stream/channels/hybrid-timeline.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ class HybridTimelineChannel extends Channel {
108108
if (this.minimize && ['public', 'home'].includes(note.visibility)) {
109109
this.send('note', {
110110
id: note.id, myReaction: note.myReaction,
111-
poll: note.poll ? { choices: note.poll.choices } : undefined,
112-
reply: note.reply ? { myReaction: note.reply.myReaction } : undefined,
113-
renote: note.renote ? { myReaction: note.renote.myReaction } : undefined,
111+
poll: note.poll?.choices ? { choices: note.poll.choices } : undefined,
112+
reply: note.reply?.myReaction ? { myReaction: note.reply.myReaction } : undefined,
113+
renote: note.renote?.myReaction ? { myReaction: note.renote.myReaction } : undefined,
114114
});
115115
} else {
116116
this.connection.cacheNote(note);

packages/backend/src/server/api/stream/channels/local-timeline.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ class LocalTimelineChannel extends Channel {
9393
if (this.minimize && ['public', 'home'].includes(note.visibility)) {
9494
this.send('note', {
9595
id: note.id, myReaction: note.myReaction,
96-
poll: note.poll ? { choices: note.poll.choices } : undefined,
97-
reply: note.reply ? { myReaction: note.reply.myReaction } : undefined,
98-
renote: note.renote ? { myReaction: note.renote.myReaction } : undefined,
96+
poll: note.poll?.choices ? { choices: note.poll.choices } : undefined,
97+
reply: note.reply?.myReaction ? { myReaction: note.reply.myReaction } : undefined,
98+
renote: note.renote?.myReaction ? { myReaction: note.renote.myReaction } : undefined,
9999
});
100100
} else {
101101
this.connection.cacheNote(note);

packages/backend/src/server/api/stream/channels/role-timeline.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ class RoleTimelineChannel extends Channel {
7676
if (this.minimize && ['public', 'home'].includes(note.visibility)) {
7777
this.send('note', {
7878
id: note.id, myReaction: note.myReaction,
79-
poll: note.poll ? { choices: note.poll.choices } : undefined,
80-
reply: note.reply ? { myReaction: note.reply.myReaction } : undefined,
81-
renote: note.renote ? { myReaction: note.renote.myReaction } : undefined,
79+
poll: note.poll?.choices ? { choices: note.poll.choices } : undefined,
80+
reply: note.reply?.myReaction ? { myReaction: note.reply.myReaction } : undefined,
81+
renote: note.renote?.myReaction ? { myReaction: note.renote.myReaction } : undefined,
8282
});
8383
} else {
8484
this.connection.cacheNote(note);

packages/backend/src/server/api/stream/channels/user-list.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ class UserListChannel extends Channel {
133133
if (this.minimize && ['public', 'home'].includes(note.visibility)) {
134134
this.send('note', {
135135
id: note.id, myReaction: note.myReaction,
136-
poll: note.poll ? { choices: note.poll.choices } : undefined,
137-
reply: note.reply ? { myReaction: note.reply.myReaction } : undefined,
138-
renote: note.renote ? { myReaction: note.renote.myReaction } : undefined,
136+
poll: note.poll?.choices ? { choices: note.poll.choices } : undefined,
137+
reply: note.reply?.myReaction ? { myReaction: note.reply.myReaction } : undefined,
138+
renote: note.renote?.myReaction ? { myReaction: note.renote.myReaction } : undefined,
139139
});
140140
} else {
141141
this.connection.cacheNote(note);

packages/frontend/src/components/MkMediaAudio.vue

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ SPDX-License-Identifier: AGPL-3.0-only
2727
<audio
2828
ref="audioEl"
2929
preload="metadata"
30+
crossorigin="anonymous"
3031
controls
3132
:class="$style.nativeAudio"
3233
@keydown.prevent
@@ -41,6 +42,7 @@ SPDX-License-Identifier: AGPL-3.0-only
4142
<audio
4243
ref="audioEl"
4344
preload="metadata"
45+
crossorigin="anonymous"
4446
>
4547
<source :src="audio.url">
4648
</audio>

packages/frontend/src/components/MkMediaVideo.vue

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ SPDX-License-Identifier: AGPL-3.0-only
3434
:title="video.comment ?? undefined"
3535
:alt="video.comment"
3636
preload="metadata"
37+
crossorigin="anonymous"
3738
controls
3839
@keydown.prevent
3940
>
@@ -54,6 +55,7 @@ SPDX-License-Identifier: AGPL-3.0-only
5455
:title="video.comment ?? undefined"
5556
:alt="video.comment"
5657
preload="metadata"
58+
crossorigin="anonymous"
5759
playsinline
5860
@keydown.prevent
5961
@click.self="togglePlayPause"

packages/frontend/src/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<title>[DEV] Loading...</title>
1616
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
1717
<meta
18-
http-equiv="Content-Security-Policy"
18+
http-equiv="Content-Security-Policy-Report-Only"
1919
content="default-src 'self' https://newassets.hcaptcha.com/ https://challenges.cloudflare.com/ http://localhost:7493/ https://fonts.gstatic.com/ https://www.google-analytics.com/ https://www.googletagmanager.com/;
2020
worker-src 'self';
2121
script-src 'self' 'unsafe-eval' https://*.hcaptcha.com https://challenges.cloudflare.com https://www.googletagmanager.com https://esm.sh;

packages/misskey-js/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"type": "module",
33
"name": "misskey-js",
4-
"version": "2024.5.0-io.5b",
4+
"version": "2024.5.0-io.5c",
55
"description": "Misskey SDK for JavaScript",
66
"types": "./built/dts/index.d.ts",
77
"exports": {

0 commit comments

Comments
 (0)