-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: rmvote #39
base: main
Are you sure you want to change the base?
feat: rmvote #39
Conversation
Thanks for the PR! Is the user-facing idea of this feature to remove a vote that you have already cast? So for example, if I upvote a post, then decide I want to remove that upvote, I can instead cast a 0 vote to supersede my upvote? Makes sense to me! |
That would be my intention. Perhaps deleting the action would have been more assertive instead of issuing another one with a value of 0? |
yeah I agree I think deleting the previous vote makes more sense. |
None, | ||
)?.iter().for_each(|link| { | ||
if link.target.clone().to_hex() == comment_hash.to_hex() { | ||
let _ = delete_link(link.create_link_hash.clone()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is giving me the following error:
{type: "error", data: {type: "internal_error", data: "Source chain error: InvalidCommit error: There are no link types in this integrity zome"}}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
amazing thanks for raising this. I think you caught a bug in holochain core. I created a minimal example and raised in with the core team: holochain/holochain#2541
Allow neutral vote (0)