diff options
author | Dessalines <tyhou13@gmx.com> | 2019-10-19 17:46:29 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-10-19 17:46:29 -0700 |
commit | 02dd9ac32a491e7ee41a012b11ff90666455066b (patch) | |
tree | 446a4d3acff2b3b7f17e6ce3a9555143a6f79d53 /ui/src/services | |
parent | 5547ecdeafe09be78c76236fbf01e73c638addf2 (diff) |
Adding username mentions / tagging from comments.
- Fixes #293
Diffstat (limited to 'ui/src/services')
-rw-r--r-- | ui/src/services/WebSocketService.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/src/services/WebSocketService.ts b/ui/src/services/WebSocketService.ts index f5d5b513..ac465b22 100644 --- a/ui/src/services/WebSocketService.ts +++ b/ui/src/services/WebSocketService.ts @@ -25,6 +25,8 @@ import { Site, UserView, GetRepliesForm, + GetUserMentionsForm, + EditUserMentionForm, SearchForm, UserSettingsForm, DeleteAccountForm, @@ -222,6 +224,16 @@ export class WebSocketService { this.subject.next(this.wsSendWrapper(UserOperation.GetReplies, form)); } + public getUserMentions(form: GetUserMentionsForm) { + this.setAuth(form); + this.subject.next(this.wsSendWrapper(UserOperation.GetUserMentions, form)); + } + + public editUserMention(form: EditUserMentionForm) { + this.setAuth(form); + this.subject.next(this.wsSendWrapper(UserOperation.EditUserMention, form)); + } + public getModlog(form: GetModlogForm) { this.subject.next(this.wsSendWrapper(UserOperation.GetModlog, form)); } |