Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2026-02-03 02:14:39 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2026-02-03 02:19:44 +0300
commitf87c68ea682de3b0545b206557a17affcdf2be3a (patch)
treedb36be81c24ceda71267bb48020f00049b8b0524 /web/service/tgbot.go
parent687e8cf1ba224c20b8b312c41fd00f891e5f26e4 (diff)
Add workflow to clean old GitHub Actions caches
Adds a scheduled GitHub Actions workflow (.github/workflows/cleanup_caches.yml) that runs weekly (and via workflow_dispatch) to delete Actions caches not accessed in the last 3 days. The job uses the gh CLI with the repository token and actions: write permission to list caches, filter by last_accessed_at against a 3-day cutoff, and delete matching cache IDs.
Diffstat (limited to 'web/service/tgbot.go')
-rw-r--r--web/service/tgbot.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/service/tgbot.go b/web/service/tgbot.go
index 96299050..cb84142c 100644
--- a/web/service/tgbot.go
+++ b/web/service/tgbot.go
@@ -2322,9 +2322,9 @@ func (t *Tgbot) buildSubscriptionURLs(email string) (string, string, error) {
// If pre-configured URIs are available, use them directly
if subURI != "" {
if !strings.HasSuffix(subURI, "/") {
- subURI = subURI + "/"
+ subURI = subURI + "/"
}
- subURL = fmt.Sprintf("%s%s", subURI, client.SubID)
+ subURL = fmt.Sprintf("%s%s", subURI, client.SubID)
} else {
subURL = fmt.Sprintf("%s://%s%s%s", scheme, host, subPath, client.SubID)
}
@@ -2333,7 +2333,7 @@ func (t *Tgbot) buildSubscriptionURLs(email string) (string, string, error) {
if !strings.HasSuffix(subJsonURI, "/") {
subJsonURI = subJsonURI + "/"
}
- subJsonURL = fmt.Sprintf("%s%s", subJsonURI, client.SubID)
+ subJsonURL = fmt.Sprintf("%s%s", subJsonURI, client.SubID)
} else {
subJsonURL = fmt.Sprintf("%s://%s%s%s", scheme, host, subJsonPath, client.SubID)