mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-25 01:04:25 +01:00
createStatusController: parse hashtags in text
This commit is contained in:
@@ -112,6 +112,10 @@ const createStatusController: AppController = async (c) => {
|
||||
return match;
|
||||
});
|
||||
|
||||
for (const match of content.matchAll(/#(\w+)/g)) {
|
||||
tags.push(['t', match[1]]);
|
||||
}
|
||||
|
||||
const event = await createEvent({
|
||||
kind: 1,
|
||||
content,
|
||||
|
||||
Reference in New Issue
Block a user