File tree 13 files changed +31
-27
lines changed
backend/src/server/api/stream/channels
13 files changed +31
-27
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " misskey" ,
3
- "version" : " 2024.5.0-io.5b " ,
3
+ "version" : " 2024.5.0-io.5c " ,
4
4
"codename" : " nasubi" ,
5
5
"repository" : {
6
6
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -54,9 +54,9 @@ class AntennaChannel extends Channel {
54
54
if ( this . minimize && [ 'public' , 'home' ] . includes ( note . visibility ) ) {
55
55
this . send ( 'note' , {
56
56
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 ,
60
60
} ) ;
61
61
} else {
62
62
this . connection . cacheNote ( note ) ;
Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ class ChannelChannel extends Channel {
60
60
if ( this . minimize && [ 'public' , 'home' ] . includes ( note . visibility ) ) {
61
61
this . send ( 'note' , {
62
62
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 ,
66
66
} ) ;
67
67
} else {
68
68
this . connection . cacheNote ( note ) ;
Original file line number Diff line number Diff line change @@ -90,9 +90,9 @@ class GlobalTimelineChannel extends Channel {
90
90
if ( this . minimize && [ 'public' , 'home' ] . includes ( note . visibility ) ) {
91
91
this . send ( 'note' , {
92
92
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 ,
96
96
} ) ;
97
97
} else {
98
98
this . connection . cacheNote ( note ) ;
Original file line number Diff line number Diff line change @@ -94,9 +94,9 @@ class HomeTimelineChannel extends Channel {
94
94
if ( this . minimize && [ 'public' , 'home' ] . includes ( note . visibility ) ) {
95
95
this . send ( 'note' , {
96
96
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 ,
100
100
} ) ;
101
101
} else {
102
102
this . connection . cacheNote ( note ) ;
Original file line number Diff line number Diff line change @@ -108,9 +108,9 @@ class HybridTimelineChannel extends Channel {
108
108
if ( this . minimize && [ 'public' , 'home' ] . includes ( note . visibility ) ) {
109
109
this . send ( 'note' , {
110
110
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 ,
114
114
} ) ;
115
115
} else {
116
116
this . connection . cacheNote ( note ) ;
Original file line number Diff line number Diff line change @@ -93,9 +93,9 @@ class LocalTimelineChannel extends Channel {
93
93
if ( this . minimize && [ 'public' , 'home' ] . includes ( note . visibility ) ) {
94
94
this . send ( 'note' , {
95
95
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 ,
99
99
} ) ;
100
100
} else {
101
101
this . connection . cacheNote ( note ) ;
Original file line number Diff line number Diff line change @@ -76,9 +76,9 @@ class RoleTimelineChannel extends Channel {
76
76
if ( this . minimize && [ 'public' , 'home' ] . includes ( note . visibility ) ) {
77
77
this . send ( 'note' , {
78
78
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 ,
82
82
} ) ;
83
83
} else {
84
84
this . connection . cacheNote ( note ) ;
Original file line number Diff line number Diff line change @@ -133,9 +133,9 @@ class UserListChannel extends Channel {
133
133
if ( this . minimize && [ 'public' , 'home' ] . includes ( note . visibility ) ) {
134
134
this . send ( 'note' , {
135
135
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 ,
139
139
} ) ;
140
140
} else {
141
141
this . connection . cacheNote ( note ) ;
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ SPDX-License-Identifier: AGPL-3.0-only
27
27
<audio
28
28
ref="audioEl"
29
29
preload="metadata"
30
+ crossorigin="anonymous"
30
31
controls
31
32
:class="$style.nativeAudio"
32
33
@keydown.prevent
@@ -41,6 +42,7 @@ SPDX-License-Identifier: AGPL-3.0-only
41
42
<audio
42
43
ref="audioEl"
43
44
preload="metadata"
45
+ crossorigin="anonymous"
44
46
>
45
47
<source :src="audio.url">
46
48
</audio>
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ SPDX-License-Identifier: AGPL-3.0-only
34
34
:title="video.comment ?? undefined"
35
35
:alt="video.comment"
36
36
preload="metadata"
37
+ crossorigin="anonymous"
37
38
controls
38
39
@keydown.prevent
39
40
>
@@ -54,6 +55,7 @@ SPDX-License-Identifier: AGPL-3.0-only
54
55
:title="video.comment ?? undefined"
55
56
:alt="video.comment"
56
57
preload="metadata"
58
+ crossorigin="anonymous"
57
59
playsinline
58
60
@keydown.prevent
59
61
@click.self="togglePlayPause"
Original file line number Diff line number Diff line change 15
15
< title > [DEV] Loading...</ title >
16
16
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
17
17
< meta
18
- http-equiv ="Content-Security-Policy "
18
+ http-equiv ="Content-Security-Policy-Report-Only "
19
19
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/;
20
20
worker-src 'self';
21
21
script-src 'self' 'unsafe-eval' https://*.hcaptcha.com https://challenges.cloudflare.com https://www.googletagmanager.com https://esm.sh;
Original file line number Diff line number Diff line change 1
1
{
2
2
"type" : " module" ,
3
3
"name" : " misskey-js" ,
4
- "version" : " 2024.5.0-io.5b " ,
4
+ "version" : " 2024.5.0-io.5c " ,
5
5
"description" : " Misskey SDK for JavaScript" ,
6
6
"types" : " ./built/dts/index.d.ts" ,
7
7
"exports" : {
You can’t perform that action at this time.
0 commit comments