mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-04 20:35:52 +08:00
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>
11 lines
286 B
Ruby
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
|