mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Fix flake8 warning
This commit is contained in:
parent
0870e22587
commit
cc5896f520
1 changed files with 4 additions and 3 deletions
|
@ -30,15 +30,16 @@ ObjectType = Dict[str, Any]
|
|||
ObjectOrIDType = Union[str, ObjectType]
|
||||
|
||||
|
||||
COLLECTION_CTX = [
|
||||
COLLECTION_CTX = [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
"https://w3id.org/security/v1",
|
||||
"https://w3id.org/security/v1",
|
||||
{
|
||||
"Hashtag": "as:Hashtag",
|
||||
"sensitive": "as:sensitive",
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
class ActivityType(Enum):
|
||||
"""Supported activity `type`."""
|
||||
ANNOUNCE = 'Announce'
|
||||
|
@ -1205,7 +1206,7 @@ def build_ordered_collection(col, q=None, cursor=None, map_func=None, limit=50,
|
|||
data = [_remove_id(doc) for doc in data]
|
||||
if map_func:
|
||||
data = [map_func(doc) for doc in data]
|
||||
|
||||
|
||||
# No cursor, this is the first page and we return an OrderedCollection
|
||||
if not cursor:
|
||||
resp = {
|
||||
|
|
Loading…
Reference in a new issue