Skip to content

Instantly share code, notes, and snippets.

@tanacasino
Created August 4, 2014 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanacasino/400aad9d14e7087b19d5 to your computer and use it in GitHub Desktop.
Save tanacasino/400aad9d14e7087b19d5 to your computer and use it in GitHub Desktop.
gitbucket-fix-458
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