mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
make changes according to 24-06-24 review
This commit is contained in:
parent
f19afa449a
commit
3f7687d59f
5 changed files with 5 additions and 5 deletions
|
|
@ -69,7 +69,7 @@ class Conf {
|
||||||
}
|
}
|
||||||
/** Get a link to a nip19-encoded entity in the configured external viewer. */
|
/** Get a link to a nip19-encoded entity in the configured external viewer. */
|
||||||
static external(path: string) {
|
static external(path: string) {
|
||||||
return new URL(path, Conf.externalDomain);
|
return new URL(path, Conf.externalDomain).toString();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Heroku-style database URL. This is used in production to connect to the
|
* Heroku-style database URL. This is used in production to connect to the
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ export interface MastodonAccount {
|
||||||
username: string;
|
username: string;
|
||||||
ditto: {
|
ditto: {
|
||||||
accepts_zaps: boolean;
|
accepts_zaps: boolean;
|
||||||
external?: URL;
|
external_url: string;
|
||||||
};
|
};
|
||||||
pleroma: {
|
pleroma: {
|
||||||
deactivated: boolean;
|
deactivated: boolean;
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,6 @@ export interface MastodonStatus {
|
||||||
quotes_count: number;
|
quotes_count: number;
|
||||||
};
|
};
|
||||||
ditto: {
|
ditto: {
|
||||||
external?: URL;
|
external_url: string;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ async function renderAccount(
|
||||||
username: parsed05?.nickname || npub.substring(0, 8),
|
username: parsed05?.nickname || npub.substring(0, 8),
|
||||||
ditto: {
|
ditto: {
|
||||||
accepts_zaps: Boolean(getLnurl({ lud06, lud16 })),
|
accepts_zaps: Boolean(getLnurl({ lud06, lud16 })),
|
||||||
external: Conf.externalDomain === Conf.localDomain ? undefined : Conf.external(npub),
|
external_url: Conf.external(npub),
|
||||||
},
|
},
|
||||||
pleroma: {
|
pleroma: {
|
||||||
deactivated: names.has('disabled'),
|
deactivated: names.has('disabled'),
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ async function renderStatus(event: DittoEvent, opts: RenderStatusOpts): Promise<
|
||||||
url: Conf.local(`/${note}`),
|
url: Conf.local(`/${note}`),
|
||||||
zapped: Boolean(zapEvent),
|
zapped: Boolean(zapEvent),
|
||||||
ditto: {
|
ditto: {
|
||||||
external: Conf.externalDomain === Conf.localDomain ? undefined : Conf.external(note),
|
external_url: Conf.external(note),
|
||||||
},
|
},
|
||||||
pleroma: {
|
pleroma: {
|
||||||
emoji_reactions: reactions,
|
emoji_reactions: reactions,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue