diff options
author | Dessalines <tyhou13@gmx.com> | 2019-04-25 14:52:18 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-04-25 14:52:18 -0700 |
commit | e4532aa1cb19decb5f57fca13ca20aae3e1e0a1e (patch) | |
tree | 8e053b3843acddfa3c36b593e3239d0fd6e38e73 /ui/src/services | |
parent | fdc5a23f2ac2d166a11fe2eb0670c97a16122835 (diff) |
Adding /f/ and /u/ in links now.
- Fixes #102
Diffstat (limited to 'ui/src/services')
-rw-r--r-- | ui/src/services/WebSocketService.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/src/services/WebSocketService.ts b/ui/src/services/WebSocketService.ts index dc06df28..2389ab84 100644 --- a/ui/src/services/WebSocketService.ts +++ b/ui/src/services/WebSocketService.ts @@ -81,6 +81,11 @@ export class WebSocketService { this.subject.next(this.wsSendWrapper(UserOperation.GetCommunity, data)); } + public getCommunityByName(name: string) { + let data = {name: name, auth: UserService.Instance.auth }; + this.subject.next(this.wsSendWrapper(UserOperation.GetCommunity, data)); + } + public createComment(commentForm: CommentForm) { this.setAuth(commentForm); this.subject.next(this.wsSendWrapper(UserOperation.CreateComment, commentForm)); |