Added profile referer parameter to Gamma, needed for Dogfart.

This commit is contained in:
DebaucheryLibrarian
2026-02-24 05:07:23 +01:00
parent 791bd6bf27
commit 3329661135
2 changed files with 2 additions and 1 deletions

View File

@@ -423,6 +423,7 @@ const networks = [
parent: 'dfxtra',
parameters: {
layout: 'api',
profileReferer: 'https://www.dogfartnetwork.com',
},
},
{

View File

@@ -928,7 +928,7 @@ function scrapeApiProfile(data, releases, siteSlug) {
async function fetchApiProfile({ name: actorName }, context, include) {
const siteSlug = context.entity.slug || context.site?.slug || context.network?.slug;
const actorSlug = encodeURI(actorName);
const referer = `${context.entity.origin}/en/search`;
const referer = context.parameters.profileReferer || `${context.entity.origin}/en/search`;
const { apiUrl } = await fetchApiCredentials(referer);