API: Beautifying the code, only showing posts (not likes), don't show own posts in mentions.
This commit is contained in:
parent
b64ddcce96
commit
22772876a9
2 changed files with 91 additions and 129 deletions
|
@ -7,7 +7,7 @@ require_once('include/queue_fn.php');
|
|||
function profile_change() {
|
||||
|
||||
$a = get_app();
|
||||
|
||||
|
||||
if(! local_user())
|
||||
return;
|
||||
|
||||
|
@ -29,7 +29,7 @@ function profile_change() {
|
|||
WHERE `user`.`uid` = %d AND `profile`.`is-default` = 1 LIMIT 1",
|
||||
intval(local_user())
|
||||
);
|
||||
|
||||
|
||||
if(! count($r))
|
||||
return;
|
||||
$profile = $r[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue