Fix bug where others could still change your name

Problem: There was one missing component that would filter out nicknames
from other people. This caused a problem where we could get a name for a
feed but it could've been assigned by a friend, which we don't want
right now.

Solution: Ensure that the subject of the message is the same as the
author of the message.
This commit is contained in:
Christian Bundy 2020-02-09 13:50:49 -08:00
parent 74e6925058
commit 410b97e9e4
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ module.exports = ({ cooler, isPublic }) => {
{
$filter: {
dest: feedId,
value: { content: { type: "about", about: feedId } }
value: { author: feedId, content: { type: "about", about: feedId } }
}
}
]