forked from mirrors/treebird
Fix bug
FossilOrigin-Name: 45a716cf6c964458db6adcbe8b8e566575b056cdb8388cf4f2aa1641e696ea51
This commit is contained in:
parent
67094237a6
commit
bbaaa166a8
2 changed files with 5 additions and 2 deletions
|
@ -165,7 +165,7 @@ int try_interact_status(struct session* ssn, mastodont_t* api, char* id)
|
|||
res = mastodont_unmute_conversation(api, id, &storage, NULL);
|
||||
|
||||
mastodont_storage_cleanup(&storage);
|
||||
return ret;
|
||||
return res;
|
||||
}
|
||||
|
||||
char* construct_status_interactions_label(char* header, int val, size_t* size)
|
||||
|
@ -672,7 +672,7 @@ void status_interact(struct session* ssn, mastodont_t* api, char** data)
|
|||
|
||||
void api_status_interact(struct session* ssn, mastodont_t* api, char** data)
|
||||
{
|
||||
if (try_interact_status(ssn, api, ssn->post.id))
|
||||
if (try_interact_status(ssn, api, keystr(ssn->post.id)))
|
||||
{
|
||||
send_result(NULL, "application/json", "{\"status\":\"Success\"}", 0);
|
||||
}
|
||||
|
|
|
@ -107,4 +107,7 @@ void cleanup_media_ids(struct session* ssn, char** media_ids);
|
|||
// Redirects
|
||||
void notice_redirect(struct session* ssn, mastodont_t* api, char** data);
|
||||
|
||||
// API
|
||||
void api_status_interact(struct session* ssn, mastodont_t* api, char** data);
|
||||
|
||||
#endif // STATUS_H
|
||||
|
|
Loading…
Reference in a new issue