fix: server param called as a fn
This commit is contained in:
parent
a452a60c9c
commit
186c37a8c0
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
from flask import Blueprint, render_template, current_app
|
||||
import requests
|
||||
import json
|
||||
from datetime import datetime
|
||||
import markdown
|
||||
import re
|
||||
|
@ -108,7 +109,7 @@ def fetch_thread(id):
|
|||
|
||||
def get_descendants(server, status):
|
||||
author_id = status['account']['id']
|
||||
context = requests.get(server() + '/api/v1/statuses/' + status['id'] + '/context').json()
|
||||
context = requests.get(server + '/api/v1/statuses/' + status['id'] + '/context').json()
|
||||
descendants = []
|
||||
for reply in context['descendants']:
|
||||
# TODO: the following condition will include a reply to a reply of the author
|
||||
|
|
Loading…
Reference in a new issue