Add avatar.

This commit is contained in:
tastytea 2019-11-02 07:45:04 +01:00
부모 2d0411e59c
커밋 2ab93b2bdc
로그인 계정: tastytea
GPG 키 ID: CFC39497F1B26E07
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@ -70,9 +70,17 @@ function author_html(status)
{
const p = document.createElement("p");
p.setAttribute("class", "mastodon-api-comment-author");
const img = document.createElement("img");
img.setAttribute("class", "mastodon-api-comment-avatar");
img.setAttribute("src", status.account.avatar);
p.appendChild(img);
p.innerHTML += " ";
const strong = document.createElement("strong");
strong.appendChild(document.createTextNode(status.account.display_name));
p.appendChild(strong);
p.appendChild(
document.createTextNode(" (" + status.account.acct + ") wrote on "
+ get_status_time(status) + ":"));