Skip to content

Commit

Permalink
fix: fallback cover url (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
sasicodes authored Feb 8, 2023
1 parent eaf736b commit f1a03d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/functions/getChannelCoverPicture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Profile } from 'lens'
const getChannelCoverPicture = (channel: Profile): string => {
return channel.coverPicture && channel.coverPicture.__typename === 'MediaSet'
? channel?.coverPicture?.original?.url
: 'ipfs://bafkreiez6nzklnjzj5w7bt43is4knd72sud7x2i3vcejgxfp3lzavuv3n4' // Fallback Cover of Lenstube - `${STATIC_ASSETS}/images/coverGradient.jpeg`
: 'ipfs://bafkreicrwjthp3qfdtywbrgyadmu7jcr3khykwbwmzxt4bacy36zihi4yu' // Fallback Cover of Lenstube - `${STATIC_ASSETS}/images/coverGradient.jpeg`
}

export default getChannelCoverPicture

4 comments on commit f1a03d4

@vercel
Copy link

@vercel vercel bot commented on f1a03d4 Feb 8, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

api – ./apps/api

api-lenstube.vercel.app
api.lenstube.xyz
api-git-main-lenstube.vercel.app

@vercel
Copy link

@vercel vercel bot commented on f1a03d4 Feb 8, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

web – ./apps/web

web-lenstube.vercel.app
lenstube.xyz
web-git-main-lenstube.vercel.app

@vercel
Copy link

@vercel vercel bot commented on f1a03d4 Feb 8, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

embed – ./apps/embed

embed-git-main-lenstube.vercel.app
embed-lenstube.vercel.app
embed.lenstube.xyz

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on f1a03d4 Feb 8, 2023

Choose a reason for hiding this comment

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

Deployment Status Build Logs Updated At
lenstube ✅ Deployed View Logs 2023-02-08T18:28:31.700Z

Please sign in to comment.