소스 검색

Update Remote Post + Profile hashtag to redirect to local urls

Daniel Supernault 4 년 전
부모
커밋
1fa08644b4
2개의 변경된 파일516개의 추가작업 그리고 510개의 파일을 삭제
  1. 510 510
      resources/assets/js/components/RemotePost.vue
  2. 6 0
      resources/assets/js/components/RemoteProfile.vue

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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() {

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.