slon/Slon/Endpoints/Get/ActivityPub.HC
Alec Murphy bd8c5009fc Slon/Endpoints/Get/ActivityPub: Properly check for JSON in Accept header
Unlike whatever the hell I was thinking with 5f2ed89, sleep deprivation,
maybe? Oh well.
2025-03-19 12:38:24 -04:00

4 lines
155 B
HolyC

if (String.BeginsWith("/users/", session->path()) && StrFind("json", session->header("accept"))) {
@slon_activitypub_users_get(session);
return;
}