Elektrine lite

← Feed

@Sandbar_Trekker@piefed.zip

Post #4272358

2026-07-23 22:30 UTC

Edit: I was thinking of the default defederation list As far as I understand it, it’s not “hardcoded” in the sense that all piefed instances have it (otherwise I wouldn’t be able to respond to you). From what I understand, there is a default list, but this can be edited by any instance admins.

Replies (2)

  • @OpenStars@discuss.online 2026-07-24 04:06

    Precisely. We could point people to the very dictionary definition of the word, but it seems not to change many people’s mind who have already decided which “camp” they want to be in, and that they will (attempt to) preempt the word to mean… whatever they feel like. Hard coding is the software development practice of embedding data directly into the source code of a program or other executable object, as opposed to obtaining the data from external sources or generating it at runtime. Hard-coded data typically can be modified only by editing the source code and recompiling the executable Therefore, a statement like IF (instance-set-variable) THEN { ... implement block } is by definition not “hard-coding”, bc it asks the instance admin what value it wants for that variable, and then only conditionally runs the code to set the instance block if the admin asks it to. There are plenty of things to criticize PieFed for, but “hard-coding instance blocks” is not one of them. (And now it seems the same error was made regarding Tesseract.)

    Open ##4272356

  • No! There is a hardcoded instance list to determine whether a piefed instance is considered to have a good “defederation policy” or not. codeberg.org/rimu/pyfedi/…/instance_chooser.html Line 562 // Handle federation status const watchedDomains = { 'hexbear.net': 'hexbear-status', 'hilariouschaos.com': 'hilariouschaos-status', 'lemmygrad.ml': 'lemmygrad-status', 'lemmy.ml': 'lemmy-status', 'gregtech.eu': 'lemvotes-status', }; const defederatedDomains = instance.defederation || []; countDefederated = 0; Object.entries(watchedDomains).forEach(([domain, elementId]) => { const statusElement = document.getElementById(elementId); const isDefederated = defederatedDomains.includes(domain); if (isDefederated) { countDefederated += 1 } }); if(countDefederated >= 3) defederationQuality = 'Good'; else if(countDefederated === 2) defederationQuality = 'Ok'; else if(countDefederated === 1) defederationQuality = 'Minimal'; else if(countDefederated < 1) defederationQuality = 'None';

    Open ##4280455