1
mirror of https://gitlab.com/commento/commento.git synced 2025-06-29 22:56:37 -04:00

api: add github oauth

Closes https://gitlab.com/commento/commento/issues/20
This commit is contained in:
Adhityaa Chandrasekar
2019-01-30 21:15:16 -05:00
parent 24d76c2fb6
commit 55f24b2de2
8 changed files with 200 additions and 1 deletions

View File

@ -269,6 +269,8 @@
avatar = create("img");
if (resp.commenter.provider === "google") {
attrSet(avatar, "src", resp.commenter.photo + "?sz=50");
} else if (resp.commenter.provider === "github") {
attrSet(avatar, "src", resp.commenter.photo + "&s=50");
} else {
attrSet(avatar, "src", resp.commenter.photo);
}
@ -699,6 +701,8 @@
avatar = create("img");
if (commenter.provider === "google") {
attrSet(avatar, "src", commenter.photo + "?sz=50");
} else if (commenter.provider === "github") {
attrSet(avatar, "src", commenter.photo + "&s=50");
} else {
attrSet(avatar, "src", commenter.photo);
}