[ActivityPub] Use microformats on mentions
To avoid pointless link previews. see: https://misskey.xyz/notes/5c51ab5c2d85f2003248eddc
This commit is contained in:
		
							parent
							
								
									a4b1e8ca26
								
							
						
					
					
						commit
						8dc7f28744
					
				|  | @ -6,6 +6,7 @@ unreleased | |||
| * サイレンス機能の追加 | ||||
| * リプライ/メンションされていれば非フォロワーへのフォロワー限定でも参照可能に | ||||
| * Misskey以外のインスタンスからMisskeyの投稿を見たときに改行が多い問題を修正 | ||||
| * Misskey以外のインスタンスからMisskeyの投稿を見たときにメンションのURLが展開されるのを修正 | ||||
| 
 | ||||
| 10.79.1 | ||||
| ---------- | ||||
|  |  | |||
|  | @ -137,6 +137,7 @@ export function toHtml(tokens: MfmForest, mentionedRemoteUsers: INote['mentioned | |||
| 				default: | ||||
| 					const remoteUserInfo = mentionedRemoteUsers.find(remoteUser => remoteUser.username === username && remoteUser.host === host); | ||||
| 					a.href = remoteUserInfo ? remoteUserInfo.uri : `${config.url}/${acct}`; | ||||
| 					a.className = 'mention'; | ||||
| 					break; | ||||
| 			} | ||||
| 			a.textContent = acct; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue