Formatting

This commit is contained in:
Thomas Sileo 2018-07-10 23:04:05 +02:00
parent 52252341da
commit c9a10bddb4

3
app.py
View file

@ -66,8 +66,8 @@ from little_boxes.activitypub import _to_list
from little_boxes.activitypub import clean_activity
from little_boxes.activitypub import get_backend
from little_boxes.content_helper import parse_markdown
from little_boxes.errors import ActivityNotFoundError
from little_boxes.errors import ActivityGoneError
from little_boxes.errors import ActivityNotFoundError
from little_boxes.errors import Error
from little_boxes.errors import NotFromOutboxError
from little_boxes.httpsig import HTTPSigAuth
@ -271,6 +271,7 @@ def get_actor(url):
except (ActivityNotFoundError, ActivityGoneError):
return f"Deleted<{url}>"
@app.template_filter()
def format_time(val):
if val: