damus icon indicating copy to clipboard operation
damus copied to clipboard

Added In before component - displays when a user first created an event

Open ericholguin opened this issue 2 years ago • 2 comments

This PR adds the "In before" component to the ProfileView. It is displaying the month and year of the user's first event, since there is no real way of knowing when a user joined nostr. The name "In before" is technically accurate since the user joined before that event and also has been widely posted on nostr as a meme at this point.

ericholguin avatar Jan 25 '23 04:01 ericholguin

this is probably not doing what you think it is. this wouldn't show you the user's oldest event. also created_at dates could be faked.

jb55 avatar Jan 25 '23 23:01 jb55

Yeah my assumption was that events are ordered by the 'created_at' key, so the last event is assumed to be the first created. I'm also guessing this might be an issue due to relays being used and it might not grab the actual oldest event. I'll dig into the code more but if you can share how it works i'd appreciate it. As for created_date being faked, can NIP 22 solve for this?

ericholguin avatar Jan 26 '23 02:01 ericholguin

Closing - no solution for this yet and not critical

ericholguin avatar Mar 24 '23 00:03 ericholguin