Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

can't reply to myself more than once #34

Open
monlovesmango opened this issue Apr 14, 2022 · 1 comment
Open

can't reply to myself more than once #34

monlovesmango opened this issue Apr 14, 2022 · 1 comment

Comments

@monlovesmango
Copy link

hey fiatjaf,

i think i found a small issue where I can't reply to myself more than once and was able to reproduce on branle (3rd post was from forked branle client I am building with fix applied):
image

when I logged it to the console usableTags seemed to be returning a proxy value rather than an array(2).
image

i fixed it by just changing usableTags (in Reply.vue sendReply method) from this:
let usableTags = this.event.tags.filter(
([t, v]) => (t === 'p' || t === 'e') && v
)

to this:
let usableTags = this.event.tags.filter(
([t, v]) => (t === 'p' || t === 'e') && v
).map(([t, v]) => { return [t, v] })

let me know if you'd like me to create a pull request to fix this... or if I am doing something wrong and it isn't actually broken :)

@monlovesmango
Copy link
Author

if anyone else runs into this issue it is fixed in my fork: https://github.com/monlovesmango/astral

live client: https://astral.ninja/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant