Merge pull request #830 from pixelfed/frontend-ui-refactor
Frontend ui refactor
This commit is contained in:
commit
985af8c0a5
2
public/js/timeline.js
vendored
2
public/js/timeline.js
vendored
File diff suppressed because one or more lines are too long
|
@ -8,5 +8,5 @@
|
|||
"/js/micro.js": "/js/micro.js?id=69703f96f09e6ff04be6",
|
||||
"/js/profile.js": "/js/profile.js?id=dd006b565cac9962d5ad",
|
||||
"/js/status.js": "/js/status.js?id=281d075819ccc5ea794d",
|
||||
"/js/timeline.js": "/js/timeline.js?id=6a87d35b5038f2968eb8"
|
||||
"/js/timeline.js": "/js/timeline.js?id=5bd746e687f9a8a894b7"
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue