commit dabfb2d71b1d72929be916ef95ba99d3f4cd8af2
parent d38fc53344f0f7329cbfab43711b3d143aa2ebee
Author: MTRNord <mtrnord1@gmail.com>
Date: Tue, 27 Mar 2018 15:44:51 +0200
Fix colliding names
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/app/tweet-list/tweet-list.component.ts b/src/app/tweet-list/tweet-list.component.ts
@@ -12,11 +12,11 @@ import 'rxjs/add/observable/throw';
import {ToastrService} from 'ngx-toastr';
import {Meta, Title} from '@angular/platform-browser';
import {Lightbox} from '../utils/lightbox';
-import * as linkify from 'linkifyjs';
+import * as linkifyM from 'linkifyjs';
import hashtagL from 'linkifyjs/plugins/hashtag';
import mentionL from 'linkifyjs/plugins/mention';
-hashtagL(linkify);
-mentionL(linkify);
+hashtagL(linkifyM);
+mentionL(linkifyM);
@Component({
@@ -121,7 +121,7 @@ export class TweetListComponent implements OnInit {
// TODO use this
private linkifyMention(text: string) {
- hashtagL.find(text);
+ mentionL.find(text);
}
private sort(arr: (TweetsEntity)[]): (TweetsEntity)[] {