From 7cbbb9249a1d4cff109ee65cfda5170d601ebc6b Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer <22202402+sporqist@users.noreply.github.com> Date: Mon, 1 May 2023 21:57:15 +0000 Subject: [PATCH] Don't impersonate users --- gitea-rocketchat.hooks.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/gitea-rocketchat.hooks.js b/gitea-rocketchat.hooks.js index 3feee06..f7561aa 100644 --- a/gitea-rocketchat.hooks.js +++ b/gitea-rocketchat.hooks.js @@ -44,8 +44,6 @@ const giteaEvents = { return { content: { - icon_url: user.avatar_url, - alias: user.login, text: text } }; @@ -64,8 +62,6 @@ const giteaEvents = { return { content: { - icon_url: user.avatar_url, - alias: user.login, text: text } }; @@ -78,8 +74,6 @@ const giteaEvents = { const text = "Forked from **[" + forkee.full_name + '](' + forkee.html_url + ')** to **[' + repo.full_name + '](' + repo.html_url + ')**'; return { content: { - icon_url: user.avatar_url, - alias: user.login, text: text } }; @@ -113,8 +107,6 @@ const giteaEvents = { return { content: { - icon_url: user.avatar_url, - alias: user.login, text: text, attachments: [attachment] } @@ -143,8 +135,6 @@ const giteaEvents = { return { content: { - icon_url: user.avatar_url, - alias: user.login, text: text } }; @@ -171,8 +161,6 @@ const giteaEvents = { return { content: { - icon_url: user.avatar_url, - alias: user.login, text: text } }; @@ -214,8 +202,6 @@ const giteaEvents = { is.html_url + ')** ' + 'at [' + repo.full_name + '](' + repo.html_url + ')\n\n'; return { content: { - icon_url: user.avatar_url, - alias: user.login, text: text, attachments: [{ text: body @@ -271,8 +257,6 @@ const giteaEvents = { return { content: { - icon_url: user.avatar_url, - alias: user.login, text: text, attachments: [ { @@ -334,8 +318,6 @@ const giteaEvents = { } return { content: { - icon_url: user.avatar_url, - alias: user.login, text: text, attachments: [ { @@ -358,8 +340,6 @@ const giteaEvents = { return { content: { - icon_url: user.avatar_url, - alias: user.login, text: text, attachments: [ { @@ -381,8 +361,6 @@ const giteaEvents = { return { content: { - icon_url: user.avatar_url, - alias: user.login, text: text, attachments: [ {