-
Notifications
You must be signed in to change notification settings - Fork 76
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
Implement Equality (==) on Models #61
Labels
Milestone
Comments
avinashbot
changed the title
c1 == c2 on identical(?) comments returns false
Implement Equality (==) on Models
Apr 5, 2017
Actually, you can indeed just compare |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Last thing I'll bug you with for a while!
I have a comment
child
, and that comment is the only reply to another commentparent
.I don't think that you can uniquely identify a comment with just its ID, but if you can get the post ID that they each replied to, then you could compare
reply.id == child.id && reply.subreddit.id == child.subreddit.id && post_id == child.post_id
(this already works for link posts withlink_id
but I'm not sure if an equivalent exists for self posts.The text was updated successfully, but these errors were encountered: