]> cat aescling's git repositories - mastodon.git/commit
Change how unread announcements are handled (#13020)
authorThibG <thib@sitedethib.com>
Mon, 3 Feb 2020 00:53:09 +0000 (01:53 +0100)
committerGitHub <noreply@github.com>
Mon, 3 Feb 2020 00:53:09 +0000 (01:53 +0100)
commit3adc722d1cdd28d87d2724b8952d7ec52d241b52
treef8b08e38d3fba35c92b21b14c99ec2c3d21dd3c6
parent61a7390b666dc40beda291da426436a9d36f4288
Change how unread announcements are handled (#13020)

* Change meaning of /api/v1/announcements/:id/dismiss to mark an announcement as read

* Change how unread announcements are counted in UI

* Add unread marker to announcements and mark announcements as unread as they are displayed

* Fixups
app/controllers/api/v1/announcements_controller.rb
app/javascript/mastodon/actions/announcements.js
app/javascript/mastodon/features/getting_started/components/announcements.js
app/javascript/mastodon/features/getting_started/containers/announcements_container.js
app/javascript/mastodon/features/home_timeline/index.js
app/javascript/mastodon/reducers/announcements.js
app/javascript/styles/mastodon/components.scss
app/serializers/rest/announcement_serializer.rb