Fix #463 - Fetch and display previews of URLs using OpenGraph tags
This commit is contained in:
parent
8d0284f8d9
commit
f0de621e76
26 changed files with 302 additions and 7 deletions
|
@ -1,6 +1,7 @@
|
|||
import api from '../api';
|
||||
|
||||
import { deleteFromTimelines } from './timelines';
|
||||
import { fetchStatusCard } from './cards';
|
||||
|
||||
export const STATUS_FETCH_REQUEST = 'STATUS_FETCH_REQUEST';
|
||||
export const STATUS_FETCH_SUCCESS = 'STATUS_FETCH_SUCCESS';
|
||||
|
@ -31,6 +32,7 @@ export function fetchStatus(id) {
|
|||
api(getState).get(`/api/v1/statuses/${id}`).then(response => {
|
||||
dispatch(fetchStatusSuccess(response.data, skipLoading));
|
||||
dispatch(fetchContext(id));
|
||||
dispatch(fetchStatusCard(id));
|
||||
}).catch(error => {
|
||||
dispatch(fetchStatusFail(id, error, skipLoading));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue