MediaWiki integration & integration architecture improvements . #16
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/6-mediawiki_integration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #6
@ -263,3 +136,4 @@robot.logger.debug(`[hubot-kredits] Proposal created (${proposal.description})`);// messageRoom(`Let's give ${contributor.name} some kredits for ${proposal.url} (${proposal.description}): https://kredits.kosmos.org`);});});👍
This branch works with GitHub now!
do we need a
const util = require('util');in this file?Please ignore the code until I have pushed all of my changes. Thanks.
Correction: it works on my machine, but I have to push some more fixes, when I'm done.
All done! \o/
👍
@ -0,0 +21,4 @@let contrib = contributors.find(c => {if (typeof c.accounts !== 'object') { return false; }return c.accounts.find(a => {a.url === `${process.env.KREDITS_MEDIAWIKI_URL}User:${username}`;do we need to do a toLowerCase or something to compare the usernames?
@ -0,0 +25,4 @@});});if (!contrib) {throw new Error();could provider an error message here, something like
contributor not found ${username}@ -0,0 +21,4 @@let contrib = contributors.find(c => {if (typeof c.accounts !== 'object') { return false; }return c.accounts.find(a => {a.url === `${process.env.KREDITS_MEDIAWIKI_URL}User:${username}`;Ideally we have the correct usernames on the blockchain. I haven't looked into the MediaWiki specifics there.
@ -0,0 +21,4 @@let contrib = contributors.find(c => {if (typeof c.accounts !== 'object') { return false; }return c.accounts.find(a => {a.url === `${process.env.KREDITS_MEDIAWIKI_URL}User:${username}`;we only have the usernames in the IPFS profile. which actually is fine because we want to store as little as possible in the contract