mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-24 00:23:38 +00:00
Fixed crash in mastoapi search.
This commit is contained in:
parent
e2ef581e84
commit
9bb08cfd51
1 changed files with 1 additions and 1 deletions
|
@ -1436,7 +1436,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
|||
/* reply something only for offset 0; otherwise,
|
||||
apps like Tusky keep asking again and again */
|
||||
|
||||
if (!xs_is_null(q) && strcmp(type, "accounts") == 0) {
|
||||
if (!xs_is_null(q) && !xs_is_null(type) && strcmp(type, "accounts") == 0) {
|
||||
/* do a webfinger query */
|
||||
char *actor = NULL;
|
||||
char *user = NULL;
|
||||
|
|
Loading…
Reference in a new issue