feat: show tag pills on tag page
This commit is contained in:
parent
490f72038c
commit
1e3d4e9bad
1 changed files with 9 additions and 1 deletions
10
threads.py
10
threads.py
|
@ -74,8 +74,16 @@ async def tag(id):
|
||||||
attribution = get_attribution()
|
attribution = get_attribution()
|
||||||
app = get_app_config()
|
app = get_app_config()
|
||||||
statuses = mastodon.get_account_tagged_statuses(app, id)
|
statuses = mastodon.get_account_tagged_statuses(app, id)
|
||||||
|
tags = []
|
||||||
|
|
||||||
return render_template('tag.html', threads=statuses, tag=id, app=app, attribution=attribution, render_date=datetime.now())
|
masto = mastodon.initialize_client(app)
|
||||||
|
|
||||||
|
# List featured hashtags
|
||||||
|
tags = masto.featured_tags()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return render_template('tag.html', threads=statuses, tag=id, app=app, tags=tags, attribution=attribution, render_date=datetime.now())
|
||||||
|
|
||||||
|
|
||||||
@threads.route('/<path:id>')
|
@threads.route('/<path:id>')
|
||||||
|
|
Loading…
Reference in a new issue