Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions apps/web/app/s/[videoId]/Share.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use client";

import type { userSelectProps } from "@cap/database/auth/session";
import type { comments as commentsSchema, videos } from "@cap/database/schema";
import type { comments as commentsSchema } from "@cap/database/schema";
import type { ImageUpload, Video } from "@cap/web-domain";
import { useQuery } from "@tanstack/react-query";
import {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/s/[videoId]/_components/ShareHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export const ShareHeader = ({
/>
)}
<div className="flex flex-col text-left">
<p className="text-sm text-gray-12">{data.name}</p>
<p className="text-sm text-gray-12">{data.owner.name}</p>
<p className="text-xs text-gray-10">
{moment(data.createdAt).fromNow()}
</p>
Expand Down
4 changes: 3 additions & 1 deletion apps/web/app/s/[videoId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -720,17 +720,19 @@ async function AuthorizedContent({

const videoWithOrganizationInfo = await Effect.gen(function* () {
const imageUploads = yield* ImageUploads;
const ownerIsPro = userIsPro(video.owner);

return {
...video,
owner: {
id: video.owner.id,
name: video.owner.name,
isPro: userIsPro(video.owner),
isPro: ownerIsPro,
image: video.ownerImageUrlOrKey
? yield* imageUploads.resolveImageUrl(video.ownerImageUrlOrKey)
: null,
},
ownerIsPro,
organization: {
organizationMembers: membersList.map((member) => member.userId),
organizationId: video.sharedOrganization?.organizationId ?? undefined,
Expand Down
Loading