mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-08-21 10:33:37 +00:00
fix build errors in ApRendererService.ts
This commit is contained in:
parent
a4dd19fdd4
commit
cdf9921f2c
1 changed files with 16 additions and 2 deletions
|
@ -839,10 +839,24 @@ export class ApRendererService {
|
||||||
poll = await this.pollsRepository.findOneBy({ noteId: note.id });
|
poll = await this.pollsRepository.findOneBy({ noteId: note.id });
|
||||||
}
|
}
|
||||||
|
|
||||||
let apAppend = '';
|
const apAppend: Appender[] = [];
|
||||||
|
|
||||||
if (quote) {
|
if (quote) {
|
||||||
apAppend += `\n\nRE: ${quote}`;
|
// Append quote link as `<br><br><span class="quote-inline">RE: <a href="...">...</a></span>`
|
||||||
|
// the claas name `quote-inline` is used in non-misskey clients for styling quote notes.
|
||||||
|
// For compatibility, the span part should be kept as possible.
|
||||||
|
apAppend.push((doc, body) => {
|
||||||
|
body.appendChild(doc.createElement('br'));
|
||||||
|
body.appendChild(doc.createElement('br'));
|
||||||
|
const span = doc.createElement('span');
|
||||||
|
span.className = 'quote-inline';
|
||||||
|
span.appendChild(doc.createTextNode('RE: '));
|
||||||
|
const link = doc.createElement('a');
|
||||||
|
link.setAttribute('href', quote);
|
||||||
|
link.textContent = quote;
|
||||||
|
span.appendChild(link);
|
||||||
|
body.appendChild(span);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let summary = note.cw === '' ? String.fromCharCode(0x200B) : note.cw;
|
let summary = note.cw === '' ? String.fromCharCode(0x200B) : note.cw;
|
||||||
|
|
Loading…
Add table
Reference in a new issue