Skip to content

Commit

Permalink
trying server fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ghulamyazdani committed Jan 23, 2022
1 parent 7406055 commit a662b08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tweetcard.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { text } from "express";

export default function tweetcard(props: any, quote: any) {
export default async function tweetcard(props: any, quote: any) {
const quoted = quote.content.split(" ");
var text1: any = [];
var text2: any = [];
Expand All @@ -13,6 +13,8 @@ export default function tweetcard(props: any, quote: any) {
}
}

const pic = await props.data[0].profile_image_url;

return `
<svg
width="700" height="275"
Expand All @@ -37,9 +39,7 @@ export default function tweetcard(props: any, quote: any) {
</clipPath>
</defs>
<use xlink:href="#rect" stroke-width="2" stroke="black"/>
<image x="50" y="50" xlink:href="${
props.data[0].profile_image_url
}" width="80" height="80" clip-path="url(#clip)"/>
<image x="50" y="50" xlink:href="${pic}" width="80" height="80" clip-path="url(#clip)"/>
<text class="name" fill="#000000" font-size="24" id="svg_3" stroke="#000000" stroke-width="0" text-anchor="middle" transform="matrix(0.844199 0 0 0.844199 18.8536 10.0524)" x="260" xml:space="preserve" y="84.81544">${
props.data[0].name
}</text>
Expand Down

1 comment on commit a662b08

@vercel
Copy link

@vercel vercel bot commented on a662b08 Jan 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.