Added bookmarks
• Added: - bookmarks for GabPRO members only - migration for creation of StatusBookmarks - all necessary routes, controllers - redux for adding, removing, fetching and displaying bookmarks - bookmark icon - doorkeeper scopes - backend and frontend support Bookmarks behave like likes/favorites, except they aren't shared with other users and do not have an associated counter. https://github.com/tootsuite/mastodon/commit/dfea7368c934f600bd0b6b93b4a6c008a4e265b0
This commit is contained in:
@@ -48,6 +48,7 @@ import {
|
||||
AccountTimeline,
|
||||
BlockedAccounts,
|
||||
BlockedDomains,
|
||||
BookmarkedStatuses,
|
||||
CommunityTimeline,
|
||||
Compose,
|
||||
DMCA,
|
||||
@@ -228,6 +229,9 @@ class SwitchingArea extends PureComponent {
|
||||
<Redirect from='/@:username/likes' to='/:username/likes' />
|
||||
<WrappedRoute path='/:username/likes' page={ProfilePage} component={LikedStatuses} content={children} />
|
||||
|
||||
<Redirect from='/@:username/bookmarks' to='/:username/bookmarks' />
|
||||
<WrappedRoute path='/:username/bookmarks' page={ProfilePage} component={BookmarkedStatuses} content={children} />
|
||||
|
||||
<Redirect from='/@:username/posts/:statusId' to='/:username/posts/:statusId' exact />
|
||||
<WrappedRoute path='/:username/posts/:statusId' publicRoute exact page={BasicPage} component={StatusFeature} content={children} componentParams={{ title: 'Status', page: 'status' }} />
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ export function AccountTimeline() { return import(/* webpackChunkName: "features
|
||||
export function AccountGallery() { return import(/* webpackChunkName: "features/account_gallery" */'../../account_gallery') }
|
||||
export function BlockAccountModal() { return import(/* webpackChunkName: "components/block_account_modal" */'../../../components/modal/block_account_modal') }
|
||||
export function BlockedAccounts() { return import(/* webpackChunkName: "features/blocked_accounts" */'../../blocked_accounts') }
|
||||
export function BookmarkedStatuses() { return import(/* webpackChunkName: "features/bookmarked_statuses" */'../../bookmarked_statuses') }
|
||||
export function BoostModal() { return import(/* webpackChunkName: "components/boost_modal" */'../../../components/modal/boost_modal') }
|
||||
export function CommentSortingOptionsPopover() { return import(/* webpackChunkName: "components/comment_sorting_options_popover" */'../../../components/popover/comment_sorting_options_popover') }
|
||||
export function CommunityTimeline() { return import(/* webpackChunkName: "features/community_timeline" */'../../community_timeline') }
|
||||
|
||||
Reference in New Issue
Block a user