[s] Hotfix notes not belonging to players being shown to players (#62352)

See title.
Other players will no longer see other player's notes when they connect to the server.
Memos will still be shown to admins.

Things that I have tested in the making of this PR:

    Notes of a player not being shown to other players definitely work
    Notes of a player being shown to a player definitely work.
    Memos are still shown to admins.

Closes #62348
This commit is contained in:
Watermelon914
2021-10-26 18:53:01 +01:00
committed by GitHub
parent a721326ebe
commit 9c3fb6cfd7
+1 -1
View File
@@ -651,7 +651,7 @@
WHERE type = :type
AND deleted = 0
AND (expire_timestamp > NOW() OR expire_timestamp IS NULL)
AND ((type != 'message' AND type != 'watchlist entry') OR targetckey = :targetckey)
AND (type = 'memo' OR targetckey = :targetckey)
[after_timestamp? "AND timestamp > :after_timestamp": ""]
[!show_secret? "AND secret = 0": ""]
"}, parameters)