Skip to content

Commit

Permalink
fix(#28): changed fakercloud url to cloudflare-ipfs.com (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
prisis authored Jan 12, 2022
1 parent d175aa1 commit 2fafe7b
Show file tree
Hide file tree
Showing 2 changed files with 211 additions and 117 deletions.
9 changes: 6 additions & 3 deletions lib/internet.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@ var Internet = function (faker) {
*/
self.avatar = function () {
return (
'https://cdn.fakercloud.com/avatars/' +
faker.random.arrayElement(faker.definitions.internet.avatar_uri)
'https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/' +
faker.random.number(1249) +
'.jpg'
);
};

self.avatar.schema = {
description: 'Generates a URL for an avatar.',
sampleResults: ['https://cdn.fakercloud.com/avatars/sydlawrence_128.jpg'],
sampleResults: [
'https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/754.jpg',
],
};

/**
Expand Down
Loading

0 comments on commit 2fafe7b

Please sign in to comment.