get_self_url: strip all trailing slashes

This commit is contained in:
Andrew Dolgov
2022-11-28 19:24:12 +03:00
parent 52180c9f8f
commit 94c49399cc
3 changed files with 3 additions and 8 deletions

View File

@@ -293,6 +293,7 @@ class Article extends Handler_Protected {
}
/**
* @param int $id article id
* @return array{'formatted': string, 'entries': array<int, array<string, mixed>>}
*/
static function _format_enclosures(int $id, bool $always_display_enclosures, string $article_content, bool $hide_images = false): array {