https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7211fc4
)
Redirect empty group to /contacts.
author
Andreas Neustifter
<andreas.neustifter@gmail.com>
Sun, 8 Jul 2018 19:20:18 +0000
(21:20 +0200)
committer
Andreas Neustifter
<andreas.neustifter@gmail.com>
Mon, 9 Jul 2018 10:42:32 +0000
(12:42 +0200)
The empty /group page is not really doing anything, redirect to /contacts.
mod/group.php
patch
|
blob
|
history
diff --git
a/mod/group.php
b/mod/group.php
index
726616a
..
331b694
100644
(file)
--- a/
mod/group.php
+++ b/
mod/group.php
@@
-85,6
+85,10
@@
function group_content(App $a) {
}
// Switch to text mode interface if we have more than 'n' contacts or group members
+
+ if ($a->argc == 1) {
+ goaway(System::baseUrl() . '/contacts');
+ }
$switchtotext = PConfig::get(local_user(), 'system', 'groupedit_image_limit');
if (is_null($switchtotext)) {