Fix Blog::find_by_name
This commit is contained in:
parent
84e4128795
commit
0dfc303c83
21
po/en.po
21
po/en.po
|
@ -253,3 +253,24 @@ msgstr ""
|
|||
|
||||
msgid "You need to be logged in order to edit your profile"
|
||||
msgstr ""
|
||||
|
||||
msgid "By {{ link_1 }}{{ link_2 }}{{ link_3 }}{{ name }}{{ link_4 }}"
|
||||
msgstr ""
|
||||
|
||||
msgid "{{ data }} reshared your article"
|
||||
msgstr ""
|
||||
|
||||
msgid "{{ data }} started following you"
|
||||
msgstr ""
|
||||
|
||||
msgid "{{ data }} liked your article"
|
||||
msgstr ""
|
||||
|
||||
msgid "{{ data }} commented your article"
|
||||
msgstr ""
|
||||
|
||||
msgid "We couldn't find this page."
|
||||
msgstr ""
|
||||
|
||||
msgid "The link that led you here may be broken."
|
||||
msgstr ""
|
||||
|
|
22
po/fr.po
22
po/fr.po
|
@ -252,3 +252,25 @@ msgstr "Vous devez vous connecter pour suivre quelqu'un"
|
|||
|
||||
msgid "You need to be logged in order to edit your profile"
|
||||
msgstr "Vous devez vous connecter pour modifier votre profil"
|
||||
|
||||
#, fuzzy
|
||||
msgid "By {{ link_1 }}{{ link_2 }}{{ link_3 }}{{ name }}{{ link_4 }}"
|
||||
msgstr "Écrit par {{ link_1 }}{{ url }}{{ link_2 }}{{ name }}{{ link_3 }}"
|
||||
|
||||
msgid "{{ data }} reshared your article"
|
||||
msgstr ""
|
||||
|
||||
msgid "{{ data }} started following you"
|
||||
msgstr ""
|
||||
|
||||
msgid "{{ data }} liked your article"
|
||||
msgstr ""
|
||||
|
||||
msgid "{{ data }} commented your article"
|
||||
msgstr ""
|
||||
|
||||
msgid "We couldn't find this page."
|
||||
msgstr ""
|
||||
|
||||
msgid "The link that led you here may be broken."
|
||||
msgstr ""
|
||||
|
|
38
po/pl.po
38
po/pl.po
|
@ -10,7 +10,8 @@ msgstr ""
|
|||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
||||
"|| n%100>=20) ? 1 : 2);\n"
|
||||
|
||||
msgid "Latest articles"
|
||||
msgstr "Najnowsze artykuły"
|
||||
|
@ -46,7 +47,8 @@ msgid "Something broke on our side."
|
|||
msgstr "Coś poszło nie tak."
|
||||
|
||||
msgid "Sorry about that. If you think this is a bug, please report it."
|
||||
msgstr "Przepraszamy. Jeżeli uważasz że wystąpił błąd, prosimy o zgłoszenie go."
|
||||
msgstr ""
|
||||
"Przepraszamy. Jeżeli uważasz że wystąpił błąd, prosimy o zgłoszenie go."
|
||||
|
||||
msgid "Configuration"
|
||||
msgstr "Konfiguracja"
|
||||
|
@ -114,8 +116,8 @@ msgstr "Utwórz wpis"
|
|||
msgid "Publish"
|
||||
msgstr "Opublikuj"
|
||||
|
||||
msgid "Logowanie"
|
||||
msgstr "Zaloguj się"
|
||||
msgid "Login"
|
||||
msgstr ""
|
||||
|
||||
msgid "Username or email"
|
||||
msgstr "Nazwa użytkownika lub adres e-mail"
|
||||
|
@ -133,7 +135,9 @@ msgid "Your Blogs"
|
|||
msgstr "Twoje blogi"
|
||||
|
||||
msgid "You don't have any blog yet. Create your own, or ask to join one."
|
||||
msgstr "Nie posiadasz żadnego bloga. Utwórz własny, lub poproś o dołączanie do istniejącego."
|
||||
msgstr ""
|
||||
"Nie posiadasz żadnego bloga. Utwórz własny, lub poproś o dołączanie do "
|
||||
"istniejącego."
|
||||
|
||||
msgid "Start a new blog"
|
||||
msgstr "Utwórz nowy blog"
|
||||
|
@ -252,3 +256,27 @@ msgstr "Musisz się zalogować, aby zacząć obserwować innych"
|
|||
msgid "You need to be logged in order to edit your profile"
|
||||
msgstr "Musisz się zalogować , aby móc edytować swój profil"
|
||||
|
||||
#, fuzzy
|
||||
msgid "By {{ link_1 }}{{ link_2 }}{{ link_3 }}{{ name }}{{ link_4 }}"
|
||||
msgstr "Napisano przez {{ link_1 }}{{ url }}{{ link_2 }}{{ name }}{{ link_3 }}"
|
||||
|
||||
msgid "{{ data }} reshared your article"
|
||||
msgstr ""
|
||||
|
||||
msgid "{{ data }} started following you"
|
||||
msgstr ""
|
||||
|
||||
msgid "{{ data }} liked your article"
|
||||
msgstr ""
|
||||
|
||||
msgid "{{ data }} commented your article"
|
||||
msgstr ""
|
||||
|
||||
msgid "We couldn't find this page."
|
||||
msgstr ""
|
||||
|
||||
msgid "The link that led you here may be broken."
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Logowanie"
|
||||
#~ msgstr "Zaloguj się"
|
||||
|
|
|
@ -67,7 +67,7 @@ impl Blog {
|
|||
.expect("Couldn't load blogs ")
|
||||
}
|
||||
|
||||
find_by!(blogs, find_by_name, ap_url as String, instance_id as i32);
|
||||
find_by!(blogs, find_by_name, actor_id as String, instance_id as i32);
|
||||
|
||||
pub fn find_local(conn: &PgConnection, name: String) -> Option<Blog> {
|
||||
Blog::find_by_name(conn, name, Instance::local_id(conn))
|
||||
|
|
|
@ -9,7 +9,7 @@ macro_rules! may_fail {
|
|||
let $res = res.unwrap();
|
||||
$block
|
||||
} else {
|
||||
Template::render(concat!("errors/", stringify!($template)), json!({
|
||||
Template::render(concat!("errors/", $template), json!({
|
||||
"error_message": $msg
|
||||
}))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue