mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 08:48:53 +00:00
[Glitch] Change quote action to error instead of insert link in Private Mentions
Port ba498ae779 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -421,16 +421,6 @@ export const composeReducer = (state = initialState, action) => {
|
||||
return 'private';
|
||||
}
|
||||
return visibility;
|
||||
})
|
||||
.update('text', (text) => {
|
||||
if (!isDirect) {
|
||||
return text;
|
||||
}
|
||||
const url = status.get('url');
|
||||
if (text.includes(url)) {
|
||||
return text;
|
||||
}
|
||||
return text.trim() ? `${text}\n\n${url}` : url;
|
||||
});
|
||||
} else if (quoteComposeCancel.match(action)) {
|
||||
return state.set('quoted_status_id', null);
|
||||
|
||||
Reference in New Issue
Block a user