mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-03 03:25:24 +03:00
log
This commit is contained in:
parent
a7b8e578b7
commit
4d22cc2f57
@ -1,5 +1,6 @@
|
||||
import { Alert } from 'react-native';
|
||||
import ePointApi from '../../config/api';
|
||||
import { jsonStringify } from '../../utils/jsonUtils';
|
||||
|
||||
export const userActivity = (us, ty, bl = '', tx = '') =>
|
||||
new Promise(resolve => {
|
||||
@ -12,7 +13,7 @@ export const userActivity = (us, ty, bl = '', tx = '') =>
|
||||
if (tx) {
|
||||
params.tx = tx;
|
||||
}
|
||||
|
||||
Alert.alert('Error1', jsonStringify(params));
|
||||
ePointApi
|
||||
.post('/usr-activity', params)
|
||||
.then(res => {
|
||||
|
@ -463,6 +463,7 @@ export const getPostWithComments = async (user, permlink) => {
|
||||
|
||||
export const vote = (account, pin, author, permlink, weight) =>
|
||||
_vote(account, pin, author, permlink, weight).then(resp => {
|
||||
alert(resp.block_num);
|
||||
userActivity(account.username, 120, resp.block_num, resp.id);
|
||||
return resp;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user