File tree 2 files changed +17
-2
lines changed 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -159,8 +159,13 @@ export default function PostView(
159
159
function tweet ( ) {
160
160
const url = "https://twitter.com/intent/tweet?text=" +
161
161
encodeURIComponent ( props . postTitle + "\n" + location . href ) ;
162
- window . open ( url ) ;
163
- // location.href = url;
162
+ globalThis . open ( url ) ;
163
+ }
164
+
165
+ function bluesky ( ) {
166
+ const url = "https://bsky.app/intent/compose?text=" +
167
+ encodeURIComponent ( props . postTitle + "\n" + location . href ) ;
168
+ globalThis . open ( url ) ;
164
169
}
165
170
166
171
return (
@@ -231,6 +236,15 @@ export default function PostView(
231
236
onClick = { tweet }
232
237
style = { { cursor : "pointer" } }
233
238
/>
239
+ < img
240
+ class = "ms-3"
241
+ src = "/assets/img/bluesky.svg"
242
+ title = "Bluesky"
243
+ alt = "Bluesky"
244
+ width = { 20 }
245
+ onClick = { bluesky }
246
+ style = { { cursor : "pointer" } }
247
+ />
234
248
{ requesting &&
235
249
(
236
250
< div
You can’t perform that action at this time.
0 commit comments