Merge pull request #351 from w3irdrobot/mentions-dont-make-thread
Update thread detection to not include mentions
This commit is contained in:
commit
4c0098e3af
@ -19,7 +19,7 @@ export default class Thread {
|
||||
* @param ev Event to extract thread from
|
||||
*/
|
||||
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) {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user