Added NSFW compatibility
This commit is contained in:
@@ -14,6 +14,9 @@
|
||||
"public/rhpz_above_thread_list_clubs_buttons.json": {
|
||||
"hash": "c783001e00f7a63389c9ae988012f5fe"
|
||||
},
|
||||
"public/rhpz_account_preferences_nsfw_content.json": {
|
||||
"hash": "9feae814b9fa8f40a08e1b50e2d410c5"
|
||||
},
|
||||
"public/rhpz_account_wrapper_delete_account.json": {
|
||||
"hash": "6594c0474a9b3e737a10dbd9c531521e"
|
||||
},
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"template": "account_preferences",
|
||||
"description": "Add NSFW Content field to the settings",
|
||||
"execution_order": 10,
|
||||
"enabled": true,
|
||||
"action": "str_replace",
|
||||
"find": "<xf:macro id=\"helper_account::email_options_row\" arg-showConversationOption=\"{{ true }}\" />",
|
||||
"replace": "<xf:checkboxrow label=\"{{ phrase('entries_options') }}\">\n\t<xf:option value=\"true\" name=\"user[nsfw_content]\" checked=\"{{ $xf.visitor.nsfw_content == 1 ? true : false }}\"\n\t\t\t label=\"{{ phrase('enable_nsfw_entries') }}\">\n\t</xf:option>\n</xf:checkboxrow>\n$0"
|
||||
}
|
||||
Reference in New Issue
Block a user