Configure Gravatar URLs in Stash

 

Per  STASH-3112 - Getting issue details... STATUS , it is now possible to configure Gravatar URLs in Stash, this can be set in stash-config.properties. The following properties are responsible for this:

  • avatar.url.format.http
  • avatar.url.format.https

The following format parameters are available for the above mentioned properties:

  • %1$s -> The user's e-mail address, MD5 hashed, or "00000000000000000000000000000000" if the user has no e-mail.
  • %2$d -> The requested avatar size.
  • %3$s -> The fallback URL, URL-encoded, which may be defined using "avatar.url.default".
  • %4$s -> The user's e-mail address, not hashed, or an empty string if the user has no e-mail.

So the above parameters can be specified in stash-config.properties following these examples:

avatar.url.format.http=http://www.gravatar.com/avatar/%1$s.jpg?s=%2$d&d=%3$s
avatar.url.format.https=https://secure.gravatar.com/avatar/%1$s.jpg?s=%2$d&d=%3$s


最終更新日: 2016 年 2 月 23 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.