diff --git a/resources/assets/js/components/RemoteProfile.vue b/resources/assets/js/components/RemoteProfile.vue index a0eb9f86..99191e43 100644 --- a/resources/assets/js/components/RemoteProfile.vue +++ b/resources/assets/js/components/RemoteProfile.vue @@ -33,7 +33,7 @@
{{profile.display_name}}
-{{profile.acct}}
+{{profile.statuses_count}} @@ -481,6 +481,18 @@ suffix = suffix ? ' ' + suffix : ''; return App.util.format.timeAgo(ts) + suffix; }, + + urlRedirectHandler(url) { + let p = new URL(url); + let path = ''; + if(p.hostname == window.location.hostname) { + path = url; + } else { + path = '/i/redirect?url='; + path += encodeURI(url); + } + window.location.href = path; + } } }