fix: fix language property in the Mastodon API

This commit is contained in:
P. Reis
2024-10-07 16:05:22 -03:00
parent bbbce958d9
commit 4712cb1d80
3 changed files with 21 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
import { NostrEvent } from '@nostrify/nostrify';
import { LanguageCode } from 'iso-639-1';
/** Ditto internal stats for the event's author. */
export interface AuthorStats {
@@ -43,4 +44,6 @@ export interface DittoEvent extends NostrEvent {
zap_sender?: DittoEvent | string;
zap_amount?: number;
zap_message?: string;
/** Language of the event (kind 1s are more accurate). */
language?: LanguageCode;
}