Bläddra i källkod

[routes/user] No more special repo names for hiding

At some point we introduced the option of adding "hideme" or "unlisted"
to repository names in order to hide them from the dashboard and the
explore page.  Repositories can now be hidden from Explore using the
"Unlisted" option.  This functionality is unnecessary.
Achilleas Koutsou 6 år sedan
förälder
incheckning
05465820a1
1 ändrade filer med 1 tillägg och 3 borttagningar
  1. 1 3
      routes/user/user_gin.go

+ 1 - 3
routes/user/user_gin.go

@@ -10,7 +10,5 @@ import (
 func excludeFromFeed(act *models.Action) bool {
 func excludeFromFeed(act *models.Action) bool {
 	return strings.Contains(act.RefName, "synced/git-annex") ||
 	return strings.Contains(act.RefName, "synced/git-annex") ||
 		strings.Contains(act.RefName, "synced/master") ||
 		strings.Contains(act.RefName, "synced/master") ||
-		strings.Contains(act.RefName, "git-annex") ||
-		strings.Contains(act.RepoName, "hideme") ||
-		strings.Contains(act.RepoName, "unlisted")
+		strings.Contains(act.RefName, "git-annex")
 }
 }