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

Issue #73 - Fix contributions link in README.md #74

Merged
merged 2 commits into from
Oct 20, 2024
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: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"singleQuote": false,
"printWidth": 120
"printWidth": 120,
"trailingComma": "es5"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ O bot está disponível no nosso discord [devPT](https://devpt.co/discord) e apr

## Guia de Contribuição

Para detalhes sobre o nosso código de conduta e o processo para submeter um `pull request` neste projeto, por favor consulte o nosso [Guia de Contribuição](CONTRIBUTING).
Para detalhes sobre o nosso código de conduta e o processo para submeter um `pull request` neste projeto, por favor consulte o nosso [Guia de Contribuição](CONTRIBUTING.md).

## Licença

Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const checkForNewPosts = async () => {
};

last5MinutesPosts.forEach((post) => {
const title = avoidEmbedInLink(post!.getTitle());
const title = avoidEmbedInLink(post.getTitle());

const message = `Novo post no Lemmy: **${title}** (*${post?.getAuthorName()}*)

Expand Down
6 changes: 4 additions & 2 deletions infrastructure/service/lemmyContentAggregatorService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default class LemmyContentAggregatorService implements ContentAggregatorS
const response = await fetch(this.feedUrl);

const data = await response.json();

unpinnedPosts = data.posts
.filter((item: any) => !item.post.featured_community && !item.post.featured_local)
.map(
Expand All @@ -24,7 +24,9 @@ export default class LemmyContentAggregatorService implements ContentAggregatorS
createdAt: new Date(item.post.published),
})
);
} catch (e) {}
} catch (e) {
// Ignoring for now.
}

return unpinnedPosts;
}
Expand Down
Loading