Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Merge pull request #1371 from ecency/bugfix/entry-fixes
Browse files Browse the repository at this point in the history
Duplicated requests: Fixed entry page bugs
  • Loading branch information
feruzm authored Jun 28, 2023
2 parents b55749b + 0e81a90 commit 1707531
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/common/pages/entry/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,10 @@ const EntryComponent = (props: Props) => {
setMightContainMutedComments(!!props.activeUser && entryIsMuted && !isComment && !isOwnEntry);
setReputation(accountReputation(entry.author_reputation));
setImage(catchPostImage(entry, 600, 500, props.global.canUseWebp ? "webp" : "match"));
setApp(appName(entry.json_metadata.app));
setAppShort(app.split("/")[0].split(" ")[0]);

const _app = appName(entry.json_metadata.app);
setApp(_app);
setAppShort(_app.split("/")[0].split(" ")[0]);

const tags = entry.json_metadata.tags && [...new Set(entry.json_metadata.tags)];

Expand Down Expand Up @@ -384,7 +386,7 @@ const EntryComponent = (props: Props) => {
} by @${entry.author}`}
url={entry.url}
canonical={entryCanonical(entry) ?? ""}
image={image}
image={catchPostImage(entry, 600, 500, props.global.canUseWebp ? "webp" : "match")}
published={published.toISOString()}
modified={modified.toISOString()}
tag={tag}
Expand Down

0 comments on commit 1707531

Please sign in to comment.