1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-05 18:48:31 +00:00

4.0.0-rc15.1

* Fixed: Issue with channel metadata not loading correctly on channel pages.
* Changed: Attempt to display stream up-time data on the Discover page. This currently only works if you don't load that page directly.
This commit is contained in:
SirStendec 2019-03-18 23:46:20 -04:00
parent 80282914c4
commit 44e33fbf27
4 changed files with 22 additions and 1 deletions

View file

@ -149,7 +149,7 @@ ${typeof x[1] === 'string' ? x[1] : JSON.stringify(x[1], null, 4)}`
FrankerFaceZ.Logger = Logger;
const VER = FrankerFaceZ.version_info = {
major: 4, minor: 0, revision: 0, extra: '-rc15',
major: 4, minor: 0, revision: 0, extra: '-rc15.1',
commit: __git_commit__,
build: __webpack_hash__,
toString: () =>

View file

@ -1,8 +1,11 @@
query ChannelPage_ChannelHeader {
user {
id
stream {
id
createdAt
type
__typename
}
}
}

View file

@ -1,14 +1,18 @@
fragment channel on User {
stream {
id
createdAt
__typename
}
}
fragment hostingChannel on User {
hosting {
stream {
id
createdAt
type
__typename
}
}
}

View file

@ -84,6 +84,20 @@ export default class Following extends SiteModule {
this.modifyLiveHosts(res);
}, false);
this.apollo.registerModifier('Shelves', res => {
const shelves = get('data.shelves.edges', res);
if ( ! Array.isArray(shelves) )
return;
for(const shelf of shelves) {
const edges = get('node.content.edges', shelf);
if ( ! Array.isArray(edges) )
continue;
shelf.node.content.edges = this.parent.processNodes(edges);
}
}, false);
this.hosts = new WeakMap;
}