Remove unused parameter in can_write_wall()

This commit is contained in:
Hypolite Petovan 2018-01-03 21:05:55 -05:00
commit 722782d553
7 changed files with 12 additions and 13 deletions

View file

@ -85,7 +85,7 @@ function do_like($item_id, $verb) {
$uid = local_user();
}
if (!can_write_wall($a, $uid)) {
if (!can_write_wall($uid)) {
logger('like: unable to write on wall ' . $uid);
return false;
}

View file

@ -165,7 +165,7 @@ function authenticate_success($user_record, $login_initial = false, $interactive
}
}
function can_write_wall(App $a, $owner)
function can_write_wall($owner)
{
static $verified = 0;
@ -174,8 +174,7 @@ function can_write_wall(App $a, $owner)
}
$uid = local_user();
if (($uid) && ($uid == $owner)) {
if ($uid == $owner) {
return true;
}