mirror of
https://github.com/friendica/friendica
synced 2025-04-25 03:10:11 +00:00
clean up w3c validation and layout for priv mail and lang selector
This commit is contained in:
parent
09fcfe2fe7
commit
b1e5dfad3c
8 changed files with 17 additions and 11 deletions
|
@ -451,9 +451,12 @@ function dfrn_notify_post(&$a) {
|
|||
|
||||
if($is_reply) {
|
||||
|
||||
// was the top-level post for this reply written by somebody on this site? Specifically, the recipient?
|
||||
// was the top-level post for this reply written by somebody on this site?
|
||||
// Specifically, the recipient?
|
||||
|
||||
$r = q("select `item`.`id` from `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` where `contact`.`self` = 1 AND `item`.`uri` = '%s' AND `item`.`uid` = %d LIMIT 1",
|
||||
$r = q("select `item`.`id` from `item`
|
||||
LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
|
||||
WHERE `contact`.`self` = 1 AND `item`.`uri` = '%s' AND `item`.`uid` = %d LIMIT 1",
|
||||
dbesc($parent_uri),
|
||||
intval($importer['importer_uid'])
|
||||
);
|
||||
|
|
|
@ -703,7 +703,7 @@ function item_post(&$a) {
|
|||
else
|
||||
$signed_text = $datarray['guid'] . ';' . $parent_item['guid'] . ';' . $signed_body . ';' . $myaddr;
|
||||
|
||||
$authorsig = base64_encode(rsa_sign($signed_text,$a->user['prvkey'],'sha'));
|
||||
$authorsig = base64_encode(rsa_sign($signed_text,$a->user['prvkey'],'sha256'));
|
||||
|
||||
q("insert into sign (`iid`,`signed_text`,`signature`,`signer`) values (%d,'%s','%s','%s') ",
|
||||
intval($post_id),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue