* feat(misskey): add withRenotes and mediaOnly options for user timeline - Add optional route parameters `withRenotes` and `mediaOnly` - Update route documentation with new parameter descriptions and examples - Modify `parseNotes` function to handle renotes * feat: handle reply message * Update lib/routes/misskey/user-timeline.ts ---------
30 lines
795 B
Arturo
30 lines
795 B
Arturo
{{ if reply }}
|
|
<blockquote>
|
|
<p>{{ reply.text }}</p>
|
|
</blockquote>
|
|
{{ /if }}
|
|
|
|
{{ if text }}
|
|
<p>{{ text.replace(/\n/g, '<br>') }}</p>
|
|
{{ /if }}
|
|
|
|
{{ each files file }}
|
|
<br>
|
|
{{ if file.type.includes('image') }}
|
|
<img src="{{ file.url }}" />
|
|
{{ else if file.type.includes('video') }}
|
|
<video controls poster="{{ file.thumbnailUrl }}">
|
|
<source src="{{ file.url }}" type="{{ file.type }}">
|
|
</video>
|
|
{{ else if file.type.includes('audio') }}
|
|
<audio controls>
|
|
<source src="{{ file.url }}" type="{{ file.type }}">
|
|
</audio>
|
|
{{ else }}
|
|
<a href="{{ file.url }}" target="_blank">{{ file.name }}</a>
|
|
{{ /if }}
|
|
{{ if file.comment }}
|
|
<p>{{ file.comment }}</p>
|
|
{{ /if }}
|
|
{{ /each }}
|