Skip to content

Commit

Permalink
修改:[views]和[关注用户]不统计自己
Browse files Browse the repository at this point in the history
  • Loading branch information
skywalker512 committed Jul 16, 2018
1 parent e5465d4 commit d175522
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions addons/plugins/MemberNotifications/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public function init()
public function handler_memberController_initProfile($sender, $member, $panes, $controls, $actions)
{
if (!ET::$session->user) return;
// 不关注自己
if ($member["memberId"] == ET::$session->userId) return;

$starred = @$member["follow"];

Expand Down
2 changes: 1 addition & 1 deletion addons/plugins/Views/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function handler_conversationController_conversationIndexDefault($sender,
{
$sender->addCSSFile($this->resource("views.css"));

//if ($conversation["startMemberId"] == ET::$session->userId) return;
if ($conversation["startMemberId"] == ET::$session->userId) return;

$conversation["views"]++;

Expand Down

0 comments on commit d175522

Please sign in to comment.