mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-30 10:34:21 +01:00
Merge branch 'main' into zap-notification
This commit is contained in:
@@ -84,7 +84,12 @@ async function renderStatus(event: DittoEvent, opts: RenderStatusOpts): Promise<
|
||||
|
||||
const imeta: string[][][] = event.tags
|
||||
.filter(([name]) => name === 'imeta')
|
||||
.map(([_, ...entries]) => entries.map((entry) => entry.split(' ')));
|
||||
.map(([_, ...entries]) =>
|
||||
entries.map((entry) => {
|
||||
const split = entry.split(' ');
|
||||
return [split[0], split.splice(1).join(' ')];
|
||||
})
|
||||
);
|
||||
|
||||
const media = imeta.length ? imeta : getMediaLinks(links);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user