Pārlūkot izejas kodu

Update Remote Post + Profile hashtag to redirect to local urls

Daniel Supernault 4 gadi atpakaļ
vecāks
revīzija
1fa08644b4

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 510 - 510
resources/assets/js/components/RemotePost.vue


+ 6 - 0
resources/assets/js/components/RemoteProfile.vue

@@ -227,6 +227,12 @@
 			this.fetchProfile();
 		},
 
+		updated() {
+			document.querySelectorAll('.hashtag').forEach(function(i, e) {
+			    i.href = App.util.format.rewriteLinks(i);
+			});
+		},
+
 		methods: {
 
 			fetchProfile() {

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels