Skip to content

Commit 751b753

Browse files
authored
change: mod.ID -> mod.ModReference in webhooks (#35)
1 parent 7b4f778 commit 751b753

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integrations/discord.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func NewMod(ctx context.Context, mod *postgres.Mod) {
4343
"embeds": []interface{}{
4444
map[string]interface{}{
4545
"title": "**" + mod.Name + "**",
46-
"url": "https://ficsit.app/mod/" + mod.ID,
46+
"url": "https://ficsit.app/mod/" + mod.ModReference,
4747
"color": 16750592,
4848
"description": mod.ShortDescription,
4949
"fields": []interface{}{
@@ -116,7 +116,7 @@ func NewVersion(ctx context.Context, version *postgres.Version) {
116116
"embeds": []interface{}{
117117
map[string]interface{}{
118118
"title": "**" + mod.Name + " v" + version.Version + "**",
119-
"url": "https://ficsit.app/mod/" + mod.ID + "/version/" + version.ID,
119+
"url": "https://ficsit.app/mod/" + mod.ModReference + "/version/" + version.ID,
120120
"color": 16750592,
121121
"description": "New Version Available!",
122122
"fields": []interface{}{

0 commit comments

Comments
 (0)