summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-10-09 22:56:11 +0200
committerGravatar default2023-10-09 22:56:11 +0200
commit39932b21ecb4598b318064229c7e36dd2b95c6e6 (patch)
tree82c7112fee63e0180a45825d0562d55614d5b3ac
parentBackport from xs. (diff)
downloadsnac2-39932b21ecb4598b318064229c7e36dd2b95c6e6.tar.gz
snac2-39932b21ecb4598b318064229c7e36dd2b95c6e6.tar.xz
snac2-39932b21ecb4598b318064229c7e36dd2b95c6e6.zip
mastoapi: also process "Document" type attachments.
-rw-r--r--mastoapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 3473781..3b0cd3e 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -748,7 +748,7 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg)
748 748
749 if (!xs_is_null(mtype)) { 749 if (!xs_is_null(mtype)) {
750 if (xs_startswith(mtype, "image/") || xs_startswith(mtype, "video/") || 750 if (xs_startswith(mtype, "image/") || xs_startswith(mtype, "video/") ||
751 strcmp(mtype, "Image") == 0) { 751 strcmp(mtype, "Image") == 0 || strcmp(mtype, "Document") == 0) {
752 xs *matteid = xs_fmt("%s_%d", id, xs_list_len(matt)); 752 xs *matteid = xs_fmt("%s_%d", id, xs_list_len(matt));
753 xs *matte = xs_dict_new(); 753 xs *matte = xs_dict_new();
754 754