Skip to content

Commit

Permalink
chore: add old changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Dec 10, 2024
1 parent 9e0d223 commit 4d168f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

**This is not the re-code, I released some breaking config changes for servers that used to rely on the automatic proxy detection.**

#### 💥 Breaking Change
### 💥 Breaking Change

- fix!: disable proxy detection to avoid vulnerabilities (see full commit for more info) [#436](https://github.com/sekwah41/Advanced-Portals/pull/436) ([@sekwah41](https://github.com/sekwah41))
- fix: stop portal packets still being forwarded to the client [#436](https://github.com/sekwah41/Advanced-Portals/pull/436) ([@sekwah41](https://github.com/sekwah41))

#### Authors: 1
### Authors: 1

- Sekwah ([@sekwah41](https://github.com/sekwah41))
11 changes: 8 additions & 3 deletions discord.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,21 @@ task discordupload {
} else {
def maxLength = 2000

def content = "New release build\n" +
def content = "# New release build\n" +
"${getReleaseChangelog()}\n"

if (content.length() > maxLength) {
def afterMessage = "[See more on GitHub]"
content = "${content.take(maxLength - afterMessage.length() - 1)}\n" +
def afterMessage = "[See more on GitHub](https://github.com/sekwah41/Advanced-Portals/releases)"

def truncatedContent = content.take(maxLength - afterMessage.length() - 1)
def lastFullLine = truncatedContent.lastIndexOf("\n")
content = "${truncatedContent.take(lastFullLine)}\n" +
"${afterMessage}"

}

content = content.replaceAll(/(http[s]?:\/\/[^\s)]+)/, '<$1>')

builder.addTextBody("content", content, ContentType.create("text/plain", "UTF-8"))
}

Expand Down

0 comments on commit 4d168f8

Please sign in to comment.