Add back 'don't fetch avatars' feature

This commit is contained in:
Hylke Bons 2012-06-27 16:24:53 +01:00
parent 22698aa00b
commit ee4be6c7f9

View file

@ -945,6 +945,14 @@ namespace SparkleShare {
public string GetAvatar (string email, int size)
{
string fetch_gravatars_option = SparkleConfig.DefaultConfig.GetConfigOption ("fetch_gravatars");
if (fetch_gravatars_option != null &&
fetch_gravatars_option.Equals (bool.FalseString)) {
return null;
}
email = email.ToLower ();
string avatars_path = new string [] { Path.GetDirectoryName (SparkleConfig.DefaultConfig.FullPath),