mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-05 10:38:30 +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:
parent
80282914c4
commit
44e33fbf27
4 changed files with 22 additions and 1 deletions
|
@ -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: () =>
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
query ChannelPage_ChannelHeader {
|
||||
user {
|
||||
id
|
||||
stream {
|
||||
id
|
||||
createdAt
|
||||
type
|
||||
__typename
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,14 +1,18 @@
|
|||
fragment channel on User {
|
||||
stream {
|
||||
id
|
||||
createdAt
|
||||
__typename
|
||||
}
|
||||
}
|
||||
|
||||
fragment hostingChannel on User {
|
||||
hosting {
|
||||
stream {
|
||||
id
|
||||
createdAt
|
||||
type
|
||||
__typename
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue