Parcourir la source

Fix for Peertube videos.

grunfink il y a 2 semaines
Parent
commit
a15da19cd0
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  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;
+                    }
                 }
             }
         }