Fix search for tags
FossilOrigin-Name: 8a3a5cf950f6c46652c9bb3f78321c3c5ddd4229722a95bafa6535386a415e80
This commit is contained in:
parent
7e40d4ac35
commit
dc54088dec
2 changed files with 5 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue