PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.10.01
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.10.01
2.10.0 2.10.01 2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 1.1.0 All 77 releases
← All changes | app/Http/Controllers/NotificationsController.php +2 -1 2.6.02.10.01 View file →
@@ -54,8 +54,9 @@
54 54 $data = [
55 55 'notifications' => $unreadNotifications,
56 56 'unread_count' => Notification::byStatus('unread', get_current_user_id())->count()
57 57 ];
58 +
58 59 return apply_filters('fluent_community/unread_notifications_api_response', $data, $request->all());
59 60 }
60 61
61 62 public function markAllRead(Request $request)
@@ -88,9 +89,9 @@
88 89 }
89 90
90 91 public function markAsReadByFeedId(Request $request, $feedId)
91 92 {
92 - $feed = Feed::findOrfail($feedId);
93 + $feed = Feed::withoutGlobalScopes()->findOrFail($feedId);
93 94
94 95 NotificationSubscriber::whereHas('notification', function ($query) use ($feed) {
95 96 return $query->where('feed_id', $feed->id);
96 97 })