====== Mastodon RSS Bookmarks ====== Mastodon considers your bookmark list to be private information. I'm happy to share mine. Plus, I wanted a way to add any bookmarks I make there into a 'Read later' category in my RSS reader (which is also where my phone and browser bookmarks go). This was pretty simple, I create a PHP file that gets the latest 20 bookmarks (default API endpoint ''/api/v1/bookmarks'') and takes an access token from your mastodon 'development' admin page. Then I can give this URL to my RSS reader: https://neil.mckillop.org/stuff/mastodon_bookmarks.rss Neil's Mastodon Bookmarks EOT; foreach($bookmarks as $k=>$v) { $xml_item[$k] = "\n\t {$v['card']['title']} {$v['url']} ".date("r", strtotime($v['created_at']))." {$v['url']} Short description here

]]>
\n"; } echo $xml_header; foreach($xml_item as $bookmark) { echo $bookmark; } echo "
"; echo "
"; ?>