mirror of https://github.com/usememos/memos.git
Allow any tag to trigger content blurring by setting blur_content=true in InstanceTagsSetting, replacing the previous hardcoded NSFW-only check. Changes: - proto: add bool blur_content field to InstanceTagMetadata (store) and InstanceSetting.TagMetadata (API v1); regenerate Go and TS bindings - server: thread BlurContent through convertInstanceTagsSettingFromStore and convertInstanceTagsSettingToStore conversion helpers - web/MemoView: replace tag.toUpperCase()==='NSFW' with a findTagMetadata() lookup on tagsSetting.blurContent; rename internal state nsfw/showNSFWContent/toggleNsfwVisibility to blurred/showBlurredContent/toggleBlurVisibility - web/TagsSection: add blur checkbox column and new-tag blur toggle to the admin tags settings UI - web/locales: rename click-to-show/hide-nsfw-content keys to click-to-show/hide-sensitive-content across all 30+ locale files; update English strings to 'sensitive content' phrasing Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| test | ||
| acl_config.go | ||
| acl_config_test.go | ||
| attachment_exif_test.go | ||
| attachment_service.go | ||
| auth_service.go | ||
| auth_service_client_info_test.go | ||
| common.go | ||
| connect_handler.go | ||
| connect_interceptors.go | ||
| connect_services.go | ||
| header_carrier.go | ||
| health_service.go | ||
| idp_service.go | ||
| instance_service.go | ||
| memo_attachment_service.go | ||
| memo_relation_service.go | ||
| memo_service.go | ||
| memo_service_converter.go | ||
| memo_service_filter.go | ||
| memo_share_service.go | ||
| reaction_service.go | ||
| resource_name.go | ||
| shortcut_service.go | ||
| sse_handler.go | ||
| sse_hub.go | ||
| sse_hub_test.go | ||
| user_service.go | ||
| user_service_stats.go | ||
| v1.go | ||