user_gin.go 373 B

1234567891011121314
  1. package user
  2. import (
  3. "strings"
  4. "github.com/G-Node/gogs/internal/db"
  5. )
  6. // excludeFromFeed returns 'true' if the given action should be excluded from the user feed.
  7. func excludeFromFeed(act *db.Action) bool {
  8. return strings.Contains(act.RefName, "synced/git-annex") ||
  9. strings.Contains(act.RefName, "synced/master") ||
  10. strings.Contains(act.RefName, "git-annex")
  11. }