fds
FossilOrigin-Name: 5d5981b69775e6a342a9f2980e2c020624e26799dc085ac1d8bdda77400ca5b4
This commit is contained in:
parent
9f44fa8623
commit
9c70d7f1b5
2 changed files with 11 additions and 11 deletions
|
@ -29,7 +29,7 @@ void load_instance_info_cache(mastodont_t* api)
|
|||
.flags = config_library_flags,
|
||||
};
|
||||
mstdnt_instance_panel(api, &m_args, &(g_cache.panel_html));
|
||||
mastodont_terms_of_service(api, &m_args, &(g_cache.tos_html));
|
||||
mstdnt_terms_of_service(api, &m_args, &(g_cache.tos_html));
|
||||
}
|
||||
|
||||
void free_instance_info_cache()
|
||||
|
|
|
@ -86,7 +86,7 @@ void tl_home(REQUEST_T req, struct session* ssn, mastodont_t* api, int local)
|
|||
struct mstdnt_status* statuses = NULL;
|
||||
struct mstdnt_storage storage = { 0 };
|
||||
|
||||
struct mastodont_timeline_args args = {
|
||||
struct mstdnt_timeline_args args = {
|
||||
.with_muted = MSTDNT_TRUE,
|
||||
.local = local,
|
||||
// Converts to `enum mstdnt_reply_visibility' nicely
|
||||
|
@ -104,7 +104,7 @@ void tl_home(REQUEST_T req, struct session* ssn, mastodont_t* api, int local)
|
|||
|
||||
try_post_status(ssn, api);
|
||||
|
||||
mastodont_timeline_home(api, &m_args, &args, &storage, &statuses, &statuses_len);
|
||||
mstdnt_timeline_home(api, &m_args, &args, &storage, &statuses, &statuses_len);
|
||||
|
||||
content_timeline(req, ssn, api, &storage, statuses, statuses_len, BASE_CAT_HOME, NULL, 1, 0);
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ void tl_direct(REQUEST_T req, struct session* ssn, mastodont_t* api)
|
|||
struct mstdnt_status* statuses = NULL;
|
||||
struct mstdnt_storage storage = { 0 };
|
||||
|
||||
struct mastodont_timeline_args args = {
|
||||
struct mstdnt_timeline_args args = {
|
||||
.with_muted = 1,
|
||||
.max_id = keystr(ssn->post.max_id),
|
||||
// Converts to `enum mstdnt_reply_visibility' nicely
|
||||
|
@ -132,7 +132,7 @@ void tl_direct(REQUEST_T req, struct session* ssn, mastodont_t* api)
|
|||
|
||||
try_post_status(ssn, api);
|
||||
|
||||
mastodont_timeline_direct(api, &m_args, &args, &storage, &statuses, &statuses_len);
|
||||
mstdnt_timeline_direct(api, &m_args, &args, &storage, &statuses, &statuses_len);
|
||||
|
||||
content_timeline(req, ssn, api, &storage, statuses, statuses_len, BASE_CAT_DIRECT, "Direct", 0, 0);
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ void tl_public(REQUEST_T req, struct session* ssn, mastodont_t* api, int local,
|
|||
struct mstdnt_status* statuses = NULL;
|
||||
struct mstdnt_storage storage = { 0 };
|
||||
|
||||
struct mastodont_timeline_args args = {
|
||||
struct mstdnt_timeline_args args = {
|
||||
.with_muted = MSTDNT_TRUE,
|
||||
.local = local ? MSTDNT_TRUE : MSTDNT_FALSE,
|
||||
.remote = 0,
|
||||
|
@ -162,7 +162,7 @@ void tl_public(REQUEST_T req, struct session* ssn, mastodont_t* api, int local,
|
|||
|
||||
try_post_status(ssn, api);
|
||||
|
||||
mastodont_timeline_public(api, &m_args, &args, &storage, &statuses, &statuses_len);
|
||||
mstdnt_timeline_public(api, &m_args, &args, &storage, &statuses, &statuses_len);
|
||||
|
||||
content_timeline(req, ssn, api, &storage, statuses, statuses_len, cat, NULL, 1, 0);
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ void tl_list(REQUEST_T req, struct session* ssn, mastodont_t* api, char* list_id
|
|||
struct mstdnt_status* statuses = NULL;
|
||||
struct mstdnt_storage storage = { 0 };
|
||||
|
||||
struct mastodont_timeline_args args = {
|
||||
struct mstdnt_timeline_args args = {
|
||||
.max_id = keystr(ssn->post.max_id),
|
||||
.since_id = NULL,
|
||||
// Converts to `enum mstdnt_reply_visibility' nicely
|
||||
|
@ -189,7 +189,7 @@ void tl_list(REQUEST_T req, struct session* ssn, mastodont_t* api, char* list_id
|
|||
|
||||
try_post_status(ssn, api);
|
||||
|
||||
mastodont_timeline_list(api, &m_args, list_id, &args, &storage, &statuses, &statuses_len);
|
||||
mstdnt_timeline_list(api, &m_args, list_id, &args, &storage, &statuses, &statuses_len);
|
||||
|
||||
content_timeline(req, ssn, api, &storage, statuses, statuses_len, BASE_CAT_LISTS, "List timeline", 0, 0);
|
||||
}
|
||||
|
@ -204,7 +204,7 @@ void tl_tag(REQUEST_T req, struct session* ssn, mastodont_t* api, char* tag_id)
|
|||
struct mstdnt_status* statuses = NULL;
|
||||
struct mstdnt_storage storage = { 0 };
|
||||
|
||||
struct mastodont_timeline_args args = {
|
||||
struct mstdnt_timeline_args args = {
|
||||
.max_id = keystr(ssn->post.max_id),
|
||||
.since_id = NULL,
|
||||
// Converts to `enum mstdnt_reply_visibility' nicely
|
||||
|
@ -216,7 +216,7 @@ void tl_tag(REQUEST_T req, struct session* ssn, mastodont_t* api, char* tag_id)
|
|||
.limit = 20,
|
||||
};
|
||||
|
||||
mastodont_timeline_tag(api, &m_args, tag_id, &args, &storage, &statuses, &statuses_len);
|
||||
mstdnt_timeline_tag(api, &m_args, tag_id, &args, &storage, &statuses, &statuses_len);
|
||||
|
||||
easprintf(&header, "Hashtag - #%s", tag_id);
|
||||
|
||||
|
|
Loading…
Reference in a new issue