File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
mrkm4ntr/gitbucket/network/controller Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11val Organization = " com.github.mrkm4ntr"
22val Name = " gitbucket-network-plugin"
3- val Version = " 1.9.1 "
3+ val Version = " 1.9.2 "
44
55lazy val root = (project in file(" ." )).enablePlugins(SbtTwirl )
66
77organization := Organization
88name := Name
99version := Version
1010scalaVersion := " 2.13.1"
11- gitbucketVersion := " 4.35 .0"
11+ gitbucketVersion := " 4.38 .0"
1212
1313resolvers ++= Seq (
1414 Resolver .jcenterRepo
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ class Plugin extends gitbucket.core.plugin.Plugin {
2424 new Version (" 1.8.0" ),
2525 new Version (" 1.8.1" ),
2626 new Version (" 1.9.0" ),
27- new Version (" 1.9.1" )
27+ new Version (" 1.9.1" ),
28+ new Version (" 1.9.2" )
2829 )
2930
3031 override val description : String = " Provides Network feature on Gitbucket."
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ trait NetworkControllerBase extends ControllerBase {
6969 val revWalk = new PlotWalk (repo)
7070 revWalk.sort(RevSort .COMMIT_TIME_DESC )
7171 try {
72- if (allBranches.isDefined) {
72+ if (allBranches.isDefined) {
7373 revWalk.markStart(repository.branchList.map(repo.resolve).map(revWalk.parseCommit(_)).asJava)
7474 } else {
7575 revWalk.markStart(revWalk.parseCommit(repo.resolve(currentBranch)))
@@ -107,13 +107,13 @@ trait NetworkControllerBase extends ControllerBase {
107107
108108 def getAvatarUrl (mailAddress : String , size : Int )(implicit context : Context ): String = {
109109 getAccountByMailAddressFromCache(mailAddress).map { account =>
110- if (account.image.isEmpty && context.settings.gravatar) {
110+ if (account.image.isEmpty && context.settings.basicBehavior. gravatar) {
111111 s """ https://www.gravatar.com/avatar/ ${StringUtil .md5(account.mailAddress.toLowerCase)}?s= $size&d=retro&r=g """
112112 } else {
113113 s """ ${context.path}/ ${account.userName}/_avatar """
114114 }
115115 } getOrElse {
116- if (context.settings.gravatar) {
116+ if (context.settings.basicBehavior. gravatar) {
117117 s """ https://www.gravatar.com/avatar/ ${StringUtil .md5(mailAddress.toLowerCase)}?s= $size&d=retro&r=g """
118118 } else {
119119 s """ ${context.path}/_unknown/_avatar """
You can’t perform that action at this time.
0 commit comments