oauth: add twitter

This commit is contained in:
Adhityaa Chandrasekar
2019-02-22 21:23:24 -05:00
parent d367ac8391
commit c07f3e8b9f
9 changed files with 212 additions and 0 deletions

View File

@@ -262,6 +262,8 @@
attrSet(avatar, "src", commenter.photo + "?sz=50");
} else if (commenter.provider === "github") {
attrSet(avatar, "src", commenter.photo + "&s=50");
} else if (commenter.provider === "twitter") {
attrSet(avatar, "src", commenter.photo + "?size=normal");
} else {
attrSet(avatar, "src", commenter.photo);
}
@@ -745,6 +747,8 @@
attrSet(avatar, "src", commenter.photo + "?sz=50");
} else if (commenter.provider === "github") {
attrSet(avatar, "src", commenter.photo + "&s=50");
} else if (commenter.provider === "twitter") {
attrSet(avatar, "src", commenter.photo + "?size=normal");
} else {
attrSet(avatar, "src", commenter.photo);
}

View File

@@ -25,5 +25,12 @@
font-size: 13px;
width: 70px;
}
.commento-twitter-button {
background: #00aced;
text-transform: uppercase;
font-size: 13px;
width: 70px;
}
}
}