-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Adds public notes #28373
base: master
Are you sure you want to change the base?
Adds public notes #28373
Conversation
@@ -1,4 +1,4 @@ | |||
/proc/add_note(target_ckey, notetext, timestamp, adminckey, logged = 1, checkrights = 1, show_after = TRUE, automated = FALSE, sanitise_html = TRUE) // Dont you EVER disable this last param unless you know what you're doing |
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.
Edit comment to say automated.
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.
Comment changed to // Dont you EVER disable 'sanitise_html', only automated systems should use this
var/target_ckey = query_find_note_edit.item[1] | ||
var/text = query_find_note_edit.item[2] | ||
var/adminckey = query_find_note_edit.item[3] | ||
var/automated = query_find_note_edit.item[4] | ||
var/public = query_find_note_edit.item[5] |
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.
We don't need the text or target ckey here surely right?
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.
Its used in the logging.
I don't know if "public notes" is the right wording to convey what's being done. Public would infer that everyone can see your notes when in reality it's between the admins and the player who was noted. Visible notes instead? Or forgo the word public entirely and call the panel "my notes" |
What Does This PR Do
Adds public notes. Old notes are grandfathered in as private notes. Upon creation of a new note, admins will be able to choose if its public or private. Admins can toggle notes created by ONLY THEM between private and public. Only you can see your own public notes.
Why It's Good For The Game
Admins want it as an option. Its also helpful and healthy for the playerbase.
Testing
A lot of testing. Including setting up a DB. (ignore that I'm a headcoder and haven't done it yet.)


Player view.
Admin view.
Edit: The player-side is darkmode now!

Declaration
Changelog
🆑
add: Public player notes. View these with the "Show My Notes" OOC verb.