Fix search for tags

FossilOrigin-Name: 8a3a5cf950f6c46652c9bb3f78321c3c5ddd4229722a95bafa6535386a415e80
This commit is contained in:
me@ow.nekobit.net 2022-05-06 05:02:23 +00:00
parent 7e40d4ac35
commit dc54088dec
2 changed files with 5 additions and 4 deletions

View file

@ -46,7 +46,8 @@ struct mstdnt_search_results
size_t accts_len;
struct mstdnt_status* statuses;
size_t statuses_len;
// TODO tags
struct mstdnt_tag* tags;
size_t tags_len;
};
int mastodont_search(mastodont_t* data,

View file

@ -54,9 +54,9 @@ int mstdnt_search_from_result(struct mstdnt_storage* storage,
&(search_results->accts_len),
accounts);
mstdnt_tags_json(&(search_results->accts),
&(search_results->accts_len),
accounts);
mstdnt_tags_json(&(search_results->tags),
&(search_results->tags_len),
hashtags);
return 0;
}