Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #211

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion crawler/src/crawl/community.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class CommunityCrawler {
// validate the community actor_id matches the domain
if (basePart != this.crawlDomain || communityPart != community.community.name) {
logging.error(
`${this.logPrefix} Community actor_id does not match domain: ${community.community.actor_id} ${community.community.name}`,
`${this.logPrefix} Community actor_id does not match domain: ${JSON.stringify(community.community)}`,
);
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion crawler/src/output/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export default class CrawlOutput {
// remove communities with age more than the max
const recordAge = Date.now() - instance.lastCrawled;
if (recordAge > OUTPUT_MAX_AGE.INSTANCE) {
console.log("Sus Site too old", instance.base);
console.log("Sus Site has expired, the age of the record is too old", instance.base);
return false;
}

Expand Down
52 changes: 41 additions & 11 deletions frontend/src/pages/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,30 @@ import Link from "@mui/joy/Link";
import Divider from "@mui/joy/Divider";

import GitHubIcon from "@mui/icons-material/GitHub";
import ForumIcon from "@mui/icons-material/Forum";
import PaidIcon from "@mui/icons-material/Paid";
import DataObjectIcon from "@mui/icons-material/DataObject";

// this is a Button that links to a Lemmy instance
// it should be outlined, green and have a Lemmy icon
function LemmyLink({ children }: { children: React.ReactNode }) {
return (
<Button
startDecorator={<img src="/icons/Lemmy_Logo.svg" alt="Lemmy" width="16" height="16" />}
color="success"
variant="outlined"
href="https://join-lemmy.org/"
component="a"
target="_lv_join-lemmy"
sx={{
mx: 1,
height: 28,
minHeight: 28,
}}
>
{children}
</Button>
);
}

export default function About() {
return (
Expand Down Expand Up @@ -51,17 +73,17 @@ export default function About() {
target="_lv_paypal"
component="a"
>
Buy me a coffee
Donate
</Button>
{/* <Button
startDecorator={<ForumIcon />}
color="info"
href="https://github.com/tgxn/lemmy-explorer/discussions"
target="_lv_github"
<Button
startDecorator={<DataObjectIcon />}
color="neutral"
href="https://data.lemmyverse.net"
target="_lv_data"
component="a"
>
Discussions on GitHub
</Button> */}
Data Access
</Button>
</Box>

{/* About section */}
Expand All @@ -85,7 +107,8 @@ export default function About() {
</Typography>

<Typography>
This is a project that aims to provide a simple way to explore Lemmy Instances and Communities.
This is a project that aims to provide a simple way to explore <LemmyLink>Lemmy</LemmyLink>
Instances and Communities.
</Typography>

<Typography>
Expand Down Expand Up @@ -175,7 +198,14 @@ export default function About() {

<Typography>
<ul>
<li>Logo made by Andy Cuccaro (@andycuccaro) under the CC-BY-SA 4.0 license.</li>
<li>Logo made by Andy Cuccaro (@andycuccaro) under the CC-BY-SA 4.0 license.</li>{" "}
<li>
Lemmy Developers and Community for creating{" "}
<Link component="a" href="https://github.com/LemmyNet" target="_lv_lemmy">
Lemmy
</Link>
.
</li>
</ul>
</Typography>
</Box>
Expand Down