*/
public static function rawContent(array $parameters = [])
{
- self::login(self::SCOPE_READ);
+ self::checkAllowedScope(self::SCOPE_READ);
$uid = self::getCurrentUserID();
if (empty($parameters['id'])) {
DI::mstdnError()->RecordNotFound();
}
+ // @todo provide HTTP link header
+
$request = self::getRequest([
'max_id' => 0, // Return results older than this id
'since_id' => 0, // Return results newer than this id