artalk 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artalk",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "backendMinVersion": "2.1.1",
5
5
  "license": "LGPL-3.0",
6
6
  "description": "A Selfhosted Comment System",
@@ -317,7 +317,7 @@ export default class Comment extends Component {
317
317
  }
318
318
 
319
319
  getIsRoot() {
320
- return this.parent === null
320
+ return this.data.rid === 0
321
321
  }
322
322
 
323
323
  getChildren() {
@@ -551,6 +551,8 @@ export default class Editor extends Component {
551
551
  const $travelPlace = Utils.createElement('<div></div>')
552
552
  $afterEl.after($travelPlace)
553
553
  $travelPlace.replaceWith(this.$el)
554
+
555
+ this.$el.classList.add('atk-fade-in') // 添加渐入动画
554
556
  }
555
557
 
556
558
  travelBack () {
@@ -93,6 +93,7 @@ export default class SidebarLayer extends Component {
93
93
  + `?pageKey=${encodeURIComponent(this.conf.pageKey)}`
94
94
  + `&site=${encodeURIComponent(this.conf.site || '')}`
95
95
  + `&user=${userData}`
96
+ + `&time=${+new Date()}`
96
97
  + `&referer=${encodeURIComponent(`${location.protocol}//${location.host}${location.pathname}`)}`
97
98
  + `${((this.conf.darkMode) ? `&darkMode=1` : ``)}`)
98
99