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
Andrzej S. Budziński
hubzilla-core
Commits
9495fef7
Commit
9495fef7
authored
Sep 05, 2021
by
Mario
Browse files
fix anon comments for cards and articles
parent
de02d4c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Zotlabs/Lib/ThreadItem.php
View file @
9495fef7
...
@@ -842,7 +842,7 @@ class ThreadItem {
...
@@ -842,7 +842,7 @@ class ThreadItem {
'$cipher'
=>
$conv
->
get_cipher
(),
'$cipher'
=>
$conv
->
get_cipher
(),
'$sourceapp'
=>
\
App
::
$sourcename
,
'$sourceapp'
=>
\
App
::
$sourcename
,
'$observer'
=>
get_observer_hash
(),
'$observer'
=>
get_observer_hash
(),
'$anoncomments'
=>
(((
$conv
->
get_mode
()
===
'channel'
||
$conv
->
get_mode
()
===
'display'
)
&&
perm_is_allowed
(
$conv
->
get_profile_owner
(),
''
,
'post_comments'
))
?
true
:
false
),
'$anoncomments'
=>
((
in_array
(
$conv
->
get_mode
()
,
[
'channel'
,
'display'
,
'cards'
,
'articles'
]
)
&&
perm_is_allowed
(
$conv
->
get_profile_owner
(),
''
,
'post_comments'
))
?
true
:
false
),
'$anonname'
=>
[
'anonname'
,
t
(
'Your full name (required)'
)
],
'$anonname'
=>
[
'anonname'
,
t
(
'Your full name (required)'
)
],
'$anonmail'
=>
[
'anonmail'
,
t
(
'Your email address (required)'
)
],
'$anonmail'
=>
[
'anonmail'
,
t
(
'Your email address (required)'
)
],
'$anonurl'
=>
[
'anonurl'
,
t
(
'Your website URL (optional)'
)
]
'$anonurl'
=>
[
'anonurl'
,
t
(
'Your website URL (optional)'
)
]
...
...
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