Ok, so here are multiple issues: 1. In cypher, `NOT NULL` will return `NULL` not `FALSE`. If we want `FALSE` to be set in the database import, we should use `COAELESCE` to find the first not-null value. See: https://neo4j.com/docs/cypher-manual/current/syntax/working-with-null/ https://markhneedham.com/blog/2017/02/22/neo4j-null-values-even-work/ 2. I removed the `disabled` and `deleted` checks on the commented counter. With `neo4j-graphql-js` it is not possible to filter on the join models (at least not without a lot of complexity) for disabled or deleted items. Let's live with the fact that the list of commented posts will include those posts, where the user has deleted his comment or where the user's comment was disabled. It's being displayed as "not available" so I think this is OK for now. 3. De-couple the pagination counters from the "commented", "shouted" etc. counters. It might be that the list of posts is different for different users. E.g. if the user has blocked you, the "posts" list will be empty. The "shouted" or "commented" list will not have the posts of the author. If you are a moderator, the list will include disabled posts. So the counters are not in sync with the actual list coming from the backend. Therefore I implemented "fetch and check if resultSet < pageSize" instead of a global counter.
Human-Connection
Human Connection is a nonprofit social, action and knowledge network that connects information to action and promotes positive local and global change in all areas of life.
- Social: Interact with other people not just by commenting their posts, but by providing Pro & Contra arguments, give a Versus or ask them by integrated Chat or Let's Talk
- Knowledge: Read articles about interesting topics and find related posts in the More Info tab or by Filtering based on Categories and Tagging or by using the Fulltext Search.
- Action: Don't just read about how to make the world a better place, but come into Action by following provided suggestions on the Action tab provided by other people or Organisations.
Technology Stack
Live demo
Try out our deployed staging environment.
Logins:
| password | role | |
|---|---|---|
user@example.org |
1234 | user |
moderator@example.org |
1234 | moderator |
admin@example.org |
1234 | admin |
Documentation
Learn how to set up a local development environment in our Docs 🔎
Translations
You can help translating the interface by joining us on lokalise.co. Thank you lokalise for providing us with a premium account 🙌.
Developer Chat
Join our friendly open-source community on Discord 😻
Just introduce yourself at #introduce-yourself and mention @@Mentor to get you onboard :neckbeard:
Check out the contribution guideline, too!
Attributions
Locale Icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY
License
See the LICENSE file for license rights and limitations (MIT).
