snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 39932b21ecb4598b318064229c7e36dd2b95c6e6
parent e9d2d148733a547fcd4fe680dbe83e754d6c0d81
Author: default <nobody@localhost>
Date:   Mon,  9 Oct 2023 22:56:11 +0200

mastoapi: also process "Document" type attachments.

Diffstat:
Mmastoapi.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mastoapi.c b/mastoapi.c @@ -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();