this repo has no description
0
fork

Configure Feed

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

Handle another kind of emojiReaction response

Can't everyone just standardize the responses?

+19 -2
+19 -2
src/components/status.jsx
··· 1943 1943 {!!emojiReactions?.length && ( 1944 1944 <div class="emoji-reactions"> 1945 1945 {emojiReactions.map((emojiReaction) => { 1946 - const { name, count, me } = emojiReaction; 1946 + const { name, count, me, url, staticUrl } = emojiReaction; 1947 + if (url) { 1948 + // Some servers return url and staticUrl 1949 + return ( 1950 + <span 1951 + class={`emoji-reaction tag ${ 1952 + me ? '' : 'insignificant' 1953 + }`} 1954 + > 1955 + <CustomEmoji 1956 + alt={name} 1957 + url={url} 1958 + staticUrl={staticUrl} 1959 + />{' '} 1960 + {count} 1961 + </span> 1962 + ); 1963 + } 1947 1964 const isShortCode = /^:.+?:$/.test(name); 1948 1965 if (isShortCode) { 1949 1966 const emoji = emojis.find( ··· 1962 1979 alt={name} 1963 1980 url={emoji.url} 1964 1981 staticUrl={emoji.staticUrl} 1965 - /> 1982 + />{' '} 1966 1983 {count} 1967 1984 </span> 1968 1985 );