Compare commits

...

3 Commits

Author SHA1 Message Date
ff8cae2a59
Update fediverse.py 2024-06-05 13:50:47 +09:00
b984905f34
Update fediverse.py 2024-06-05 13:50:31 +09:00
2f1faef447
Update fediverse.py 2024-06-05 13:49:16 +09:00

View File

@ -3,11 +3,12 @@
# fediverse.py
# Fediverse (Mastodon, Misskey, Pleroma, ...) SPAM filter plugin for Caterpillar Proxy
#
# Caterpillar Proxy - The simple and parasitic web proxy with SPAM filter
# Namyheon Go (Catswords Research) <gnh1201@gmail.com>
# Caterpillar Proxy - The simple and parasitic web proxy with SPAM filter (formerly, php-httpproxy)
# Namyheon Go (Catswords Research) <abuse@catswords.net>
# https://github.com/gnh1201/caterpillar
# Created at: 2022-10-06
# Updated at: 2024-12-28
#
# Created in: 2022-10-06
# Updated in: 2024-06-05
#
import io
@ -21,11 +22,11 @@ from PIL import Image
from server import Extension
try:
client_encoding = config('CLIENT_ENCODING')
client_encoding = config('CLIENT_ENCODING', default='utf-8')
truecaptcha_userid = config('TRUECAPTCHA_USERID') # truecaptcha.org
truecaptcha_apikey = config('TRUECAPTCHA_APIKEY') # truecaptcha.org
dictionary_file = config('DICTIONARY_FILE', default='words_alpha.txt') # https://github.com/dwyl/english-words
librey_apiurl = config('LIBREY_APIURL') # https://github.com/Ahwxorg/librey
librey_apiurl = config('LIBREY_APIURL', default='https://search.catswords.net') # https://github.com/Ahwxorg/librey
except Exception as e:
print ("[*] Invaild configration: %s" % (str(e)))