-
Notifications
You must be signed in to change notification settings - Fork 3.1k
增加了用户对其它用户的屏蔽功能 #373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
增加了用户对其它用户的屏蔽功能 #373
Conversation
controllers/sign.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我正在看这个 pr,这个地方其实应该写 user.toObject({virtual: true}) 的,因为这样一来可以把 avatar_url 也提取出来。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不过这部分的逻辑我已经改过了,所以 .toObject 就用不到了。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
用户之间的关注功能取消了对吧?我也觉得那东西可以取消了。
card.html 那里还有些东西可以删,也是关于关注和被关注的。
我得好好看看这个 pr,影响比较多。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没取消,侧栏里的card已经有关注和取消按钮了,这里再有就重复了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我觉得关注可以保留着,以后基于这个可以做点功能
|
屏蔽用户的功能。。这个。。我觉得吧,加个禁言功能就好了,把 kingapple 禁言就好了。 |
|
同意,加这项功能纯粹就为了屏蔽这货 |
|
谢谢哈。真的很不好意思让你白写了那么多代码,老实说你的代码质量不错,测试也有。:) |
|
目的已经达到就行咯:) |
RT