Update fediverse.py

This commit is contained in:
Namhyeon Go 2024-03-02 00:39:41 +09:00 committed by GitHub
parent 3716522a9f
commit 65be31ef59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,7 @@ import os.path
from decouple import config
from PIL import Image
from server import Filter
from server import Extension
try:
client_encoding = config('CLIENT_ENCODING')
@ -29,8 +29,10 @@ try:
except Exception as e:
print ("[*] Invaild configration: %s" % (str(e)))
class Fediverse(Filter):
class Fediverse(Extension):
def __init__(self):
self.type = "filter" # this is a filter
# Load data to use KnownWords4 strategy
# Download data: https://github.com/dwyl/english-words
self.known_words = []