2017-12-04 02:26:40 -05:00
|
|
|
import api from 'flavours/glitch/util/api';
|
2016-10-30 10:06:43 -04:00
|
|
|
|
|
|
|
import { deleteFromTimelines } from './timelines';
|
2019-03-05 14:15:43 -05:00
|
|
|
import { importFetchedStatus, importFetchedStatuses } from './importer';
|
2016-09-12 20:24:40 -04:00
|
|
|
|
|
|
|
export const STATUS_FETCH_REQUEST = 'STATUS_FETCH_REQUEST';
|
|
|
|
export const STATUS_FETCH_SUCCESS = 'STATUS_FETCH_SUCCESS';
|
|
|
|
export const STATUS_FETCH_FAIL = 'STATUS_FETCH_FAIL';
|
2016-09-15 18:21:51 -04:00
|
|
|
|
2016-09-29 18:00:45 -04:00
|
|
|
export const STATUS_DELETE_REQUEST = 'STATUS_DELETE_REQUEST';
|
|
|
|
export const STATUS_DELETE_SUCCESS = 'STATUS_DELETE_SUCCESS';
|
|
|
|
export const STATUS_DELETE_FAIL = 'STATUS_DELETE_FAIL';
|
|
|
|
|
2016-10-30 10:06:43 -04:00
|
|
|
export const CONTEXT_FETCH_REQUEST = 'CONTEXT_FETCH_REQUEST';
|
|
|
|
export const CONTEXT_FETCH_SUCCESS = 'CONTEXT_FETCH_SUCCESS';
|
|
|
|
export const CONTEXT_FETCH_FAIL = 'CONTEXT_FETCH_FAIL';
|
|
|
|
|
Feature conversations muting (#3017)
* Add <ostatus:conversation /> tag to Atom input/output
Only uses ref attribute (not href) because href would be
the alternate link that's always included also.
Creates new conversation for every non-reply status. Carries
over conversation for every reply. Keeps remote URIs verbatim,
generates local URIs on the fly like the rest of them.
* Conversation muting - prevents notifications that reference a conversation
(including replies, favourites, reblogs) from being created. API endpoints
/api/v1/statuses/:id/mute and /api/v1/statuses/:id/unmute
Currently no way to tell when a status/conversation is muted, so the web UI
only has a "disable notifications" button, doesn't work as a toggle
* Display "Dismiss notifications" on all statuses in notifications column, not just own
* Add "muted" as a boolean attribute on statuses JSON
For now always false on contained reblogs, since it's only relevant for
statuses returned from the notifications endpoint, which are not nested
Remove "Disable notifications" from detailed status view, since it's
only relevant in the notifications column
* Up max class length
* Remove pending test for conversation mute
* Add tests, clean up
* Rename to "mute conversation" and "unmute conversation"
* Raise validation error when trying to mute/unmute status without conversation
2017-05-14 21:04:13 -04:00
|
|
|
export const STATUS_MUTE_REQUEST = 'STATUS_MUTE_REQUEST';
|
|
|
|
export const STATUS_MUTE_SUCCESS = 'STATUS_MUTE_SUCCESS';
|
|
|
|
export const STATUS_MUTE_FAIL = 'STATUS_MUTE_FAIL';
|
|
|
|
|
|
|
|
export const STATUS_UNMUTE_REQUEST = 'STATUS_UNMUTE_REQUEST';
|
|
|
|
export const STATUS_UNMUTE_SUCCESS = 'STATUS_UNMUTE_SUCCESS';
|
|
|
|
export const STATUS_UNMUTE_FAIL = 'STATUS_UNMUTE_FAIL';
|
|
|
|
|
2018-06-15 15:29:04 -04:00
|
|
|
export const REDRAFT = 'REDRAFT';
|
|
|
|
|
2017-01-19 05:06:06 -05:00
|
|
|
export function fetchStatusRequest(id, skipLoading) {
|
2016-09-15 18:21:51 -04:00
|
|
|
return {
|
|
|
|
type: STATUS_FETCH_REQUEST,
|
2017-01-19 05:06:06 -05:00
|
|
|
id,
|
2017-05-20 11:31:47 -04:00
|
|
|
skipLoading,
|
2016-09-15 18:21:51 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export function fetchStatus(id) {
|
|
|
|
return (dispatch, getState) => {
|
2017-01-19 05:06:06 -05:00
|
|
|
const skipLoading = getState().getIn(['statuses', id], null) !== null;
|
|
|
|
|
2017-02-16 19:34:37 -05:00
|
|
|
dispatch(fetchContext(id));
|
|
|
|
|
|
|
|
if (skipLoading) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2017-01-19 05:06:06 -05:00
|
|
|
dispatch(fetchStatusRequest(id, skipLoading));
|
2016-09-15 18:21:51 -04:00
|
|
|
|
2016-10-30 10:06:43 -04:00
|
|
|
api(getState).get(`/api/v1/statuses/${id}`).then(response => {
|
2019-03-05 14:15:43 -05:00
|
|
|
dispatch(importFetchedStatus(response.data));
|
|
|
|
dispatch(fetchStatusSuccess(skipLoading));
|
2016-09-15 18:21:51 -04:00
|
|
|
}).catch(error => {
|
2017-01-19 05:06:06 -05:00
|
|
|
dispatch(fetchStatusFail(id, error, skipLoading));
|
2016-09-15 18:21:51 -04:00
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-03-05 14:15:43 -05:00
|
|
|
export function fetchStatusSuccess(skipLoading) {
|
2016-09-15 18:21:51 -04:00
|
|
|
return {
|
|
|
|
type: STATUS_FETCH_SUCCESS,
|
2017-05-20 11:31:47 -04:00
|
|
|
skipLoading,
|
2016-09-15 18:21:51 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-01-19 05:06:06 -05:00
|
|
|
export function fetchStatusFail(id, error, skipLoading) {
|
2016-09-15 18:21:51 -04:00
|
|
|
return {
|
|
|
|
type: STATUS_FETCH_FAIL,
|
2017-01-19 05:06:06 -05:00
|
|
|
id,
|
|
|
|
error,
|
2017-02-26 17:06:27 -05:00
|
|
|
skipLoading,
|
2017-05-20 11:31:47 -04:00
|
|
|
skipAlert: true,
|
2016-09-15 18:21:51 -04:00
|
|
|
};
|
|
|
|
};
|
2016-09-29 18:00:45 -04:00
|
|
|
|
2018-06-15 15:29:04 -04:00
|
|
|
export function redraft(status) {
|
|
|
|
return {
|
|
|
|
type: REDRAFT,
|
|
|
|
status,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-08-31 10:41:58 -04:00
|
|
|
export function deleteStatus(id, router, withRedraft = false) {
|
2016-09-29 18:00:45 -04:00
|
|
|
return (dispatch, getState) => {
|
2019-03-06 06:30:11 -05:00
|
|
|
let status = getState().getIn(['statuses', id]);
|
|
|
|
|
|
|
|
if (status.get('poll')) {
|
|
|
|
status = status.set('poll', getState().getIn(['polls', status.get('poll')]));
|
|
|
|
}
|
2018-06-15 15:29:04 -04:00
|
|
|
|
2016-09-29 18:00:45 -04:00
|
|
|
dispatch(deleteStatusRequest(id));
|
|
|
|
|
2017-06-23 10:05:04 -04:00
|
|
|
api(getState).delete(`/api/v1/statuses/${id}`).then(() => {
|
2016-09-29 18:00:45 -04:00
|
|
|
dispatch(deleteStatusSuccess(id));
|
2016-10-30 10:06:43 -04:00
|
|
|
dispatch(deleteFromTimelines(id));
|
2018-06-15 15:29:04 -04:00
|
|
|
|
|
|
|
if (withRedraft) {
|
|
|
|
dispatch(redraft(status));
|
2018-08-31 10:41:58 -04:00
|
|
|
|
|
|
|
if (!getState().getIn(['compose', 'mounted'])) {
|
|
|
|
router.push('/statuses/new');
|
|
|
|
}
|
2018-06-15 15:29:04 -04:00
|
|
|
}
|
2016-09-29 18:00:45 -04:00
|
|
|
}).catch(error => {
|
|
|
|
dispatch(deleteStatusFail(id, error));
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export function deleteStatusRequest(id) {
|
|
|
|
return {
|
|
|
|
type: STATUS_DELETE_REQUEST,
|
2017-05-20 11:31:47 -04:00
|
|
|
id: id,
|
2016-09-29 18:00:45 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export function deleteStatusSuccess(id) {
|
|
|
|
return {
|
|
|
|
type: STATUS_DELETE_SUCCESS,
|
2017-05-20 11:31:47 -04:00
|
|
|
id: id,
|
2016-09-29 18:00:45 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export function deleteStatusFail(id, error) {
|
|
|
|
return {
|
|
|
|
type: STATUS_DELETE_FAIL,
|
|
|
|
id: id,
|
2017-05-20 11:31:47 -04:00
|
|
|
error: error,
|
2016-09-29 18:00:45 -04:00
|
|
|
};
|
|
|
|
};
|
2016-10-30 10:06:43 -04:00
|
|
|
|
|
|
|
export function fetchContext(id) {
|
|
|
|
return (dispatch, getState) => {
|
|
|
|
dispatch(fetchContextRequest(id));
|
|
|
|
|
|
|
|
api(getState).get(`/api/v1/statuses/${id}/context`).then(response => {
|
2019-03-05 14:15:43 -05:00
|
|
|
dispatch(importFetchedStatuses(response.data.ancestors.concat(response.data.descendants)));
|
2016-10-30 10:06:43 -04:00
|
|
|
dispatch(fetchContextSuccess(id, response.data.ancestors, response.data.descendants));
|
2017-02-26 17:06:27 -05:00
|
|
|
|
2016-10-30 10:06:43 -04:00
|
|
|
}).catch(error => {
|
2017-07-19 13:38:50 -04:00
|
|
|
if (error.response && error.response.status === 404) {
|
2017-02-19 05:54:27 -05:00
|
|
|
dispatch(deleteFromTimelines(id));
|
|
|
|
}
|
2017-02-26 17:06:27 -05:00
|
|
|
|
|
|
|
dispatch(fetchContextFail(id, error));
|
2016-10-30 10:06:43 -04:00
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export function fetchContextRequest(id) {
|
|
|
|
return {
|
|
|
|
type: CONTEXT_FETCH_REQUEST,
|
2017-05-20 11:31:47 -04:00
|
|
|
id,
|
2016-10-30 10:06:43 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export function fetchContextSuccess(id, ancestors, descendants) {
|
|
|
|
return {
|
|
|
|
type: CONTEXT_FETCH_SUCCESS,
|
|
|
|
id,
|
|
|
|
ancestors,
|
|
|
|
descendants,
|
2017-05-20 11:31:47 -04:00
|
|
|
statuses: ancestors.concat(descendants),
|
2016-10-30 10:06:43 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export function fetchContextFail(id, error) {
|
|
|
|
return {
|
|
|
|
type: CONTEXT_FETCH_FAIL,
|
|
|
|
id,
|
2017-02-26 17:06:27 -05:00
|
|
|
error,
|
2017-05-20 11:31:47 -04:00
|
|
|
skipAlert: true,
|
2016-10-30 10:06:43 -04:00
|
|
|
};
|
|
|
|
};
|
Feature conversations muting (#3017)
* Add <ostatus:conversation /> tag to Atom input/output
Only uses ref attribute (not href) because href would be
the alternate link that's always included also.
Creates new conversation for every non-reply status. Carries
over conversation for every reply. Keeps remote URIs verbatim,
generates local URIs on the fly like the rest of them.
* Conversation muting - prevents notifications that reference a conversation
(including replies, favourites, reblogs) from being created. API endpoints
/api/v1/statuses/:id/mute and /api/v1/statuses/:id/unmute
Currently no way to tell when a status/conversation is muted, so the web UI
only has a "disable notifications" button, doesn't work as a toggle
* Display "Dismiss notifications" on all statuses in notifications column, not just own
* Add "muted" as a boolean attribute on statuses JSON
For now always false on contained reblogs, since it's only relevant for
statuses returned from the notifications endpoint, which are not nested
Remove "Disable notifications" from detailed status view, since it's
only relevant in the notifications column
* Up max class length
* Remove pending test for conversation mute
* Add tests, clean up
* Rename to "mute conversation" and "unmute conversation"
* Raise validation error when trying to mute/unmute status without conversation
2017-05-14 21:04:13 -04:00
|
|
|
|
|
|
|
export function muteStatus(id) {
|
|
|
|
return (dispatch, getState) => {
|
|
|
|
dispatch(muteStatusRequest(id));
|
|
|
|
|
2017-06-23 10:05:04 -04:00
|
|
|
api(getState).post(`/api/v1/statuses/${id}/mute`).then(() => {
|
Feature conversations muting (#3017)
* Add <ostatus:conversation /> tag to Atom input/output
Only uses ref attribute (not href) because href would be
the alternate link that's always included also.
Creates new conversation for every non-reply status. Carries
over conversation for every reply. Keeps remote URIs verbatim,
generates local URIs on the fly like the rest of them.
* Conversation muting - prevents notifications that reference a conversation
(including replies, favourites, reblogs) from being created. API endpoints
/api/v1/statuses/:id/mute and /api/v1/statuses/:id/unmute
Currently no way to tell when a status/conversation is muted, so the web UI
only has a "disable notifications" button, doesn't work as a toggle
* Display "Dismiss notifications" on all statuses in notifications column, not just own
* Add "muted" as a boolean attribute on statuses JSON
For now always false on contained reblogs, since it's only relevant for
statuses returned from the notifications endpoint, which are not nested
Remove "Disable notifications" from detailed status view, since it's
only relevant in the notifications column
* Up max class length
* Remove pending test for conversation mute
* Add tests, clean up
* Rename to "mute conversation" and "unmute conversation"
* Raise validation error when trying to mute/unmute status without conversation
2017-05-14 21:04:13 -04:00
|
|
|
dispatch(muteStatusSuccess(id));
|
|
|
|
}).catch(error => {
|
|
|
|
dispatch(muteStatusFail(id, error));
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export function muteStatusRequest(id) {
|
|
|
|
return {
|
|
|
|
type: STATUS_MUTE_REQUEST,
|
2017-05-20 11:31:47 -04:00
|
|
|
id,
|
Feature conversations muting (#3017)
* Add <ostatus:conversation /> tag to Atom input/output
Only uses ref attribute (not href) because href would be
the alternate link that's always included also.
Creates new conversation for every non-reply status. Carries
over conversation for every reply. Keeps remote URIs verbatim,
generates local URIs on the fly like the rest of them.
* Conversation muting - prevents notifications that reference a conversation
(including replies, favourites, reblogs) from being created. API endpoints
/api/v1/statuses/:id/mute and /api/v1/statuses/:id/unmute
Currently no way to tell when a status/conversation is muted, so the web UI
only has a "disable notifications" button, doesn't work as a toggle
* Display "Dismiss notifications" on all statuses in notifications column, not just own
* Add "muted" as a boolean attribute on statuses JSON
For now always false on contained reblogs, since it's only relevant for
statuses returned from the notifications endpoint, which are not nested
Remove "Disable notifications" from detailed status view, since it's
only relevant in the notifications column
* Up max class length
* Remove pending test for conversation mute
* Add tests, clean up
* Rename to "mute conversation" and "unmute conversation"
* Raise validation error when trying to mute/unmute status without conversation
2017-05-14 21:04:13 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export function muteStatusSuccess(id) {
|
|
|
|
return {
|
|
|
|
type: STATUS_MUTE_SUCCESS,
|
2017-05-20 11:31:47 -04:00
|
|
|
id,
|
Feature conversations muting (#3017)
* Add <ostatus:conversation /> tag to Atom input/output
Only uses ref attribute (not href) because href would be
the alternate link that's always included also.
Creates new conversation for every non-reply status. Carries
over conversation for every reply. Keeps remote URIs verbatim,
generates local URIs on the fly like the rest of them.
* Conversation muting - prevents notifications that reference a conversation
(including replies, favourites, reblogs) from being created. API endpoints
/api/v1/statuses/:id/mute and /api/v1/statuses/:id/unmute
Currently no way to tell when a status/conversation is muted, so the web UI
only has a "disable notifications" button, doesn't work as a toggle
* Display "Dismiss notifications" on all statuses in notifications column, not just own
* Add "muted" as a boolean attribute on statuses JSON
For now always false on contained reblogs, since it's only relevant for
statuses returned from the notifications endpoint, which are not nested
Remove "Disable notifications" from detailed status view, since it's
only relevant in the notifications column
* Up max class length
* Remove pending test for conversation mute
* Add tests, clean up
* Rename to "mute conversation" and "unmute conversation"
* Raise validation error when trying to mute/unmute status without conversation
2017-05-14 21:04:13 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export function muteStatusFail(id, error) {
|
|
|
|
return {
|
|
|
|
type: STATUS_MUTE_FAIL,
|
|
|
|
id,
|
2017-05-20 11:31:47 -04:00
|
|
|
error,
|
Feature conversations muting (#3017)
* Add <ostatus:conversation /> tag to Atom input/output
Only uses ref attribute (not href) because href would be
the alternate link that's always included also.
Creates new conversation for every non-reply status. Carries
over conversation for every reply. Keeps remote URIs verbatim,
generates local URIs on the fly like the rest of them.
* Conversation muting - prevents notifications that reference a conversation
(including replies, favourites, reblogs) from being created. API endpoints
/api/v1/statuses/:id/mute and /api/v1/statuses/:id/unmute
Currently no way to tell when a status/conversation is muted, so the web UI
only has a "disable notifications" button, doesn't work as a toggle
* Display "Dismiss notifications" on all statuses in notifications column, not just own
* Add "muted" as a boolean attribute on statuses JSON
For now always false on contained reblogs, since it's only relevant for
statuses returned from the notifications endpoint, which are not nested
Remove "Disable notifications" from detailed status view, since it's
only relevant in the notifications column
* Up max class length
* Remove pending test for conversation mute
* Add tests, clean up
* Rename to "mute conversation" and "unmute conversation"
* Raise validation error when trying to mute/unmute status without conversation
2017-05-14 21:04:13 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export function unmuteStatus(id) {
|
|
|
|
return (dispatch, getState) => {
|
|
|
|
dispatch(unmuteStatusRequest(id));
|
|
|
|
|
2017-06-23 10:05:04 -04:00
|
|
|
api(getState).post(`/api/v1/statuses/${id}/unmute`).then(() => {
|
Feature conversations muting (#3017)
* Add <ostatus:conversation /> tag to Atom input/output
Only uses ref attribute (not href) because href would be
the alternate link that's always included also.
Creates new conversation for every non-reply status. Carries
over conversation for every reply. Keeps remote URIs verbatim,
generates local URIs on the fly like the rest of them.
* Conversation muting - prevents notifications that reference a conversation
(including replies, favourites, reblogs) from being created. API endpoints
/api/v1/statuses/:id/mute and /api/v1/statuses/:id/unmute
Currently no way to tell when a status/conversation is muted, so the web UI
only has a "disable notifications" button, doesn't work as a toggle
* Display "Dismiss notifications" on all statuses in notifications column, not just own
* Add "muted" as a boolean attribute on statuses JSON
For now always false on contained reblogs, since it's only relevant for
statuses returned from the notifications endpoint, which are not nested
Remove "Disable notifications" from detailed status view, since it's
only relevant in the notifications column
* Up max class length
* Remove pending test for conversation mute
* Add tests, clean up
* Rename to "mute conversation" and "unmute conversation"
* Raise validation error when trying to mute/unmute status without conversation
2017-05-14 21:04:13 -04:00
|
|
|
dispatch(unmuteStatusSuccess(id));
|
|
|
|
}).catch(error => {
|
|
|
|
dispatch(unmuteStatusFail(id, error));
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export function unmuteStatusRequest(id) {
|
|
|
|
return {
|
|
|
|
type: STATUS_UNMUTE_REQUEST,
|
2017-05-20 11:31:47 -04:00
|
|
|
id,
|
Feature conversations muting (#3017)
* Add <ostatus:conversation /> tag to Atom input/output
Only uses ref attribute (not href) because href would be
the alternate link that's always included also.
Creates new conversation for every non-reply status. Carries
over conversation for every reply. Keeps remote URIs verbatim,
generates local URIs on the fly like the rest of them.
* Conversation muting - prevents notifications that reference a conversation
(including replies, favourites, reblogs) from being created. API endpoints
/api/v1/statuses/:id/mute and /api/v1/statuses/:id/unmute
Currently no way to tell when a status/conversation is muted, so the web UI
only has a "disable notifications" button, doesn't work as a toggle
* Display "Dismiss notifications" on all statuses in notifications column, not just own
* Add "muted" as a boolean attribute on statuses JSON
For now always false on contained reblogs, since it's only relevant for
statuses returned from the notifications endpoint, which are not nested
Remove "Disable notifications" from detailed status view, since it's
only relevant in the notifications column
* Up max class length
* Remove pending test for conversation mute
* Add tests, clean up
* Rename to "mute conversation" and "unmute conversation"
* Raise validation error when trying to mute/unmute status without conversation
2017-05-14 21:04:13 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export function unmuteStatusSuccess(id) {
|
|
|
|
return {
|
|
|
|
type: STATUS_UNMUTE_SUCCESS,
|
2017-05-20 11:31:47 -04:00
|
|
|
id,
|
Feature conversations muting (#3017)
* Add <ostatus:conversation /> tag to Atom input/output
Only uses ref attribute (not href) because href would be
the alternate link that's always included also.
Creates new conversation for every non-reply status. Carries
over conversation for every reply. Keeps remote URIs verbatim,
generates local URIs on the fly like the rest of them.
* Conversation muting - prevents notifications that reference a conversation
(including replies, favourites, reblogs) from being created. API endpoints
/api/v1/statuses/:id/mute and /api/v1/statuses/:id/unmute
Currently no way to tell when a status/conversation is muted, so the web UI
only has a "disable notifications" button, doesn't work as a toggle
* Display "Dismiss notifications" on all statuses in notifications column, not just own
* Add "muted" as a boolean attribute on statuses JSON
For now always false on contained reblogs, since it's only relevant for
statuses returned from the notifications endpoint, which are not nested
Remove "Disable notifications" from detailed status view, since it's
only relevant in the notifications column
* Up max class length
* Remove pending test for conversation mute
* Add tests, clean up
* Rename to "mute conversation" and "unmute conversation"
* Raise validation error when trying to mute/unmute status without conversation
2017-05-14 21:04:13 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export function unmuteStatusFail(id, error) {
|
|
|
|
return {
|
|
|
|
type: STATUS_UNMUTE_FAIL,
|
|
|
|
id,
|
2017-05-20 11:31:47 -04:00
|
|
|
error,
|
Feature conversations muting (#3017)
* Add <ostatus:conversation /> tag to Atom input/output
Only uses ref attribute (not href) because href would be
the alternate link that's always included also.
Creates new conversation for every non-reply status. Carries
over conversation for every reply. Keeps remote URIs verbatim,
generates local URIs on the fly like the rest of them.
* Conversation muting - prevents notifications that reference a conversation
(including replies, favourites, reblogs) from being created. API endpoints
/api/v1/statuses/:id/mute and /api/v1/statuses/:id/unmute
Currently no way to tell when a status/conversation is muted, so the web UI
only has a "disable notifications" button, doesn't work as a toggle
* Display "Dismiss notifications" on all statuses in notifications column, not just own
* Add "muted" as a boolean attribute on statuses JSON
For now always false on contained reblogs, since it's only relevant for
statuses returned from the notifications endpoint, which are not nested
Remove "Disable notifications" from detailed status view, since it's
only relevant in the notifications column
* Up max class length
* Remove pending test for conversation mute
* Add tests, clean up
* Rename to "mute conversation" and "unmute conversation"
* Raise validation error when trying to mute/unmute status without conversation
2017-05-14 21:04:13 -04:00
|
|
|
};
|
|
|
|
};
|