discourse/app/serializers
Gary Pendergast 9d14492f22
FIX: When displaying a reviewable, don't append the title to the content (#31851)
Follow up to e4401e587e.

In the previous change, when serialising a Reviewable post, we were appending the title to the post content whilst checking for watched word matches. This append action was acting upon the object itself, rather than just a copy of the string, causing the UI to display the title appended twice to the content.

Fortunately, since it was only happening in the serialiser, the incorrect data was never stored in the database, it was only happening when viewing the review queue.
2025-03-18 11:57:39 +11:00
..
concerns UX: Split hide_profile_and_presence user option (#29632) 2024-11-12 22:22:58 -03:00
about_serializer.rb FEATURE: Enable the new /about page for everyone (#29390) 2024-10-29 18:40:11 +03:00
admin_badge_serializer.rb FIX: Badge image uploader (#28188) 2024-08-01 15:36:17 +02:00
admin_badges_serializer.rb
admin_detailed_user_serializer.rb FEATURE: Allow admins to export users (#30918) 2025-01-24 08:13:25 +11:00
admin_email_template_serializer.rb
admin_form_template_serializer.rb DEV: Create form templates (#20189) 2023-02-08 11:21:39 -08:00
admin_notice_serializer.rb FEATURE: Add ability to dismiss admin notices (#28916) 2024-09-17 14:43:34 +08:00
admin_plugin_serializer.rb PERF: Admin plugin preload settings routes (#31215) 2025-02-07 11:23:43 +10:00
admin_user_action_serializer.rb
admin_user_list_serializer.rb UX: display html tags in silence reason (#31598) 2025-03-05 12:43:03 +11:00
admin_user_serializer.rb FEATURE: Add bulk destroy to admin users list (#29744) 2024-11-25 11:13:35 +03:00
admin_web_hook_event_serializer.rb FEATURE: Add Mechanism to redeliver all failed webhook events (#27609) 2024-07-08 15:43:16 -05:00
admin_web_hook_serializer.rb DEV: Block accidental serialization of entire AR models (#27668) 2024-07-01 17:08:48 -03:00
api_key_scope_serializer.rb
api_key_serializer.rb UX: Show scope mode in API key list (#31605) 2025-03-11 10:00:42 +08:00
application_serializer.rb DEV: Reduce duplication with DistributedMutex#clear_regex (#25795) 2024-02-21 14:19:04 -06:00
archetype_serializer.rb
associated_group_serializer.rb
auth_provider_serializer.rb DEV: restore custom route for custom homepage (#29343) 2024-10-22 13:17:36 -04:00
backup_file_serializer.rb
badge_grouping_serializer.rb
badge_index_serializer.rb
badge_serializer.rb FEATURE: Show when a badge has been granted for a post (#29696) 2024-12-03 13:43:27 +11:00
badge_type_serializer.rb
basic_api_key_serializer.rb UX: Show scope mode in API key list (#31605) 2025-03-11 10:00:42 +08:00
basic_category_serializer.rb FIX: Fetch categories for "+subcategories" option (#26622) 2024-04-25 16:47:45 +03:00
basic_group_history_serializer.rb
basic_group_serializer.rb UX: Add descriptions to auto groups and auto group indicator (#28630) 2024-08-30 10:52:34 +10:00
basic_group_user_serializer.rb
basic_post_serializer.rb DEV: Introduce plugin modifiers for post.cooked and topic.fancy_titles (#31261) 2025-02-14 00:19:50 +08:00
basic_reviewable_flagged_post_serializer.rb
basic_reviewable_queued_post_serializer.rb
basic_reviewable_serializer.rb
basic_reviewable_user_serializer.rb
basic_theme_serializer.rb FEATURE: Initial version of experimental admin search (#31299) 2025-02-21 11:59:24 +10:00
basic_topic_serializer.rb DEV: Introduce plugin modifiers for post.cooked and topic.fancy_titles (#31261) 2025-02-14 00:19:50 +08:00
basic_user_badge_serializer.rb
basic_user_serializer.rb FEATURE: Hide user status when user is hiding public profile and presence (#24300) 2024-02-26 17:40:48 +04:00
category_and_topic_lists_serializer.rb
category_badge_serializer.rb DEV: Merge two similar category serializers (#26653) 2024-04-17 18:52:34 +03:00
category_detailed_serializer.rb
category_group_serializer.rb
category_list_serializer.rb
category_required_tag_group_serializer.rb
category_serializer.rb FEATURE: Support designating multiple groups as mods on category (#28655) 2024-09-04 04:38:46 +03:00
category_upload_serializer.rb
color_scheme_color_serializer.rb FEATURE: Introduce new color palettes config area (#31742) 2025-03-12 16:57:31 +03:00
color_scheme_selectable_serializer.rb
color_scheme_serializer.rb FIX: Allow non-persisted color-scheme colors to be edited (#20104) 2023-01-31 17:10:32 +00:00
current_user_option_serializer.rb UX: Split hide_profile_and_presence user option (#29632) 2024-11-12 22:22:58 -03:00
current_user_serializer.rb FIX: remove admin_sidebar_enabled_groups setting (#31693) 2025-03-11 11:41:38 +11:00
detailed_tag_serializer.rb FIX: Include permissions in the tag serializer (#27849) 2024-07-11 19:59:57 +03:00
detailed_user_badge_serializer.rb
directory_column_serializer.rb
directory_item_serializer.rb FEATURE: Add links to searchable user fields in users directory and user profile (#29338) 2024-11-06 13:35:30 -04:00
discourse_version_check_serializer.rb
draft_serializer.rb
edit_directory_column_serializer.rb
email_log_serializer.rb FEAT: add cc addresses and post_id to sent email logs (#25014) 2024-01-03 09:27:25 +08:00
email_style_serializer.rb
embeddable_host_serializer.rb FEATURE: Extend embeddable hosts with Individual tags and author assignments (#26868) 2024-05-16 15:47:01 -04:00
embedding_serializer.rb
emoji_serializer.rb FEATURE - Add username column to custom emoji table (#29522) 2024-11-01 10:32:59 -05:00
flag_serializer.rb FEATURE: auto_action_type field for flags (#29306) 2024-10-22 10:56:31 +11:00
flagged_topic_serializer.rb
flagged_topic_summary_serializer.rb
flagged_user_serializer.rb
flair_group_serializer.rb
form_template_serializer.rb DEV: Show form templates in the composer (#21190) 2023-05-29 14:47:18 -07:00
found_user_serializer.rb FEATURE: Hide user status when user is hiding public profile and presence (#24300) 2024-02-26 17:40:48 +04:00
gap_serializer.rb
group_post_serializer.rb DEV: Adopt post list component and new posts route front-end (#30604) 2025-01-23 10:20:45 -08:00
group_post_user_serializer.rb
group_requester_serializer.rb
group_show_serializer.rb UX: Use a dropdown for SSL mode for group SMTP (#27932) 2024-07-18 10:33:14 +10:00
group_user_serializer.rb FEATURE: Hide user status when user is hiding public profile and presence (#24300) 2024-02-26 17:40:48 +04:00
group_user_with_custom_fields_serializer.rb FEATURE: Hide user status when user is hiding public profile and presence (#24300) 2024-02-26 17:40:48 +04:00
grouped_screened_url_serializer.rb
grouped_search_result_serializer.rb FIX: Load categories with search topic results (#25700) 2024-02-21 17:29:47 +02:00
hidden_profile_serializer.rb UX: Show message and chat buttons on hidden profiles (#27326) 2024-06-10 10:38:22 -03:00
inactive_user_serializer.rb FEATURE: Show user cards for inactive users (#21387) 2023-05-15 21:45:26 +03:00
incoming_email_details_serializer.rb
incoming_email_serializer.rb
invite_link_serializer.rb
invite_serializer.rb FIX: Hide delete button to invite as user are unable to delete anyway (#21884) 2023-06-06 12:24:19 +08:00
invited_serializer.rb
invited_user_record_serializer.rb
invited_user_serializer.rb
listable_topic_serializer.rb FIX: Better tracking of topic visibility changes (#26709) 2024-04-29 10:34:46 +10:00
new_post_result_serializer.rb
notification_serializer.rb FEATURE: add new hidden site setting to show full names in user card 2025-01-23 12:26:59 -05:00
penalty_counts_serializer.rb
pending_post_serializer.rb FIX: Attribute pending post to author in PendingPostSerialier (#23369) 2023-09-03 22:14:51 +00:00
permalink_serializer.rb FEATURE: Permalinks for users (#25552) 2024-02-05 17:31:31 +01:00
post_action_type_serializer.rb FIX: serialize Flags instead of PostActionType (#28362) 2024-08-14 12:13:46 +10:00
post_action_user_serializer.rb
post_item_excerpt.rb
post_revision_serializer.rb FIX: Post revision respects 'prioritize_full_name_in_ux' setting (#31293) 2025-02-13 13:25:27 -06:00
post_serializer.rb FEATURE: Add attribution to staff notice and rename functionality (#30920) 2025-01-24 09:29:22 +10:00
post_stream_serializer_mixin.rb FEATURE: Add attribution to staff notice and rename functionality (#30920) 2025-01-24 09:29:22 +10:00
post_wordpress_serializer.rb
poster_serializer.rb
presence_channel_state_serializer.rb
primary_group_serializer.rb
private_message_topic_tracking_state_serializer.rb
published_page_serializer.rb
queued_post_serializer.rb DEV: Replace raw comments with deprecation warnings (#22617) 2023-07-18 10:13:40 +08:00
remote_theme_serializer.rb FIX: Hide broken theme about/license URLs (#29930) 2024-11-26 13:53:10 +10:00
reviewable_action_serializer.rb FEATURE: Display a toast popup after completing a review action. (#31786) 2025-03-18 11:26:59 +11:00
reviewable_bundled_action_serializer.rb
reviewable_conversation_post_serializer.rb
reviewable_conversation_serializer.rb
reviewable_editable_field_serializer.rb
reviewable_explanation_serializer.rb
reviewable_flagged_post_serializer.rb FEATURE: Reason and deleted content support in the review queue (#30295) 2024-12-17 11:44:46 +11:00
reviewable_history_serializer.rb
reviewable_perform_result_serializer.rb DEV: Remove legacy user menu (#21308) 2023-05-17 09:16:42 -07:00
reviewable_post_serializer.rb
reviewable_queued_post_serializer.rb
reviewable_score_explanation_serializer.rb
reviewable_score_serializer.rb FIX: When displaying a reviewable, don't append the title to the content (#31851) 2025-03-18 11:57:39 +11:00
reviewable_score_type_serializer.rb FEATURE: Reason and deleted content support in the review queue (#30295) 2024-12-17 11:44:46 +11:00
reviewable_serializer.rb DEV: Add a new type_source field to the Reviewable model. (#31325) 2025-02-20 09:09:47 +11:00
reviewable_settings_serializer.rb
reviewable_topic_serializer.rb
reviewable_user_serializer.rb SECURITY: Update reviewable user serializer payload 2024-07-03 20:49:19 +08:00
screened_email_serializer.rb
screened_ip_address_serializer.rb
screened_url_serializer.rb
search_logs_serializer.rb
search_post_serializer.rb DEV: Get headline excerpt config from GroupedSearchResult in serializer. (#20942) 2023-04-03 15:02:42 -03:00
search_result_user_serializer.rb
search_topic_list_item_serializer.rb
sidebar_section_serializer.rb PERF: Strict loading for SidebarSection queries (#21717) 2023-05-25 09:10:32 +08:00
sidebar_tag_serializer.rb UX: Display tag's description as title in navigation menu (#22710) 2023-07-24 08:07:37 +08:00
sidebar_url_serializer.rb FIX: Simplify sidebar custom link implementation (#26201) 2024-03-20 12:55:40 +00:00
similar_admin_user_serializer.rb
similar_topic_serializer.rb
single_sign_on_record_serializer.rb
site_category_serializer.rb DEV: Try fix category form template flaky (#22461) 2023-07-06 14:42:59 +10:00
site_serializer.rb FIX: Don't load all groups when rendering <GroupChooser /> (#31271) 2025-02-11 21:32:02 +03:00
site_text_serializer.rb DEV: Add endpoint for dismissing outdated translations (#22509) 2023-07-19 23:06:13 +08:00
skipped_email_log_serializer.rb
suggested_topic_serializer.rb DEV: Use PosterSerializer for SuggestedTopicSerializer posters (#25650) 2024-02-12 14:04:02 -06:00
suggested_topics_mixin.rb PERF: Ensure suggested topics is only loaded on last page of topic view (#28507) 2024-08-23 16:10:50 +08:00
tag_group_serializer.rb FIX: ensure GroupChooser works with localized group names (#30593) 2025-01-13 11:29:04 +01:00
tag_serializer.rb
theme_field_serializer.rb DEV: Add skip_migrations param when importing remote theme (#25218) 2024-01-11 14:04:02 +08:00
theme_objects_setting_metadata_serializer.rb DEV: Change category type to categories type for theme object schema (#26339) 2024-03-27 10:54:30 +08:00
theme_serializer.rb FEATURE: Initial version of experimental admin search (#31299) 2025-02-21 11:59:24 +10:00
theme_settings_serializer.rb DEV: Load theme objects typed setting metadata when routing to editor (#26354) 2024-03-26 14:02:05 +08:00
theme_translation_serializer.rb
topic_embed_serializer.rb
topic_flag_type_serializer.rb FIX: Return properly interpolated translations for flag types 2024-07-30 18:30:57 +02:00
topic_link_serializer.rb
topic_list_item_serializer.rb DEV: implements register_modifier(:serialize_topic_op_likes_data) (#31376) 2025-02-21 22:43:49 +05:30
topic_list_serializer.rb DEV: Set topic list filter name in serializer for children (#29291) 2024-10-18 17:24:47 -03:00
topic_pending_post_serializer.rb
topic_post_count_serializer.rb FIX: Show auto-group flair according to user preferences (#21221) 2023-04-24 16:04:26 -03:00
topic_poster_serializer.rb
topic_timer_serializer.rb
topic_tracking_state_item_serializer.rb PERF: optimise serialization for topic tracking state (#20860) 2023-03-28 18:09:22 +11:00
topic_tracking_state_serializer.rb PERF: optimise serialization for topic tracking state (#20860) 2023-03-28 18:09:22 +11:00
topic_view_bookmark_serializer.rb DEV: Block accidental serialization of entire AR models (#27668) 2024-07-01 17:08:48 -03:00
topic_view_details_serializer.rb
topic_view_posts_serializer.rb
topic_view_serializer.rb DEV: Introduce plugin modifiers for post.cooked and topic.fancy_titles (#31261) 2025-02-14 00:19:50 +08:00
topic_view_wordpress_serializer.rb
trust_level3_requirements_serializer.rb
upload_serializer.rb DEV: serialize image upload thumbnail (#29276) 2024-10-18 12:55:14 +04:00
upload_thumbnail_serializer.rb DEV: serialize image upload thumbnail (#29276) 2024-10-18 12:55:14 +04:00
user_action_serializer.rb
user_auth_token_serializer.rb DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
user_badge_serializer.rb
user_badges_serializer.rb
user_bookmark_base_serializer.rb
user_bookmark_list_serializer.rb FIX: Serialize categories for bookmarks (#26606) 2024-04-17 17:23:47 +03:00
user_card_serializer.rb DEV: Use serializers for user_notification_schedule and featured_topic (#27719) 2024-07-05 00:00:24 -03:00
user_export_serializer.rb FIX: User profile not loading with an empty export (#31290) 2025-02-11 16:18:06 -07:00
user_field_serializer.rb FEATURE: Implement new required options in admin user fields UI (#27079) 2024-05-23 19:18:25 +08:00
user_history_serializer.rb
user_name_serializer.rb
user_notification_schedule_serializer.rb DEV: Use serializers for user_notification_schedule and featured_topic (#27719) 2024-07-05 00:00:24 -03:00
user_notification_total_serializer.rb DEV: Dedicated route for current user notification counts (#26106) 2024-03-15 12:08:37 -04:00
user_option_serializer.rb UX: Split hide_profile_and_presence user option (#29632) 2024-11-12 22:22:58 -03:00
user_post_bookmark_serializer.rb DEV: Fix Lint/DuplicateMethods (#24746) 2023-12-06 13:18:34 +01:00
user_post_topic_bookmark_base_serializer.rb
user_serializer.rb FIX: Don't include secret membership groups when serializing other users (#29799) 2024-11-18 19:25:42 +08:00
user_status_serializer.rb DEV: Format UserStatus#ends_at as a ISO8601 timestamp (#23796) 2023-10-05 20:41:12 +02:00
user_summary_serializer.rb FEATURE: allow disabling user activity tab for non admin users (#25540) 2024-02-05 14:30:36 +05:30
user_tag_notifications_serializer.rb
user_topic_bookmark_serializer.rb
user_with_custom_fields_serializer.rb FEATURE: Hide user status when user is hiding public profile and presence (#24300) 2024-02-26 17:40:48 +04:00
user_wordpress_serializer.rb
watched_word_list_serializer.rb DEV: Refactor watched words (#24163) 2023-11-01 16:41:10 +02:00
watched_word_serializer.rb FEATURE: add HTML replacements 2024-05-14 10:41:27 +02:00
web_hook_category_serializer.rb
web_hook_event_type_serializer.rb DEV: Block accidental serialization of entire AR models (#27668) 2024-07-01 17:08:48 -03:00
web_hook_flag_serializer.rb
web_hook_group_serializer.rb
web_hook_group_user_serializer.rb
web_hook_like_serializer.rb
web_hook_post_serializer.rb FEATURE: Show when a badge has been granted for a post (#29696) 2024-12-03 13:43:27 +11:00
web_hook_topic_view_serializer.rb DEV: Remove summarization code (#27373) 2024-07-02 08:51:47 -07:00
web_hook_user_serializer.rb DEV: allow themes to render their own custom homepage (#26291) 2024-04-02 11:05:08 -04:00
wizard_field_choice_serializer.rb DEV: Generate correct i18n keys for wizard radio choices (#28370) 2024-08-14 14:39:18 +02:00
wizard_field_serializer.rb
wizard_serializer.rb
wizard_step_serializer.rb DEV: Cleanup unused wizard illustrations (#23659) 2023-09-26 10:34:38 +08:00