kopia lustrzana https://github.com/backface/turtlestitch
Merge pull request #2580 from bromagosa/filter-published-project-names
filtering out typical BJC, Teals etc projects from published project listpull/95/head
commit
afeea0f2f4
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue