forked from forks/microblog.pub
More stuff moved
This commit is contained in:
parent
cd2ae3d7b0
commit
d4590996e0
14 changed files with 59 additions and 58 deletions
32
app.py
32
app.py
|
@ -30,24 +30,13 @@ from little_boxes.webfinger import get_actor_url
|
|||
from little_boxes.webfinger import get_remote_follow_template
|
||||
from u2flib_server import u2f
|
||||
|
||||
import activitypub
|
||||
import blueprints.admin
|
||||
import blueprints.indieauth
|
||||
import blueprints.tasks
|
||||
import blueprints.well_known
|
||||
import config
|
||||
from activitypub import Box
|
||||
from activitypub import embed_collection
|
||||
from core.shared import MY_PERSON
|
||||
from core.shared import _add_answers_to_question
|
||||
from core.shared import _build_thread
|
||||
from core.shared import _get_ip
|
||||
from core.shared import back
|
||||
from core.shared import csrf
|
||||
from core.shared import login_required
|
||||
from core.shared import noindex
|
||||
from core.shared import paginated_query
|
||||
from core.shared import post_to_outbox
|
||||
from core.meta import Box
|
||||
from core.activitypub import embed_collection
|
||||
from blueprints.api import _api_required
|
||||
from config import ADMIN_API_KEY
|
||||
from config import BLACKLIST
|
||||
|
@ -58,9 +47,20 @@ from config import KEY
|
|||
from config import ME
|
||||
from config import MEDIA_CACHE
|
||||
from config import VERSION
|
||||
from config import MetaKey
|
||||
from config import _meta
|
||||
from tasks import Tasks
|
||||
from core import activitypub
|
||||
from core.meta import MetaKey
|
||||
from core.meta import _meta
|
||||
from core.shared import MY_PERSON
|
||||
from core.shared import _add_answers_to_question
|
||||
from core.shared import _build_thread
|
||||
from core.shared import _get_ip
|
||||
from core.shared import back
|
||||
from core.shared import csrf
|
||||
from core.shared import login_required
|
||||
from core.shared import noindex
|
||||
from core.shared import paginated_query
|
||||
from core.shared import post_to_outbox
|
||||
from core.tasks import Tasks
|
||||
from utils import now
|
||||
from utils.key import get_secret_key
|
||||
from utils.template_filters import filters
|
||||
|
|
|
@ -19,7 +19,10 @@ from passlib.hash import bcrypt
|
|||
from u2flib_server import u2f
|
||||
|
||||
import config
|
||||
from activitypub import Box
|
||||
from core.activitypub import Box
|
||||
from config import DB
|
||||
from config import ID
|
||||
from config import PASS
|
||||
from core.shared import MY_PERSON
|
||||
from core.shared import _build_thread
|
||||
from core.shared import _Response
|
||||
|
@ -29,9 +32,6 @@ from core.shared import noindex
|
|||
from core.shared import p
|
||||
from core.shared import paginated_query
|
||||
from core.shared import post_to_outbox
|
||||
from config import DB
|
||||
from config import ID
|
||||
from config import PASS
|
||||
from utils import now
|
||||
from utils.lookup import lookup
|
||||
|
||||
|
|
|
@ -23,14 +23,8 @@ from little_boxes.errors import ActivityNotFoundError
|
|||
from little_boxes.errors import NotFromOutboxError
|
||||
from werkzeug.utils import secure_filename
|
||||
|
||||
import activitypub
|
||||
import config
|
||||
from activitypub import Box
|
||||
from core.shared import MY_PERSON
|
||||
from core.shared import _Response
|
||||
from core.shared import back
|
||||
from core.shared import csrf
|
||||
from core.shared import post_to_outbox
|
||||
from core.meta import Box
|
||||
from config import BASE_URL
|
||||
from config import DB
|
||||
from config import DEBUG_MODE
|
||||
|
@ -38,10 +32,16 @@ from config import ID
|
|||
from config import JWT
|
||||
from config import MEDIA_CACHE
|
||||
from config import _drop_db
|
||||
from tasks import Tasks
|
||||
from core import activitypub
|
||||
from core.meta import MetaKey
|
||||
from core.meta import _meta
|
||||
from core.shared import MY_PERSON
|
||||
from core.shared import _Response
|
||||
from core.shared import back
|
||||
from core.shared import csrf
|
||||
from core.shared import post_to_outbox
|
||||
from core.tasks import Tasks
|
||||
from utils import now
|
||||
from utils.meta import MetaKey
|
||||
from utils.meta import _meta
|
||||
|
||||
blueprint = flask.Blueprint("api", __name__)
|
||||
|
||||
|
|
|
@ -16,10 +16,10 @@ from flask import session
|
|||
from flask import url_for
|
||||
from itsdangerous import BadSignature
|
||||
|
||||
from core.shared import _get_ip
|
||||
from core.shared import login_required
|
||||
from config import DB
|
||||
from config import JWT
|
||||
from core.shared import _get_ip
|
||||
from core.shared import login_required
|
||||
|
||||
blueprint = flask.Blueprint("indieauth", __name__)
|
||||
|
||||
|
|
|
@ -13,22 +13,22 @@ from little_boxes.errors import NotAnActivityError
|
|||
from little_boxes.httpsig import HTTPSigAuth
|
||||
from requests.exceptions import HTTPError
|
||||
|
||||
from core import gc
|
||||
import activitypub
|
||||
import config
|
||||
from activitypub import Box
|
||||
from core.activitypub import Box
|
||||
from config import DB
|
||||
from core import activitypub
|
||||
from core import gc
|
||||
from core.meta import MetaKey
|
||||
from core.meta import _meta
|
||||
from core.notifications import set_inbox_flags
|
||||
from core.shared import MY_PERSON
|
||||
from core.shared import _add_answers_to_question
|
||||
from core.shared import back
|
||||
from core.shared import p
|
||||
from core.shared import post_to_outbox
|
||||
from config import DB
|
||||
from core.notifications import set_inbox_flags
|
||||
from tasks import Tasks
|
||||
from core.tasks import Tasks
|
||||
from utils import now
|
||||
from utils import opengraph
|
||||
from utils.meta import MetaKey
|
||||
from utils.meta import _meta
|
||||
|
||||
SIG_AUTH = HTTPSigAuth(config.KEY)
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ from flask import request
|
|||
from little_boxes import activitypub as ap
|
||||
|
||||
import config
|
||||
from activitypub import Box
|
||||
from core.meta import Box
|
||||
from config import DB
|
||||
|
||||
blueprint = flask.Blueprint("well_known", __name__)
|
||||
|
|
|
@ -28,8 +28,8 @@ from config import ID
|
|||
from config import ME
|
||||
from config import USER_AGENT
|
||||
from config import USERNAME
|
||||
from core.meta import Box
|
||||
from tasks import Tasks
|
||||
from utils.meta import Box
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
|
@ -8,12 +8,12 @@ from typing import List
|
|||
|
||||
from little_boxes import activitypub as ap
|
||||
|
||||
import activitypub
|
||||
from activitypub import Box
|
||||
from core.meta import Box
|
||||
from config import DAYS_TO_KEEP
|
||||
from config import ID
|
||||
from config import ME
|
||||
from config import MEDIA_CACHE
|
||||
from core import activitypub
|
||||
from utils.migrations import DB
|
||||
|
||||
back = activitypub.MicroblogPubBackend()
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import pymongo
|
||||
|
||||
from config import DB
|
||||
from utils.meta import _meta
|
||||
from utils.meta import MetaKey
|
||||
from core.meta import MetaKey
|
||||
from core.meta import _meta
|
||||
|
||||
|
||||
def create_indexes():
|
||||
|
|
|
@ -5,8 +5,8 @@ from urllib.parse import urlparse
|
|||
|
||||
from little_boxes import activitypub as ap
|
||||
|
||||
import activitypub
|
||||
from config import ID
|
||||
from core import activitypub
|
||||
from utils.migrations import DB
|
||||
from utils.migrations import Migration
|
||||
from utils.migrations import logger
|
||||
|
|
|
@ -8,13 +8,13 @@ from little_boxes import activitypub as ap
|
|||
|
||||
from config import BASE_URL
|
||||
from config import DB
|
||||
from config import MetaKey
|
||||
from config import _meta
|
||||
from tasks import Tasks
|
||||
from utils.meta import by_actor
|
||||
from utils.meta import by_type
|
||||
from utils.meta import in_inbox
|
||||
from utils.meta import not_undo
|
||||
from core.meta import MetaKey
|
||||
from core.meta import _meta
|
||||
from core.meta import by_actor
|
||||
from core.meta import by_type
|
||||
from core.meta import in_inbox
|
||||
from core.meta import not_undo
|
||||
from core.tasks import Tasks
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -19,12 +19,12 @@ from little_boxes import activitypub as ap
|
|||
from little_boxes.activitypub import format_datetime
|
||||
from poussetaches import PousseTaches
|
||||
|
||||
import activitypub
|
||||
from activitypub import Box
|
||||
from activitypub import _answer_key
|
||||
from core.meta import Box
|
||||
from core.activitypub import _answer_key
|
||||
from config import DB
|
||||
from config import ME
|
||||
from tasks import Tasks
|
||||
from core import activitypub
|
||||
from core.tasks import Tasks
|
||||
|
||||
_Response = Union[flask.Response, werkzeug.wrappers.Response, str]
|
||||
|
||||
|
|
Loading…
Reference in a new issue