Merge pull request #351 from w3irdrobot/mentions-dont-make-thread
Update thread detection to not include mentions
This commit is contained in:
@ -19,7 +19,7 @@ export default class Thread {
|
|||||||
* @param ev Event to extract thread from
|
* @param ev Event to extract thread from
|
||||||
*/
|
*/
|
||||||
static ExtractThread(ev: NEvent) {
|
static ExtractThread(ev: NEvent) {
|
||||||
const isThread = ev.Tags.some((a) => a.Key === "e");
|
const isThread = ev.Tags.some((a) => a.Key === "e" && a.Marker !== "mention");
|
||||||
if (!isThread) {
|
if (!isThread) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user