This commit is contained in:
BlenderDumbass 2024-12-12 01:19:26 +02:00
parent a434a3ba1f
commit 8ec5b853ad

View file

@ -440,7 +440,10 @@ def MainPage(server):
Accounts = accounts() Accounts = accounts()
owner = config.get("main_account", "") owner = config.get("main_account", "")
mastodon = Accounts[owner].get("mastodon") mastodon = Accounts[owner].get("mastodon")
mastoposts = API.Mastodon(mastohead(mastodon), 8).copy() if mastodon:
mastoposts = API.Mastodon(mastohead(mastodon), 8).copy()
else:
mastoposts = []
html = html + '<div class="flexity">' html = html + '<div class="flexity">'