Skip to content

Commit f7df46c

Browse files
committedJan 28, 2023
Sponsors: handle Nostr image paths
1 parent 6dee3ac commit f7df46c

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed
 

‎views/Settings/Gods.tsx

+10-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ export default class Gods extends React.Component<GodsProps, {}> {
7272
}}
7373
onPress={() =>
7474
UrlUtils.goToUrl(
75-
`https://twitter.com/${item.handle}`
75+
`https://${
76+
item.type === 'Twitter'
77+
? 'twitter.com/'
78+
: 'iris.to/#/profile/'
79+
}${item.handle}`
7680
)
7781
}
7882
>
@@ -83,7 +87,11 @@ export default class Gods extends React.Component<GodsProps, {}> {
8387
}
8488
rounded
8589
source={{
86-
uri: `https://zeusln.app/api/twitter-images/${item.handle}.jpg`
90+
uri: `https://zeusln.app/api/${
91+
item.type === 'Twitter'
92+
? 'twitter-images/'
93+
: 'nostr-images/'
94+
}${item.handle}.jpg`
8795
}}
8896
key={1}
8997
containerStyle={{ margin: 5 }}

‎views/Settings/Mortals.tsx

+10-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ export default class Mortals extends React.Component<MortalsProps, {}> {
7272
}}
7373
onPress={() =>
7474
UrlUtils.goToUrl(
75-
`https://twitter.com/${item.handle}`
75+
`https://${
76+
item.type === 'Twitter'
77+
? 'twitter.com/'
78+
: 'iris.to/#/profile/'
79+
}${item.handle}`
7680
)
7781
}
7882
>
@@ -83,7 +87,11 @@ export default class Mortals extends React.Component<MortalsProps, {}> {
8387
}
8488
rounded
8589
source={{
86-
uri: `https://zeusln.app/api/twitter-images/${item.handle}.jpg`
90+
uri: `https://zeusln.app/api/${
91+
item.type === 'Twitter'
92+
? 'twitter-images/'
93+
: 'nostr-images/'
94+
}${item.handle}.jpg`
8795
}}
8896
key={1}
8997
containerStyle={{ margin: 5 }}

‎views/Settings/Olympians.tsx

+10-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ export default class Olympians extends React.Component<OlympiansProps, {}> {
7272
}}
7373
onPress={() =>
7474
UrlUtils.goToUrl(
75-
`https://twitter.com/${item.handle}`
75+
`https://${
76+
item.type === 'Twitter'
77+
? 'twitter.com/'
78+
: 'iris.to/#/profile/'
79+
}${item.handle}`
7680
)
7781
}
7882
>
@@ -83,7 +87,11 @@ export default class Olympians extends React.Component<OlympiansProps, {}> {
8387
}
8488
rounded
8589
source={{
86-
uri: `https://zeusln.app/api/twitter-images/${item.handle}.jpg`
90+
uri: `https://zeusln.app/api/${
91+
item.type === 'Twitter'
92+
? 'twitter-images/'
93+
: 'nostr-images/'
94+
}${item.handle}.jpg`
8795
}}
8896
key={1}
8997
containerStyle={{ margin: 8 }}

0 commit comments

Comments
 (0)