fixed getNotifications()

This commit is contained in:
ari melody 2024-07-02 13:50:53 +01:00
parent bc6d02d974
commit 015a3e65e1
Signed by: ari
GPG key ID: CF99829C92678188

View file

@ -97,7 +97,7 @@ export async function getNotifications(since_id, limit, types) {
let url = `https://${get(client).instance.host}/api/v1/notifications`; let url = `https://${get(client).instance.host}/api/v1/notifications`;
let params = new URLSearchParams(); let params = new URLSearchParams();
if (since_id) params.append("max_id", last_post_id); if (since_id) params.append("since_id", since_id);
if (limit) params.append("limit", limit); if (limit) params.append("limit", limit);
if (types) params.append("types", types.join(',')); if (types) params.append("types", types.join(','));
const params_string = params.toString(); const params_string = params.toString();