This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 9f5b97a  remove the entry being replaced
9f5b97a is described below

commit 9f5b97aeb367c073fb98cdd029a0a220a8e635f2
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Tue Mar 22 00:31:57 2022 -0400

    remove the entry being replaced
---
 www/members/proxy.cgi | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/members/proxy.cgi b/www/members/proxy.cgi
index bc3bf30..ec7e053 100755
--- a/www/members/proxy.cgi
+++ b/www/members/proxy.cgi
@@ -251,7 +251,9 @@ def emit_post(cur_mtg_dir, meeting, _)
         # extract the ids
         existing_ids = existing.map {|line| line[/\((\S+)\)/, 1] }
         # ensure this id is not treated as previously existing
-        existing_ids.delete(user.id)
+        if existing_ids.delete(user.id)
+          existing.reject! {|line| line[/\((\S+)\)$/, 1] == user.id}
+        end
         # keep only new ids
         added = list.
           reject {|line| existing_ids.include? line[/\((\S+)\)$/, 1]}

Reply via email to