Add bookmarks (#7107)
* Add backend support for bookmarks Bookmarks behave like favourites, except they aren't shared with other users and do not have an associated counter. * Add spec for bookmark endpoints * Add front-end support for bookmarks * Introduce OAuth scopes for bookmarks * Add bookmarks to archive takeout * Fix migration * Coding style fixes * Fix rebase issue * Update bookmarked_statuses to latest UI changes * Update bookmark actions to properly reflect status changes in state * Add bookmarks item to single-column layout * Make active bookmarks red
This commit is contained in:
		@@ -22,6 +22,7 @@ const messages = defineMessages({
 | 
			
		||||
  settings_subheading: { id: 'column_subheading.settings', defaultMessage: 'Settings' },
 | 
			
		||||
  community_timeline: { id: 'navigation_bar.community_timeline', defaultMessage: 'Local timeline' },
 | 
			
		||||
  direct: { id: 'navigation_bar.direct', defaultMessage: 'Direct messages' },
 | 
			
		||||
  bookmarks: { id: 'navigation_bar.bookmarks', defaultMessage: 'Bookmarks' },
 | 
			
		||||
  preferences: { id: 'navigation_bar.preferences', defaultMessage: 'Preferences' },
 | 
			
		||||
  follow_requests: { id: 'navigation_bar.follow_requests', defaultMessage: 'Follow requests' },
 | 
			
		||||
  favourites: { id: 'navigation_bar.favourites', defaultMessage: 'Favourites' },
 | 
			
		||||
@@ -126,11 +127,12 @@ class GettingStarted extends ImmutablePureComponent {
 | 
			
		||||
 | 
			
		||||
    navItems.push(
 | 
			
		||||
      <ColumnLink key={i++} icon='envelope' text={intl.formatMessage(messages.direct)} to='/timelines/direct' />,
 | 
			
		||||
      <ColumnLink key={i++} icon='bookmark' text={intl.formatMessage(messages.bookmarks)} to='/bookmarks' />,
 | 
			
		||||
      <ColumnLink key={i++} icon='star' text={intl.formatMessage(messages.favourites)} to='/favourites' />,
 | 
			
		||||
      <ColumnLink key={i++} icon='list-ul' text={intl.formatMessage(messages.lists)} to='/lists' />
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
    height += 48*3;
 | 
			
		||||
    height += 48*4;
 | 
			
		||||
 | 
			
		||||
    if (myAccount.get('locked') || unreadFollowRequests > 0) {
 | 
			
		||||
      navItems.push(<ColumnLink key={i++} icon='user-plus' text={intl.formatMessage(messages.follow_requests)} badge={badgeDisplay(unreadFollowRequests, 40)} to='/follow_requests' />);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user