add: user account switcher
This commit is contained in:
parent
48e0b02198
commit
20aae5570b
13 changed files with 172 additions and 34 deletions
|
@ -133,7 +133,7 @@ impl DataManager {
|
|||
|
||||
let res = query_rows!(
|
||||
&conn,
|
||||
"SELECT * FROM communities ORDER BY likes DESC LIMIT 12",
|
||||
"SELECT * FROM communities ORDER BY member_count DESC LIMIT 12",
|
||||
empty,
|
||||
|x| { Self::get_community_from_row(x) }
|
||||
);
|
||||
|
|
|
@ -107,8 +107,8 @@ impl DataManager {
|
|||
.create_notification(Notification::new(
|
||||
"Your community has received a like!".to_string(),
|
||||
format!(
|
||||
"[@{}](/api/v1/auth/profile/find/{}) has liked your community!",
|
||||
user.username, user.id
|
||||
"[@{}](/api/v1/auth/profile/find/{}) has liked your [community](/api/v1/communities/find/{})!",
|
||||
user.username, user.id, community.id
|
||||
),
|
||||
community.owner,
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue