Skip to content

Commit

Permalink
fix: chapter timestamp (#620)
Browse files Browse the repository at this point in the history
* fix: chapter timestamp

* chore: remove text nft

* chore: cleanup
  • Loading branch information
sasicodes authored Feb 15, 2023
1 parent 16828da commit 1dbe77d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 69 deletions.
10 changes: 1 addition & 9 deletions apps/web/src/components/Watch/NewComment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import {
TRACK
} from 'utils'
import getProfilePicture from 'utils/functions/getProfilePicture'
import getTextNftUrl from 'utils/functions/getTextNftUrl'
import getUserLocale from 'utils/functions/getUserLocale'
import omitKey from 'utils/functions/omitKey'
import trimify from 'utils/functions/trimify'
Expand Down Expand Up @@ -203,13 +202,6 @@ const NewComment: FC<Props> = ({ video }) => {
const submitComment = async (data: FormData) => {
try {
setLoading(true)

const textNftImageUrl = await getTextNftUrl(
trimify(data.comment),
selectedChannel?.handle,
new Date().toLocaleString()
)

const { url } = await uploadToAr({
version: '2.0.0',
metadata_id: uuidv4(),
Expand All @@ -218,7 +210,7 @@ const NewComment: FC<Props> = ({ video }) => {
locale: getUserLocale(),
mainContentFocus: PublicationMainFocus.TextOnly,
external_url: `${LENSTUBE_WEBSITE_URL}/watch/${video?.id}`,
image: textNftImageUrl,
image: null,
imageMimeType: 'image/svg+xml',
name: `${selectedChannel?.handle}'s comment on video ${video.metadata.name}`,
attributes: [
Expand Down
60 changes: 0 additions & 60 deletions packages/utils/functions/getTextNftUrl.ts

This file was deleted.

1 change: 1 addition & 0 deletions packages/web-ui/VideoPlayer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const VideoPlayer: FC<Props> = ({
const mediaElementRef = useCallback((ref: HTMLMediaElement) => {
refCallback?.(ref)
playerRef.current = ref
playerRef.current.currentTime = Number(currentTime || 0)
if (IS_MAINNET) {
analyseVideo(playerRef.current)
}
Expand Down

4 comments on commit 1dbe77d

@vercel
Copy link

@vercel vercel bot commented on 1dbe77d Feb 15, 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-lenstube.vercel.app
embed-git-main-lenstube.vercel.app
embed.lenstube.xyz

@vercel
Copy link

@vercel vercel bot commented on 1dbe77d Feb 15, 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 1dbe77d Feb 15, 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-git-main-lenstube.vercel.app
api.lenstube.xyz
api-lenstube.vercel.app

@hop-deploy
Copy link

@hop-deploy hop-deploy bot commented on 1dbe77d Feb 15, 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-15T16:36:00.280Z

Please sign in to comment.