[Glitch] Profile redesign: Follow button and menu reorg

Port 346ca87ee8 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Echo authored and Claire committed 2026-02-03 15:57:49 +01:00
1 parent 3c2a06dc24
commit 82f7cdcb48
9 files changed
+714 -271

No files matched your search

@@ -153,7 +153,8 @@ export function fetchAccountFail(id, error) {
*/
export function followAccount(id, options = { reblogs: true }) {
return (dispatch, getState) => {
const alreadyFollowing = getState().getIn(['relationships', id, 'following']);
const relationship = getState().getIn(['relationships', id]);
const alreadyFollowing = relationship?.following || relationship?.requested;
const locked = getState().getIn(['accounts', id, 'locked'], false);
dispatch(followAccountRequest({ id, locked }));