Browse Source

Merge branch 'develop'

xielin 5 years ago
parent
commit
f360f87532
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/Repositories/FeedRepositories.php

+ 4 - 0
app/Repositories/FeedRepositories.php

@@ -80,6 +80,10 @@ class FeedRepositories
         if ($feedType) {
         if ($feedType) {
             $data = [];
             $data = [];
             foreach ($fans as $fan) {
             foreach ($fans as $fan) {
+                // 不记录自己的其他行为到自己的关注列表,除了发布
+                if($fan ==$request['target_id'] && $feedType != 6){
+                    continue;
+                }
                 $number = substr($fan, -1);
                 $number = substr($fan, -1);
                 $data['uid'] = $fan;
                 $data['uid'] = $fan;
                 $data['follow_uid'] = $request['target_id'];
                 $data['follow_uid'] = $request['target_id'];