Merge pull request #4168 from annando/comment-dfrn
Commenting to (nearly) every Friendica contact is now possible
This commit is contained in:
commit
58d5d91831
4 changed files with 19 additions and 5 deletions
|
@ -618,7 +618,7 @@ function conversation(App $a, $items, $mode, $update, $preview = false) {
|
|||
$community_readonly = false;
|
||||
$writable = true;
|
||||
} else {
|
||||
$writable = ($items[0]['uid'] == 0) && in_array($items[0]['network'], array(NETWORK_OSTATUS, NETWORK_DIASPORA));
|
||||
$writable = ($items[0]['uid'] == 0) && in_array($items[0]['network'], array(NETWORK_OSTATUS, NETWORK_DIASPORA, NETWORK_DFRN));
|
||||
}
|
||||
} else {
|
||||
$writable = false;
|
||||
|
@ -919,6 +919,7 @@ function community_add_items($parents) {
|
|||
);
|
||||
$comments = dba::inArray($thread_items);
|
||||
|
||||
|
||||
if (count($comments) == 0) {
|
||||
$thread_items = dba::p(item_query()." AND `item`.`uid` = 0
|
||||
AND `item`.`parent-uri` = ?
|
||||
|
@ -935,7 +936,7 @@ function community_add_items($parents) {
|
|||
|
||||
foreach ($items as $index => $item) {
|
||||
if ($item['uid'] == 0) {
|
||||
$items[$index]['writable'] = in_array($item['network'], [NETWORK_DIASPORA, NETWORK_OSTATUS]);
|
||||
$items[$index]['writable'] = in_array($item['network'], [NETWORK_OSTATUS, NETWORK_DIASPORA, NETWORK_DFRN]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue