File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -1039,14 +1039,15 @@ function whoGets($groups=null, $recipients=null)
1039
1039
$ originalProfile = $ original ->getProfile ();
1040
1040
}
1041
1041
}
1042
- foreach ($ ni as $ id => $ source ) {
1043
- $ user = User::staticGet ('id ' , $ id );
1044
- if (empty ($ user ) || $ user ->hasBlocked ($ profile ) ||
1045
- ($ originalProfile && $ user ->hasBlocked ($ originalProfile ))) {
1046
- unset($ ni [$ id ]);
1047
- }
1048
- }
1049
1042
}
1043
+
1044
+ foreach ($ ni as $ id => $ source ) {
1045
+ $ user = User::staticGet ('id ' , $ id );
1046
+ if (empty ($ user ) || $ user ->hasBlocked ($ profile ) ||
1047
+ ($ originalProfile && $ user ->hasBlocked ($ originalProfile ))) {
1048
+ unset($ ni [$ id ]);
1049
+ }
1050
+ }
1050
1051
1051
1052
// Give plugins a chance to filter out...
1052
1053
Event::handle ('EndNoticeWhoGets ' , array ($ this , &$ ni ));
@@ -1320,7 +1321,7 @@ function saveReplies()
1320
1321
$ original = $ this ->getOriginal ();
1321
1322
if (!empty ($ original )) { // that'd be weird
1322
1323
$ author = $ original ->getProfile ();
1323
- if (!empty ($ author )) {
1324
+ if (!empty ($ author ) && ! $ author -> hasBlocked ( $ sender ) ) {
1324
1325
$ this ->saveReply ($ author ->id );
1325
1326
$ replied [$ author ->id ] = 1 ;
1326
1327
self ::blow ('reply:stream:%d ' , $ author ->id );
You can’t perform that action at this time.
0 commit comments