의 미러
https://github.com/friendica/friendica
synced 2025-09-07 21:21:52 +02:00
Fix response "self" assigment
- Switch from unreliable `uid` matching to `author-id` using public_contact()
This commit is contained in:
부모
da5bbe8b50
커밋
67ae0fed7f
1개의 변경된 파일과 4개의 추가작업 그리고 3개의 파일을 삭제
|
@ -416,8 +416,8 @@ These Fields are not added below (yet). They are here to for bug search.
|
|||
`item`.`shadow`,
|
||||
*/
|
||||
|
||||
return "`item`.`author-link`, `item`.`author-name`, `item`.`author-avatar`,
|
||||
`item`.`owner-link`, `item`.`owner-name`, `item`.`owner-avatar`,
|
||||
return "`item`.`author-id`, `item`.`author-link`, `item`.`author-name`, `item`.`author-avatar`,
|
||||
`item`.`owner-id`, `item`.`owner-link`, `item`.`owner-name`, `item`.`owner-avatar`,
|
||||
`item`.`contact-id`, `item`.`uid`, `item`.`id`, `item`.`parent`,
|
||||
`item`.`uri`, `item`.`thr-parent`, `item`.`parent-uri`,
|
||||
`item`.`commented`, `item`.`created`, `item`.`edited`,
|
||||
|
@ -1066,8 +1066,9 @@ function builtin_activity_puller($item, &$conv_responses) {
|
|||
else
|
||||
$conv_responses[$mode][$item['thr-parent']] ++;
|
||||
|
||||
if((local_user()) && (local_user() == $item['uid']) && ($item['self']))
|
||||
if (public_contact() == $item['author-id']) {
|
||||
$conv_responses[$mode][$item['thr-parent'] . '-self'] = 1;
|
||||
}
|
||||
|
||||
$conv_responses[$mode][$item['thr-parent'] . '-l'][] = $url;
|
||||
|
||||
|
|
불러오는 중…
테이블 추가
Add a link
Reference in a new issue