Don't impersonate users
Some checks failed
Lint / Run linters (push) Failing after 29s

This commit is contained in:
Marius Alwan Meyer 2023-05-01 21:57:15 +00:00
parent b26ba18a5b
commit 7cbbb9249a

View File

@ -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: [
{