فهرست منبع

Finer Peertube fix.

grunfink 2 هفته پیش
والد
کامیت
7d3f1508cf
1فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 6 2
      activitypub.c

+ 6 - 2
activitypub.c

@@ -392,8 +392,12 @@ xs_list *get_attachments(const xs_dict *msg)
                     }
                     else
                     if (xs_is_string(mtype) && strcmp(mtype, "video/mp4") == 0) {
-                        href = xs_dict_get(v, "href");
-                        type = mtype;
+                        const char *h = xs_dict_get(v, "href");
+
+                        if (xs_is_string(h)) {
+                            href = xs_dict_get(v, "href");
+                            type = mtype;
+                        }
                     }
                 }
             }