From ad3d5341be78484a814a605c8b3cd85c04c28698 Mon Sep 17 00:00:00 2001 From: Daniel Cadenas Date: Sun, 25 Aug 2024 13:30:32 -0300 Subject: [PATCH] More specific line, update README --- README.md | 2 ++ src/follows_differ.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 712e028..85a7009 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ ## Followers server +[![Coverage Status](https://coveralls.io/repos/github/planetary-social/nos-followers/badge.svg?branch=main)](https://coveralls.io/github/planetary-social/nos-followers?branch=main) + A server that listens to Nostr [Follow List](https://github.com/nostr-protocol/nips/blob/master/02.md) events and identifies follow and unfollow actions. These events are then published to a Google Pub/Sub queue. ### Local development diff --git a/src/follows_differ.rs b/src/follows_differ.rs index 054070b..be81d04 100644 --- a/src/follows_differ.rs +++ b/src/follows_differ.rs @@ -222,8 +222,8 @@ fn log_line( )); } - // Investigate states in which there are no followers - if followed_counter == 0 { + // Investigate states in which there are no followees but there are unfollowed followees + if followed_counter == 0 && unfollowed_counter > 0 { return Some(format!( "ALL UNFOLLOWED: Pubkey {}: date {}, {} unfollowed, {} unchanged, {}", follower,