More following/follows back stuff
This commit is contained in:
parent
efc8a41624
commit
1ab8920df8
4 changed files with 68 additions and 24 deletions
6
app.py
6
app.py
|
@ -818,9 +818,7 @@ def followers():
|
|||
)
|
||||
|
||||
raw_followers, older_than, newer_than = paginated_query(DB.activities, q)
|
||||
followers = [
|
||||
doc["meta"]["actor"] for doc in raw_followers if "actor" in doc.get("meta", {})
|
||||
]
|
||||
followers = [doc["meta"] for doc in raw_followers if "actor" in doc.get("meta", {})]
|
||||
return htmlify(
|
||||
render_template(
|
||||
"followers.html",
|
||||
|
@ -857,7 +855,7 @@ def following():
|
|||
|
||||
following, older_than, newer_than = paginated_query(DB.activities, q)
|
||||
following = [
|
||||
(doc["remote_id"], doc["meta"]["object"])
|
||||
(doc["remote_id"], doc["meta"])
|
||||
for doc in following
|
||||
if "remote_id" in doc and "object" in doc.get("meta", {})
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue