You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to publish a note that mentions another note without it appearing as a reply to that note.
When Damus does it (by clicking the repost button and then choosing "Quote" to add text), it adds a q tag instead of an e tag.
When I tried to mimic this behavior, the generateTags() function analyzed the event content and added an e tag that I didn't want - and the note appeared as a reply (and also on the profile page it appeared in the "Notes & Replires" tab instead of the "Notes" tab).
Also, generateTags() is called multiple times from lots of places in the code - so I didn't manage to use the class in a way that doesn't call it (and still manage to sign & publish the event).
I ended up overriding the function with: event.generateTags = () =>({ content: event.content, tags: event.tags }); which is really ugly. Would be nicer if I could do: event.disableTagGeneration = true or something similar.
I wanted to publish a note that mentions another note without it appearing as a reply to that note.
When Damus does it (by clicking the repost button and then choosing "Quote" to add text), it adds a
q
tag instead of ane
tag.When I tried to mimic this behavior, the
generateTags()
function analyzed the event content and added ane
tag that I didn't want - and the note appeared as a reply (and also on the profile page it appeared in the "Notes & Replires" tab instead of the "Notes" tab).Also,
generateTags()
is called multiple times from lots of places in the code - so I didn't manage to use the class in a way that doesn't call it (and still manage to sign & publish the event).I ended up overriding the function with:
event.generateTags = () =>({ content: event.content, tags: event.tags });
which is really ugly. Would be nicer if I could do:event.disableTagGeneration = true
or something similar.P.S.
This library is awesome. I used it to build this bot: https://damus.io/npub1qm05ghrt2xuc970rxpsuchs504ah4rllxsgevdyjc0v5uha77m6qujz78x
The text was updated successfully, but these errors were encountered: