mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 07:36:01 +00:00
Merge branch 'move_views_to_diesel' into remove_travis_and_federation_docker
This commit is contained in:
commit
15c5e5c502
|
@ -78,6 +78,7 @@ steps:
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
repo: dessalines/lemmy
|
repo: dessalines/lemmy
|
||||||
|
auto_tag: true
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- refs/tags/*
|
- refs/tags/*
|
||||||
|
|
|
@ -3,8 +3,11 @@ name = "lemmy_server"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
#[profile.release]
|
[profile.dev]
|
||||||
#lto = true
|
debug = 0
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
lto = true
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
members = [
|
members = [
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
v0.8.10
|
0.9.0-rc.4
|
||||||
|
|
|
@ -17,7 +17,7 @@ services:
|
||||||
- iframely
|
- iframely
|
||||||
|
|
||||||
lemmy-ui:
|
lemmy-ui:
|
||||||
image: dessalines/lemmy-ui:v0.8.10
|
image: dessalines/lemmy-ui:0.9.0-rc.4
|
||||||
ports:
|
ports:
|
||||||
- "1235:1234"
|
- "1235:1234"
|
||||||
restart: always
|
restart: always
|
||||||
|
|
|
@ -29,7 +29,7 @@ services:
|
||||||
- ./volumes/pictrs_alpha:/mnt
|
- ./volumes/pictrs_alpha:/mnt
|
||||||
|
|
||||||
lemmy-alpha-ui:
|
lemmy-alpha-ui:
|
||||||
image: dessalines/lemmy-ui:v0.8.10
|
image: dessalines/lemmy-ui:0.9.0-rc.4
|
||||||
environment:
|
environment:
|
||||||
- LEMMY_INTERNAL_HOST=lemmy-alpha:8541
|
- LEMMY_INTERNAL_HOST=lemmy-alpha:8541
|
||||||
- LEMMY_EXTERNAL_HOST=localhost:8541
|
- LEMMY_EXTERNAL_HOST=localhost:8541
|
||||||
|
@ -69,7 +69,7 @@ services:
|
||||||
- ./volumes/postgres_alpha:/var/lib/postgresql/data
|
- ./volumes/postgres_alpha:/var/lib/postgresql/data
|
||||||
|
|
||||||
lemmy-beta-ui:
|
lemmy-beta-ui:
|
||||||
image: dessalines/lemmy-ui:v0.8.10
|
image: dessalines/lemmy-ui:0.9.0-rc.4
|
||||||
environment:
|
environment:
|
||||||
- LEMMY_INTERNAL_HOST=lemmy-beta:8551
|
- LEMMY_INTERNAL_HOST=lemmy-beta:8551
|
||||||
- LEMMY_EXTERNAL_HOST=localhost:8551
|
- LEMMY_EXTERNAL_HOST=localhost:8551
|
||||||
|
@ -109,7 +109,7 @@ services:
|
||||||
- ./volumes/postgres_beta:/var/lib/postgresql/data
|
- ./volumes/postgres_beta:/var/lib/postgresql/data
|
||||||
|
|
||||||
lemmy-gamma-ui:
|
lemmy-gamma-ui:
|
||||||
image: dessalines/lemmy-ui:v0.8.10
|
image: dessalines/lemmy-ui:0.9.0-rc.4
|
||||||
environment:
|
environment:
|
||||||
- LEMMY_INTERNAL_HOST=lemmy-gamma:8561
|
- LEMMY_INTERNAL_HOST=lemmy-gamma:8561
|
||||||
- LEMMY_EXTERNAL_HOST=localhost:8561
|
- LEMMY_EXTERNAL_HOST=localhost:8561
|
||||||
|
@ -150,7 +150,7 @@ services:
|
||||||
|
|
||||||
# An instance with only an allowlist for beta
|
# An instance with only an allowlist for beta
|
||||||
lemmy-delta-ui:
|
lemmy-delta-ui:
|
||||||
image: dessalines/lemmy-ui:v0.8.10
|
image: dessalines/lemmy-ui:0.9.0-rc.4
|
||||||
environment:
|
environment:
|
||||||
- LEMMY_INTERNAL_HOST=lemmy-delta:8571
|
- LEMMY_INTERNAL_HOST=lemmy-delta:8571
|
||||||
- LEMMY_EXTERNAL_HOST=localhost:8571
|
- LEMMY_EXTERNAL_HOST=localhost:8571
|
||||||
|
@ -191,7 +191,7 @@ services:
|
||||||
|
|
||||||
# An instance who has a blocklist, with lemmy-alpha blocked
|
# An instance who has a blocklist, with lemmy-alpha blocked
|
||||||
lemmy-epsilon-ui:
|
lemmy-epsilon-ui:
|
||||||
image: dessalines/lemmy-ui:v0.8.10
|
image: dessalines/lemmy-ui:0.9.0-rc.4
|
||||||
environment:
|
environment:
|
||||||
- LEMMY_INTERNAL_HOST=lemmy-epsilon:8581
|
- LEMMY_INTERNAL_HOST=lemmy-epsilon:8581
|
||||||
- LEMMY_EXTERNAL_HOST=localhost:8581
|
- LEMMY_EXTERNAL_HOST=localhost:8581
|
||||||
|
|
|
@ -12,7 +12,7 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
lemmy:
|
lemmy:
|
||||||
image: dessalines/lemmy:v0.8.10
|
image: dessalines/lemmy:0.9.0-rc.4
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:8536:8536"
|
- "127.0.0.1:8536:8536"
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -26,7 +26,7 @@ services:
|
||||||
- iframely
|
- iframely
|
||||||
|
|
||||||
lemmy-ui:
|
lemmy-ui:
|
||||||
image: dessalines/lemmy-ui:v0.8.10
|
image: dessalines/lemmy-ui:0.9.0-rc.4
|
||||||
ports:
|
ports:
|
||||||
- "1235:1234"
|
- "1235:1234"
|
||||||
restart: always
|
restart: always
|
||||||
|
|
2
docs
2
docs
|
@ -1 +1 @@
|
||||||
Subproject commit 93ede3dd623a40f408baf70d68dd868ea5163c53
|
Subproject commit cf3236bb620048897048027d8cdff34401ad85ee
|
|
@ -152,7 +152,7 @@ impl Perform for CreateComment {
|
||||||
comment_view.comment.read = true;
|
comment_view.comment.read = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
let res = CommentResponse {
|
let mut res = CommentResponse {
|
||||||
comment_view,
|
comment_view,
|
||||||
recipient_ids,
|
recipient_ids,
|
||||||
form_id: data.form_id.to_owned(),
|
form_id: data.form_id.to_owned(),
|
||||||
|
@ -164,6 +164,8 @@ impl Perform for CreateComment {
|
||||||
websocket_id,
|
websocket_id,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
res.recipient_ids = Vec::new(); // Necessary to avoid doubles
|
||||||
|
|
||||||
Ok(res)
|
Ok(res)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
pub const VERSION: &str = "v0.8.10";
|
pub const VERSION: &str = "0.9.0-rc.4";
|
||||||
|
|
|
@ -321,7 +321,12 @@ impl<'a> CommentQueryBuilder<'a> {
|
||||||
if let Some(recipient_id) = self.recipient_id {
|
if let Some(recipient_id) = self.recipient_id {
|
||||||
query = query
|
query = query
|
||||||
// TODO needs lots of testing
|
// TODO needs lots of testing
|
||||||
.filter(user_alias_1::id.eq(recipient_id))
|
.filter(user_alias_1::id.eq(recipient_id)) // Gets the comment replies
|
||||||
|
.or_filter(
|
||||||
|
comment::parent_id
|
||||||
|
.is_null()
|
||||||
|
.and(post::creator_id.eq(recipient_id)),
|
||||||
|
) // Gets the top level replies
|
||||||
.filter(comment::deleted.eq(false))
|
.filter(comment::deleted.eq(false))
|
||||||
.filter(comment::removed.eq(false));
|
.filter(comment::removed.eq(false));
|
||||||
}
|
}
|
||||||
|
|
|
@ -335,6 +335,7 @@ impl ChatServer {
|
||||||
|
|
||||||
// Send it to the post room
|
// Send it to the post room
|
||||||
let mut comment_post_sent = comment_reply_sent.clone();
|
let mut comment_post_sent = comment_reply_sent.clone();
|
||||||
|
// Remove the recipients here to separate mentions / user messages from post or community comments
|
||||||
comment_post_sent.recipient_ids = Vec::new();
|
comment_post_sent.recipient_ids = Vec::new();
|
||||||
self.send_post_room_message(
|
self.send_post_room_message(
|
||||||
user_operation,
|
user_operation,
|
||||||
|
@ -352,8 +353,6 @@ impl ChatServer {
|
||||||
websocket_id,
|
websocket_id,
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
// Remove the form id here to separate mentions / user messages from post or community comments
|
|
||||||
comment_reply_sent.form_id = None;
|
|
||||||
// Send it to the recipient(s) including the mentioned users
|
// Send it to the recipient(s) including the mentioned users
|
||||||
for recipient_id in &comment_reply_sent.recipient_ids {
|
for recipient_id in &comment_reply_sent.recipient_ids {
|
||||||
self.send_user_room_message(
|
self.send_user_room_message(
|
||||||
|
|
Loading…
Reference in a new issue