this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Prevent showing card and QP for links that link the post itself

Use case: links from lemmy

+9 -1
+9 -1
src/components/status.jsx
··· 965 965 'a[href]:not(.u-url):not(.mention):not(.hashtag)', 966 966 ), 967 967 ) 968 - .filter((a) => isMastodonLinkMaybe(a.href)) 968 + .filter((a) => { 969 + const url = a.href; 970 + const isPostItself = 971 + url === status.url || url === status.uri; 972 + return !isPostItself && isMastodonLinkMaybe(url); 973 + }) 969 974 .forEach((a, i) => { 970 975 unfurlMastodonLink(currentInstance, a.href).then( 971 976 (result) => { ··· 1076 1081 </div> 1077 1082 )} 1078 1083 {!!card && 1084 + card?.url !== status.url && 1085 + card?.url !== status.uri && 1086 + /^https/i.test(card?.url) && 1079 1087 !sensitive && 1080 1088 !spoilerText && 1081 1089 !poll &&