Ver Fonte

Added the 'header' field to verify_credentials.

Megalodon accepted, but now crashes on input.
default há 3 anos atrás
pai
commit
84077aa9eb
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      mastoapi.c

+ 1 - 0
mastoapi.c

@@ -675,6 +675,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
             acct = xs_dict_append(acct, "created_at",   xs_dict_get(snac1.config, "published"));
             acct = xs_dict_append(acct, "created_at",   xs_dict_get(snac1.config, "published"));
             acct = xs_dict_append(acct, "note",         xs_dict_get(snac1.config, "bio"));
             acct = xs_dict_append(acct, "note",         xs_dict_get(snac1.config, "bio"));
             acct = xs_dict_append(acct, "url",          snac1.actor);
             acct = xs_dict_append(acct, "url",          snac1.actor);
+            acct = xs_dict_append(acct, "header",       "");
 
 
             xs *avatar = NULL;
             xs *avatar = NULL;
             char *av   = xs_dict_get(snac1.config, "avatar");
             char *av   = xs_dict_get(snac1.config, "avatar");