commit 39932b2

default  ·  2023-10-09 20:56:11 +0000 UTC
parent e9d2d14
mastoapi: also process "Document" type attachments.
1 files changed,  +1, -1
+1, -1
1@@ -748,7 +748,7 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg)
2 
3         if (!xs_is_null(mtype)) {
4             if (xs_startswith(mtype, "image/") || xs_startswith(mtype, "video/") ||
5-                strcmp(mtype, "Image") == 0) {
6+                strcmp(mtype, "Image") == 0 || strcmp(mtype, "Document") == 0) {
7                 xs *matteid = xs_fmt("%s_%d", id, xs_list_len(matt));
8                 xs *matte   = xs_dict_new();
9