瀏覽代碼

mastoapi: also process "Document" type attachments.

default 2 年之前
父節點
當前提交
39932b21ec
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mastoapi.c

+ 1 - 1
mastoapi.c

@@ -748,7 +748,7 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg)
 
 
         if (!xs_is_null(mtype)) {
         if (!xs_is_null(mtype)) {
             if (xs_startswith(mtype, "image/") || xs_startswith(mtype, "video/") ||
             if (xs_startswith(mtype, "image/") || xs_startswith(mtype, "video/") ||
-                strcmp(mtype, "Image") == 0) {
+                strcmp(mtype, "Image") == 0 || strcmp(mtype, "Document") == 0) {
                 xs *matteid = xs_fmt("%s_%d", id, xs_list_len(matt));
                 xs *matteid = xs_fmt("%s_%d", id, xs_list_len(matt));
                 xs *matte   = xs_dict_new();
                 xs *matte   = xs_dict_new();