mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-03 00:31:58 +00:00
Merge branch 'main' into language-tagging
This commit is contained in:
commit
4546350dd2
8 changed files with 24 additions and 13 deletions
12
RELEASES.md
12
RELEASES.md
|
@ -1,3 +1,15 @@
|
|||
# Lemmy v0.16.6 Release : bug fixes (2022-07-19)
|
||||
|
||||
A few bug fixes:
|
||||
|
||||
- Fix problem where actors can have empty public key (fixes [#2347](https://github.com/LemmyNet/lemmy/issues/2347)) ([#2348](https://github.com/LemmyNet/lemmy/issues/2348))
|
||||
- Be more explicit about returning deleted actors or not ([#2335](https://github.com/LemmyNet/lemmy/issues/2335))
|
||||
- Dont allow blocking admin ([#2340](https://github.com/LemmyNet/lemmy/issues/2340))
|
||||
- Increase RSS fetch limit to 20. Fixes [#2319](https://github.com/LemmyNet/lemmy/issues/2319) ([#2327](https://github.com/LemmyNet/lemmy/issues/2327))
|
||||
- Fix length of post_report.original_post_name db field (fixes [#2311](https://github.com/LemmyNet/lemmy/issues/2311)) ([#2315](https://github.com/LemmyNet/lemmy/issues/2315))
|
||||
- Add pub use for db crates in api_common ([#2305](https://github.com/LemmyNet/lemmy/issues/2305))
|
||||
- Accept private like ([#1968](https://github.com/LemmyNet/lemmy/issues/1968)) ([#2301](https://github.com/LemmyNet/lemmy/issues/2301))
|
||||
|
||||
# Lemmy v0.16.4 Release : Peertube federation, Rust API and other improvements (2022-05-27)
|
||||
|
||||
## What is Lemmy?
|
||||
|
|
|
@ -26,13 +26,10 @@ test('Follow federated community', async () => {
|
|||
betaCommunity.community.id
|
||||
);
|
||||
|
||||
// Wait for it to accept on the alpha side ( follows are async )
|
||||
await delay();
|
||||
|
||||
// Make sure the follow response went through
|
||||
expect(follow.community_view.community.local).toBe(false);
|
||||
expect(follow.community_view.community.name).toBe('main');
|
||||
expect(follow.community_view.subscribed).toBe(SubscribedType.Pending);
|
||||
expect(follow.community_view.subscribed).toBe(SubscribedType.Subscribed);
|
||||
|
||||
// Check it from local
|
||||
let site = await getSite(alpha);
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
debug: false
|
||||
}
|
||||
# Pictrs image server configuration.
|
||||
pictrs_config: {
|
||||
pictrs: {
|
||||
# Address where pictrs is available (for image hosting)
|
||||
url: "http://pictrs:8080/"
|
||||
# Set a custom pictrs API key. ( Required for deleting images )
|
||||
|
|
|
@ -32,9 +32,11 @@ pub async fn search_by_apub_id(
|
|||
.await
|
||||
}
|
||||
Err(_) => {
|
||||
let (kind, identifier) = query.split_at(1);
|
||||
let mut chars = query.chars();
|
||||
let kind = chars.next();
|
||||
let identifier = chars.as_str();
|
||||
match kind {
|
||||
"@" => {
|
||||
Some('@') => {
|
||||
let id =
|
||||
webfinger_resolve_actor::<ApubPerson>(identifier, context, request_counter).await?;
|
||||
Ok(SearchableObjects::Person(
|
||||
|
@ -43,7 +45,7 @@ pub async fn search_by_apub_id(
|
|||
.await?,
|
||||
))
|
||||
}
|
||||
"!" => {
|
||||
Some('!') => {
|
||||
let id =
|
||||
webfinger_resolve_actor::<ApubCommunity>(identifier, context, request_counter).await?;
|
||||
Ok(SearchableObjects::Community(
|
||||
|
|
|
@ -39,7 +39,7 @@ where
|
|||
let (_, domain) = identifier
|
||||
.splitn(2, '@')
|
||||
.collect_tuple()
|
||||
.expect("invalid query");
|
||||
.ok_or_else(|| LemmyError::from_message("Invalid webfinger query, missing domain"))?;
|
||||
let fetch_url = format!(
|
||||
"{}://{}/.well-known/webfinger?resource=acct:{}",
|
||||
protocol, domain, identifier
|
||||
|
|
|
@ -294,7 +294,7 @@ impl Followable for CommunityFollower {
|
|||
.filter(community_id.eq(community_id_))
|
||||
.filter(person_id.eq(person_id_)),
|
||||
)
|
||||
.set(pending.eq(true))
|
||||
.set(pending.eq(false))
|
||||
.get_result::<Self>(conn)
|
||||
}
|
||||
fn unfollow(
|
||||
|
|
|
@ -101,7 +101,7 @@ impl Settings {
|
|||
|
||||
pub fn pictrs_config(&self) -> Result<PictrsConfig, LemmyError> {
|
||||
self
|
||||
.pictrs_config
|
||||
.pictrs
|
||||
.to_owned()
|
||||
.ok_or_else(|| anyhow!("images_disabled").into())
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ pub struct Settings {
|
|||
pub federation: FederationConfig,
|
||||
/// Pictrs image server configuration.
|
||||
#[default(Some(Default::default()))]
|
||||
pub(crate) pictrs_config: Option<PictrsConfig>,
|
||||
pub(crate) pictrs: Option<PictrsConfig>,
|
||||
#[default(Default::default())]
|
||||
pub captcha: CaptchaConfig,
|
||||
/// Email sending configuration. All options except login/password are mandatory
|
||||
|
@ -61,7 +61,7 @@ pub struct Settings {
|
|||
pub struct PictrsConfig {
|
||||
/// Address where pictrs is available (for image hosting)
|
||||
#[default(Url::parse("http://pictrs:8080").expect("parse pictrs url"))]
|
||||
#[doku(example = "Url::parse(\"http://pictrs:8080\").unwrap()")]
|
||||
#[doku(example = "http://pictrs:8080")]
|
||||
pub url: Url,
|
||||
|
||||
/// Set a custom pictrs API key. ( Required for deleting images )
|
||||
|
|
Loading…
Reference in a new issue