Skip to content

Commit

Permalink
Migrate to Lens v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoginth committed Dec 9, 2024
1 parent cc9e539 commit 939e43f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions apps/web/src/hooks/usePostMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { usePostAttachmentStore } from "src/store/non-persisted/post/usePostAtta
import { usePostAttributesStore } from "src/store/non-persisted/post/usePostAttributesStore";
import { usePostLicenseStore } from "src/store/non-persisted/post/usePostLicenseStore";
import { usePostLiveStore } from "src/store/non-persisted/post/usePostLiveStore";
import { usePostStore } from "src/store/non-persisted/post/usePostStore";
import { usePostVideoStore } from "src/store/non-persisted/post/usePostVideoStore";
import { v4 as uuid } from "uuid";
import { usePostAudioStore } from "../store/non-persisted/post/usePostAudioStore";
Expand All @@ -22,7 +21,6 @@ interface UsePostMetadataProps {
}

const usePostMetadata = () => {
const { tags } = usePostStore();
const { videoDurationInSeconds, videoThumbnail } = usePostVideoStore();
const { audioPost } = usePostAudioStore();
const { license } = usePostLicenseStore();
Expand All @@ -45,8 +43,7 @@ const usePostMetadata = () => {
? [...(baseMetadata.attributes || []), ...(attributes || [])]
: undefined,
id: uuid(),
locale: getUserLocale(),
tags: tags || undefined
locale: getUserLocale()
};

// Slice the first attachment because we upload the asset
Expand Down Expand Up @@ -128,8 +125,7 @@ const usePostMetadata = () => {
videoThumbnail,
showLiveVideoEditor,
liveVideoConfig,
license,
tags
license
]
);

Expand Down

0 comments on commit 939e43f

Please sign in to comment.