chore: Updated some nsfw npubs
This commit is contained in:
parent
531eaf276b
commit
1a2ef05ac4
@ -44,6 +44,7 @@ const AuthorProfile = ({
|
||||
}}
|
||||
style={{
|
||||
backgroundImage: avatarLoaded && src ? `url(${createImgProxyUrl(src, 80, 80)})` : 'none',
|
||||
backgroundColor: '#222',
|
||||
}}
|
||||
></div>
|
||||
<span
|
||||
|
@ -23,10 +23,10 @@ const InfoPanel = ({ image, onClose, setViewMode, settings }: InfoPanelProps) =>
|
||||
const [state] = useGlobalState();
|
||||
const { activeProfile, activeNpub } = useActiveProfile(settings, state.activeImage);
|
||||
|
||||
const profile = activeProfile && (
|
||||
const profile = (
|
||||
<AuthorProfile
|
||||
src={urlFix(activeProfile.image || '')}
|
||||
author={activeProfile.displayName || activeProfile.name}
|
||||
src={urlFix(activeProfile?.image || '')}
|
||||
author={activeProfile?.displayName || activeProfile?.name || 'Unkown'}
|
||||
npub={activeNpub}
|
||||
setViewMode={setViewMode}
|
||||
followButton
|
||||
@ -35,20 +35,14 @@ const InfoPanel = ({ image, onClose, setViewMode, settings }: InfoPanelProps) =>
|
||||
|
||||
return (
|
||||
<div className="info-panel">
|
||||
{profile && (
|
||||
<div className="info-panel-author">
|
||||
{profile}
|
||||
{image.post.event.id && (
|
||||
<a
|
||||
className="link"
|
||||
target="_blank"
|
||||
href={`https://nostrapp.link/#${nip19.noteEncode(image.post.event.id)}`}
|
||||
>
|
||||
<IconLink></IconLink>
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
<div className="info-panel-author">
|
||||
{profile}
|
||||
{image.post.event.id && (
|
||||
<a className="link" target="_blank" href={`https://nostrapp.link/#${nip19.noteEncode(image.post.event.id)}`}>
|
||||
<IconLink></IconLink>
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="info-panel-content">{image?.content} </div>
|
||||
|
||||
|
@ -252,7 +252,6 @@
|
||||
animation: bump 1s ease-in-out;
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.controls {
|
||||
top: 2em;
|
||||
|
@ -169,14 +169,13 @@ const SlideView = ({ settings, images, setViewMode }: SlideViewProps) => {
|
||||
<div className="caption">{activeContent}</div>
|
||||
</div>
|
||||
)}
|
||||
{activeProfile && (
|
||||
<AuthorProfile
|
||||
setViewMode={setViewMode}
|
||||
src={urlFix(activeProfile.image || '')}
|
||||
author={activeProfile.displayName || activeProfile.name}
|
||||
npub={activeNpub}
|
||||
></AuthorProfile>
|
||||
)}
|
||||
|
||||
<AuthorProfile
|
||||
setViewMode={setViewMode}
|
||||
src={urlFix(activeProfile?.image || '')}
|
||||
author={activeProfile?.displayName || activeProfile?.name || 'Unknown'}
|
||||
npub={activeNpub}
|
||||
></AuthorProfile>
|
||||
|
||||
{activeImages.map(image => (
|
||||
<Slide key={image.url} noteId={image.post.event.id} url={image.url} paused={paused} type={image.type} />
|
||||
|
@ -59,6 +59,8 @@ export const adultContentTags = [
|
||||
'titstr',
|
||||
'xxx',
|
||||
'nostrqueen',
|
||||
'cum',
|
||||
'masturbation',
|
||||
];
|
||||
|
||||
export const topics: { [key: string]: Topic } = {
|
||||
@ -365,6 +367,12 @@ export const adultNPubs = [
|
||||
'npub1z0xv9t5w6evrcg860kmgqq5tfj55mz84ta40uszjnfp9uhw2clkq63yrak', // ???
|
||||
'npub1zfm8u0rkgng5uflv9a0nl2gr76cuj7mzsltrur6z9zc8jcykyefskxrvhz', // mikee
|
||||
'npub1q3znd3tumjlpwn8z8uq4f9tvjh2xryc6z5d8vy2kku69a7xgperqfv38ez',
|
||||
'npub1rwh4musdpv9xryua2tucsgfmqhua70ct36gxqrr84ddty30un7xsmpmjcy',
|
||||
'npub18puyr2ltlzfqutj3pl6dm50zu7p5ar2t38wdcj9qhsplfl04easqudrc67',
|
||||
'npub1zzgzsp0czctjwe6cmnsn0vyjtskyajghsl9rc22y5uqc0ym5qcrqrrwr02',
|
||||
'npub1cgchvzcsemalc0tm4e0z6k6quthpw98ljr9h3l8lgzagyy3d62lq5sf0qk',
|
||||
'npub1rxsxj8egpr3emylfdld0wgh63w048tjh5zaua84h2qjscswn68ysdlt68s',
|
||||
'npub13lpdphw06d5hy5h7n0xsun9sfpwqsna9gsg0y0d4ukktks048nrseedtx9',
|
||||
];
|
||||
|
||||
export const adultPublicKeys = adultNPubs.map(npub => (nip19.decode(npub).data as string).toLowerCase());
|
||||
@ -396,6 +404,9 @@ export const blockedNPubs = [
|
||||
'npub1r668uwlt7vslu306q0saxt656zl45j8n2ztacal40r90dfl3lv3s6eq8wn',
|
||||
'npub1cw626vmllzzeej5k8zehpnhjevc8stqctstdswmlnqa85xx0gf0scr4qfu',
|
||||
'npub1krldgpd3tkz4565s69evjk7gee9arkgyz3ts0aekrhc7ru37am8qx43ncv',
|
||||
'npub1tt3n7nm548jf4jsgy9vwt25khz2n47d8um0lam0nmpk034zzlp2sfpc7tq',
|
||||
'npub1yrqtnr4qxvjqj4zs45sw3xlrflzks86dhy0y4hzj9jweujflksfszhsp06',
|
||||
'npub13mnfsm49p8hka246khma4gdzd9w8ygyt3udrcxmgmmhd5cyt5y3q879pvy',
|
||||
];
|
||||
|
||||
export const blockedPublicKeys = blockedNPubs.map(npub => (nip19.decode(npub).data as string).toLowerCase());
|
||||
|
@ -12,7 +12,7 @@ const useAuthorsFromList = (listAddr?: string): string[] => {
|
||||
|
||||
const listEvent = useEvent(
|
||||
{ kinds: [30000], authors: authorFilter, '#d': identFilter },
|
||||
{ disable: !validListAttr || !addrIsDefined || authorFilter.length == 0 || identFilter.length == 0}
|
||||
{ disable: !validListAttr || !addrIsDefined || authorFilter.length == 0 || identFilter.length == 0 }
|
||||
);
|
||||
|
||||
const authors: string[] = useMemo(() => {
|
||||
|
@ -10,7 +10,13 @@ const useImageSizes = (imageUrl: string) => {
|
||||
const imageUrl1920w = useMemo(() => createImgProxyUrl(imageUrl, 1920, -1), [imageUrl]);
|
||||
|
||||
const optimalImageUrl = useMemo(() => {
|
||||
return width == undefined ? imageUrl320w : width <= 640 ? imageUrl320w : width < 1500 ? imageUrl800w : imageUrl1920w;
|
||||
return width == undefined
|
||||
? imageUrl320w
|
||||
: width <= 640
|
||||
? imageUrl320w
|
||||
: width < 1500
|
||||
? imageUrl800w
|
||||
: imageUrl1920w;
|
||||
}, [width, imageUrl320w, imageUrl800w, imageUrl1920w]);
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user