Can't read reviews

Please report any sort of feature requests or bugs on the tracker instead of the forum! http://tracker.anidb.info

Moderator: AniDB

Locked
mcbeaver
Posts: 1
Joined: Sat Jun 09, 2007 9:55 pm

Can't read reviews

Post by mcbeaver »

For some to me unknown reason i can no longer read reviews on anidb.
It doesn't matter which anime i chose i allways get the "
ERROR:

Reviewing this anime is not possible; air date lies in the future or is not defined."

Even if the anime in question ended years ago and have been reviewed several times.
I used to be able to read the reviews and havent changed any profile settings.

Just wanted to make this issue known since im asuming others are having the same problem,
Rar
AniDB Staff
Posts: 1471
Joined: Fri Mar 12, 2004 2:41 pm
Location: UK
Contact:

Post by Rar »

Blame: epoximator "allow vote/review when year lies in past even if month/day is unknown"

Code: Select all

diff -u -r1.21 -r1.22
--- mod_perl/subs/adbs_animeatt.pm	25 May 2007 17:40:12 -0000	1.21
+++ mod_perl/subs/adbs_animeatt.pm	2 Jun 2007 09:03:44 -0000	1.22
@@ -37,14 +37,16 @@
 		return;
 	}
 
-	if ( !$anime->{'airdate'} || $anime->{'airdate'} > ( time() + 24 * 60 * 60 ) )
+	if ( &adb_animeairdate_symbols::in_past( 'AIR',
+		$anime->{'airdate'}, $anime->{'dateflags'} ) )
 	{
 		&adbs_all::show_error(
 			"Reviewing this anime is not possible; air date lies in the future or is not defined.");
 		return;
 	}
 
-	if ( !$anime->{'enddate'} || $anime->{'enddate'} > ( time() + 24 * 60 * 60 ) )
+	if ( &adb_animeairdate_symbols::in_past( 'END',
+		$anime->{'enddate'}, $anime->{'dateflags'} ) )
 	{
 		&adbs_all::show_error(
 			"Reviewing this anime is not possible; end date lies in the future or is not defined.");
Patch:

Code: Select all

diff -u -r1.23 -r1.24
--- mod_perl/subs/adbs_animeatt.pm	8 Jun 2007 15:10:53 -0000	1.23
+++ mod_perl/subs/adbs_animeatt.pm	9 Jun 2007 21:35:19 -0000	1.24
@@ -37,14 +37,14 @@
 		return;
 	}
 
-	if ( &adb_animeairdate_symbols::in_past( 'AIR', $anime->{'airdate'}, $anime->{'dateflags'} ) )
+	if ( !&adb_animeairdate_symbols::in_past( 'AIR', $anime->{'airdate'}, $anime->{'dateflags'} ) )
 	{
 		&adbs_all::show_error(
 			"Reviewing this anime is not possible; air date lies in the future or is not defined.");
 		return;
 	}
 
-	if ( &adb_animeairdate_symbols::in_past( 'END', $anime->{'enddate'}, $anime->{'dateflags'} ) )
+	if ( !&adb_animeairdate_symbols::in_past( 'END', $anime->{'enddate'}, $anime->{'dateflags'} ) )
 	{
 		&adbs_all::show_error(
 			"Reviewing this anime is not possible; end date lies in the future or is not defined.");
Rar
Locked