diff --git a/public/js/timeline.js b/public/js/timeline.js index 9a82de432..5e409d7fd 100644 Binary files a/public/js/timeline.js and b/public/js/timeline.js differ diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 629015637..c5c0513a2 100644 Binary files a/public/mix-manifest.json and b/public/mix-manifest.json differ diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index 76e6abc76..a518ce327 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -227,12 +227,12 @@ See All

-
+
Loading...
-
+
@@ -262,7 +262,12 @@

- +
+
+ +
+
+

@@ -318,6 +323,7 @@ min_id: 0, max_id: 0, notifications: {}, + notificationCursor: 2, stories: {}, suggestions: {}, loading: true, @@ -438,17 +444,44 @@ fetchNotifications() { axios.get('/api/v1/notifications') .then(res => { - this.notifications = res.data.filter(n => { + let data = res.data.filter(n => { if(n.type == 'share' && !status) { return false; } return true; }); + this.notifications = data; $('.notification-card .loader').addClass('d-none'); $('.notification-card .contents').removeClass('d-none'); }); }, + infiniteNotifications($state) { + if(this.notificationCursor > 10) { + $state.complete(); + return; + } + axios.get('/api/v1/notifications', { + params: { + page: this.notificationCursor + } + }).then(res => { + if(res.data.length) { + let data = res.data.filter(n => { + if(n.type == 'share' && !status) { + return false; + } + return true; + }); + this.notifications.push(...data); + this.notificationCursor++; + $state.loaded(); + } else { + $state.complete(); + } + }); + }, + reportUrl(status) { let type = status.in_reply_to ? 'comment' : 'post'; let id = status.id; diff --git a/resources/views/site/fediverse.blade.php b/resources/views/site/fediverse.blade.php index 91b21fed2..b2a84fe0e 100644 --- a/resources/views/site/fediverse.blade.php +++ b/resources/views/site/fediverse.blade.php @@ -8,10 +8,13 @@

Fediverse is a portmanteau of “federation” and “universe”. It is a common, informal name for a somewhat broad federation of social network servers.

-

Supported Fediverse Projects

+

Supported Fediverse Projects

+

This is a partial list of well known supported projects

    -
  • Mastodon – A federated twitter alternative.
  • Anfora – Self-hosted photo gallery social network.
  • +
  • Pleroma – A federated microblogging alternative.
  • +
  • Mastodon – A federated microblogging alternative.
  • +
  • Misskey – A federated microblogging alternative.
@endsection