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 { return {
content: { content: {
icon_url: user.avatar_url,
alias: user.login,
text: text text: text
} }
}; };
@ -64,8 +62,6 @@ const giteaEvents = {
return { return {
content: { content: {
icon_url: user.avatar_url,
alias: user.login,
text: text 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 + ')**'; const text = "Forked from **[" + forkee.full_name + '](' + forkee.html_url + ')** to **[' + repo.full_name + '](' + repo.html_url + ')**';
return { return {
content: { content: {
icon_url: user.avatar_url,
alias: user.login,
text: text text: text
} }
}; };
@ -113,8 +107,6 @@ const giteaEvents = {
return { return {
content: { content: {
icon_url: user.avatar_url,
alias: user.login,
text: text, text: text,
attachments: [attachment] attachments: [attachment]
} }
@ -143,8 +135,6 @@ const giteaEvents = {
return { return {
content: { content: {
icon_url: user.avatar_url,
alias: user.login,
text: text text: text
} }
}; };
@ -171,8 +161,6 @@ const giteaEvents = {
return { return {
content: { content: {
icon_url: user.avatar_url,
alias: user.login,
text: text text: text
} }
}; };
@ -214,8 +202,6 @@ const giteaEvents = {
is.html_url + ')** ' + 'at [' + repo.full_name + '](' + repo.html_url + ')\n\n'; is.html_url + ')** ' + 'at [' + repo.full_name + '](' + repo.html_url + ')\n\n';
return { return {
content: { content: {
icon_url: user.avatar_url,
alias: user.login,
text: text, text: text,
attachments: [{ attachments: [{
text: body text: body
@ -271,8 +257,6 @@ const giteaEvents = {
return { return {
content: { content: {
icon_url: user.avatar_url,
alias: user.login,
text: text, text: text,
attachments: [ attachments: [
{ {
@ -334,8 +318,6 @@ const giteaEvents = {
} }
return { return {
content: { content: {
icon_url: user.avatar_url,
alias: user.login,
text: text, text: text,
attachments: [ attachments: [
{ {
@ -358,8 +340,6 @@ const giteaEvents = {
return { return {
content: { content: {
icon_url: user.avatar_url,
alias: user.login,
text: text, text: text,
attachments: [ attachments: [
{ {
@ -381,8 +361,6 @@ const giteaEvents = {
return { return {
content: { content: {
icon_url: user.avatar_url,
alias: user.login,
text: text, text: text,
attachments: [ attachments: [
{ {