rss template: break before media

This commit is contained in:
gutmet 2020-10-29 18:07:17 +01:00
parent 77da673c5d
commit ab83844b76

View File

@ -17,14 +17,14 @@ RT
@{{$status.User.Screen_name}}: <br><br>{{$status.Text}} @{{$status.User.Screen_name}}: <br><br>{{$status.Text}}
{{range $idxMedia, $media := $status.Extended_entities.Media}} {{range $idxMedia, $media := $status.Extended_entities.Media}}
<a href="https://twitter.com/$$USERNAME$$/status/{{$post.Id_str}}"><img src="{{$media.Media_url}}"></a> <br><a href="https://twitter.com/$$USERNAME$$/status/{{$post.Id_str}}"><img src="{{$media.Media_url}}"></a>
{{end}} {{end}}
{{if $status.Quoted_status}} {{if $status.Quoted_status}}
<br><br>Quotes <br><br>Quotes
@{{$status.Quoted_status.User.Screen_name}}: <br><br>{{$status.Quoted_status.Text}} @{{$status.Quoted_status.User.Screen_name}}: <br><br>{{$status.Quoted_status.Text}}
{{range $idxMedia, $media := $status.Quoted_status.Extended_entities.Media}} {{range $idxMedia, $media := $status.Quoted_status.Extended_entities.Media}}
<a href="https://twitter.com/$$USERNAME$$/status/{{$post.Id_str}}"><img src="{{$media.Media_url}}"></a> <br><a href="https://twitter.com/$$USERNAME$$/status/{{$post.Id_str}}"><img src="{{$media.Media_url}}"></a>
{{end}} {{end}}
{{end}} {{end}}