mirror of
https://github.com/napnap75/multiarch-docker-images.git
synced 2025-12-16 03:34:18 +01:00
Also test the current year for the new albums
This commit is contained in:
@@ -263,7 +263,7 @@ func runLoop(param parameters) error {
|
||||
continue
|
||||
}
|
||||
|
||||
if (shareDate.Month() == time.Now().AddDate(0, 0, -1).Month()) && (shareDate.Day() == time.Now().AddDate(0, 0, -1).Day()) {
|
||||
if (shareDate.Year() == time.Now().AddDate(0, 0, -1).Year()) && (shareDate.Month() == time.Now().AddDate(0, 0, -1).Month()) && (shareDate.Day() == time.Now().AddDate(0, 0, -1).Day()) {
|
||||
// Prepare the message
|
||||
url := fmt.Sprintf("%s/?xauth=%s", param.piwigoBaseURL, albumCode)
|
||||
imagePath := representativePath
|
||||
|
||||
Reference in New Issue
Block a user