diff --git a/api/schemas.py b/api/schemas.py index 7498d64..de0ce0a 100644 --- a/api/schemas.py +++ b/api/schemas.py @@ -275,7 +275,7 @@ class Notification(Schema): class Tag(Schema): name: str url: str - history: dict + history: list following: bool | None @classmethod diff --git a/api/views/search.py b/api/views/search.py index a664af9..a76ef01 100644 --- a/api/views/search.py +++ b/api/views/search.py @@ -39,7 +39,7 @@ def search( for i in search_result["identities"] ] if type is None or type == "hashtag": - result["hashtag"] = [ + result["hashtags"] = [ schemas.Tag.from_hashtag(h) for h in search_result["hashtags"] ] if type is None or type == "statuses":