Update short URLs to use news.1440.news

This commit is contained in:
primal
2026-02-02 13:23:24 -05:00
parent ec53ad59db
commit aea101a5e7
+2 -2
View File
@@ -165,13 +165,13 @@ func (c *Crawler) RecordClick(code string, r *http.Request) error {
}
// GetShortURLForPost returns the short URL string for use in posts
// Format: https://url.1440.news/{code}
// Format: https://news.1440.news/{code}
func (c *Crawler) GetShortURLForPost(originalURL, itemGUID, feedURL string) (string, error) {
shortURL, err := c.CreateShortURL(originalURL, itemGUID, feedURL)
if err != nil {
return "", err
}
return fmt.Sprintf("https://url.1440.news/%s", shortURL.Code), nil
return fmt.Sprintf("https://news.1440.news/%s", shortURL.Code), nil
}
// GetClickStats returns click statistics for a short URL