user.blade.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?=
  2. /* Using an echo tag here so the `<? ... ?>` won't get parsed as short tags */
  3. '<?xml version="1.0" encoding="UTF-8"?>'.PHP_EOL
  4. ?>
  5. <feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
  6. <id>{{$permalink}}</id>
  7. <title>{{$profile['username']}} on Pixelfed</title>
  8. <subtitle type="html">{{$profile['note']}}</subtitle>
  9. <updated>{{$profile['created_at']}}</updated>
  10. <logo></logo>
  11. <author>
  12. <id>{{$profile['url']}}</id>
  13. <uri>{{$profile['url']}}</uri>
  14. <name>{{$profile['url']}}</name>
  15. <summary type="html">{{$profile['note']}}</summary>
  16. <link rel="alternate" type="text/html" href="{{$profile['url']}}"/>
  17. <link rel="avatar" type="image/jpeg" media:width="120" media:height="120" href="{{$profile['avatar']}}"/>
  18. </author>
  19. <link rel="alternate" type="text/html" href="{{$profile['url']}}"/>
  20. <link rel="self" type="application/atom+xml" href="{{$permalink}}"/>
  21. @foreach($items as $item)
  22. <entry>
  23. <title>{{ strip_tags($item['content']) }}</title>
  24. <link rel="alternate" href="{{ $item['url'] }}" />
  25. <id>{{ $item['url'] }}</id>
  26. <author>
  27. <name> <![CDATA[{{ $profile['username'] }}]]></name>
  28. </author>
  29. <summary type="html">
  30. <![CDATA[
  31. <img id="rss_item_{{$loop->iteration}}" src="{{ $item['media_attachments'][0]['url'] }}" alt="{{ $item['media_attachments'][0]['description'] }}">
  32. <p style="padding:10px;">{{ $item['content'] }}</p>
  33. ]]>
  34. </summary>
  35. <updated>{{ $item['created_at'] }}</updated>
  36. </entry>
  37. @endforeach
  38. </feed>