Adam Bell :catPOWER: on Nostr: actually, I did some more double checking and it's because they were NSObjects! The ...
actually, I did some more double checking and it's because they were NSObjects!
The bug is actually due to not overriding `isEqual` and assuming that `==` bridges to that (or at least invokes it). TIL
Published at
2023-09-01 17:50:37Event JSON
{
"id": "ebff099a7095d717622c1c27ba6ef573f0b0eea5beff7c8aaa4a4dbab4a71ee4",
"pubkey": "aed0b8708bc48239d5e53b5668999ad92e7aa1f31996e58cbceaf2c11e6970bd",
"created_at": 1693590637,
"kind": 1,
"tags": [
[
"e",
"5e58f170448d5c7ddecbc0a6ba06c1f581bdccd7c8f0b5269aee2ff76902d3f2",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mastodon.social/users/b3ll/statuses/110991156052786174",
"activitypub"
]
],
"content": "actually, I did some more double checking and it's because they were NSObjects!\n\nThe bug is actually due to not overriding `isEqual` and assuming that `==` bridges to that (or at least invokes it). TIL\n\nhttps://files.mastodon.social/media_attachments/files/110/991/155/395/578/989/original/a304baa96c22b7a4.png\n\nhttps://files.mastodon.social/media_attachments/files/110/991/154/977/679/954/original/b89413ff3208f5dc.png",
"sig": "f4b8d9a0d83c68515acdfca6a0a5cbd08b9121d816b2803857ee8c921aafc579bbfcc3e207b215624c4fa165d6bc32eee1e98fa3f51b15f536df03cb6251a93b"
}