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

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit ddf4a77a09f31682d257eac4328217d965afe521
Author: Sebb <[email protected]>
AuthorDate: Tue Dec 14 00:15:44 2021 +0000

    Not used (and broken)
    
    This fixes #179
---
 server/plugins/messages.py | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/server/plugins/messages.py b/server/plugins/messages.py
index fc6e173..c7da36d 100644
--- a/server/plugins/messages.py
+++ b/server/plugins/messages.py
@@ -455,16 +455,6 @@ async def wordcloud(session, query_defuzzed):
     return wc
 
 
-def is_public(session: plugins.session.SessionObject, listname):
-    """ Quickly determine if a list if fully public, private or mixed """
-    if "@" not in listname:
-        lname, ldomain = listname.strip("<>").split(".", 1)
-        listname = f"{lname}@{ldomain}"
-    if listname in session.server.data.lists:
-        return not session.server.data.lists[listname]["private"]
-    return False  # Default to not public
-
-
 async def get_activity_span(session, query_defuzzed):
     """ Fetches the activity span of a search as well as active months within 
that span """
 

Reply via email to