Refactor <Header> into TypeScript (#33956)

This commit is contained in:
Eugen Rochko 2025-02-25 16:30:46 +01:00 committed by GitHub
parent 20531d1e07
commit ebde60ca82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 1121 additions and 859 deletions

View file

@ -142,6 +142,13 @@ export function fetchAccountFail(id, error) {
};
}
/**
* @param {string} id
* @param {Object} options
* @param {boolean} [options.reblogs]
* @param {boolean} [options.notify]
* @returns {function(): void}
*/
export function followAccount(id, options = { reblogs: true }) {
return (dispatch, getState) => {
const alreadyFollowing = getState().getIn(['relationships', id, 'following']);