Use existing constants instead of local redeclarations #18

Closed
opened 2026-07-25 11:18:18 +00:00 by GKaszewski · 0 comments
Owner

Severity: Low

src/service/mod.rs:304-305, 334-335: followers_collection_json and following_collection_json both declare const PAGE_SIZE: usize = 20 and const AP_CONTEXT: &str = "https://www.w3.org/ns/activitystreams" locally.

These are already defined in src/urls.rs (AP_CONTEXT and AP_PAGE_SIZE). Use the existing constants.

**Severity: Low** `src/service/mod.rs:304-305, 334-335`: `followers_collection_json` and `following_collection_json` both declare `const PAGE_SIZE: usize = 20` and `const AP_CONTEXT: &str = "https://www.w3.org/ns/activitystreams"` locally. These are already defined in `src/urls.rs` (`AP_CONTEXT` and `AP_PAGE_SIZE`). Use the existing constants.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GKaszewski/k-ap#18