From a3b4cbeadd20146ed372d58923d00565d52d4696 Mon Sep 17 00:00:00 2001 From: Malte Delfs Date: Tue, 22 Jun 2021 17:52:52 +0200 Subject: [PATCH 1/3] use https://github.com/calendso/og-image to show dynamic og-image of booking links with avatar and title of booking. --- pages/[user].tsx | 4 +++- pages/[user]/[type].tsx | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/[user].tsx b/pages/[user].tsx index 62499c4f42..fb1c3c9540 100644 --- a/pages/[user].tsx +++ b/pages/[user].tsx @@ -20,6 +20,8 @@ export default function User(props) { {props.user.name || props.user.username} | Calendso + +
@@ -89,4 +91,4 @@ export function getRandomColorCode() { color += Math.floor(Math.random() * 10); } return color; -} \ No newline at end of file +} diff --git a/pages/[user]/[type].tsx b/pages/[user]/[type].tsx index 394358ebd5..b95646120f 100644 --- a/pages/[user]/[type].tsx +++ b/pages/[user]/[type].tsx @@ -96,6 +96,9 @@ export default function Type(props) { Calendso + " + props.eventType.description) + ".png?md=1&images=https%3A%2F%2Fcalendso.com%2Fcalendso-logo-white.svg&images=" + encodeURIComponent(props.user.avatar)} /> + +
Date: Tue, 22 Jun 2021 18:01:03 +0200 Subject: [PATCH 2/3] fix for single quotes --- pages/[user].tsx | 2 +- pages/[user]/[type].tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/[user].tsx b/pages/[user].tsx index fb1c3c9540..c1d5fef77e 100644 --- a/pages/[user].tsx +++ b/pages/[user].tsx @@ -20,7 +20,7 @@ export default function User(props) { {props.user.name || props.user.username} | Calendso - + diff --git a/pages/[user]/[type].tsx b/pages/[user]/[type].tsx index b95646120f..91659894f2 100644 --- a/pages/[user]/[type].tsx +++ b/pages/[user]/[type].tsx @@ -96,7 +96,7 @@ export default function Type(props) { Calendso - " + props.eventType.description) + ".png?md=1&images=https%3A%2F%2Fcalendso.com%2Fcalendso-logo-white.svg&images=" + encodeURIComponent(props.user.avatar)} /> + " + props.eventType.description).replace(/'/g, "%27") + ".png?md=1&images=https%3A%2F%2Fcalendso.com%2Fcalendso-logo-white.svg&images=" + encodeURIComponent(props.user.avatar)} /> From 0e27e7e3d9441964931a56764c9d12827ebd6c80 Mon Sep 17 00:00:00 2001 From: Malte Delfs Date: Tue, 22 Jun 2021 20:14:28 +0200 Subject: [PATCH 3/3] changed og-image link --- pages/[user].tsx | 2 +- pages/[user]/[type].tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/[user].tsx b/pages/[user].tsx index c1d5fef77e..ef5f9cae06 100644 --- a/pages/[user].tsx +++ b/pages/[user].tsx @@ -20,7 +20,7 @@ export default function User(props) { {props.user.name || props.user.username} | Calendso - + diff --git a/pages/[user]/[type].tsx b/pages/[user]/[type].tsx index 91659894f2..682e622e2e 100644 --- a/pages/[user]/[type].tsx +++ b/pages/[user]/[type].tsx @@ -96,7 +96,7 @@ export default function Type(props) { Calendso - " + props.eventType.description).replace(/'/g, "%27") + ".png?md=1&images=https%3A%2F%2Fcalendso.com%2Fcalendso-logo-white.svg&images=" + encodeURIComponent(props.user.avatar)} /> + " + props.eventType.description).replace(/'/g, "%27") + ".png?md=1&images=https%3A%2F%2Fcalendso.com%2Fcalendso-logo-white.svg&images=" + encodeURIComponent(props.user.avatar)} />