Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Show zero likes on own Space posts

Anand Baburajana7d4abc30ad5
diff --git a/web/apps/space/src/components/SpaceFileViewer.tsx b/web/apps/space/src/components/SpaceFileViewer.tsx
index 0a49b03c8d..adfba6ac38 100644
--- a/web/apps/space/src/components/SpaceFileViewer.tsx
+++ b/web/apps/space/src/components/SpaceFileViewer.tsx
@@ -1724,7 +1724,7 @@ export const SpaceFileViewer: React.FC<SpaceFileViewerProps> = ({
</Box>
</Box>
)}
- {showPhotoLikeCountButton && (activePhoto.likeCount ?? 0) > 0 && (
+ {showPhotoLikeCountButton && (
<Box
data-space-viewer-bottom="true"
sx={{
diff --git a/web/apps/space/src/screens/HomeScreen.tsx b/web/apps/space/src/screens/HomeScreen.tsx
index 1785f6883c..22f29a9b9b 100644
--- a/web/apps/space/src/screens/HomeScreen.tsx
+++ b/web/apps/space/src/screens/HomeScreen.tsx
@@ -651,7 +651,7 @@ const FeedItem: React.FC<FeedItemProps> = ({
const dateLabel = formatSpaceDate(timestampMs);
const postingDotCount = usePostingDotCount(timestampStatus == "posting");
const displayCaption = caption?.trim();
- const showOwnPostLikeButton = isOwnPost && postId > 0 && likeCount > 0;
+ const showOwnPostLikeButton = isOwnPost && postId > 0;
const showFooter =
!isOwnPost || Boolean(displayCaption) || showOwnPostLikeButton;
const canOpenAuthor = isOwnPost