diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/user_profile/user_profile.js | 6 | ||||
| -rw-r--r-- | src/modules/statuses.js | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js index 5f9d4d08..48a8a073 100644 --- a/src/components/user_profile/user_profile.js +++ b/src/components/user_profile/user_profile.js @@ -22,6 +22,12 @@ const UserProfile = { } } }, + watch: { + userId () { + this.$store.commit('clearTimeline', { timeline: 'user' }) + this.$store.dispatch('startFetching', ['user', this.userId]) + } + }, components: { UserCardContent, Timeline diff --git a/src/modules/statuses.js b/src/modules/statuses.js index de5d7d23..c7c3d016 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -97,7 +97,8 @@ export const statusType = (status) => { return 'retweet' } - if (typeof status.uri === 'string' && status.uri.match(/(fave|objectType=Favourite)/)) { + if ((typeof status.uri === 'string' && status.uri.match(/(fave|objectType=Favourite)/)) || + (typeof status.text === 'string' && status.text.match(/favorited/))) { return 'favorite' } |
