From 5174e16f7b85349b84b389fa334e122f9310616c Mon Sep 17 00:00:00 2001
From: MeiMei <30769358+mei23@users.noreply.github.com>
Date: Wed, 26 Dec 2018 23:11:51 +0900
Subject: Feature to show only my posts in the user page (#3753)
* Fix #3681
* Feature to show only my posts in the user page
---
src/client/app/desktop/views/pages/user/user.timeline.vue | 3 +++
1 file changed, 3 insertions(+)
(limited to 'src/client')
diff --git a/src/client/app/desktop/views/pages/user/user.timeline.vue b/src/client/app/desktop/views/pages/user/user.timeline.vue
index 6d1b23b403..0571ce76f1 100644
--- a/src/client/app/desktop/views/pages/user/user.timeline.vue
+++ b/src/client/app/desktop/views/pages/user/user.timeline.vue
@@ -4,6 +4,7 @@
{{ $t('default') }}
{{ $t('with-replies') }}
{{ $t('with-media') }}
+ {{ $t('my-posts') }}
{{ $t('empty') }}
@@ -65,6 +66,7 @@ export default Vue.extend({
limit: fetchLimit + 1,
untilDate: this.date ? this.date.getTime() : new Date().getTime() + 1000 * 86400 * 365,
includeReplies: this.mode == 'with-replies',
+ includeMyRenotes: this.mode != 'my-posts',
withFiles: this.mode == 'with-media'
}).then(notes => {
if (notes.length == fetchLimit + 1) {
@@ -85,6 +87,7 @@ export default Vue.extend({
userId: this.user.id,
limit: fetchLimit + 1,
includeReplies: this.mode == 'with-replies',
+ includeMyRenotes: this.mode != 'my-posts',
withFiles: this.mode == 'with-media',
untilDate: new Date((this.$refs.timeline as any).tail().createdAt).getTime()
});
--
cgit v1.2.3-freya