mirror of
https://github.com/versia-pub/server.git
synced 2025-12-07 00:48:18 +01:00
fix(federation): 🐛 Fix mention URIs in Lysand Notes being empty string for local users
This commit is contained in:
parent
0359ba13c4
commit
00fd751c2a
|
|
@ -898,7 +898,9 @@ export class Note extends BaseInterface<typeof Notes, StatusWithRelations> {
|
||||||
new Attachment(attachment).toLysand(),
|
new Attachment(attachment).toLysand(),
|
||||||
),
|
),
|
||||||
is_sensitive: status.sensitive,
|
is_sensitive: status.sensitive,
|
||||||
mentions: status.mentions.map((mention) => mention.uri || ""),
|
mentions: status.mentions.map((mention) =>
|
||||||
|
User.getUri(mention.id, mention.uri, config.http.base_url),
|
||||||
|
),
|
||||||
quotes: Note.getUri(status.quotingId) ?? undefined,
|
quotes: Note.getUri(status.quotingId) ?? undefined,
|
||||||
replies_to: Note.getUri(status.replyId) ?? undefined,
|
replies_to: Note.getUri(status.replyId) ?? undefined,
|
||||||
subject: status.spoilerText,
|
subject: status.spoilerText,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue