mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-06 18:01:07 +00:00
Update fediverse.py
This commit is contained in:
parent
3716522a9f
commit
65be31ef59
|
@ -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 = []
|
||||
|
|
Loading…
Reference in New Issue
Block a user