mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-23 16:44:04 -05:00
Fix error on viewing a profile when unlogged (#28465)
This commit is contained in:
parent
9251779d75
commit
1c041356a1
@ -85,6 +85,8 @@ const titleFromAccount = account => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const messageForFollowButton = relationship => {
|
const messageForFollowButton = relationship => {
|
||||||
|
if(!relationship) return messages.follow;
|
||||||
|
|
||||||
if (relationship.get('following') && relationship.get('followed_by')) {
|
if (relationship.get('following') && relationship.get('followed_by')) {
|
||||||
return messages.mutual;
|
return messages.mutual;
|
||||||
} else if (!relationship.get('following') && relationship.get('followed_by')) {
|
} else if (!relationship.get('following') && relationship.get('followed_by')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user