You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Easily index post with like count and easy to query who liked
Benefits
Better for engagement with posts
if i am on liked list, easier interaction for liking and unliking
can easily index posts to prioritize feeds with most likes
What is your idea or feature suggestion?
Easily index post with like count and easy to query who liked
Benefits
Better for engagement with posts
if i am on liked list, easier interaction for liking and unliking
can easily index posts to prioritize feeds with most likes
Where can we find information about this?
social .near contract
example post
const likes = Social.index("like", item);
const dataLoading = likes === null;
const likesByUsers = {};
(likes || []).forEach((like) => {
if (like.value.type === "like") {
likesByUsers[like.accountId] = like;
} else if (like.value.type === "unlike") {
delete likesByUsers[like.accountId];
}
});
https://near.social/mob.near/widget/WidgetSource?src=mob.near/widget/N.LikeButton
{
"plugrel.near": {
"index": {
"like": "{"key":{"type":"social","path":"mob.near/post/main","blockHeight":113725812},"value":{"type":"like"}}",
"notify": "{"key":"mob.near","value":{"type":"like","item":{"type":"social","path":"mob.near/post/main","blockHeight":113725812}}}"
}
}
}
also how to like https://near.social/mob.near/widget/WidgetSource?src=mob.near/widget/N.LikeButton
Are you willing to provide a PR to address this?
None
The text was updated successfully, but these errors were encountered: