planetary-social / cleanstr

MIT License
1 stars 0 forks source link

[Lists] Add the client marker to contact lists #51

Closed setch-l closed 2 weeks ago

setch-l commented 3 months ago

Overview For troubleshooting purposes it would be helpful to know on which client an update to the contact list occurred. This will help us measure whether Nos is overwriting contact lists or if it's some other app. NIP-89 has a spec for a "Client Tag" that we can use.

AC:

mplorentz commented 2 months ago

From our meeting today: closing as a dupe of https://github.com/planetary-social/nos/issues/1455 (even though the title was talking about moderation, this was supposed to be about contact lists)

mplorentz commented 1 month ago

It occurred to me while implementing this that once we publish a contact list with the Nos tag, other Nostr apps may preserve that tag when they publish new versions of the list.

To mitigate this I added code to fire a new "Published Contact List" analytics event as well. Now if our server-side alert goes off we can check Posthog to verify whether the event that overwrote the contact list was actually published by Nos or not.