v3: added opengraph support to the app, wrote README instructions incl. a Docker image
This commit is contained in:
@@ -29,7 +29,8 @@ export function JournalCard(
|
||||
) {
|
||||
const navigate = useNavigate();
|
||||
const { play } = useContext(PlayerContext);
|
||||
const unread = !isOwner && isRecent(dump.createdAt) && !isDumpVisited(dump.id);
|
||||
const unread = !isOwner && isRecent(dump.createdAt) &&
|
||||
!isDumpVisited(dump.id);
|
||||
|
||||
function handleNavigate() {
|
||||
markDumpVisited(dump.id);
|
||||
@@ -73,8 +74,7 @@ export function JournalCard(
|
||||
</Tooltip>
|
||||
{dump.commentCount > 0 && (
|
||||
<span>
|
||||
{dump.commentCount}{" "}
|
||||
{dump.commentCount === 1 ? "comment" : "comments"}
|
||||
{dump.commentCount} {dump.commentCount === 1 ? "comment" : "comments"}
|
||||
</span>
|
||||
)}
|
||||
{dump.isPrivate && isOwner && (
|
||||
@@ -145,7 +145,10 @@ export function JournalCard(
|
||||
|
||||
if (tier === "medium") {
|
||||
return (
|
||||
<li className="journal-card journal-card--medium" onClick={handleNavigate}>
|
||||
<li
|
||||
className="journal-card journal-card--medium"
|
||||
onClick={handleNavigate}
|
||||
>
|
||||
<div className="journal-card-inner">
|
||||
<div className="journal-card-icon">
|
||||
{thumbnailUrl
|
||||
|
||||
Reference in New Issue
Block a user