From ebd066b17086ee0e66e4cd1622eceeca3c292807 Mon Sep 17 00:00:00 2001 From: Ben Finney Date: Mon, 19 Dec 2022 09:24:40 +1100 Subject: [PATCH] Remove trailing whitespace. --- README.md | 2 +- auth-mastodon.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 739051a..b481d11 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ This is a Python script designed to run as an [ejabberd external auth](https://d The code is derived from [ejabberd-auth-mysql](https://github.com/rankenstein/ejabberd-auth-mysql) and is licensed under the GNU GPLv3. -It is used on [Chinwag Social](https://social.chinwag.org) to provide XMPP messaging functionality to every account. +It is used on [Chinwag Social](https://social.chinwag.org) to provide XMPP messaging functionality to every account. Discussion, questions and/or just saying hi in the [Chinwag Social Beergarden](xmpp:beergarden@rooms.chinwag.org?join) MUC (beergarden@rooms.chinwag.org) is welcomed! diff --git a/auth-mastodon.py b/auth-mastodon.py index ad366dc..3cd73ee 100644 --- a/auth-mastodon.py +++ b/auth-mastodon.py @@ -25,7 +25,7 @@ logging.basicConfig(level=logging.INFO, filemode='a') try: - # Connect to the DB, set autocommit and readonly otherwise postgresql seems to have a + # Connect to the DB, set autocommit and readonly otherwise postgresql seems to have a # tendency to keep things "idle in transaction" and table locks eventually grind # Mastodon to a halt. We don't make any changes anyway. database=psycopg2.connect(host = db_host, user = db_user, password = db_pass, database = db_name, port = db_port) @@ -140,8 +140,8 @@ while True: op_result = False try: - # Only 'auth' and 'isuser' implemented, placeholders left to maybe - # expose other functions later but for now let's not even think about + # Only 'auth' and 'isuser' implemented, placeholders left to maybe + # expose other functions later but for now let's not even think about # modifying the Mastodon DB if ejab_request[0] == "auth": op_result = auth(ejab_request[1], ejab_request[2], ejab_request[3])