Using getter/setter functions
This commit is contained in:
parent
b4aa796e75
commit
8f46064430
14 changed files with 55 additions and 34 deletions
|
@ -177,9 +177,9 @@ function display_content(App $a, $update = false, $update_uid = 0)
|
|||
$item = Post::selectFirst(['uid', 'parent-uri-id'], ['uri-id' => $uri_id, 'uid' => $update_uid]);
|
||||
if (!empty($item)) {
|
||||
if ($item['uid'] != 0) {
|
||||
$a->profile_owner = intval($item['uid']);
|
||||
$a->setProfileOwner($item['uid']);
|
||||
} else {
|
||||
$a->profile_owner = intval($update_uid);
|
||||
$a->setProfileOwner($update_uid);
|
||||
}
|
||||
$parent_uri_id = $item['parent-uri-id'];
|
||||
}
|
||||
|
|
|
@ -64,11 +64,11 @@ function notes_content(App $a, $update = false)
|
|||
'acl_data' => '',
|
||||
];
|
||||
|
||||
$o .= status_editor($a, $x, $a->contact_id);
|
||||
$o .= status_editor($a, $x, $a->getContactId());
|
||||
}
|
||||
|
||||
$condition = ['uid' => local_user(), 'post-type' => Item::PT_PERSONAL_NOTE, 'gravity' => GRAVITY_PARENT,
|
||||
'contact-id'=> $a->contact_id];
|
||||
'contact-id'=> $a->getContactId()];
|
||||
|
||||
if (DI::mode()->isMobile()) {
|
||||
$itemsPerPage = DI::pConfig()->get(local_user(), 'system', 'itemspage_mobile_network',
|
||||
|
|
|
@ -58,7 +58,7 @@ function redir_init(App $a) {
|
|||
|
||||
$contact_url = $contact['url'];
|
||||
|
||||
if (!empty($a->contact_id) && $a->contact_id == $cid) {
|
||||
if (!empty($a->getContactId()) && $a->getContactId() == $cid) {
|
||||
// Local user is already authenticated.
|
||||
redir_check_url($contact_url, $url);
|
||||
$a->redirect($url ?: $contact_url);
|
||||
|
@ -73,7 +73,7 @@ function redir_init(App $a) {
|
|||
$cid = $contact['id'];
|
||||
}
|
||||
|
||||
if (!empty($a->contact_id) && $a->contact_id == $cid) {
|
||||
if (!empty($a->getContactId()) && $a->getContactId() == $cid) {
|
||||
// Local user is already authenticated.
|
||||
redir_check_url($contact_url, $url);
|
||||
$target_url = $url ?: $contact_url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue