mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 05:26:59 +00:00
Small patch.
This commit is contained in:
@@ -172,7 +172,8 @@ impl PermissionCalculator {
|
||||
let relationship =
|
||||
get_relationship_internal(&self.user.id, &other_user, &relationships);
|
||||
|
||||
if relationship == Relationship::Friend {
|
||||
if relationship == Relationship::SELF ||
|
||||
relationship == Relationship::Friend {
|
||||
permissions = 177;
|
||||
} else if relationship == Relationship::Blocked
|
||||
|| relationship == Relationship::BlockedOther
|
||||
|
||||
@@ -11,7 +11,7 @@ pub fn send_email(target: String, subject: String, body: String, html: String) -
|
||||
|
||||
let client = Client::new();
|
||||
match client
|
||||
.post("http://192.168.0.26:3838/send")
|
||||
.post("http://192.168.0.36:3838/send")
|
||||
.json(&map)
|
||||
.send()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user