Feature #213

avatar

[extension] Rating - add 'unrated' level

Added by artanis-00-gmail-com - 760 days ago. Updated 130 days ago.

Status:Closed Start:
Priority:Low Due date:
Assigned to:avatarShish - % Done:

0%

Category:third party extensions
Target version:2.3

Description

Currently images default to 'questionable.'
It would probably be better if new images defaulted to 'unrated' so they may be searched for and rated, rather than sifting through questionable all the time sorting images out into the other two levels.
For other things, like which levels to display, unrated could carry the same weight as questionable.

History

Updated by anonymous - 303 days ago

avatar
  • Status changed from New to Closed
  • 1 set to fixed

done in git, for release in 2.3

Updated by John Fitzgerald 130 days ago

avatar

Unrated images are not displayed by default for authenticated users, resulting in new submissions being effectively invisible. I made the following change to my copy of contrib/rating/main.php on lines 81 and 91, allowing users to always view their own contributions:

$ diff main.php main.php~
81c81
< $event->add_querylet(new Querylet("rating IN ($set) OR images.owner_id=?", array($user->id)));

$event->add_querylet(new Querylet("rating IN ($set)"));

90c90
< $event->add_querylet(new Querylet("rating IN ($set) OR images.owner_id=?", array($user->id)));

$event->add_querylet(new Querylet("rating IN ($set)"));

Also available in: Atom PDF