sbkwgh 8 anni fa
parent
commit
9223004642
1 ha cambiato i file con 2 aggiunte e 9 eliminazioni
  1. 2 9
      src/components/routes/UserPosts.vue

+ 2 - 9
src/components/routes/UserPosts.vue

@@ -4,10 +4,10 @@
 		<scroll-load
 			:loading='loadingPosts'
 			@loadNext='loadNewPosts'
-			v-if='sortedPosts.length'
+			v-if='posts.length'
 		>
 			<thread-post
-				v-for='(post, index) in sortedPosts'
+				v-for='(post, index) in posts'
 				:post='post'
 				:show-thread='true'
 				:class='{"post--last": index === posts.length-1}'
@@ -44,13 +44,6 @@
 				nextURL: ''
 			}
 		},
-		computed: {
-			sortedPosts () {
-				return this.posts.sort((a, b) => {
-					return new Date(a.createdAt) - new Date(b.createdAt)
-				})
-			}
-		},
 		methods: {
 			loadNewPosts () {
 				if(this.nextURL === null) return