discourse/app/serializers/topic_view_bookmark_serializer.rb
Sam 2ec93c6f56
FEATURE: Allow acting on all bookmarks in topic footer buttons (#39063)
Add a dedicated topic bookmarks menu in the topic footer so post
bookmarks can be shown, jumped to, edited, and deleted alongside topic
bookmarks. Keep topic bookmark state in sync after create/update/delete
actions, include post numbers in bookmark payloads, and update the
footer label when bookmarks change.

Also refresh bookmark copy for the new grouped menu and add system
coverage for single and multiple post bookmark flows.

---------

Co-authored-by: awesomerobot <kris.aubuchon@discourse.org>
Co-authored-by: chapoi <101828855+chapoi@users.noreply.github.com>
Co-authored-by: Martin Brennan <martin@discourse.org>
2026-04-07 14:09:51 +10:00

11 lines
286 B
Ruby

# frozen_string_literal: true
class TopicViewBookmarkSerializer < ApplicationSerializer
attributes :id,
:bookmarkable_id,
:bookmarkable_type,
:reminder_at,
:name,
:auto_delete_preference,
:post_number
end