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:
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;
|
FrankerFaceZ.Logger = Logger;
|
||||||
|
|
||||||
const VER = FrankerFaceZ.version_info = {
|
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__,
|
commit: __git_commit__,
|
||||||
build: __webpack_hash__,
|
build: __webpack_hash__,
|
||||||
toString: () =>
|
toString: () =>
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
query ChannelPage_ChannelHeader {
|
query ChannelPage_ChannelHeader {
|
||||||
user {
|
user {
|
||||||
|
id
|
||||||
stream {
|
stream {
|
||||||
|
id
|
||||||
createdAt
|
createdAt
|
||||||
type
|
type
|
||||||
|
__typename
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,14 +1,18 @@
|
||||||
fragment channel on User {
|
fragment channel on User {
|
||||||
stream {
|
stream {
|
||||||
|
id
|
||||||
createdAt
|
createdAt
|
||||||
|
__typename
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment hostingChannel on User {
|
fragment hostingChannel on User {
|
||||||
hosting {
|
hosting {
|
||||||
stream {
|
stream {
|
||||||
|
id
|
||||||
createdAt
|
createdAt
|
||||||
type
|
type
|
||||||
|
__typename
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -84,6 +84,20 @@ export default class Following extends SiteModule {
|
||||||
this.modifyLiveHosts(res);
|
this.modifyLiveHosts(res);
|
||||||
}, false);
|
}, 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;
|
this.hosts = new WeakMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue