mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-25 22:33:52 +03:00
correct ecency.app and ecency usages
This commit is contained in:
parent
0a47c9ba54
commit
5779d9cd60
@ -1403,7 +1403,7 @@ export const grantPostingPermission = async (json, pin, currentAccount) => {
|
||||
{
|
||||
account_auths: [
|
||||
...get(currentAccount, 'posting.account_auths'),
|
||||
['ecency', get(currentAccount, 'posting.weight_threshold')],
|
||||
['ecency.app', get(currentAccount, 'posting.weight_threshold')],
|
||||
],
|
||||
},
|
||||
);
|
||||
|
@ -1,7 +1,7 @@
|
||||
import hivesigner from 'hivesigner';
|
||||
|
||||
const api = new hivesigner.Client({
|
||||
app: 'ecency',
|
||||
app: 'ecency.app',
|
||||
callbackURL: 'http://127.0.0.1:3415',
|
||||
});
|
||||
|
||||
|
@ -562,7 +562,7 @@ class EditorContainer extends Component {
|
||||
|
||||
if (currentAccount && currentAccount.posting) {
|
||||
hasPostingPerm =
|
||||
currentAccount.posting.account_auths.filter((x) => x[0] === 'ecency').length > 0;
|
||||
currentAccount.posting.account_auths.filter((x) => x[0] === 'ecency.app').length > 0;
|
||||
}
|
||||
|
||||
if (hasPostingPerm) {
|
||||
|
@ -42,8 +42,10 @@ const parseAuthorPermlink = (u) => {
|
||||
};
|
||||
|
||||
export default (url) => {
|
||||
if (url.startsWith('ecency://')) {
|
||||
url = url.replace('ecency://', 'https://ecency.com/');
|
||||
if (url.startsWith('ecency://') || url.startsWith('esteem://')) {
|
||||
url = url
|
||||
.replace('ecency://', 'https://ecency.com/')
|
||||
.replace('esteem://', 'https://ecency.com/');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-useless-escape
|
||||
|
Loading…
Reference in New Issue
Block a user