소스 검색

apply url pipe to user's website in profile

Carsten Porth 6 년 전
부모
커밋
b00d80f255
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/src/components/profile-header/profile-header.html
  2. 1 0
      app/src/pages/profile/profile.ts

+ 1 - 1
app/src/components/profile-header/profile-header.html

@@ -15,7 +15,7 @@
         <ion-icon name="pin"></ion-icon>&nbsp;{{ user.location }}
       </span>
       <span class="user-website" *ngIf="user.url">
-        <ion-icon name="link"></ion-icon>&nbsp;{{ user.url }}
+        <ion-icon name="link"></ion-icon>&nbsp;<span [innerHTML]="user.url | replaceUrls: user.entities.url.urls"></span>
       </span>
     </div>
   </div>

+ 1 - 0
app/src/pages/profile/profile.ts

@@ -32,6 +32,7 @@ export class ProfilePage {
 
     this.twitter.fetchUser(this.userId)
       .then(res => {
+        console.log(res);
         this.user = res;
       });