summaryrefslogtreecommitdiffstats
path: root/ui/src/services
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-04-25 14:52:18 -0700
committerDessalines <tyhou13@gmx.com>2019-04-25 14:52:18 -0700
commite4532aa1cb19decb5f57fca13ca20aae3e1e0a1e (patch)
tree8e053b3843acddfa3c36b593e3239d0fd6e38e73 /ui/src/services
parentfdc5a23f2ac2d166a11fe2eb0670c97a16122835 (diff)
Adding /f/ and /u/ in links now.
- Fixes #102
Diffstat (limited to 'ui/src/services')
-rw-r--r--ui/src/services/WebSocketService.ts5
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));