Merge ; commit '00dd5feb5f713cba2d7ec8490ba5e0d1a655497c'
This commit is contained in:
commit
07412b7d8d
2 changed files with 4 additions and 8 deletions
|
@ -103,10 +103,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
.hashtag {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.card_avatar img {
|
||||
border: 2px solid rgba(197, 209, 222, 0.15);
|
||||
border-radius: 50%;
|
||||
|
|
|
@ -11,8 +11,9 @@ threads = Blueprint('threads', __name__, template_folder='templates', static_fol
|
|||
# TODO: move following to an app config or sqlite #########
|
||||
thread_ids = [
|
||||
'114424567700847705',
|
||||
'114012659479108663',
|
||||
'113986386529736815',
|
||||
'114202630459242553',
|
||||
'114012659479108663',
|
||||
'113986386529736815',
|
||||
'113775430984622212',
|
||||
'113650907203476875',
|
||||
'113449531956042438',
|
||||
|
@ -139,9 +140,8 @@ def get_descendants(server, status):
|
|||
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
|
||||
# TODO: the following condition will include a reply to a reply of the author
|
||||
# - edge case: a different author replies in the thread and the author replies then replies again
|
||||
if reply['account']['id'] == author_id and reply['in_reply_to_account_id'] == author_id:
|
||||
descendants.append(utils.clean_status(reply))
|
||||
return descendants
|
||||
|
||||
|
|
Loading…
Reference in a new issue