diff options
author | default <nobody@localhost> | 2023-10-09 22:56:11 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-10-09 22:56:11 +0200 |
commit | 39932b21ecb4598b318064229c7e36dd2b95c6e6 (patch) | |
tree | 82c7112fee63e0180a45825d0562d55614d5b3ac | |
parent | e9d2d148733a547fcd4fe680dbe83e754d6c0d81 (diff) |
mastoapi: also process "Document" type attachments.
-rw-r--r-- | mastoapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -748,7 +748,7 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg) if (!xs_is_null(mtype)) { 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 *matte = xs_dict_new(); |