Show full account name in timeline
This commit is contained in:
parent
5a867f2380
commit
10595be865
2 changed files with 8 additions and 8 deletions
|
@ -123,7 +123,7 @@ def test_timeline(mock_get, monkeypatch, capsys):
|
|||
'id': '111111111111111111',
|
||||
'account': {
|
||||
'display_name': 'Frank Zappa 🎸',
|
||||
'username': 'fz'
|
||||
'acct': 'fz'
|
||||
},
|
||||
'created_at': '2017-04-12T15:53:18.174Z',
|
||||
'content': "<p>The computer can't tell you the emotional story. It can give you the exact mathematical design, but what's missing is the eyebrows.</p>",
|
||||
|
@ -159,12 +159,12 @@ def test_timeline_with_re(mock_get, monkeypatch, capsys):
|
|||
'created_at': '2017-04-12T15:53:18.174Z',
|
||||
'account': {
|
||||
'display_name': 'Frank Zappa',
|
||||
'username': 'fz'
|
||||
'acct': 'fz'
|
||||
},
|
||||
'reblog': {
|
||||
'account': {
|
||||
'display_name': 'Johnny Cash',
|
||||
'username': 'jc'
|
||||
'acct': 'jc'
|
||||
},
|
||||
'content': "<p>The computer can't tell you the emotional story. It can give you the exact mathematical design, but what's missing is the eyebrows.</p>",
|
||||
'media_attachments': [],
|
||||
|
@ -201,7 +201,7 @@ def test_thread(mock_get, monkeypatch, capsys):
|
|||
'id': '111111111111111111',
|
||||
'account': {
|
||||
'display_name': 'Frank Zappa',
|
||||
'username': 'fz'
|
||||
'acct': 'fz'
|
||||
},
|
||||
'created_at': '2017-04-12T15:53:18.174Z',
|
||||
'content': "my response in the middle",
|
||||
|
@ -214,7 +214,7 @@ def test_thread(mock_get, monkeypatch, capsys):
|
|||
'id': '111111111111111110',
|
||||
'account': {
|
||||
'display_name': 'Frank Zappa',
|
||||
'username': 'fz'
|
||||
'acct': 'fz'
|
||||
},
|
||||
'created_at': '2017-04-12T15:53:18.174Z',
|
||||
'content': "original content",
|
||||
|
@ -225,7 +225,7 @@ def test_thread(mock_get, monkeypatch, capsys):
|
|||
'id': '111111111111111112',
|
||||
'account': {
|
||||
'display_name': 'Frank Zappa',
|
||||
'username': 'fz'
|
||||
'acct': 'fz'
|
||||
},
|
||||
'created_at': '2017-04-12T15:53:18.174Z',
|
||||
'content': "response message",
|
||||
|
|
|
@ -136,7 +136,7 @@ def print_status(status, width):
|
|||
time = datetime.strptime(time, "%Y-%m-%dT%H:%M:%S.%fZ")
|
||||
time = time.strftime('%Y-%m-%d %H:%M%z')
|
||||
|
||||
username = "@" + status['account']['username']
|
||||
username = "@" + status['account']['acct']
|
||||
spacing = width - wcswidth(username) - wcswidth(time)
|
||||
|
||||
display_name = status['account']['display_name']
|
||||
|
@ -166,7 +166,7 @@ def print_status(status, width):
|
|||
print_out("\n{}{}{}".format(
|
||||
"ID <yellow>{}</yellow> ".format(status['id']),
|
||||
"↲ In reply to <yellow>{}</yellow> ".format(in_reply_to) if in_reply_to else "",
|
||||
"↻ Reblogged <blue>@{}</blue> ".format(reblog['account']['username']) if reblog else "",
|
||||
"↻ Reblogged <blue>@{}</blue> ".format(reblog['account']['acct']) if reblog else "",
|
||||
))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue