fix favtags (still untyped)

This commit is contained in:
albert
2013-02-22 16:33:23 -05:00
parent d788e8c1c0
commit 0b6dfcc90d

View File

@@ -100,7 +100,9 @@
Danbooru.RelatedTag.favorite_tags = function() {
var string = Danbooru.meta("favorite-tags");
if (string) {
return Danbooru.meta("favorite-tags").match(/\S+/g);
return $.map(string.match(/\S+/g), function(x, i) {
return [[x, 0]];
});
} else {
return [];
}