@ecency/sdk 1.3.9 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser/index.js
CHANGED
|
@@ -3672,7 +3672,7 @@ function buildQuery(entry, retry = 3) {
|
|
|
3672
3672
|
q += ` -dporn type:post`;
|
|
3673
3673
|
let tags;
|
|
3674
3674
|
if (json_metadata && json_metadata.tags && Array.isArray(json_metadata.tags)) {
|
|
3675
|
-
tags = json_metadata.tags.filter((tag) => tag && tag !== "").filter((tag) => !tag.startsWith("hive-")).filter((_tag, ind) => ind < +retry).join(",");
|
|
3675
|
+
tags = json_metadata.tags.filter((tag) => tag && tag !== "" && typeof tag === "string").filter((tag) => !tag.startsWith("hive-")).filter((_tag, ind) => ind < +retry).join(",");
|
|
3676
3676
|
}
|
|
3677
3677
|
if (tags && tags.length > 0) {
|
|
3678
3678
|
q += ` tag:${tags}`;
|