Skip to content

Commit

Permalink
Merge pull request #45 from hive-one/og-fix
Browse files Browse the repository at this point in the history
fix for og photo
  • Loading branch information
rishimohan authored Nov 28, 2023
2 parents 0de8cc6 + bc5fe00 commit 0a93729
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions apps/web/pages/[user].js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,7 @@ const ProfilePage = ({ user, userEvents, userSession }) => {
return `https://api.dicebear.com/7.x/shapes/svg?seed=${profileData.uid}`;
};

const userPlainTextBio =
profileData?.bio?.content?.length && profileData?.bio?.content[0]?.content
? profileData.bio.content[0].content.map((item) => item?.text ?? "").join("")
: "";
const userPlainTextBio = profileData?.bio?.length ? profileData.bio.slice(0, 300) : "";

const isLoggedInUser = profileData?.id === session?.user?.id;

Expand Down
2 changes: 1 addition & 1 deletion apps/web/pages/api/og/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default async function handler(request) {
justifyContent: "center",
}}>
<img
src={`/${username}/avatar.png`}
src={`${process.env.NEXT_PUBLIC_WEBAPP_URL}/${username}/avatar.png`}
style={{ borderRadius: "100%" }}
width="170"
height="170"
Expand Down

0 comments on commit 0a93729

Please sign in to comment.