mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
commit
2e8ba94883
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ class HashidService {
|
|||
$shortcode = '';
|
||||
while($id) {
|
||||
$id = ($id - ($r = $id % $base)) / $base;
|
||||
$shortcode = $cmap{$r} . $shortcode;
|
||||
$shortcode = $cmap[$r] . $shortcode;
|
||||
};
|
||||
return $shortcode;
|
||||
});
|
||||
|
@ -47,4 +47,4 @@ class HashidService {
|
|||
return $id;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue