Add a link to author's profile on article card
Use a macro to render those cards too
This commit is contained in:
+5
-1
@@ -227,7 +227,11 @@ impl User {
|
||||
}
|
||||
|
||||
pub fn get_fqn(&self, conn: &PgConnection) -> String {
|
||||
format!("{}@{}", self.username, self.get_instance(conn).public_domain)
|
||||
if self.instance_id == Instance::local_id(conn) {
|
||||
self.username.clone()
|
||||
} else {
|
||||
format!("{}@{}", self.username, self.get_instance(conn).public_domain)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_followers(&self, conn: &PgConnection) -> Vec<User> {
|
||||
|
||||
Reference in New Issue
Block a user