Merge pull request #2580 from bromagosa/filter-published-project-names

filtering out typical BJC, Teals etc projects from published project list
pull/95/head
Jens Mönig 2020-05-17 09:20:42 +02:00 zatwierdzone przez GitHub
commit afeea0f2f4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -461,6 +461,14 @@ Cloud.prototype.getPublishedProjectList = function (
(username ? '/' + encodeURIComponent(username) : '') +
'?ispublished=true';
if (!username) {
// When requesting the global list of published projects, filter out
// those with project names that are typical of online courses like
// Teals or BJC. When requesting a user's published projects, show them
// all.
path += '&filtered=true';
}
if (withThumbnail) {
path += '&withthumbnail=true';
}