mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Blacken app
This commit is contained in:
parent
0cb0459966
commit
7312a9e52d
1 changed files with 3 additions and 1 deletions
4
app.py
4
app.py
|
@ -160,7 +160,9 @@ def inject_config():
|
||||||
config=config,
|
config=config,
|
||||||
logged_in=logged_in,
|
logged_in=logged_in,
|
||||||
followers_count=DB.activities.count(followers_q),
|
followers_count=DB.activities.count(followers_q),
|
||||||
following_count=DB.activities.count(following_q) if logged_in or not config.HIDE_FOLLOWING else 0,
|
following_count=DB.activities.count(following_q)
|
||||||
|
if logged_in or not config.HIDE_FOLLOWING
|
||||||
|
else 0,
|
||||||
notes_count=notes_count,
|
notes_count=notes_count,
|
||||||
liked_count=DB.activities.count(liked_q) if logged_in else 0,
|
liked_count=DB.activities.count(liked_q) if logged_in else 0,
|
||||||
with_replies_count=DB.activities.count(all_q) if logged_in else 0,
|
with_replies_count=DB.activities.count(all_q) if logged_in else 0,
|
||||||
|
|
Loading…
Reference in a new issue