diff --git a/fetchers/getProfile.js b/fetchers/getProfile.js index 84cef94..ae1e2c7 100644 --- a/fetchers/getProfile.js +++ b/fetchers/getProfile.js @@ -184,7 +184,6 @@ const getProfile = async (slug, lang) => { }, spaces: { numActiveInSpaces: rawData.numCanContributeTribes, - numFollowingSpaces: rawData.numFollowedTribes, spaces: rawData.followingTribesConnection.edges.map(space => ({ numItems: space.node.numItemsOfUser, url: quetrefy(space.node.url), @@ -194,7 +193,6 @@ const getProfile = async (slug, lang) => { })), }, topics: { - numFollowingTopics: rawData.numFollowedTopics, topics: rawData.expertiseTopicsConnection.edges.map(topic => ({ name: topic.node.name, url: quetrefy(topic.node.url), diff --git a/fetchers/getTopic.js b/fetchers/getTopic.js index 6f17241..8482e0d 100644 --- a/fetchers/getTopic.js +++ b/fetchers/getTopic.js @@ -30,8 +30,6 @@ const data = { name: rawData.name, url: quetrefy(rawData.url), image: rawData.photoUrl, - aliases: rawData.aliases, - numFollowers: rawData.numFollowers, // isLocked: rawData.isLocked, isAdult: rawData.adult, mostViewedAuthors: rawData.mostViewedAuthors.map(author => ({ diff --git a/views/pug/pages/profile.pug b/views/pug/pages/profile.pug index 12f76cc..87d83d5 100644 --- a/views/pug/pages/profile.pug +++ b/views/pug/pages/profile.pug @@ -145,8 +145,7 @@ block content section.profile__spaces.profile-spaces h2.heading.heading__secondary Spaces p.profile-spaces__info - span.profile-spaces__item Active in #{data.spaces.numActiveInSpaces},  - span.profile-spaces__item following #{data.spaces.numFollowingSpaces} spaces + span.profile-spaces__item Active in #{data.spaces.numActiveInSpaces} spaces ul.profile-spaces__list each space in data.spaces.spaces li.metadata-primary.profile-spaces__list-item @@ -160,9 +159,7 @@ block content span sensitive space section.profile__topics.profile-topics - h2.heading.heading__secondary.profile-topics__heading Topics - p.profile-topics__info - span.profile-topics__item Following #{data.topics.numFollowingTopics} topics + h2.heading.heading__secondary.profile-topics__heading Topics ul.profile-topics__list each topic in data.topics.topics li.metadata-primary.profile-topics__list-item diff --git a/views/pug/pages/topic.pug b/views/pug/pages/topic.pug index 8879459..dd8a3b6 100644 --- a/views/pug/pages/topic.pug +++ b/views/pug/pages/topic.pug @@ -15,12 +15,7 @@ block content .metadata-primary h1.heading.heading__primary.metadata-primary__heading.topic__name= data.name +proxifyImg(data.image)(class='metadata-primary__image', alt='', aria-hidden='true') - p.metadata-primary__misc - if data.aliases.length - span Also known as:  - span= data.aliases.join(', ') .metadata-secondary - +addMetadataSecondary('user','Followers', data.numFollowers) if data.isAdult +addMetadataSecondary('danger', 'Adult Topic', '18+', true) +quorafyUrl(meta.url)(class='link')