Skip to content

Commit dc168c9

Browse files
authored
Fix list not being automatically unpinned when it returns 404 in web UI (mastodon#11045)
1 parent 4ab550f commit dc168c9

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

app/javascript/mastodon/actions/alerts.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const messages = defineMessages({
88
export const ALERT_SHOW = 'ALERT_SHOW';
99
export const ALERT_DISMISS = 'ALERT_DISMISS';
1010
export const ALERT_CLEAR = 'ALERT_CLEAR';
11+
export const ALERT_NOOP = 'ALERT_NOOP';
1112

1213
export function dismissAlert(alert) {
1314
return {
@@ -36,7 +37,7 @@ export function showAlertForError(error) {
3637

3738
if (status === 404 || status === 410) {
3839
// Skip these errors as they are reflected in the UI
39-
return {};
40+
return { type: ALERT_NOOP };
4041
}
4142

4243
let message = statusText;

app/javascript/styles/mastodon/components.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3075,6 +3075,10 @@ a.status-card.compact:hover {
30753075
display: flex;
30763076
}
30773077

3078+
.column-header__links {
3079+
margin-bottom: 14px;
3080+
}
3081+
30783082
.column-header__links .text-btn {
30793083
margin-right: 10px;
30803084
}

0 commit comments

Comments
 (0)