@@ -72,6 +72,21 @@ module.exports = class {
|
||||
break
|
||||
}
|
||||
|
||||
case "Comment": {
|
||||
const storyKey = data.keys.find(k => k.model === "Story") || {}
|
||||
const chapterKey = data.keys.find(k => k.model === "Chapter")
|
||||
const chapter = data.objects.find(o => o.type === "Chapter") || {}
|
||||
const comment = data.objects.find(o => o.type === "Comment") || {}
|
||||
|
||||
this.state.operation += ' ' + comment.characterName + " comment in chapter"
|
||||
this.state.links = [{
|
||||
text: chapter.title || `ID (${chapterKey.id})`,
|
||||
href: `/story/${storyKey.id}#${chapterKey.id}`,
|
||||
}]
|
||||
|
||||
break
|
||||
}
|
||||
|
||||
case "Log": {
|
||||
const key = data.keys.find(k => k.id !== "*")
|
||||
|
||||
|
||||
@@ -68,6 +68,11 @@ class ChangesAPI {
|
||||
time
|
||||
nick
|
||||
}
|
||||
|
||||
...on Comment {
|
||||
chapterId
|
||||
characterName
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user