Use app.1440.news domain for short URLs

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
primal
2026-01-28 22:49:04 -05:00
parent 94d64373ed
commit 1ab45033cd
+2 -2
View File
@@ -162,13 +162,13 @@ func (c *Crawler) RecordClick(code string, r *http.Request) error {
}
// GetShortURLForPost returns the short URL string for use in posts
// Format: https://1440.news/r/{code}
// Format: https://app.1440.news/r/{code}
func (c *Crawler) GetShortURLForPost(originalURL string, itemID *int64, feedURL string) (string, error) {
shortURL, err := c.CreateShortURL(originalURL, itemID, feedURL)
if err != nil {
return "", err
}
return fmt.Sprintf("https://1440.news/r/%s", shortURL.Code), nil
return fmt.Sprintf("https://app.1440.news/r/%s", shortURL.Code), nil
}
// GetClickStats returns click statistics for a short URL