More design tweaks, fix the index

Fixes #12
This commit is contained in:
Thomas Sileo
2018-06-26 22:52:19 +02:00
parent 20b6053282
commit 0780bf3691
4 changed files with 6 additions and 5 deletions

6
app.py
View File

@@ -457,14 +457,16 @@ def index():
for data in outbox_data:
if data["type"] == "Announce":
print(data)
if data["activity"]["object"].startswith("http"):
data["ref"] = {
"activity": {
"object": OBJECT_SERVICE.get(data["activity"]["object"])
"object": OBJECT_SERVICE.get(data["activity"]["object"]),
"id": "NA",
},
"meta": {},
}
print(data)
return render_template(
"index.html",