PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.10.0
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.10.0
2.11.0 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 All 78 releases
← All changes | app/Models/User.php +13 -0 2.8.12.10.0 View file →
@@ -224,11 +224,24 @@
224 224 return $this->belongsToMany(Course::class, 'fcom_space_user', 'user_id', 'space_id')
225 225 ->withPivot([ 'role', 'created_at' ]);
226 226 }
227 227
228 + /**
229 + * @deprecated 2.8.2 Use notificationPreferences() - preferences no longer live
230 + * in fcom_notification_users.
231 + */
228 232 public function notificationSubscriptions()
229 233 {
230 234 return $this->hasMany(NotificationSubscription::class, 'user_id');
235 + }
236 +
237 + /**
238 + * Explicit notification preference overrides across every channel.
239 + * Recipient selection for email fan-outs is driven off this relation.
240 + */
241 + public function notificationPreferences()
242 + {
243 + return $this->hasMany(NotificationPreference::class, 'user_id', 'ID');
231 244 }
232 245
233 246 public function space_pivot()
234 247 {