Skip to content
GitLab
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
39c0a752
Commit
39c0a752
authored
Jul 11, 2019
by
Zot
Browse files
emoji reactions from hubzilla becoming top level posts on zap because of missing object
parent
276ab3ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Zotlabs/Lib/Activity.php
View file @
39c0a752
...
...
@@ -487,6 +487,19 @@ class Activity {
$ret
[
'type'
]
=
self
::
activity_mapper
(
$i
[
'verb'
]);
if
(
$ret
[
'type'
]
===
'emojiReaction'
)
{
// There may not be an object for these items for legacy reasons - it should be the conversation parent.
$p
=
q
(
"select * from item where mid = '%s' and uid = %d"
,
dbesc
(
$i
[
'parent_mid'
]),
intval
(
$i
[
'uid'
])
);
if
(
$p
)
{
xchan_query
(
$p
,
true
);
$p
=
fetch_post_tags
(
$p
,
true
);
$i
[
'obj'
]
=
self
::
encode_item
(
$p
[
0
]);
}
}
$ret
[
'id'
]
=
((
strpos
(
$i
[
'mid'
],
'http'
)
===
0
)
?
$i
[
'mid'
]
:
z_root
()
.
'/activity/'
.
urlencode
(
$i
[
'mid'
]));
...
...
install/INSTALL.txt
View file @
39c0a752
...
...
@@ -83,7 +83,7 @@ web server platforms.
Example config scripts are available for these platforms in the install
directory. Apache and nginx have the most support.
- PHP
5.6
or later.
- PHP
7.1
or later.
- PHP *command line* access with register_argc_argv set to true in the
php.ini file - and with no hosting provider restrictions on the use of
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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