mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:10:15 +00:00
user pref -> block remote wall posting
This commit is contained in:
parent
2b0af1456c
commit
b7292bc673
12 changed files with 55 additions and 3 deletions
|
@ -25,7 +25,7 @@ function can_write_wall(&$a,$owner) {
|
|||
else {
|
||||
$r = q("SELECT `contact`.*, `user`.`page-flags` FROM `contact` LEFT JOIN `user` on `user`.`uid` = `contact`.`uid`
|
||||
WHERE `contact`.`uid` = %d AND `contact`.`id` = %d AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0
|
||||
AND `readonly` = 0 AND ( `contact`.`rel` IN ( %d , %d ) OR `user`.`page-flags` = %d ) LIMIT 1",
|
||||
AND `user`.`blockwall` = 0 AND `readonly` = 0 AND ( `contact`.`rel` IN ( %d , %d ) OR `user`.`page-flags` = %d ) LIMIT 1",
|
||||
intval($owner),
|
||||
intval(remote_user()),
|
||||
intval(REL_VIP),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue