Commit
•
c878a7d
1
Parent(s):
48ea851
🐛 Fix share url
Browse files
src/routes/conversation/[id]/share/+server.ts
CHANGED
@@ -24,7 +24,7 @@ export async function POST({ params, url, locals }) {
|
|
24 |
if (existingShare) {
|
25 |
return new Response(
|
26 |
JSON.stringify({
|
27 |
-
url: url.origin +
|
28 |
}),
|
29 |
{ headers: { "Content-Type": "application/json" } }
|
30 |
);
|
|
|
24 |
if (existingShare) {
|
25 |
return new Response(
|
26 |
JSON.stringify({
|
27 |
+
url: (SHARE_BASE_URL || `${url.origin}${base}`) + `/r/${existingShare._id}`,
|
28 |
}),
|
29 |
{ headers: { "Content-Type": "application/json" } }
|
30 |
);
|