• Changing line 31 from

         $img = $item->link[2]['href'];


        $img = $item->xpath('*[@rel="enclosure"]');
        if ( is_array( $img ) && count( $img ) > 0 ) {
            $img = $img[0]['href'];

    should embed media in more cases

  • isn't the $i++ better placed inside the block where the type is checked, so that it's the actual number of toots instead of any activity ? (comment, status change, ...)

  • Thank you @zeograd ! I updated the page. It works perfect now!

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment