Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hubzilla
core
Commits
f59aefd3
Commit
f59aefd3
authored
Nov 23, 2020
by
Mario
Browse files
store actor of fetched acivities
parent
451468d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Zotlabs/Lib/Activity.php
View file @
f59aefd3
...
...
@@ -2648,7 +2648,7 @@ class Activity {
$current_item
=
$item
;
while
(
$current_item
[
'parent_mid'
]
!==
$current_item
[
'mid'
])
{
$n
=
ActivityStreams
::
fetch
(
$current_item
[
'parent_mid'
],
$channel
);
$n
=
self
::
fetch
(
$current_item
[
'parent_mid'
],
$channel
);
if
(
!
$n
)
{
break
;
}
...
...
@@ -2660,6 +2660,10 @@ class Activity {
break
;
}
if
(
is_array
(
$a
->
actor
)
&&
array_key_exists
(
'id'
,
$a
->
actor
))
{
self
::
actor_store
(
$a
->
actor
[
'id'
],
$a
->
actor
);
}
$replies
=
null
;
if
(
isset
(
$a
->
obj
[
'replies'
][
'first'
][
'items'
]))
{
$replies
=
$a
->
obj
[
'replies'
][
'first'
][
'items'
];
...
...
@@ -2725,7 +2729,7 @@ class Activity {
foreach
(
$arr
as
$url
)
{
$n
=
ActivityStreams
::
fetch
(
$url
,
$channel
);
$n
=
self
::
fetch
(
$url
,
$channel
);
if
(
!
$n
)
{
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment