Cleanup, improve the collection resolver
This commit is contained in:
@@ -4,6 +4,7 @@ import yaml
|
||||
from pymongo import MongoClient
|
||||
import requests
|
||||
|
||||
from utils import strtobool
|
||||
from utils.key import Key
|
||||
from utils.actor_service import ActorService
|
||||
from utils.object_service import ObjectService
|
||||
@@ -20,6 +21,9 @@ except ModuleNotFoundError:
|
||||
|
||||
VERSION = subprocess.check_output(['git', 'describe', '--always']).split()[0].decode('utf-8')
|
||||
|
||||
DEBUG_MODE = strtobool(os.getenv('MICROBLOGPUB_DEBUG', 'false'))
|
||||
|
||||
|
||||
CTX_AS = 'https://www.w3.org/ns/activitystreams'
|
||||
CTX_SECURITY = 'https://w3id.org/security/v1'
|
||||
AS_PUBLIC = 'https://www.w3.org/ns/activitystreams#Public'
|
||||
|
Reference in New Issue
Block a user