tweak status options
This commit is contained in:
parent
8197c9e773
commit
a6d2382f97
|
@ -23,15 +23,14 @@ export default {
|
||||||
verifyCredentialsId: (verifyCredentials) => verifyCredentials.id,
|
verifyCredentialsId: (verifyCredentials) => verifyCredentials.id,
|
||||||
following: (relationship) => relationship && relationship.following,
|
following: (relationship) => relationship && relationship.following,
|
||||||
followRequested: (relationship) => relationship && relationship.requested,
|
followRequested: (relationship) => relationship && relationship.requested,
|
||||||
accountName: (account) => account && (account.display_name || account.acct),
|
|
||||||
accountId: (account) => account && account.id,
|
accountId: (account) => account && account.id,
|
||||||
followLabel: (following, followRequested, accountName) => {
|
followLabel: (following, followRequested, account) => {
|
||||||
if (typeof following === 'undefined' || !accountName) {
|
if (typeof following === 'undefined' || !account) {
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
return (following || followRequested)
|
return (following || followRequested)
|
||||||
? `Unfollow ${accountName}`
|
? `Unfollow @${account.acct}`
|
||||||
: `Follow ${accountName}`
|
: `Follow @${account.acct}`
|
||||||
},
|
},
|
||||||
items: (followLabel, following, followRequested, accountId, verifyCredentialsId) => (
|
items: (followLabel, following, followRequested, accountId, verifyCredentialsId) => (
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue