@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/node/index.mjs
CHANGED
|
@@ -3668,7 +3668,7 @@ function buildQuery(entry, retry = 3) {
|
|
|
3668
3668
|
q += ` -dporn type:post`;
|
|
3669
3669
|
let tags;
|
|
3670
3670
|
if (json_metadata && json_metadata.tags && Array.isArray(json_metadata.tags)) {
|
|
3671
|
-
tags = json_metadata.tags.filter((tag) => tag && tag !== "").filter((tag) => !tag.startsWith("hive-")).filter((_tag, ind) => ind < +retry).join(",");
|
|
3671
|
+
tags = json_metadata.tags.filter((tag) => tag && tag !== "" && typeof tag === "string").filter((tag) => !tag.startsWith("hive-")).filter((_tag, ind) => ind < +retry).join(",");
|
|
3672
3672
|
}
|
|
3673
3673
|
if (tags && tags.length > 0) {
|
|
3674
3674
|
q += ` tag:${tags}`;
|