mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-19 11:43:35 +00:00
Disable self-zap
This commit is contained in:
parent
0f032ee05b
commit
26abf383b8
@ -1,6 +1,5 @@
|
||||
# Current
|
||||
|
||||
- [ ] Fix relays notification when multiplexing
|
||||
- [ ] Disable self-zap
|
||||
- [ ] Move blog to nostr
|
||||
- [ ] Improve note rendering
|
||||
|
@ -161,8 +161,9 @@ function getExecutor(urls) {
|
||||
|
||||
let target
|
||||
|
||||
// Try to use our multiplexer, but if it fails to connect fall back to relays
|
||||
if (Config.multiplextrUrl) {
|
||||
// Try to use our multiplexer, but if it fails to connect fall back to relays. If
|
||||
// we're only connecting to a single relay, just do it directly
|
||||
if (Config.multiplextrUrl && urls.length > 1) {
|
||||
const socket = pool.get(Config.multiplextrUrl)
|
||||
|
||||
if (!socket.error) {
|
||||
@ -321,7 +322,7 @@ async function count(filter) {
|
||||
|
||||
return new Promise(resolve => {
|
||||
const sub = executor.count(filters, {
|
||||
onCount: res => resolve(res?.count),
|
||||
onCount: (url, {count}) => resolve(count),
|
||||
})
|
||||
|
||||
setTimeout(() => {
|
||||
|
@ -124,7 +124,7 @@
|
||||
$: $zapsTotal = sum(zaps.map(zap => zap.invoiceAmount)) / 1000
|
||||
$: $repliesCount = note.replies.length
|
||||
$: visibleNotes = note.replies.filter(r => (showContext ? true : !r.isContext))
|
||||
$: canZap = $person?.zapper
|
||||
$: canZap = $person?.zapper && $person?.pubkey !== user.getPubkey()
|
||||
|
||||
const onClick = e => {
|
||||
const target = e.target as HTMLElement
|
||||
|
Loading…
Reference in New Issue
Block a user