Skip to content
Snippets Groups Projects
Verified Commit 33f3bac4 authored by insert's avatar insert
Browse files

Small patch.

parent 0a027b68
No related merge requests found
...@@ -172,7 +172,8 @@ impl PermissionCalculator { ...@@ -172,7 +172,8 @@ impl PermissionCalculator {
let relationship = let relationship =
get_relationship_internal(&self.user.id, &other_user, &relationships); get_relationship_internal(&self.user.id, &other_user, &relationships);
if relationship == Relationship::Friend { if relationship == Relationship::SELF ||
relationship == Relationship::Friend {
permissions = 177; permissions = 177;
} else if relationship == Relationship::Blocked } else if relationship == Relationship::Blocked
|| relationship == Relationship::BlockedOther || relationship == Relationship::BlockedOther
......
...@@ -11,7 +11,7 @@ pub fn send_email(target: String, subject: String, body: String, html: String) - ...@@ -11,7 +11,7 @@ pub fn send_email(target: String, subject: String, body: String, html: String) -
let client = Client::new(); let client = Client::new();
match client match client
.post("http://192.168.0.26:3838/send") .post("http://192.168.0.36:3838/send")
.json(&map) .json(&map)
.send() .send()
{ {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment