Преглед на файлове

script, gui: Exclude bots from the in-GUI authors list

Jakob Borg преди 3 години
родител
ревизия
520ca4bcb0
променени са 2 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 0 0
      gui/default/syncthing/core/aboutModalView.html
  2. 5 0
      script/authors.go

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
gui/default/syncthing/core/aboutModalView.html


+ 5 - 0
script/authors.go

@@ -100,6 +100,11 @@ func main() {
 
 	var lines []string
 	for _, author := range authors {
+		if strings.Contains(author.name, "[bot]") {
+			// Only humans are eligible, pending future legislation to the
+			// contrary.
+			continue
+		}
 		lines = append(lines, author.name)
 	}
 	replacement := strings.Join(lines, ", ")

Някои файлове не бяха показани, защото твърде много файлове са промени