Browse Source

apply url pipe to user's website in profile

Carsten Porth 5 years ago
parent
commit
b00d80f255

+ 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;
       });