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.
dfea7368c9
This commit is contained in:
@@ -58,6 +58,7 @@ Doorkeeper.configure do
|
||||
optional_scopes :write,
|
||||
:'write:accounts',
|
||||
:'write:blocks',
|
||||
:'write:bookmarks',
|
||||
:'write:conversations',
|
||||
:'write:favourites',
|
||||
:'write:filters',
|
||||
@@ -71,6 +72,7 @@ Doorkeeper.configure do
|
||||
:read,
|
||||
:'read:accounts',
|
||||
:'read:blocks',
|
||||
:'read:bookmarks',
|
||||
:'read:favourites',
|
||||
:'read:filters',
|
||||
:'read:follows',
|
||||
|
||||
@@ -119,6 +119,7 @@ en:
|
||||
read: read all your account's data
|
||||
read:accounts: see accounts information
|
||||
read:blocks: see your blocks
|
||||
read:bookmarks: see your bookmarks
|
||||
read:favourites: see your favorites
|
||||
read:filters: see your filters
|
||||
read:follows: see your follows
|
||||
@@ -131,6 +132,7 @@ en:
|
||||
write: modify all your account's data
|
||||
write:accounts: modify your profile
|
||||
write:blocks: block accounts and domains
|
||||
write:bookmarks: bookmark statuses
|
||||
write:favourites: favorite statuses
|
||||
write:filters: create filters
|
||||
write:follows: follow people
|
||||
|
||||
@@ -302,6 +302,9 @@ Rails.application.routes.draw do
|
||||
resource :favourite, only: :create
|
||||
post :unfavourite, to: 'favourites#destroy'
|
||||
|
||||
resource :bookmark, only: :create
|
||||
post :unbookmark, to: 'bookmarks#destroy'
|
||||
|
||||
resource :mute, only: :create
|
||||
post :unmute, to: 'mutes#destroy'
|
||||
|
||||
@@ -360,6 +363,7 @@ Rails.application.routes.draw do
|
||||
resources :filters, only: [:index, :create, :show, :update, :destroy]
|
||||
resources :endorsements, only: [:index]
|
||||
resources :shortcuts, only: [:index, :create, :show, :destroy]
|
||||
resources :bookmarks, only: [:index]
|
||||
|
||||
namespace :apps do
|
||||
get :verify_credentials, to: 'credentials#show'
|
||||
|
||||
Reference in New Issue
Block a user