allow strings for user ids
This commit is contained in:
parent
2ab290c712
commit
d7030d3dd4
@ -500,7 +500,7 @@ class APnutI
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO Maybe support additional polls?
|
// TODO Maybe support additional polls?
|
||||||
public function getPollsFromUser(int $user_id, array $params = []): array
|
public function getPollsFromUser(int|string $user_id, array $params = []): array
|
||||||
{
|
{
|
||||||
$parameters = [
|
$parameters = [
|
||||||
'raw_types' => 'io.pnut.core.poll-notice',
|
'raw_types' => 'io.pnut.core.poll-notice',
|
||||||
@ -697,7 +697,7 @@ class APnutI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getAvatar(int $user_id, array $args = []): string
|
public function getAvatar(int|string $user_id, array $args = []): string
|
||||||
{
|
{
|
||||||
//get returns an array with the url at idx 0
|
//get returns an array with the url at idx 0
|
||||||
$r = null;
|
$r = null;
|
||||||
@ -718,7 +718,7 @@ class APnutI
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getAvatarUrl(
|
public function getAvatarUrl(
|
||||||
int $user_id,
|
int|string $user_id,
|
||||||
?int $width = null,
|
?int $width = null,
|
||||||
?int $height = null
|
?int $height = null
|
||||||
): string {
|
): string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user