Sfoglia il codice sorgente

Fix for Peertube videos.

grunfink 3 settimane fa
parent
commit
a15da19cd0
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      activitypub.c

+ 5 - 0
activitypub.c

@@ -390,6 +390,11 @@ 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;
+                    }
                 }
             }
         }