Merge branch 'main' into bugfix/lowercase-usernames

pull/301/head
Bailey Pumfleet 2021-06-23 11:29:56 +01:00 committed by GitHub
commit 629a34262e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -85,7 +85,6 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
};
// Auxiliary methods
export function getRandomColorCode(): string {
let color = "#";
for (let idx = 0; idx < 6; idx++) {

View File

@ -120,6 +120,9 @@ export default function Type(props): Type {
Calendso
</title>
<link rel="icon" href="/favicon.ico" />
<meta property="og:image" content={"https://og-image-one-pi.vercel.app/" + encodeURIComponent("Book **" + (props.user.name || props.user.username) + "** <br>" + props.eventType.description).replace(/'/g, "%27") + ".png?md=1&images=https%3A%2F%2Fcalendso.com%2Fcalendso-logo-white.svg&images=" + encodeURIComponent(props.user.avatar)} />
<meta property="og:title" content={"Book " + (props.user.name || props.user.username) + " via Calendso"}/>
<meta property="og:description" content={props.eventType.description}/>
</Head>
<main
className={