socialnetworknews-web

A open-source Paper.li clone
git clone git://archive.git.mtrnord.blog/SocialNetworkNews/socialnetworknews-web.git
Log | Files | Refs | README | LICENSE

commit dabfb2d71b1d72929be916ef95ba99d3f4cd8af2
parent d38fc53344f0f7329cbfab43711b3d143aa2ebee
Author: MTRNord <mtrnord1@gmail.com>
Date:   Tue, 27 Mar 2018 15:44:51 +0200

Fix colliding names

Diffstat:
Msrc/app/tweet-list/tweet-list.component.ts | 8++++----
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)[] {