treetracker-web-map-client
treetracker-web-map-client copied to clipboard
The like button is wrong
Description
The number on the like button is wrong, please replace it with real data (refer to the like button on the original tree page
To reproduce
-
Go to https://beta-map.treetracker.org/trees/519050?bounds=-13.201940059661867,8.451551461465531,-13.186490535736086,8.466960251068226
-
Click expand button
Some hints:
- Please read our readme for more information/guide/tutorial.
- For design guidelines checkout our Figma design.
- Here is an engineering book in Greenstand.
- To know more about our organization, visit our website.
- If you want to join the slack community (some resources need the community member's permission), please leave your email address.
- More issues in this project: https://github.com/orgs/Greenstand/projects/26
@RubenSmn I could take this.
@dadiorchen where can we get the likes data from? There is no key in tree/planter/organization objects received from the API that refers to the likes data?
We are using the Facebook like api, so data is on their server, we do the integration on client side, but we have plan to implement it by ourselves
Duplicated with #1560
Sorry, wrong operation, this is a valid issue, and it is open to contributors
I checked there is no like(field) in the tree database so we can't do it first, we need to add the like (field) to the tree database then we have to create a new api(patch) for like the tree or increase count after this, we can get the real-time likes @dadiorchen