[MIRROR] [s] Hotfix notes not belonging to players being shown to players [MDB IGNORE] (#9060)

* [s] Hotfix notes not belonging to players being shown to players

* [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

Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com>
Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-10-28 01:05:59 +01:00
committed by GitHub
parent a70956ad76
commit 8cdc9ebcdb
+1 -1
View File
@@ -654,7 +654,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)