kopia lustrzana https://github.com/snarfed/bridgy-fed
noop: misc constants cleanup
rodzic
01d42f87a6
commit
c608ecaa36
|
@ -75,6 +75,7 @@ CACHE_TIME = timedelta(seconds=60)
|
|||
USER_AGENT = 'Bridgy Fed (https://fed.brid.gy/)'
|
||||
util.set_user_agent(USER_AGENT)
|
||||
|
||||
# https://cloud.google.com/appengine/docs/locations
|
||||
TASKS_LOCATION = 'us-central1'
|
||||
RUN_TASKS_INLINE = False # overridden by unit tests
|
||||
|
||||
|
|
|
@ -18,11 +18,11 @@ from . import testutil
|
|||
|
||||
from activitypub import ActivityPub
|
||||
import common
|
||||
from common import CONTENT_TYPE_HTML
|
||||
from common import CONTENT_TYPE_HTML, TASKS_LOCATION
|
||||
from flask_app import app
|
||||
from models import Follower, Object
|
||||
import web
|
||||
from web import TASKS_LOCATION, Web
|
||||
from web import Web
|
||||
from . import test_activitypub
|
||||
from .testutil import Fake, TestCase
|
||||
|
||||
|
|
5
web.py
5
web.py
|
@ -32,11 +32,6 @@ from protocol import Protocol
|
|||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# https://cloud.google.com/appengine/docs/locations
|
||||
TASKS_LOCATION = 'us-central1'
|
||||
|
||||
CHAR_AFTER_SPACE = chr(ord(' ') + 1)
|
||||
|
||||
# https://github.com/snarfed/bridgy-fed/issues/314
|
||||
WWW_DOMAINS = frozenset((
|
||||
'www.jvt.me',
|
||||
|
|
Ładowanie…
Reference in New Issue