diff --git a/mastodon.py b/mastodon.py
index 631ca4a..7d35ce5 100644
--- a/mastodon.py
+++ b/mastodon.py
@@ -1,4 +1,18 @@
from mastodon import Mastodon
+from . import utils
+
+
+def get_account_tagged_statuses(app, tag):
+ mastodon = initialize_client(app)
+ account = mastodon.me()
+ print('>>> account id', account.id)
+ statuses = []
+ try:
+ statuses = mastodon.account_statuses(id=account.id, tagged=tag)
+ except:
+ print('>>> failed to fetch statuses', tag)
+
+ return list(map(lambda x: utils.clean_status(x), statuses))
def initialize_client(app):
mastodon = None
@@ -30,5 +44,5 @@ def initialize_client(app):
app['password'],
to_file = app['secret_file']
)
-
+
return mastodon
\ No newline at end of file
diff --git a/templates/card.html b/templates/card.html
index d310896..e3c6bbb 100644
--- a/templates/card.html
+++ b/templates/card.html
@@ -16,8 +16,10 @@