Created
August 4, 2014 15:30
-
-
Save tanacasino/400aad9d14e7087b19d5 to your computer and use it in GitHub Desktop.
gitbucket-fix-458
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/main/twirl/helper/activities.scala.html b/src/main/twirl/helper/activities.scala.html | |
index 980eaf5..c85dd8c 100644 | |
--- a/src/main/twirl/helper/activities.scala.html | |
+++ b/src/main/twirl/helper/activities.scala.html | |
@@ -22,7 +22,7 @@ | |
case "fork" => simpleActivity(activity, "activity-fork.png") | |
case "push" => customActivity(activity, "activity-commit.png"){ | |
<div class="small activity-message"> | |
- {activity.additionalInfo.get.split("\n").reverse.take(4).zipWithIndex.map{ case (commit, i) => | |
+ {activity.additionalInfo.get.split("\n").reverse.filter(_ matches "[0-9a-z]{40}:.*").take(4).zipWithIndex.map{ case (commit, i) => | |
if(i == 3){ | |
<div>...</div> | |
} else { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment