1
0
mirror of synced 2026-05-22 14:03:14 +00:00
Commit Graph

27 Commits

Author SHA1 Message Date
Rafael dos Santos Silva 3af3307708 FEATURE: Add group, category, and display restrictions for signatures (#105)
* FEATURE: Add group, category, and display restrictions for signatures

Adds five new site settings to control signature behavior:

- signatures_allowed_groups: restrict signatures to specific groups
  (server-side enforced in both serializers and user update hook)
- signatures_show_in_categories: limit signature display to specific categories
- signatures_first_post_only: only show signatures on the OP
- signatures_max_length: cap advanced mode signature length
- signatures_max_image_height: constrain signature image height

Also hardens URL validation (HTTP/HTTPS only) and reduces
signature_url max_length from 32KB to 2048.

All defaults are backward-compatible (empty/false = no change).
2026-03-12 15:52:35 -04:00
Régis Hanol 675089accb FIX: saving preferences wasn't working (#93)
register_editable_user_custom_field is "singular" and only access one
"custom field" as a parameter.

the fix was to call register_editable_user_custom_field for each custom
fields this plugin uses.

also added a bunch of system specs to ensure the basics of the plugin
actually works.

Internal ref - t/161823
2025-09-02 08:30:23 +10:00
Loïc Guitaut c67a67f1b3 DEV: Update rubocop-discourse to latest version 2024-05-17 17:58:00 +02:00
Jarek Radosz a5606e0d4c DEV: Update linting (#55) 2024-01-16 17:48:38 +01:00
Penar Musaraj 03ad57167e DEV: Linting fix (#53) 2024-01-08 15:50:29 -06:00
Daniel Waterworth edcf489ddf Merge pull request from GHSA-mvm7-38pf-q9fv 2024-01-08 16:40:10 -05:00
Martin Brennan f31600fce8 Update plugin.rb metadata (#52)
Co-authored-by: AlexDev <104522507+alexdevlaeminck@users.noreply.github.com>
2023-11-03 14:53:15 -07:00
David Taylor 8e3dcb97c1 DEV: Introduce syntax_tree for ruby formatting (#36) 2022-12-29 13:34:38 +01:00
David Taylor 830ea225df FIX: Remove register_asset call for .hbs file (#34)
Files in the `assets/javascripts` directory are automatically compiled, so this was introducing a duplicate. In the latest version of Discourse this also triggers a build error
2022-11-24 18:52:21 +00:00
Jarek Radosz 18b047121b DEV: General cleanup (#28)
Drop es6 suffix, fix Ember global usage, fix typos, update deps, add prettierrc, remove an obsolete codepath, fix pluginId.
2022-04-06 12:19:24 +02:00
communiteq e5147551f0 Add 'signatures_visible_by_default' setting (#17)
Co-authored-by: Richard <richard@communiteq.com>
2022-01-19 11:04:31 -03:00
Simon Cossar deca01facb Update the about field (#15) 2021-10-06 16:53:59 -07:00
Krzysztof Kotlarek edee23c5a7 FIX: check if allow_public_user_custom_field exisits 2020-07-27 12:02:33 +10:00
Krzysztof Kotlarek 01765454b2 FIX: compatibility after allowlist rewording in Discourse 2020-07-15 09:32:45 +10:00
David Taylor 2766a4d01d FIX: Only serialize user custom fields specific to this plugin 2019-08-13 11:13:41 +01:00
David Taylor e4ea890f77 DEV: Do not require restart to enable signatures
add_to_serializer checks whether the plugin is enabled at runtime, and supports multisite environments
2019-08-13 11:08:28 +01:00
Guo Xiang Tan c33594146a Add frozen string literal comment to files. 2019-05-13 11:02:53 +08:00
David Taylor 4e927e0824 Update URL in metadata 2018-09-11 11:26:11 +01:00
David Taylor 6a6b51ccfa FIX: Make user custom fields editable 2018-09-11 10:57:50 +01:00
Dmitry Fedyuk a1d020273c A spelling correction. 2018-04-03 19:55:00 +06:00
Sam 3b61cf4abf FIX: don't cook nil signature
if a user has no signature set do not attempt to cook it
2017-08-29 08:26:14 -04:00
Sam 9713b602b1 FIX: don't infinite recursion on user save 2017-08-28 18:01:17 -04:00
Rafael dos Santos Silva dc1092f336 FEATURE: 2.0
- Cook on advanced mode is server side and properly cached now

- Remove deprecated dependencies on client-side code

Attention: Users on advanced mode from previous versions should re-enter
their signatures.
2017-07-24 21:18:11 -03:00
Richard 4a2ea02e2e Fix error on Akismet admin screen 2017-03-14 17:28:30 +00:00
Rafael dos Santos Silva 319230e703 1.0.0 Version
This version adds advanced mode, and some little refactors
2016-04-08 17:30:39 -04:00
Rafael dos Santos Silva 1ff4e7e1d5 New and improved working version 2015-12-06 15:56:46 -02:00
Rafael dos Santos Silva abdb17f080 First Commit 2015-09-28 20:55:31 -03:00