Cleanup, improve the collection resolver

This commit is contained in:
Thomas Sileo
2018-05-27 11:01:34 +02:00
parent 888410d646
commit 25a75a9cef
6 changed files with 99 additions and 41 deletions

View File

@@ -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'