mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-18 19:23:40 +00:00
Remove mentions from replies
This commit is contained in:
parent
fc2713e316
commit
3a6a30c88a
@ -1,4 +1,4 @@
|
||||
import {pick, uniqBy} from "ramda"
|
||||
import {last, pick, uniqBy} from "ramda"
|
||||
import {get} from "svelte/store"
|
||||
import {doPipe} from "hurdak/lib/hurdak"
|
||||
import {parseContent, Tags, roomAttrs, displayPerson, findRoot, findReply} from "src/util/nostr"
|
||||
@ -122,6 +122,7 @@ const getReplyTags = (n, inherit = false) => {
|
||||
const extra = inherit
|
||||
? Tags.from(n)
|
||||
.type("e")
|
||||
.reject(t => last(t) === "mention")
|
||||
.all()
|
||||
.map(t => t.slice(0, 3))
|
||||
: []
|
||||
@ -160,7 +161,7 @@ class PublishableEvent {
|
||||
}
|
||||
async publish(relays, onProgress = null, verb = "EVENT") {
|
||||
const event = await this.getSignedEvent()
|
||||
// console.log(event); return
|
||||
// return console.log(event)
|
||||
const promise = pool.publish({relays, event, onProgress, verb})
|
||||
|
||||
// Copy the event since loki mutates it to add metadata
|
||||
|
Loading…
Reference in New Issue
Block a user