Added avatar credit exclusion to profile interpolation.

This commit is contained in:
DebaucheryLibrarian 2026-02-07 17:26:21 +01:00
parent b62c705b76
commit f62e8d6bf6
3 changed files with 15 additions and 2 deletions

2
common

@ -1 +1 @@
Subproject commit ec4b15ce33a3a6306ee5024935ed2966502d3019
Subproject commit 1374f90397872eb7d14d7d0f6cde6dd8f66796dc

View File

@ -334,6 +334,16 @@ module.exports = {
'pornhub',
'freeones',
],
interpolation: {
excludeAvatarCredits: [ // never allow
'Pierre Woodman',
],
avoidAvatarCredits: [ // only allow as last resort
'AnalVids',
'Bang!',
'Cherry Pimps',
],
},
options: {
traxxx: {
// source: 'http://nsfw.unknown.name/random',

View File

@ -376,7 +376,10 @@ async function interpolateProfiles(actorIdsOrNames, refreshView) {
const { interpolateProfiles: interpolateProfilesUtil } = await actorsCommon;
try {
await interpolateProfilesUtil(actorIdsOrNames, commonContext, { refreshView });
await interpolateProfilesUtil(actorIdsOrNames, commonContext, {
refreshView,
...config.interpolation,
});
} catch (error) {
console.log(error);
}