"Mute" operation of steemit shown as "Follow" on activity page at Busy.org

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@emrebeyler·
0.000 HBD
"Mute" operation of steemit shown as "Follow" on activity page at Busy.org
#### Project Information

* Repository: https://github.com/busyorg/busy/
* Project Name: Busy
* Publisher: Busy.org team
* Related Github issue: [https://github.com/busyorg/busy/issues/1893](https://github.com/busyorg/busy/issues/1893)

#### Expected behavior

When I mute/ignore an account on Steemit, I expect the activity page (at Busy.org) to show I have muted them. At least, it shouldn't show anything. Busy doesn't implement any mute/ignore functionality, so not seeing this type of activity is okay.

#### Actual behavior

User Activity pages show that I have **followed** the person I have muted.

Current implementation decides the action based on the ```what``` property of follow custom_json operation. 

I believe [this part of the code](https://github.com/busyorg/busy/blob/1f254bbfa911b8542093aacee7be5d60c21d1008/src/client/activity/CustomJSONMessage.js#L14) causes that problem: 

```
const followAction = _.isEmpty(customActionDetails.what) ? 'unfollowed' : 'followed';
```

This works well for follow and unfollow operations. However, Steemit's ignore operation has the same custom JSON id (follow) so ```customActionDetails.what``` set as  `[ignore, ]` which breaks the above logic.

##### [Example transaction](https://steemd.com/tx/01131e69ab495834369e8b415c63ca3b527275d4)

<img width="1069" alt="screen shot 2018-05-23 at 3 15 22 pm" src="https://user-images.githubusercontent.com/72460/40423779-3e08d3a6-5e9c-11e8-9f26-700df41f30e9.png">

##### [Representation on my account's activity page](https://busy.org/@emrebeyler)
<img width="521" alt="screen shot 2018-05-23 at 3 15 43 pm" src="https://user-images.githubusercontent.com/72460/40423836-64b159f6-5e9c-11e8-987d-ce55cae7b5b9.png">


#### How to reproduce

Mute someone in the Steemit and check your activity page at Busy. You will see activity page states that you have followed that person.

* Browser/App version: Chrome Version 66.0.3359.181 (Official Build) (64-bit), Latest Stable Busy release
* Operating system: Osx sierra

#### GitHub Account
https://github.com/emre
👍 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,