Fix bug
This commit is contained in:
		@@ -111,12 +111,14 @@ export default Vue.extend({
 | 
			
		||||
 | 
			
		||||
			this.moreFetching = true;
 | 
			
		||||
 | 
			
		||||
			(this as any).api(this.endpoint, {
 | 
			
		||||
			const promise = (this as any).api(this.endpoint, {
 | 
			
		||||
				limit: fetchLimit + 1,
 | 
			
		||||
				untilId: (this.$refs.timeline as any).tail().id,
 | 
			
		||||
				includeMyRenotes: (this as any).clientSettings.showMyRenotes,
 | 
			
		||||
				includeRenotedMyNotes: (this as any).clientSettings.showRenotedMyNotes
 | 
			
		||||
			}).then(notes => {
 | 
			
		||||
			});
 | 
			
		||||
 | 
			
		||||
			promise.then(notes => {
 | 
			
		||||
				if (notes.length == fetchLimit + 1) {
 | 
			
		||||
					notes.pop();
 | 
			
		||||
				} else {
 | 
			
		||||
@@ -125,6 +127,8 @@ export default Vue.extend({
 | 
			
		||||
				notes.forEach(n => (this.$refs.timeline as any).append(n));
 | 
			
		||||
				this.moreFetching = false;
 | 
			
		||||
			});
 | 
			
		||||
 | 
			
		||||
			return promise;
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		onNote(note) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user