diff options
| author | lambadalambda <gitgud@rogerbraun.net> | 2017-08-10 12:34:02 -0400 |
|---|---|---|
| committer | lambadalambda <gitgud@rogerbraun.net> | 2017-08-10 12:34:02 -0400 |
| commit | dbad99cb4fac4750a881773c9add317a8a4d9664 (patch) | |
| tree | b65e3b704dd92529939abbb1e41ea579af4a6384 /src/modules | |
| parent | 3c2073bc8ec36e45e0b8236081ca0c2b40ef958a (diff) | |
| parent | 701112f043720c294241852f9aa0a0f1956cd71c (diff) | |
Merge branch 'feature/follow-notifications' into 'develop'
Add follow notifications.
See merge request !92
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/statuses.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js index 084800fa..de5d7d23 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -105,6 +105,10 @@ export const statusType = (status) => { return 'deletion' } + if (status.text.match(/started following/)) { + return 'follow' + } + return 'unknown' } @@ -253,6 +257,9 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us favoriteStatus(favorite) } }, + 'follow': (status) => { + addNotification({ type: 'follow', status: status, action: status }) + }, 'deletion': (deletion) => { const uri = deletion.uri updateMaxId(deletion) |
