Update short URLs to use news.1440.news
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user