소스 검색

Update Timeline.vue, fix missing scope update

Daniel Supernault 6 년 전
부모
커밋
069aad301e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      resources/assets/js/components/Timeline.vue

+ 2 - 2
resources/assets/js/components/Timeline.vue

@@ -398,7 +398,7 @@
 			infiniteTimeline($state) {
 				let homeTimeline = '/api/v1/timelines/home';
 				let localTimeline = '/api/v1/timelines/public';
-				let apiUrl = this.scope == '/' ? homeTimeline : localTimeline;
+				let apiUrl = this.scope == 'home' ? homeTimeline : localTimeline;
 				axios.get(apiUrl, {
 					params: {
 						page: this.page,
@@ -424,7 +424,7 @@
 			loadMore() {
 				let homeTimeline = '/api/v1/timelines/home';
 				let localTimeline = '/api/v1/timelines/public';
-				let apiUrl = this.scope == '/' ? homeTimeline : localTimeline;
+				let apiUrl = this.scope == 'home' ? homeTimeline : localTimeline;
 				axios.get(apiUrl, {
 					params: {
 						page: this.page,