this repo has no description
0
fork

Configure Feed

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

Test fix self-recursive quote posts

+10
+10
src/utils/states.js
··· 295 295 unfurlMastodonLink(currentInstance, a.href).then((result) => { 296 296 if (!result) return; 297 297 if (!sKey) return; 298 + if (result?.id === status.id) { 299 + // Unfurled post is the post itself??? 300 + // Scenario: 301 + // 1. Post with [URL] 302 + // 2. Unfurl [URL], API returns the same post that contains [URL] 303 + // 3. 💥 Recursive quote posts 💥 304 + // Note: Mastodon search doesn't return posts that contains [URL], it's actually used to *resolve* the URL 305 + // But some non-Mastodon servers, their search API will eventually search posts that contains [URL] and return them 306 + return; 307 + } 298 308 if (!Array.isArray(states.statusQuotes[sKey])) { 299 309 states.statusQuotes[sKey] = []; 300 310 }