From 5c028b8f92aacb296afbd59130d848883f0c3a10 Mon Sep 17 00:00:00 2001 From: Sachin Joshi Date: Fri, 17 May 2019 12:20:31 +0545 Subject: [PATCH 001/400] user creation admin api will create multiple users --- CHANGELOG.md | 1 + .../web/admin_api/admin_api_controller.ex | 37 +++++---- .../web/admin_api/views/account_view.ex | 46 ++++++++++ lib/pleroma/web/router.ex | 2 +- .../admin_api/admin_api_controller_test.exs | 83 ++++++++++++++++++- 5 files changed, 149 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0e849285..5ee853c76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Configuration: Added `extra_cookie_attrs` for setting non-standard cookie attributes. Defaults to ["SameSite=Lax"] so that remote follows work. - Timelines: Messages involving people you have blocked will be excluded from the timeline in all cases instead of just repeats. - Admin API: Move the user related API to `api/pleroma/admin/users` +- Admin API: `POST /api/pleroma/admin/users` will take list of users - Pleroma API: Support for emoji tags in `/api/pleroma/emoji` resulting in a breaking API change - Mastodon API: Support for `exclude_types`, `limit` and `min_id` in `/api/v1/notifications` - Mastodon API: Add `languages` and `registrations` to `/api/v1/instance` diff --git a/lib/pleroma/web/admin_api/admin_api_controller.ex b/lib/pleroma/web/admin_api/admin_api_controller.ex index e00b33aba..6048ed35b 100644 --- a/lib/pleroma/web/admin_api/admin_api_controller.ex +++ b/lib/pleroma/web/admin_api/admin_api_controller.ex @@ -46,24 +46,31 @@ def user_unfollow(conn, %{"follower" => follower_nick, "followed" => followed_ni |> json("ok") end - def user_create( - conn, - %{"nickname" => nickname, "email" => email, "password" => password} - ) do - user_data = %{ - nickname: nickname, - name: nickname, - email: email, - password: password, - password_confirmation: password, - bio: "." - } + def users_create(conn, %{"users" => users}) do + result = + Enum.map(users, fn %{"nickname" => nickname, "email" => email, "password" => password} -> + user_data = %{ + nickname: nickname, + name: nickname, + email: email, + password: password, + password_confirmation: password, + bio: "." + } - changeset = User.register_changeset(%User{}, user_data, need_confirmation: false) - {:ok, user} = User.register(changeset) + changeset = User.register_changeset(%User{}, user_data, need_confirmation: false) + + case User.register(changeset) do + {:ok, user} -> + AccountView.render("created.json", %{user: user}) + + {:error, changeset} -> + AccountView.render("create-error.json", %{changeset: changeset}) + end + end) conn - |> json(user.nickname) + |> json(result) end def user_show(conn, %{"nickname" => nickname}) do diff --git a/lib/pleroma/web/admin_api/views/account_view.ex b/lib/pleroma/web/admin_api/views/account_view.ex index 28bb667d8..e1825c5f1 100644 --- a/lib/pleroma/web/admin_api/views/account_view.ex +++ b/lib/pleroma/web/admin_api/views/account_view.ex @@ -44,4 +44,50 @@ def render("invites.json", %{invites: invites}) do invites: render_many(invites, AccountView, "invite.json", as: :invite) } end + + def render("created.json", %{user: user}) do + %{ + type: "success", + code: 201, + data: %{ + nickname: user.nickname, + email: user.email + } + } + end + + def render("create-error.json", %{changeset: %Ecto.Changeset{changes: changes, errors: errors}}) do + %{ + type: "error", + code: 409, + error: parse_error(errors), + data: %{ + nickname: Map.get(changes, :nickname), + email: Map.get(changes, :email) + } + } + end + + defp parse_error([]), do: "" + + defp parse_error(errors) do + ## when nickname is duplicate ap_id constraint error is raised + nickname_error = Keyword.get(errors, :nickname) || Keyword.get(errors, :ap_id) + email_error = Keyword.get(errors, :email) + password_error = Keyword.get(errors, :password) + + cond do + nickname_error -> + "nickname #{elem(nickname_error, 0)}" + + email_error -> + "email #{elem(email_error, 0)}" + + password_error -> + "password #{elem(password_error, 0)}" + + true -> + "" + end + end end diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 7fef82f82..bbc2fda9b 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -156,7 +156,7 @@ defmodule Pleroma.Web.Router do post("/user", AdminAPIController, :user_create) delete("/users", AdminAPIController, :user_delete) - post("/users", AdminAPIController, :user_create) + post("/users", AdminAPIController, :users_create) patch("/users/:nickname/toggle_activation", AdminAPIController, :user_toggle_activation) put("/users/tag", AdminAPIController, :tag_users) delete("/users/tag", AdminAPIController, :untag_users) diff --git a/test/web/admin_api/admin_api_controller_test.exs b/test/web/admin_api/admin_api_controller_test.exs index 6c1897b5a..a0c9fd56f 100644 --- a/test/web/admin_api/admin_api_controller_test.exs +++ b/test/web/admin_api/admin_api_controller_test.exs @@ -31,12 +31,87 @@ test "Create" do |> assign(:user, admin) |> put_req_header("accept", "application/json") |> post("/api/pleroma/admin/users", %{ - "nickname" => "lain", - "email" => "lain@example.org", - "password" => "test" + "users" => [ + %{ + "nickname" => "lain", + "email" => "lain@example.org", + "password" => "test" + } + ] }) - assert json_response(conn, 200) == "lain" + assert json_response(conn, 200) == [ + %{ + "code" => 201, + "data" => %{ + "email" => "lain@example.org", + "nickname" => "lain" + }, + "type" => "success" + } + ] + end + + test "Cannot create user with exisiting email" do + admin = insert(:user, info: %{is_admin: true}) + user = insert(:user) + + conn = + build_conn() + |> assign(:user, admin) + |> put_req_header("accept", "application/json") + |> post("/api/pleroma/admin/users", %{ + "users" => [ + %{ + "nickname" => "lain", + "email" => user.email, + "password" => "test" + } + ] + }) + + assert json_response(conn, 200) == [ + %{ + "code" => 409, + "data" => %{ + "email" => user.email, + "nickname" => "lain" + }, + "error" => "email has already been taken", + "type" => "error" + } + ] + end + + test "Cannot create user with exisiting nickname" do + admin = insert(:user, info: %{is_admin: true}) + user = insert(:user) + + conn = + build_conn() + |> assign(:user, admin) + |> put_req_header("accept", "application/json") + |> post("/api/pleroma/admin/users", %{ + "users" => [ + %{ + "nickname" => user.nickname, + "email" => "someuser@plerama.social", + "password" => "test" + } + ] + }) + + assert json_response(conn, 200) == [ + %{ + "code" => 409, + "data" => %{ + "email" => "someuser@plerama.social", + "nickname" => user.nickname + }, + "error" => "nickname has already been taken", + "type" => "error" + } + ] end end From 5534d4c67675901ab272ee47355ad43dfae99033 Mon Sep 17 00:00:00 2001 From: Sachin Joshi Date: Sat, 1 Jun 2019 11:17:53 +0545 Subject: [PATCH 002/400] make bulk user creation from admin works as a transaction --- lib/pleroma/user.ex | 8 ++- .../web/admin_api/admin_api_controller.ex | 45 +++++++++---- .../web/admin_api/views/account_view.ex | 2 +- .../admin_api/admin_api_controller_test.exs | 66 ++++++++++++++++++- 4 files changed, 104 insertions(+), 17 deletions(-) diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index c6a562a61..722e8ff6b 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -276,7 +276,13 @@ defp autofollow_users(user) do @doc "Inserts provided changeset, performs post-registration actions (confirmation email sending etc.)" def register(%Ecto.Changeset{} = changeset) do with {:ok, user} <- Repo.insert(changeset), - {:ok, user} <- autofollow_users(user), + {:ok, user} <- post_register_action(user) do + {:ok, user} + end + end + + def post_register_action(%User{} = user) do + with {:ok, user} <- autofollow_users(user), {:ok, user} <- set_cache(user), {:ok, _} <- Pleroma.User.WelcomeMessage.post_welcome_message_to_user(user), {:ok, _} <- try_send_confirmation_email(user) do diff --git a/lib/pleroma/web/admin_api/admin_api_controller.ex b/lib/pleroma/web/admin_api/admin_api_controller.ex index 6048ed35b..60fd4e571 100644 --- a/lib/pleroma/web/admin_api/admin_api_controller.ex +++ b/lib/pleroma/web/admin_api/admin_api_controller.ex @@ -47,7 +47,7 @@ def user_unfollow(conn, %{"follower" => follower_nick, "followed" => followed_ni end def users_create(conn, %{"users" => users}) do - result = + changesets = Enum.map(users, fn %{"nickname" => nickname, "email" => email, "password" => password} -> user_data = %{ nickname: nickname, @@ -58,19 +58,40 @@ def users_create(conn, %{"users" => users}) do bio: "." } - changeset = User.register_changeset(%User{}, user_data, need_confirmation: false) - - case User.register(changeset) do - {:ok, user} -> - AccountView.render("created.json", %{user: user}) - - {:error, changeset} -> - AccountView.render("create-error.json", %{changeset: changeset}) - end + User.register_changeset(%User{}, user_data, need_confirmation: false) + end) + |> Enum.reduce(Ecto.Multi.new(), fn changeset, multi -> + Ecto.Multi.insert(multi, Ecto.UUID.generate(), changeset) end) - conn - |> json(result) + case Pleroma.Repo.transaction(changesets) do + {:ok, users} -> + res = + users + |> Map.values() + |> Enum.map(fn user -> + {:ok, user} = User.post_register_action(user) + user + end) + |> Enum.map(&AccountView.render("created.json", %{user: &1})) + + conn + |> json(res) + + {:error, id, changeset, _} -> + res = + Enum.map(changesets.operations, fn + {current_id, {:changeset, _current_changeset, _}} when current_id == id -> + AccountView.render("create-error.json", %{changeset: changeset}) + + {_, {:changeset, current_changeset, _}} -> + AccountView.render("create-error.json", %{changeset: current_changeset}) + end) + + conn + |> put_status(:conflict) + |> json(res) + end end def user_show(conn, %{"nickname" => nickname}) do diff --git a/lib/pleroma/web/admin_api/views/account_view.ex b/lib/pleroma/web/admin_api/views/account_view.ex index e1825c5f1..cccdeff7e 100644 --- a/lib/pleroma/web/admin_api/views/account_view.ex +++ b/lib/pleroma/web/admin_api/views/account_view.ex @@ -48,7 +48,7 @@ def render("invites.json", %{invites: invites}) do def render("created.json", %{user: user}) do %{ type: "success", - code: 201, + code: 200, data: %{ nickname: user.nickname, email: user.email diff --git a/test/web/admin_api/admin_api_controller_test.exs b/test/web/admin_api/admin_api_controller_test.exs index a0c9fd56f..019905137 100644 --- a/test/web/admin_api/admin_api_controller_test.exs +++ b/test/web/admin_api/admin_api_controller_test.exs @@ -36,18 +36,31 @@ test "Create" do "nickname" => "lain", "email" => "lain@example.org", "password" => "test" + }, + %{ + "nickname" => "lain2", + "email" => "lain2@example.org", + "password" => "test" } ] }) assert json_response(conn, 200) == [ %{ - "code" => 201, + "code" => 200, "data" => %{ "email" => "lain@example.org", "nickname" => "lain" }, "type" => "success" + }, + %{ + "code" => 200, + "data" => %{ + "email" => "lain2@example.org", + "nickname" => "lain2" + }, + "type" => "success" } ] end @@ -70,7 +83,7 @@ test "Cannot create user with exisiting email" do ] }) - assert json_response(conn, 200) == [ + assert json_response(conn, 409) == [ %{ "code" => 409, "data" => %{ @@ -101,7 +114,7 @@ test "Cannot create user with exisiting nickname" do ] }) - assert json_response(conn, 200) == [ + assert json_response(conn, 409) == [ %{ "code" => 409, "data" => %{ @@ -113,6 +126,53 @@ test "Cannot create user with exisiting nickname" do } ] end + + test "Multiple user creation works in transaction" do + admin = insert(:user, info: %{is_admin: true}) + user = insert(:user) + + conn = + build_conn() + |> assign(:user, admin) + |> put_req_header("accept", "application/json") + |> post("/api/pleroma/admin/users", %{ + "users" => [ + %{ + "nickname" => "newuser", + "email" => "newuser@pleroma.social", + "password" => "test" + }, + %{ + "nickname" => "lain", + "email" => user.email, + "password" => "test" + } + ] + }) + + assert json_response(conn, 409) == [ + %{ + "code" => 409, + "data" => %{ + "email" => user.email, + "nickname" => "lain" + }, + "error" => "email has already been taken", + "type" => "error" + }, + %{ + "code" => 409, + "data" => %{ + "email" => "newuser@pleroma.social", + "nickname" => "newuser" + }, + "error" => "", + "type" => "error" + } + ] + + assert User.get_by_nickname("newuser") === nil + end end describe "/api/pleroma/admin/users/:nickname" do From e394fc2eefdd7a4c7edd5fb3c04b445215d4a86c Mon Sep 17 00:00:00 2001 From: Sachin Joshi Date: Sun, 2 Jun 2019 09:48:45 +0545 Subject: [PATCH 003/400] fix the flaky test for users creation by admin --- .../admin_api/admin_api_controller_test.exs | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/test/web/admin_api/admin_api_controller_test.exs b/test/web/admin_api/admin_api_controller_test.exs index 9721a4034..86b160246 100644 --- a/test/web/admin_api/admin_api_controller_test.exs +++ b/test/web/admin_api/admin_api_controller_test.exs @@ -47,24 +47,8 @@ test "Create" do ] }) - assert json_response(conn, 200) == [ - %{ - "code" => 200, - "data" => %{ - "email" => "lain@example.org", - "nickname" => "lain" - }, - "type" => "success" - }, - %{ - "code" => 200, - "data" => %{ - "email" => "lain2@example.org", - "nickname" => "lain2" - }, - "type" => "success" - } - ] + response = json_response(conn, 200) |> Enum.map(&Map.get(&1, "type")) + assert response == ["success", "success"] end test "Cannot create user with exisiting email" do From 8ba7a151adf77c5cc47d6e1364a6078cc4bdef98 Mon Sep 17 00:00:00 2001 From: Mike Verdone Date: Mon, 22 Jul 2019 16:45:54 +0200 Subject: [PATCH 004/400] Cleanup: fix a comment --- test/web/mastodon_api/mastodon_api_controller_test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index ce2e44499..b5279412f 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -405,7 +405,7 @@ test "direct timeline", %{conn: conn} do assert %{"visibility" => "direct"} = status assert status["url"] != direct.data["id"] - # User should be able to see his own direct message + # User should be able to see their own direct message res_conn = build_conn() |> assign(:user, user_one) From b72940277470c67802b979e4cab44f277e8fffb3 Mon Sep 17 00:00:00 2001 From: Mike Verdone Date: Mon, 22 Jul 2019 09:10:30 +0200 Subject: [PATCH 005/400] Make test.exs read config in the same way as dev.exs This way, if your test.secret.exs has an error, you'll actually see it. --- config/test.exs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/config/test.exs b/config/test.exs index 92dca18bc..3f606aa81 100644 --- a/config/test.exs +++ b/config/test.exs @@ -82,11 +82,10 @@ config :pleroma, Pleroma.ReverseProxy.Client, Pleroma.ReverseProxy.ClientMock -try do +if File.exists?("./config/test.secret.exs") do import_config "test.secret.exs" -rescue - _ -> - IO.puts( - "You may want to create test.secret.exs to declare custom database connection parameters." - ) +else + IO.puts( + "You may want to create test.secret.exs to declare custom database connection parameters." + ) end From 666514194a325e2463c05bae516b89d7c5f59316 Mon Sep 17 00:00:00 2001 From: Mike Verdone Date: Mon, 22 Jul 2019 14:16:20 +0200 Subject: [PATCH 006/400] Add activity expirations table Add a table to store activity expirations. An activity can have zero or one expirations. The expiration has a scheduled_at field which stores the time at which the activity should expire and be deleted. --- lib/pleroma/activity.ex | 3 ++ lib/pleroma/activity_expiration.ex | 31 +++++++++++++++++++ .../20190716100804_add_expirations_table.exs | 10 ++++++ test/activity_expiration_test.exs | 21 +++++++++++++ test/activity_test.exs | 9 ++++++ test/support/factory.ex | 19 +++++++++++- 6 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 lib/pleroma/activity_expiration.ex create mode 100644 priv/repo/migrations/20190716100804_add_expirations_table.exs create mode 100644 test/activity_expiration_test.exs diff --git a/lib/pleroma/activity.ex b/lib/pleroma/activity.ex index 46552c7be..be4850560 100644 --- a/lib/pleroma/activity.ex +++ b/lib/pleroma/activity.ex @@ -6,6 +6,7 @@ defmodule Pleroma.Activity do use Ecto.Schema alias Pleroma.Activity + alias Pleroma.ActivityExpiration alias Pleroma.Bookmark alias Pleroma.Notification alias Pleroma.Object @@ -59,6 +60,8 @@ defmodule Pleroma.Activity do # typical case. has_one(:object, Object, on_delete: :nothing, foreign_key: :id) + has_one(:expiration, ActivityExpiration, on_delete: :delete_all) + timestamps() end diff --git a/lib/pleroma/activity_expiration.ex b/lib/pleroma/activity_expiration.ex new file mode 100644 index 000000000..d3d95f9e9 --- /dev/null +++ b/lib/pleroma/activity_expiration.ex @@ -0,0 +1,31 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.ActivityExpiration do + use Ecto.Schema + + alias Pleroma.Activity + alias Pleroma.ActivityExpiration + alias Pleroma.FlakeId + alias Pleroma.Repo + + import Ecto.Query + + @type t :: %__MODULE__{} + + schema "activity_expirations" do + belongs_to(:activity, Activity, type: FlakeId) + field(:scheduled_at, :naive_datetime) + end + + def due_expirations(offset \\ 0) do + naive_datetime = + NaiveDateTime.utc_now() + |> NaiveDateTime.add(offset, :millisecond) + + ActivityExpiration + |> where([exp], exp.scheduled_at < ^naive_datetime) + |> Repo.all() + end +end diff --git a/priv/repo/migrations/20190716100804_add_expirations_table.exs b/priv/repo/migrations/20190716100804_add_expirations_table.exs new file mode 100644 index 000000000..fbde8f9d6 --- /dev/null +++ b/priv/repo/migrations/20190716100804_add_expirations_table.exs @@ -0,0 +1,10 @@ +defmodule Pleroma.Repo.Migrations.AddExpirationsTable do + use Ecto.Migration + + def change do + create_if_not_exists table(:activity_expirations) do + add(:activity_id, references(:activities, type: :uuid, on_delete: :delete_all)) + add(:scheduled_at, :naive_datetime, null: false) + end + end +end diff --git a/test/activity_expiration_test.exs b/test/activity_expiration_test.exs new file mode 100644 index 000000000..20566a186 --- /dev/null +++ b/test/activity_expiration_test.exs @@ -0,0 +1,21 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.ActivityExpirationTest do + use Pleroma.DataCase + alias Pleroma.ActivityExpiration + import Pleroma.Factory + + test "finds activities due to be deleted only" do + activity = insert(:note_activity) + expiration_due = insert(:expiration_in_the_past, %{activity_id: activity.id}) + activity2 = insert(:note_activity) + insert(:expiration_in_the_future, %{activity_id: activity2.id}) + + expirations = ActivityExpiration.due_expirations() + + assert length(expirations) == 1 + assert hd(expirations) == expiration_due + end +end diff --git a/test/activity_test.exs b/test/activity_test.exs index b27f6fd36..785c4b3cf 100644 --- a/test/activity_test.exs +++ b/test/activity_test.exs @@ -164,4 +164,13 @@ test "find all statuses for unauthenticated users when `limit_to_local_content` Pleroma.Config.put([:instance, :limit_to_local_content], :unauthenticated) end end + + test "add an activity with an expiration" do + activity = insert(:note_activity) + insert(:expiration_in_the_future, %{activity_id: activity.id}) + + Pleroma.ActivityExpiration + |> where([a], a.activity_id == ^activity.id) + |> Repo.one!() + end end diff --git a/test/support/factory.ex b/test/support/factory.ex index c751546ce..7b52b1328 100644 --- a/test/support/factory.ex +++ b/test/support/factory.ex @@ -1,5 +1,5 @@ # Pleroma: A lightweight social networking server -# Copyright © 2017-2018 Pleroma Authors +# Copyright © 2017-2019 Pleroma Authors # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Factory do @@ -142,6 +142,23 @@ def note_activity_factory(attrs \\ %{}) do |> Map.merge(attrs) end + defp expiration_offset_by_minutes(attrs, minutes) do + %Pleroma.ActivityExpiration{} + |> Map.merge(attrs) + |> Map.put( + :scheduled_at, + NaiveDateTime.add(NaiveDateTime.utc_now(), :timer.minutes(minutes), :millisecond) + ) + end + + def expiration_in_the_past_factory(attrs \\ %{}) do + expiration_offset_by_minutes(attrs, -60) + end + + def expiration_in_the_future_factory(attrs \\ %{}) do + expiration_offset_by_minutes(attrs, 60) + end + def article_activity_factory do article = insert(:article) From 378f5f0fbe21c2533719fed9afe8313586fda5d5 Mon Sep 17 00:00:00 2001 From: Mike Verdone Date: Mon, 22 Jul 2019 14:18:58 +0200 Subject: [PATCH 007/400] Add activity expiration worker This is a worker that runs every minute and deletes expired activities. It's based heavily on the scheduled activities worker. --- config/config.exs | 3 ++ docs/config.md | 4 ++ lib/pleroma/activity_expiration_worker.ex | 62 +++++++++++++++++++++++ lib/pleroma/application.ex | 4 ++ test/activity_expiration_worker_test.exs | 17 +++++++ 5 files changed, 90 insertions(+) create mode 100644 lib/pleroma/activity_expiration_worker.ex create mode 100644 test/activity_expiration_worker_test.exs diff --git a/config/config.exs b/config/config.exs index 569411866..2887353fb 100644 --- a/config/config.exs +++ b/config/config.exs @@ -447,6 +447,7 @@ max_retries: 5 config :pleroma_job_queue, :queues, + activity_expiration: 10, federator_incoming: 50, federator_outgoing: 50, web_push: 50, @@ -536,6 +537,8 @@ status_id_action: {60_000, 3}, password_reset: {1_800_000, 5} +config :pleroma, Pleroma.ActivityExpiration, enabled: true + # Import environment specific config. This must remain at the bottom # of this file so it overrides the configuration defined above. import_config "#{Mix.env()}.exs" diff --git a/docs/config.md b/docs/config.md index 02f86dc16..a20ed704f 100644 --- a/docs/config.md +++ b/docs/config.md @@ -484,6 +484,10 @@ config :auto_linker, * `total_user_limit`: the number of scheduled activities a user is allowed to create in total (Default: `300`) * `enabled`: whether scheduled activities are sent to the job queue to be executed +## Pleroma.ActivityExpiration + +# `enabled`: whether expired activities will be sent to the job queue to be deleted + ## Pleroma.Web.Auth.Authenticator * `Pleroma.Web.Auth.PleromaAuthenticator`: default database authenticator diff --git a/lib/pleroma/activity_expiration_worker.ex b/lib/pleroma/activity_expiration_worker.ex new file mode 100644 index 000000000..a341f58df --- /dev/null +++ b/lib/pleroma/activity_expiration_worker.ex @@ -0,0 +1,62 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.ActivityExpirationWorker do + alias Pleroma.Activity + alias Pleroma.ActivityExpiration + alias Pleroma.Config + alias Pleroma.Repo + alias Pleroma.User + alias Pleroma.Web.CommonAPI + require Logger + use GenServer + import Ecto.Query + + @schedule_interval :timer.minutes(1) + + def start_link do + GenServer.start_link(__MODULE__, nil) + end + + @impl true + def init(_) do + if Config.get([ActivityExpiration, :enabled]) do + schedule_next() + {:ok, nil} + else + :ignore + end + end + + def perform(:execute, expiration_id) do + try do + expiration = + ActivityExpiration + |> where([e], e.id == ^expiration_id) + |> Repo.one!() + + activity = Activity.get_by_id_with_object(expiration.activity_id) + user = User.get_by_ap_id(activity.object.data["actor"]) + CommonAPI.delete(activity.id, user) + rescue + error -> + Logger.error("#{__MODULE__} Couldn't delete expired activity: #{inspect(error)}") + end + end + + @impl true + def handle_info(:perform, state) do + ActivityExpiration.due_expirations(@schedule_interval) + |> Enum.each(fn expiration -> + PleromaJobQueue.enqueue(:activity_expiration, __MODULE__, [:execute, expiration.id]) + end) + + schedule_next() + {:noreply, state} + end + + defp schedule_next do + Process.send_after(self(), :perform, @schedule_interval) + end +end diff --git a/lib/pleroma/application.ex b/lib/pleroma/application.ex index 035331491..42e4a1dfa 100644 --- a/lib/pleroma/application.ex +++ b/lib/pleroma/application.ex @@ -115,6 +115,10 @@ def start(_type, _args) do %{ id: Pleroma.ScheduledActivityWorker, start: {Pleroma.ScheduledActivityWorker, :start_link, []} + }, + %{ + id: Pleroma.ActivityExpirationWorker, + start: {Pleroma.ActivityExpirationWorker, :start_link, []} } ] ++ hackney_pool_children() ++ diff --git a/test/activity_expiration_worker_test.exs b/test/activity_expiration_worker_test.exs new file mode 100644 index 000000000..939d912f1 --- /dev/null +++ b/test/activity_expiration_worker_test.exs @@ -0,0 +1,17 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2018 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.ActivityExpirationWorkerTest do + use Pleroma.DataCase + alias Pleroma.Activity + import Pleroma.Factory + + test "deletes an activity" do + activity = insert(:note_activity) + expiration = insert(:expiration_in_the_past, %{activity_id: activity.id}) + Pleroma.ActivityExpirationWorker.perform(:execute, expiration.id) + + refute Repo.get(Activity, activity.id) + end +end From 704960b3c135d2e050308c68f5ccf5d7b7df40f8 Mon Sep 17 00:00:00 2001 From: Mike Verdone Date: Mon, 22 Jul 2019 16:46:20 +0200 Subject: [PATCH 008/400] Add support for activity expiration to common and Masto API The "expires_at" parameter accepts an ISO8601-formatted date which defines when the activity will expire. At this point the API will not give you any feedback about if your post will expire or not. --- docs/api/differences_in_mastoapi_responses.md | 1 + lib/pleroma/activity_expiration.ex | 19 ++++++++++++ lib/pleroma/web/common_api/common_api.ex | 29 +++++++++++++------ test/support/factory.ex | 10 ++++--- test/web/common_api/common_api_test.exs | 17 +++++++++++ .../mastodon_api_controller_test.exs | 19 ++++++++++++ 6 files changed, 82 insertions(+), 13 deletions(-) diff --git a/docs/api/differences_in_mastoapi_responses.md b/docs/api/differences_in_mastoapi_responses.md index 1907d70c8..7d5be4713 100644 --- a/docs/api/differences_in_mastoapi_responses.md +++ b/docs/api/differences_in_mastoapi_responses.md @@ -79,6 +79,7 @@ Additional parameters can be added to the JSON body/Form data: - `content_type`: string, contain the MIME type of the status, it is transformed into HTML by the backend. You can get the list of the supported MIME types with the nodeinfo endpoint. - `to`: A list of nicknames (like `lain@soykaf.club` or `lain` on the local server) that will be used to determine who is going to be addressed by this post. Using this will disable the implicit addressing by mentioned names in the `status` body, only the people in the `to` list will be addressed. The normal rules for for post visibility are not affected by this and will still apply. - `visibility`: string, besides standard MastoAPI values (`direct`, `private`, `unlisted` or `public`) it can be used to address a List by setting it to `list:LIST_ID`. +- `expires_on`: datetime (iso8601), sets when the posted activity should expire. When a posted activity expires it will be deleted from the server, and a delete request for it will be federated. ## PATCH `/api/v1/update_credentials` diff --git a/lib/pleroma/activity_expiration.ex b/lib/pleroma/activity_expiration.ex index d3d95f9e9..a0af5255b 100644 --- a/lib/pleroma/activity_expiration.ex +++ b/lib/pleroma/activity_expiration.ex @@ -10,6 +10,7 @@ defmodule Pleroma.ActivityExpiration do alias Pleroma.FlakeId alias Pleroma.Repo + import Ecto.Changeset import Ecto.Query @type t :: %__MODULE__{} @@ -19,6 +20,24 @@ defmodule Pleroma.ActivityExpiration do field(:scheduled_at, :naive_datetime) end + def changeset(%ActivityExpiration{} = expiration, attrs) do + expiration + |> cast(attrs, [:scheduled_at]) + |> validate_required([:scheduled_at]) + end + + def get_by_activity_id(activity_id) do + ActivityExpiration + |> where([exp], exp.activity_id == ^activity_id) + |> Repo.one() + end + + def create(%Activity{} = activity, scheduled_at) do + %ActivityExpiration{activity_id: activity.id} + |> changeset(%{scheduled_at: scheduled_at}) + |> Repo.insert() + end + def due_expirations(offset \\ 0) do naive_datetime = NaiveDateTime.utc_now() diff --git a/lib/pleroma/web/common_api/common_api.ex b/lib/pleroma/web/common_api/common_api.ex index 44af6a773..0f287af4e 100644 --- a/lib/pleroma/web/common_api/common_api.ex +++ b/lib/pleroma/web/common_api/common_api.ex @@ -4,6 +4,7 @@ defmodule Pleroma.Web.CommonAPI do alias Pleroma.Activity + alias Pleroma.ActivityExpiration alias Pleroma.Formatter alias Pleroma.Object alias Pleroma.ThreadMute @@ -218,6 +219,7 @@ def post(user, %{"status" => status} = data) do context <- make_context(in_reply_to), cw <- data["spoiler_text"] || "", sensitive <- data["sensitive"] || Enum.member?(tags, {"#nsfw", "nsfw"}), + {:ok, expires_at} <- Ecto.Type.cast(:naive_datetime, data["expires_at"]), full_payload <- String.trim(status <> cw), :ok <- validate_character_limit(full_payload, attachments, limit), object <- @@ -243,15 +245,24 @@ def post(user, %{"status" => status} = data) do preview? = Pleroma.Web.ControllerHelper.truthy_param?(data["preview"]) || false direct? = visibility == "direct" - %{ - to: to, - actor: user, - context: context, - object: object, - additional: %{"cc" => cc, "directMessage" => direct?} - } - |> maybe_add_list_data(user, visibility) - |> ActivityPub.create(preview?) + result = + %{ + to: to, + actor: user, + context: context, + object: object, + additional: %{"cc" => cc, "directMessage" => direct?} + } + |> maybe_add_list_data(user, visibility) + |> ActivityPub.create(preview?) + + if expires_at do + with {:ok, activity} <- result do + ActivityExpiration.create(activity, expires_at) + end + end + + result else {:private_to_public, true} -> {:error, dgettext("errors", "The message visibility must be direct")} diff --git a/test/support/factory.ex b/test/support/factory.ex index 7b52b1328..63fe3a66d 100644 --- a/test/support/factory.ex +++ b/test/support/factory.ex @@ -143,12 +143,14 @@ def note_activity_factory(attrs \\ %{}) do end defp expiration_offset_by_minutes(attrs, minutes) do + scheduled_at = + NaiveDateTime.utc_now() + |> NaiveDateTime.add(:timer.minutes(minutes), :millisecond) + |> NaiveDateTime.truncate(:second) + %Pleroma.ActivityExpiration{} |> Map.merge(attrs) - |> Map.put( - :scheduled_at, - NaiveDateTime.add(NaiveDateTime.utc_now(), :timer.minutes(minutes), :millisecond) - ) + |> Map.put(:scheduled_at, scheduled_at) end def expiration_in_the_past_factory(attrs \\ %{}) do diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs index 16b3f121d..210314a4a 100644 --- a/test/web/common_api/common_api_test.exs +++ b/test/web/common_api/common_api_test.exs @@ -160,6 +160,23 @@ test "it returns error when character limit is exceeded" do Pleroma.Config.put([:instance, :limit], limit) end + + test "it can handle activities that expire" do + user = insert(:user) + + expires_at = + NaiveDateTime.utc_now() + |> NaiveDateTime.truncate(:second) + |> NaiveDateTime.add(1_000_000, :second) + + expires_at_iso8601 = expires_at |> NaiveDateTime.to_iso8601() + + assert {:ok, activity} = + CommonAPI.post(user, %{"status" => "chai", "expires_at" => expires_at_iso8601}) + + assert expiration = Pleroma.ActivityExpiration.get_by_activity_id(activity.id) + assert expiration.scheduled_at == expires_at + end end describe "reactions" do diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index b5279412f..24482a4a2 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -7,6 +7,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do alias Ecto.Changeset alias Pleroma.Activity + alias Pleroma.ActivityExpiration alias Pleroma.Notification alias Pleroma.Object alias Pleroma.Repo @@ -151,6 +152,24 @@ test "posting a status", %{conn: conn} do assert %{"id" => third_id} = json_response(conn_three, 200) refute id == third_id + + # An activity that will expire: + expires_at = + NaiveDateTime.utc_now() + |> NaiveDateTime.add(:timer.minutes(120), :millisecond) + |> NaiveDateTime.truncate(:second) + + conn_four = + conn + |> post("api/v1/statuses", %{ + "status" => "oolong", + "expires_at" => expires_at + }) + + assert %{"id" => fourth_id} = json_response(conn_four, 200) + assert activity = Activity.get_by_id(fourth_id) + assert expiration = ActivityExpiration.get_by_activity_id(fourth_id) + assert expiration.scheduled_at == expires_at end test "replying to a status", %{conn: conn} do From 36012ef6c1dfea2489e61063e14783fa3fb52700 Mon Sep 17 00:00:00 2001 From: Mike Verdone Date: Tue, 23 Jul 2019 16:33:45 +0200 Subject: [PATCH 009/400] Require that ephemeral posts live for at least one hour If we didn't put some kind of lifetime requirement on these, I guess you could annoy people by sending large numbers of ephemeral posts that provoke notifications but then disappear before anyone can read them. --- lib/pleroma/activity_expiration.ex | 18 ++++++++++++++++++ lib/pleroma/web/common_api/common_api.ex | 14 ++++++++++++-- test/activity_expiration_test.exs | 6 ++++++ test/support/factory.ex | 2 +- 4 files changed, 37 insertions(+), 3 deletions(-) diff --git a/lib/pleroma/activity_expiration.ex b/lib/pleroma/activity_expiration.ex index a0af5255b..bf57abca4 100644 --- a/lib/pleroma/activity_expiration.ex +++ b/lib/pleroma/activity_expiration.ex @@ -14,6 +14,7 @@ defmodule Pleroma.ActivityExpiration do import Ecto.Query @type t :: %__MODULE__{} + @min_activity_lifetime :timer.hours(1) schema "activity_expirations" do belongs_to(:activity, Activity, type: FlakeId) @@ -24,6 +25,7 @@ def changeset(%ActivityExpiration{} = expiration, attrs) do expiration |> cast(attrs, [:scheduled_at]) |> validate_required([:scheduled_at]) + |> validate_scheduled_at() end def get_by_activity_id(activity_id) do @@ -47,4 +49,20 @@ def due_expirations(offset \\ 0) do |> where([exp], exp.scheduled_at < ^naive_datetime) |> Repo.all() end + + def validate_scheduled_at(changeset) do + validate_change(changeset, :scheduled_at, fn _, scheduled_at -> + if not expires_late_enough?(scheduled_at) do + [scheduled_at: "an ephemeral activity must live for at least one hour"] + else + [] + end + end) + end + + def expires_late_enough?(scheduled_at) do + now = NaiveDateTime.utc_now() + diff = NaiveDateTime.diff(scheduled_at, now, :millisecond) + diff >= @min_activity_lifetime + end end diff --git a/lib/pleroma/web/common_api/common_api.ex b/lib/pleroma/web/common_api/common_api.ex index 0f287af4e..261d60392 100644 --- a/lib/pleroma/web/common_api/common_api.ex +++ b/lib/pleroma/web/common_api/common_api.ex @@ -196,6 +196,16 @@ def get_replied_to_visibility(activity) do end end + defp check_expiry_date(expiry_str) do + {:ok, expiry} = Ecto.Type.cast(:naive_datetime, expiry_str) + + if is_nil(expiry) || ActivityExpiration.expires_late_enough?(expiry) do + {:ok, expiry} + else + {:error, "Expiry date is too soon"} + end + end + def post(user, %{"status" => status} = data) do limit = Pleroma.Config.get([:instance, :limit]) @@ -219,7 +229,7 @@ def post(user, %{"status" => status} = data) do context <- make_context(in_reply_to), cw <- data["spoiler_text"] || "", sensitive <- data["sensitive"] || Enum.member?(tags, {"#nsfw", "nsfw"}), - {:ok, expires_at} <- Ecto.Type.cast(:naive_datetime, data["expires_at"]), + {:ok, expires_at} <- check_expiry_date(data["expires_at"]), full_payload <- String.trim(status <> cw), :ok <- validate_character_limit(full_payload, attachments, limit), object <- @@ -258,7 +268,7 @@ def post(user, %{"status" => status} = data) do if expires_at do with {:ok, activity} <- result do - ActivityExpiration.create(activity, expires_at) + {:ok, _} = ActivityExpiration.create(activity, expires_at) end end diff --git a/test/activity_expiration_test.exs b/test/activity_expiration_test.exs index 20566a186..4948fae16 100644 --- a/test/activity_expiration_test.exs +++ b/test/activity_expiration_test.exs @@ -18,4 +18,10 @@ test "finds activities due to be deleted only" do assert length(expirations) == 1 assert hd(expirations) == expiration_due end + + test "denies expirations that don't live long enough" do + activity = insert(:note_activity) + now = NaiveDateTime.utc_now() + assert {:error, _} = ActivityExpiration.create(activity, now) + end end diff --git a/test/support/factory.ex b/test/support/factory.ex index 63fe3a66d..7a2ddcada 100644 --- a/test/support/factory.ex +++ b/test/support/factory.ex @@ -158,7 +158,7 @@ def expiration_in_the_past_factory(attrs \\ %{}) do end def expiration_in_the_future_factory(attrs \\ %{}) do - expiration_offset_by_minutes(attrs, 60) + expiration_offset_by_minutes(attrs, 61) end def article_activity_factory do From 3cb471ec0688b81c8ef37dd27f2b82e6c858431f Mon Sep 17 00:00:00 2001 From: Mike Verdone Date: Wed, 24 Jul 2019 12:43:20 +0200 Subject: [PATCH 010/400] Expose expires_at datetime in mastoAPI only for the activity actor In the "pleroma" section of the MastoAPI for status activities you can see an expires_at item that states when the activity will expire, or nothing if the activity will not expire. The expires_at date is only visible to the person who posted the activity. This is the conservative approach in case some attacker decides to write a logger for expiring posts. However, in the future of OCAP, signed requests, and all that stuff, this attack might not be that likely. Some other pleroma dev should remove the restriction in the code at that time, if they're satisfied with the security implications of doing so. --- docs/api/differences_in_mastoapi_responses.md | 1 + lib/pleroma/web/mastodon_api/views/status_view.ex | 13 ++++++++++++- .../mastodon_api/mastodon_api_controller_test.exs | 3 ++- test/web/mastodon_api/status_view_test.exs | 3 ++- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/docs/api/differences_in_mastoapi_responses.md b/docs/api/differences_in_mastoapi_responses.md index 7d5be4713..168a13f4e 100644 --- a/docs/api/differences_in_mastoapi_responses.md +++ b/docs/api/differences_in_mastoapi_responses.md @@ -25,6 +25,7 @@ Has these additional fields under the `pleroma` object: - `in_reply_to_account_acct`: the `acct` property of User entity for replied user (if any) - `content`: a map consisting of alternate representations of the `content` property with the key being it's mimetype. Currently the only alternate representation supported is `text/plain` - `spoiler_text`: a map consisting of alternate representations of the `spoiler_text` property with the key being it's mimetype. Currently the only alternate representation supported is `text/plain` +- `expires_on`: a datetime (iso8601) that states when the post will expire (be deleted automatically), or empty if the post won't expire ## Attachments diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index de9425959..7264dcafb 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -6,6 +6,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do use Pleroma.Web, :view alias Pleroma.Activity + alias Pleroma.ActivityExpiration alias Pleroma.HTML alias Pleroma.Object alias Pleroma.Repo @@ -165,6 +166,15 @@ def render("status.json", %{activity: %{data: %{"object" => _object}} = activity bookmarked = Activity.get_bookmark(activity, opts[:for]) != nil + client_posted_this_activity = opts[:for] && user.id == opts[:for].id + + expires_at = + with true <- client_posted_this_activity, + expiration when not is_nil(expiration) <- + ActivityExpiration.get_by_activity_id(activity.id) do + expiration.scheduled_at + end + thread_muted? = case activity.thread_muted? do thread_muted? when is_boolean(thread_muted?) -> thread_muted? @@ -262,7 +272,8 @@ def render("status.json", %{activity: %{data: %{"object" => _object}} = activity conversation_id: get_context_id(activity), in_reply_to_account_acct: reply_to_user && reply_to_user.nickname, content: %{"text/plain" => content_plaintext}, - spoiler_text: %{"text/plain" => summary_plaintext} + spoiler_text: %{"text/plain" => summary_plaintext}, + expires_at: expires_at } } end diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 24482a4a2..e59908979 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -166,10 +166,11 @@ test "posting a status", %{conn: conn} do "expires_at" => expires_at }) - assert %{"id" => fourth_id} = json_response(conn_four, 200) + assert fourth_response = %{"id" => fourth_id} = json_response(conn_four, 200) assert activity = Activity.get_by_id(fourth_id) assert expiration = ActivityExpiration.get_by_activity_id(fourth_id) assert expiration.scheduled_at == expires_at + assert fourth_response["pleroma"]["expires_at"] == NaiveDateTime.to_iso8601(expires_at) end test "replying to a status", %{conn: conn} do diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs index 3447c5b1f..073c69659 100644 --- a/test/web/mastodon_api/status_view_test.exs +++ b/test/web/mastodon_api/status_view_test.exs @@ -133,7 +133,8 @@ test "a note activity" do conversation_id: convo_id, in_reply_to_account_acct: nil, content: %{"text/plain" => HtmlSanitizeEx.strip_tags(object_data["content"])}, - spoiler_text: %{"text/plain" => HtmlSanitizeEx.strip_tags(object_data["summary"])} + spoiler_text: %{"text/plain" => HtmlSanitizeEx.strip_tags(object_data["summary"])}, + expires_at: nil } } From 91d9fdc7decc664483625c11e44d4e053dd9c585 Mon Sep 17 00:00:00 2001 From: Mike Verdone Date: Wed, 24 Jul 2019 13:02:28 +0200 Subject: [PATCH 011/400] Update changelog to document expiring posts feature --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 35a5a6c21..75d236af5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Added +- Expiring/ephemeral activites. All activities can have expires_on value set, which controls when they should be deleted automatically. +- Mastodon API: in post_status, expires_at datetime parameter lets you set when an activity should expire +- Mastodon API: all status JSON responses contain a `pleroma.expires_in` item which states the number of minutes until an activity expires. The value is only shown to the user who created the activity. To everyone else it's empty. +- Configuration: `ActivityExpiration.enabled` controls whether expired activites will get deleted at the appropriate time. Enabled by default. + ### Changed - **Breaking:** Configuration: A setting to explicitly disable the mailer was added, defaulting to true, if you are using a mailer add `config :pleroma, Pleroma.Emails.Mailer, enabled: true` to your config - Configuration: OpenGraph and TwitterCard providers enabled by default From 2981821db834448bf9b2ba26590314e36201664c Mon Sep 17 00:00:00 2001 From: Mike Verdone Date: Wed, 24 Jul 2019 16:51:09 +0200 Subject: [PATCH 012/400] squash! Expose expires_at datetime in mastoAPI only for the activity actor NOTE: rewrite the commit msg --- docs/api/differences_in_mastoapi_responses.md | 2 +- lib/pleroma/web/mastodon_api/views/status_view.ex | 10 +++++++--- test/web/mastodon_api/mastodon_api_controller_test.exs | 2 +- test/web/mastodon_api/status_view_test.exs | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/api/differences_in_mastoapi_responses.md b/docs/api/differences_in_mastoapi_responses.md index 168a13f4e..829468b13 100644 --- a/docs/api/differences_in_mastoapi_responses.md +++ b/docs/api/differences_in_mastoapi_responses.md @@ -25,7 +25,7 @@ Has these additional fields under the `pleroma` object: - `in_reply_to_account_acct`: the `acct` property of User entity for replied user (if any) - `content`: a map consisting of alternate representations of the `content` property with the key being it's mimetype. Currently the only alternate representation supported is `text/plain` - `spoiler_text`: a map consisting of alternate representations of the `spoiler_text` property with the key being it's mimetype. Currently the only alternate representation supported is `text/plain` -- `expires_on`: a datetime (iso8601) that states when the post will expire (be deleted automatically), or empty if the post won't expire +- `expires_in`: the number of minutes until a post will expire (be deleted automatically), or empty if the post won't expire ## Attachments diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index 7264dcafb..4a3686d72 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -168,11 +168,15 @@ def render("status.json", %{activity: %{data: %{"object" => _object}} = activity client_posted_this_activity = opts[:for] && user.id == opts[:for].id - expires_at = + expires_in = with true <- client_posted_this_activity, expiration when not is_nil(expiration) <- ActivityExpiration.get_by_activity_id(activity.id) do - expiration.scheduled_at + expires_in_seconds = + expiration.scheduled_at + |> NaiveDateTime.diff(NaiveDateTime.utc_now(), :second) + + round(expires_in_seconds / 60) end thread_muted? = @@ -273,7 +277,7 @@ def render("status.json", %{activity: %{data: %{"object" => _object}} = activity in_reply_to_account_acct: reply_to_user && reply_to_user.nickname, content: %{"text/plain" => content_plaintext}, spoiler_text: %{"text/plain" => summary_plaintext}, - expires_at: expires_at + expires_in: expires_in } } end diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index e59908979..a9d38c06e 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -170,7 +170,7 @@ test "posting a status", %{conn: conn} do assert activity = Activity.get_by_id(fourth_id) assert expiration = ActivityExpiration.get_by_activity_id(fourth_id) assert expiration.scheduled_at == expires_at - assert fourth_response["pleroma"]["expires_at"] == NaiveDateTime.to_iso8601(expires_at) + assert fourth_response["pleroma"]["expires_in"] > 0 end test "replying to a status", %{conn: conn} do diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs index 073c69659..eb0874ab2 100644 --- a/test/web/mastodon_api/status_view_test.exs +++ b/test/web/mastodon_api/status_view_test.exs @@ -134,7 +134,7 @@ test "a note activity" do in_reply_to_account_acct: nil, content: %{"text/plain" => HtmlSanitizeEx.strip_tags(object_data["content"])}, spoiler_text: %{"text/plain" => HtmlSanitizeEx.strip_tags(object_data["summary"])}, - expires_at: nil + expires_in: nil } } From 877575d0da830724e822eac2de243391aaea7ec8 Mon Sep 17 00:00:00 2001 From: Mike Verdone Date: Wed, 24 Jul 2019 17:07:51 +0200 Subject: [PATCH 013/400] fixup! Update changelog --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 75d236af5..f64506637 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,8 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] ### Added - Expiring/ephemeral activites. All activities can have expires_on value set, which controls when they should be deleted automatically. -- Mastodon API: in post_status, expires_at datetime parameter lets you set when an activity should expire -- Mastodon API: all status JSON responses contain a `pleroma.expires_in` item which states the number of minutes until an activity expires. The value is only shown to the user who created the activity. To everyone else it's empty. +- Mastodon API: in post_status, the expires_in parameter lets you set the number of minutes until an activity expires. It must be at least one hour. +- Mastodon API: all status JSON responses contain a `pleroma.expires_on` item which states when an activity will expire. The value is only shown to the user who created the activity. To everyone else it's empty. - Configuration: `ActivityExpiration.enabled` controls whether expired activites will get deleted at the appropriate time. Enabled by default. ### Changed From 2c83eb0b157b2f574f55341e9171f0b5ab7bd3b2 Mon Sep 17 00:00:00 2001 From: Mike Verdone Date: Wed, 24 Jul 2019 17:09:59 +0200 Subject: [PATCH 014/400] Revert "squash! Expose expires_at datetime in mastoAPI only for the activity actor" This reverts commit 2981821db834448bf9b2ba26590314e36201664c. --- docs/api/differences_in_mastoapi_responses.md | 2 +- lib/pleroma/web/mastodon_api/views/status_view.ex | 10 +++------- test/web/mastodon_api/mastodon_api_controller_test.exs | 2 +- test/web/mastodon_api/status_view_test.exs | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/docs/api/differences_in_mastoapi_responses.md b/docs/api/differences_in_mastoapi_responses.md index 829468b13..168a13f4e 100644 --- a/docs/api/differences_in_mastoapi_responses.md +++ b/docs/api/differences_in_mastoapi_responses.md @@ -25,7 +25,7 @@ Has these additional fields under the `pleroma` object: - `in_reply_to_account_acct`: the `acct` property of User entity for replied user (if any) - `content`: a map consisting of alternate representations of the `content` property with the key being it's mimetype. Currently the only alternate representation supported is `text/plain` - `spoiler_text`: a map consisting of alternate representations of the `spoiler_text` property with the key being it's mimetype. Currently the only alternate representation supported is `text/plain` -- `expires_in`: the number of minutes until a post will expire (be deleted automatically), or empty if the post won't expire +- `expires_on`: a datetime (iso8601) that states when the post will expire (be deleted automatically), or empty if the post won't expire ## Attachments diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index 4a3686d72..7264dcafb 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -168,15 +168,11 @@ def render("status.json", %{activity: %{data: %{"object" => _object}} = activity client_posted_this_activity = opts[:for] && user.id == opts[:for].id - expires_in = + expires_at = with true <- client_posted_this_activity, expiration when not is_nil(expiration) <- ActivityExpiration.get_by_activity_id(activity.id) do - expires_in_seconds = - expiration.scheduled_at - |> NaiveDateTime.diff(NaiveDateTime.utc_now(), :second) - - round(expires_in_seconds / 60) + expiration.scheduled_at end thread_muted? = @@ -277,7 +273,7 @@ def render("status.json", %{activity: %{data: %{"object" => _object}} = activity in_reply_to_account_acct: reply_to_user && reply_to_user.nickname, content: %{"text/plain" => content_plaintext}, spoiler_text: %{"text/plain" => summary_plaintext}, - expires_in: expires_in + expires_at: expires_at } } end diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index a9d38c06e..e59908979 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -170,7 +170,7 @@ test "posting a status", %{conn: conn} do assert activity = Activity.get_by_id(fourth_id) assert expiration = ActivityExpiration.get_by_activity_id(fourth_id) assert expiration.scheduled_at == expires_at - assert fourth_response["pleroma"]["expires_in"] > 0 + assert fourth_response["pleroma"]["expires_at"] == NaiveDateTime.to_iso8601(expires_at) end test "replying to a status", %{conn: conn} do diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs index eb0874ab2..073c69659 100644 --- a/test/web/mastodon_api/status_view_test.exs +++ b/test/web/mastodon_api/status_view_test.exs @@ -134,7 +134,7 @@ test "a note activity" do in_reply_to_account_acct: nil, content: %{"text/plain" => HtmlSanitizeEx.strip_tags(object_data["content"])}, spoiler_text: %{"text/plain" => HtmlSanitizeEx.strip_tags(object_data["summary"])}, - expires_in: nil + expires_at: nil } } From 0e2b5a3e6aed7947909c2a1ff1618403546f1572 Mon Sep 17 00:00:00 2001 From: Mike Verdone Date: Wed, 24 Jul 2019 17:25:11 +0200 Subject: [PATCH 015/400] WIP --- .../mastodon_api_controller_test.exs | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index e59908979..fbe0ab375 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -154,23 +154,27 @@ test "posting a status", %{conn: conn} do refute id == third_id # An activity that will expire: - expires_at = - NaiveDateTime.utc_now() - |> NaiveDateTime.add(:timer.minutes(120), :millisecond) - |> NaiveDateTime.truncate(:second) + expires_in = 120 conn_four = conn |> post("api/v1/statuses", %{ "status" => "oolong", - "expires_at" => expires_at + "expires_in" => expires_in }) assert fourth_response = %{"id" => fourth_id} = json_response(conn_four, 200) assert activity = Activity.get_by_id(fourth_id) assert expiration = ActivityExpiration.get_by_activity_id(fourth_id) - assert expiration.scheduled_at == expires_at - assert fourth_response["pleroma"]["expires_at"] == NaiveDateTime.to_iso8601(expires_at) + + estimated_expires_at = + NaiveDateTime.utc_now() + |> NaiveDateTime.add(:timer.minutes(expires_in), :millisecond) + |> NaiveDateTime.truncate(:second) + + # This assert will fail if the test takes longer than a minute. I sure hope it never does: + assert abs(NaiveDateTime.diff(expiration.scheduled_at, estimated_expires_at, :second)) < 60 + assert fourth_response["pleroma"]["expires_at"] == NaiveDateTime.to_iso8601(expiration.scheduled_at) end test "replying to a status", %{conn: conn} do From 23d279e03ee1f7a1285614754738711359bc4b81 Mon Sep 17 00:00:00 2001 From: Ivan Tashkinov Date: Thu, 1 Aug 2019 17:28:00 +0300 Subject: [PATCH 016/400] [#1149] Replaced RetryQueue with oban-based retries. --- config/config.exs | 17 +- config/test.exs | 4 + docs/config.md | 7 - lib/pleroma/application.ex | 4 +- lib/pleroma/web/activity_pub/publisher.ex | 16 +- lib/pleroma/web/federator/federator.ex | 14 - lib/pleroma/web/federator/publisher.ex | 22 +- lib/pleroma/web/federator/retry_queue.ex | 239 ------------------ lib/pleroma/web/salmon/salmon.ex | 11 +- lib/pleroma/workers/publisher.ex | 14 + mix.exs | 1 + mix.lock | 1 + .../20190730055101_add_oban_jobs_table.exs | 6 + test/user_test.exs | 15 +- test/web/activity_pub/publisher_test.exs | 2 +- test/web/federator_test.exs | 78 +++--- test/web/retry_queue_test.exs | 48 ---- test/web/salmon/salmon_test.exs | 2 +- 18 files changed, 106 insertions(+), 395 deletions(-) delete mode 100644 lib/pleroma/web/federator/retry_queue.ex create mode 100644 lib/pleroma/workers/publisher.ex create mode 100644 priv/repo/migrations/20190730055101_add_oban_jobs_table.exs delete mode 100644 test/web/retry_queue_test.exs diff --git a/config/config.exs b/config/config.exs index 17770640a..1bb325bf5 100644 --- a/config/config.exs +++ b/config/config.exs @@ -440,13 +440,7 @@ "web" ] -config :pleroma, Pleroma.Web.Federator.RetryQueue, - enabled: false, - max_jobs: 20, - initial_timeout: 30, - max_retries: 5 - -config :pleroma_job_queue, :queues, +job_queues = [ federator_incoming: 50, federator_outgoing: 50, web_push: 50, @@ -454,6 +448,15 @@ transmogrifier: 20, scheduled_activities: 10, background: 5 +] + +config :pleroma_job_queue, :queues, job_queues + +config :pleroma, Oban, + repo: Pleroma.Repo, + verbose: false, + prune: {:maxage, 60 * 60 * 24 * 7}, + queues: job_queues config :pleroma, :fetch_initial_posts, enabled: false, diff --git a/config/test.exs b/config/test.exs index 92dca18bc..23d9bf779 100644 --- a/config/test.exs +++ b/config/test.exs @@ -62,6 +62,10 @@ config :pleroma_job_queue, disabled: true +config :pleroma, Oban, + queues: false, + prune: :disabled + config :pleroma, Pleroma.ScheduledActivity, daily_user_limit: 2, total_user_limit: 3, diff --git a/docs/config.md b/docs/config.md index 02f86dc16..5c18ffdbf 100644 --- a/docs/config.md +++ b/docs/config.md @@ -412,13 +412,6 @@ config :pleroma_job_queue, :queues, This config contains two queues: `federator_incoming` and `federator_outgoing`. Both have the `max_jobs` set to `50`. -## Pleroma.Web.Federator.RetryQueue - -* `enabled`: If set to `true`, failed federation jobs will be retried -* `max_jobs`: The maximum amount of parallel federation jobs running at the same time. -* `initial_timeout`: The initial timeout in seconds -* `max_retries`: The maximum number of times a federation job is retried - ## Pleroma.Web.Metadata * `providers`: a list of metadata providers to enable. Providers available: * Pleroma.Web.Metadata.Providers.OpenGraph diff --git a/lib/pleroma/application.ex b/lib/pleroma/application.ex index 035331491..ce7d8c4b2 100644 --- a/lib/pleroma/application.ex +++ b/lib/pleroma/application.ex @@ -120,8 +120,8 @@ def start(_type, _args) do hackney_pool_children() ++ [ %{ - id: Pleroma.Web.Federator.RetryQueue, - start: {Pleroma.Web.Federator.RetryQueue, :start_link, []} + id: Oban, + start: {Oban, :start_link, [Application.get_env(:pleroma, Oban)]} }, %{ id: Pleroma.Web.OAuth.Token.CleanWorker, diff --git a/lib/pleroma/web/activity_pub/publisher.ex b/lib/pleroma/web/activity_pub/publisher.ex index 46edab0bd..29f3221d1 100644 --- a/lib/pleroma/web/activity_pub/publisher.ex +++ b/lib/pleroma/web/activity_pub/publisher.ex @@ -85,6 +85,15 @@ def publish_one(%{inbox: inbox, json: json, actor: %User{} = actor, id: id} = pa end end + def publish_one(%{actor_id: actor_id} = params) do + actor = User.get_by_id(actor_id) + + params + |> Map.delete(:actor_id) + |> Map.put(:actor, actor) + |> publish_one() + end + defp should_federate?(inbox, public) do if public do true @@ -160,7 +169,8 @@ def determine_inbox( Publishes an activity with BCC to all relevant peers. """ - def publish(actor, %{data: %{"bcc" => bcc}} = activity) when is_list(bcc) and bcc != [] do + def publish(%User{} = actor, %{data: %{"bcc" => bcc}} = activity) + when is_list(bcc) and bcc != [] do public = is_public?(activity) {:ok, data} = Transmogrifier.prepare_outgoing(activity.data) @@ -187,7 +197,7 @@ def publish(actor, %{data: %{"bcc" => bcc}} = activity) when is_list(bcc) and bc Pleroma.Web.Federator.Publisher.enqueue_one(__MODULE__, %{ inbox: inbox, json: json, - actor: actor, + actor_id: actor.id, id: activity.data["id"], unreachable_since: unreachable_since }) @@ -222,7 +232,7 @@ def publish(%User{} = actor, %Activity{} = activity) do %{ inbox: inbox, json: json, - actor: actor, + actor_id: actor.id, id: activity.data["id"], unreachable_since: unreachable_since } diff --git a/lib/pleroma/web/federator/federator.ex b/lib/pleroma/web/federator/federator.ex index f4f9e83e0..97ec9d549 100644 --- a/lib/pleroma/web/federator/federator.ex +++ b/lib/pleroma/web/federator/federator.ex @@ -10,7 +10,6 @@ defmodule Pleroma.Web.Federator do alias Pleroma.Web.ActivityPub.Transmogrifier alias Pleroma.Web.ActivityPub.Utils alias Pleroma.Web.Federator.Publisher - alias Pleroma.Web.Federator.RetryQueue alias Pleroma.Web.OStatus alias Pleroma.Web.Websub @@ -130,19 +129,6 @@ def perform(:incoming_ap_doc, params) do end end - def perform( - :publish_single_websub, - %{xml: _xml, topic: _topic, callback: _callback, secret: _secret} = params - ) do - case Websub.publish_one(params) do - {:ok, _} -> - :ok - - {:error, _} -> - RetryQueue.enqueue(params, Websub) - end - end - def perform(type, _) do Logger.debug(fn -> "Unknown task: #{type}" end) {:error, "Don't know what to do with this"} diff --git a/lib/pleroma/web/federator/publisher.ex b/lib/pleroma/web/federator/publisher.ex index 70f870244..e8c1bf17f 100644 --- a/lib/pleroma/web/federator/publisher.ex +++ b/lib/pleroma/web/federator/publisher.ex @@ -6,7 +6,6 @@ defmodule Pleroma.Web.Federator.Publisher do alias Pleroma.Activity alias Pleroma.Config alias Pleroma.User - alias Pleroma.Web.Federator.RetryQueue require Logger @@ -30,23 +29,10 @@ defmodule Pleroma.Web.Federator.Publisher do Enqueue publishing a single activity. """ @spec enqueue_one(module(), Map.t()) :: :ok - def enqueue_one(module, %{} = params), - do: PleromaJobQueue.enqueue(:federator_outgoing, __MODULE__, [:publish_one, module, params]) - - @spec perform(atom(), module(), any()) :: {:ok, any()} | {:error, any()} - def perform(:publish_one, module, params) do - case apply(module, :publish_one, [params]) do - {:ok, _} -> - :ok - - {:error, _e} -> - RetryQueue.enqueue(params, module) - end - end - - def perform(type, _, _) do - Logger.debug("Unknown task: #{type}") - {:error, "Don't know what to do with this"} + def enqueue_one(module, %{} = params) do + %{module: to_string(module), params: params} + |> Pleroma.Workers.Publisher.new() + |> Pleroma.Repo.insert() end @doc """ diff --git a/lib/pleroma/web/federator/retry_queue.ex b/lib/pleroma/web/federator/retry_queue.ex deleted file mode 100644 index 3db948c2e..000000000 --- a/lib/pleroma/web/federator/retry_queue.ex +++ /dev/null @@ -1,239 +0,0 @@ -# Pleroma: A lightweight social networking server -# Copyright © 2017-2019 Pleroma Authors -# SPDX-License-Identifier: AGPL-3.0-only - -defmodule Pleroma.Web.Federator.RetryQueue do - use GenServer - - require Logger - - def init(args) do - queue_table = :ets.new(:pleroma_retry_queue, [:bag, :protected]) - - {:ok, %{args | queue_table: queue_table, running_jobs: :sets.new()}} - end - - def start_link do - enabled = - if Pleroma.Config.get(:env) == :test, - do: true, - else: Pleroma.Config.get([__MODULE__, :enabled], false) - - if enabled do - Logger.info("Starting retry queue") - - linkres = - GenServer.start_link( - __MODULE__, - %{delivered: 0, dropped: 0, queue_table: nil, running_jobs: nil}, - name: __MODULE__ - ) - - maybe_kickoff_timer() - linkres - else - Logger.info("Retry queue disabled") - :ignore - end - end - - def enqueue(data, transport, retries \\ 0) do - GenServer.cast(__MODULE__, {:maybe_enqueue, data, transport, retries + 1}) - end - - def get_stats do - GenServer.call(__MODULE__, :get_stats) - end - - def reset_stats do - GenServer.call(__MODULE__, :reset_stats) - end - - def get_retry_params(retries) do - if retries > Pleroma.Config.get([__MODULE__, :max_retries]) do - {:drop, "Max retries reached"} - else - {:retry, growth_function(retries)} - end - end - - def get_retry_timer_interval do - Pleroma.Config.get([:retry_queue, :interval], 1000) - end - - defp ets_count_expires(table, current_time) do - :ets.select_count( - table, - [ - { - {:"$1", :"$2"}, - [{:"=<", :"$1", {:const, current_time}}], - [true] - } - ] - ) - end - - defp ets_pop_n_expired(table, current_time, desired) do - {popped, _continuation} = - :ets.select( - table, - [ - { - {:"$1", :"$2"}, - [{:"=<", :"$1", {:const, current_time}}], - [:"$_"] - } - ], - desired - ) - - popped - |> Enum.each(fn e -> - :ets.delete_object(table, e) - end) - - popped - end - - def maybe_start_job(running_jobs, queue_table) do - # we don't want to hit the ets or the DateTime more times than we have to - # could optimize slightly further by not using the count, and instead grabbing - # up to N objects early... - current_time = DateTime.to_unix(DateTime.utc_now()) - n_running_jobs = :sets.size(running_jobs) - - if n_running_jobs < Pleroma.Config.get([__MODULE__, :max_jobs]) do - n_ready_jobs = ets_count_expires(queue_table, current_time) - - if n_ready_jobs > 0 do - # figure out how many we could start - available_job_slots = Pleroma.Config.get([__MODULE__, :max_jobs]) - n_running_jobs - start_n_jobs(running_jobs, queue_table, current_time, available_job_slots) - else - running_jobs - end - else - running_jobs - end - end - - defp start_n_jobs(running_jobs, _queue_table, _current_time, 0) do - running_jobs - end - - defp start_n_jobs(running_jobs, queue_table, current_time, available_job_slots) - when available_job_slots > 0 do - candidates = ets_pop_n_expired(queue_table, current_time, available_job_slots) - - candidates - |> List.foldl(running_jobs, fn {_, e}, rj -> - {:ok, pid} = Task.start(fn -> worker(e) end) - mref = Process.monitor(pid) - :sets.add_element(mref, rj) - end) - end - - def worker({:send, data, transport, retries}) do - case transport.publish_one(data) do - {:ok, _} -> - GenServer.cast(__MODULE__, :inc_delivered) - :delivered - - {:error, _reason} -> - enqueue(data, transport, retries) - :retry - end - end - - def handle_call(:get_stats, _from, %{delivered: delivery_count, dropped: drop_count} = state) do - {:reply, %{delivered: delivery_count, dropped: drop_count}, state} - end - - def handle_call(:reset_stats, _from, %{delivered: delivery_count, dropped: drop_count} = state) do - {:reply, %{delivered: delivery_count, dropped: drop_count}, - %{state | delivered: 0, dropped: 0}} - end - - def handle_cast(:reset_stats, state) do - {:noreply, %{state | delivered: 0, dropped: 0}} - end - - def handle_cast( - {:maybe_enqueue, data, transport, retries}, - %{dropped: drop_count, queue_table: queue_table, running_jobs: running_jobs} = state - ) do - case get_retry_params(retries) do - {:retry, timeout} -> - :ets.insert(queue_table, {timeout, {:send, data, transport, retries}}) - running_jobs = maybe_start_job(running_jobs, queue_table) - {:noreply, %{state | running_jobs: running_jobs}} - - {:drop, message} -> - Logger.debug(message) - {:noreply, %{state | dropped: drop_count + 1}} - end - end - - def handle_cast(:kickoff_timer, state) do - retry_interval = get_retry_timer_interval() - Process.send_after(__MODULE__, :retry_timer_run, retry_interval) - {:noreply, state} - end - - def handle_cast(:inc_delivered, %{delivered: delivery_count} = state) do - {:noreply, %{state | delivered: delivery_count + 1}} - end - - def handle_cast(:inc_dropped, %{dropped: drop_count} = state) do - {:noreply, %{state | dropped: drop_count + 1}} - end - - def handle_info({:send, data, transport, retries}, %{delivered: delivery_count} = state) do - case transport.publish_one(data) do - {:ok, _} -> - {:noreply, %{state | delivered: delivery_count + 1}} - - {:error, _reason} -> - enqueue(data, transport, retries) - {:noreply, state} - end - end - - def handle_info( - :retry_timer_run, - %{queue_table: queue_table, running_jobs: running_jobs} = state - ) do - maybe_kickoff_timer() - running_jobs = maybe_start_job(running_jobs, queue_table) - {:noreply, %{state | running_jobs: running_jobs}} - end - - def handle_info({:DOWN, ref, :process, _pid, _reason}, state) do - %{running_jobs: running_jobs, queue_table: queue_table} = state - running_jobs = :sets.del_element(ref, running_jobs) - running_jobs = maybe_start_job(running_jobs, queue_table) - {:noreply, %{state | running_jobs: running_jobs}} - end - - def handle_info(unknown, state) do - Logger.debug("RetryQueue: don't know what to do with #{inspect(unknown)}, ignoring") - {:noreply, state} - end - - if Pleroma.Config.get(:env) == :test do - defp growth_function(_retries) do - _shutit = Pleroma.Config.get([__MODULE__, :initial_timeout]) - DateTime.to_unix(DateTime.utc_now()) - 1 - end - else - defp growth_function(retries) do - round(Pleroma.Config.get([__MODULE__, :initial_timeout]) * :math.pow(retries, 3)) + - DateTime.to_unix(DateTime.utc_now()) - end - end - - defp maybe_kickoff_timer do - GenServer.cast(__MODULE__, :kickoff_timer) - end -end diff --git a/lib/pleroma/web/salmon/salmon.ex b/lib/pleroma/web/salmon/salmon.ex index 9b01ebcc6..bbaa293fd 100644 --- a/lib/pleroma/web/salmon/salmon.ex +++ b/lib/pleroma/web/salmon/salmon.ex @@ -170,6 +170,15 @@ def publish_one(%{recipient: url, feed: feed} = params) when is_binary(url) do end end + def publish_one(%{recipient_id: recipient_id} = params) do + recipient = User.get_by_id(recipient_id) + + params + |> Map.delete(:recipient_id) + |> Map.put(:recipient, recipient) + |> publish_one() + end + def publish_one(_), do: :noop @supported_activities [ @@ -218,7 +227,7 @@ def publish(%{info: %{keys: keys}} = user, %{data: %{"type" => type}} = activity Logger.debug(fn -> "Sending Salmon to #{remote_user.ap_id}" end) Publisher.enqueue_one(__MODULE__, %{ - recipient: remote_user, + recipient_id: remote_user.id, feed: feed, unreachable_since: reachable_urls_metadata[remote_user.info.salmon] }) diff --git a/lib/pleroma/workers/publisher.ex b/lib/pleroma/workers/publisher.ex new file mode 100644 index 000000000..639794830 --- /dev/null +++ b/lib/pleroma/workers/publisher.ex @@ -0,0 +1,14 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Workers.Publisher do + use Oban.Worker, queue: "federator_outgoing", max_attempts: 5 + + @impl Oban.Worker + def perform(%Oban.Job{args: %{module: module_name, params: params}}) do + module_name + |> String.to_atom() + |> apply(:publish_one, [params]) + end +end diff --git a/mix.exs b/mix.exs index 2a8fe2e9d..1ca7a4a77 100644 --- a/mix.exs +++ b/mix.exs @@ -101,6 +101,7 @@ defp deps do {:phoenix_ecto, "~> 4.0"}, {:ecto_sql, "~> 3.1"}, {:postgrex, ">= 0.13.5"}, + {:oban, "~> 0.6"}, {:gettext, "~> 0.15"}, {:comeonin, "~> 4.1.1"}, {:pbkdf2_elixir, "~> 0.12.3"}, diff --git a/mix.lock b/mix.lock index 65da7be8b..8c0b9734e 100644 --- a/mix.lock +++ b/mix.lock @@ -55,6 +55,7 @@ "mogrify": {:hex, :mogrify, "0.6.1", "de1b527514f2d95a7bbe9642eb556061afb337e220cf97adbf3a4e6438ed70af", [:mix], [], "hexpm"}, "mox": {:hex, :mox, "0.5.1", "f86bb36026aac1e6f924a4b6d024b05e9adbed5c63e8daa069bd66fb3292165b", [:mix], [], "hexpm"}, "nimble_parsec": {:hex, :nimble_parsec, "0.5.0", "90e2eca3d0266e5c53f8fbe0079694740b9c91b6747f2b7e3c5d21966bba8300", [:mix], [], "hexpm"}, + "oban": {:hex, :oban, "0.6.0", "8b9b861355610e703e58a878bc29959f3f0e1b4cd1e90d785cf2bb2498d3b893", [:mix], [{:ecto_sql, "~> 3.1", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:jason, "~> 1.1", [hex: :jason, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.14", [hex: :postgrex, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm"}, "parse_trans": {:hex, :parse_trans, "3.3.0", "09765507a3c7590a784615cfd421d101aec25098d50b89d7aa1d66646bc571c1", [:rebar3], [], "hexpm"}, "pbkdf2_elixir": {:hex, :pbkdf2_elixir, "0.12.3", "6706a148809a29c306062862c803406e88f048277f6e85b68faf73291e820b84", [:mix], [], "hexpm"}, "phoenix": {:hex, :phoenix, "1.4.9", "746d098e10741c334d88143d3c94cab1756435f94387a63441792e66ec0ee974", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 1.1", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}, {:plug, "~> 1.8.1 or ~> 1.9", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 1.0 or ~> 2.0", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm"}, diff --git a/priv/repo/migrations/20190730055101_add_oban_jobs_table.exs b/priv/repo/migrations/20190730055101_add_oban_jobs_table.exs new file mode 100644 index 000000000..2f201bd05 --- /dev/null +++ b/priv/repo/migrations/20190730055101_add_oban_jobs_table.exs @@ -0,0 +1,6 @@ +defmodule Pleroma.Repo.Migrations.AddObanJobsTable do + use Ecto.Migration + + defdelegate up, to: Oban.Migrations + defdelegate down, to: Oban.Migrations +end diff --git a/test/user_test.exs b/test/user_test.exs index 556df45fd..70c376384 100644 --- a/test/user_test.exs +++ b/test/user_test.exs @@ -12,9 +12,9 @@ defmodule Pleroma.UserTest do alias Pleroma.Web.CommonAPI use Pleroma.DataCase + use Oban.Testing, repo: Pleroma.Repo import Pleroma.Factory - import Mock setup_all do Tesla.Mock.mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end) @@ -1034,11 +1034,7 @@ test "it deletes a user, all follow relationships and all activities", %{user: u refute Activity.get_by_id(repeat.id) end - test_with_mock "it sends out User Delete activity", - %{user: user}, - Pleroma.Web.ActivityPub.Publisher, - [:passthrough], - [] do + test "it sends out User Delete activity", %{user: user} do config_path = [:instance, :federating] initial_setting = Pleroma.Config.get(config_path) Pleroma.Config.put(config_path, true) @@ -1048,11 +1044,8 @@ test "it deletes a user, all follow relationships and all activities", %{user: u {:ok, _user} = User.delete(user) - assert called( - Pleroma.Web.ActivityPub.Publisher.publish_one(%{ - inbox: "http://mastodon.example.org/inbox" - }) - ) + assert [%{args: %{"params" => %{"inbox" => "http://mastodon.example.org/inbox"}}}] = + all_enqueued(worker: Pleroma.Workers.Publisher) Pleroma.Config.put(config_path, initial_setting) end diff --git a/test/web/activity_pub/publisher_test.exs b/test/web/activity_pub/publisher_test.exs index 36a39c84c..26d019878 100644 --- a/test/web/activity_pub/publisher_test.exs +++ b/test/web/activity_pub/publisher_test.exs @@ -257,7 +257,7 @@ test "it returns inbox for messages involving single recipients in total" do assert called( Pleroma.Web.Federator.Publisher.enqueue_one(Publisher, %{ inbox: "https://domain.com/users/nick1/inbox", - actor: actor, + actor_id: actor.id, id: note_activity.data["id"] }) ) diff --git a/test/web/federator_test.exs b/test/web/federator_test.exs index 6e143eee4..5c1704548 100644 --- a/test/web/federator_test.exs +++ b/test/web/federator_test.exs @@ -6,7 +6,10 @@ defmodule Pleroma.Web.FederatorTest do alias Pleroma.Instances alias Pleroma.Web.CommonAPI alias Pleroma.Web.Federator + use Pleroma.DataCase + use Oban.Testing, repo: Pleroma.Repo + import Pleroma.Factory import Mock @@ -22,15 +25,6 @@ defmodule Pleroma.Web.FederatorTest do :ok end - describe "Publisher.perform" do - test "call `perform` with unknown task" do - assert { - :error, - "Don't know what to do with this" - } = Pleroma.Web.Federator.Publisher.perform("test", :ok, :ok) - end - end - describe "Publish an activity" do setup do user = insert(:user) @@ -73,10 +67,7 @@ test "with relays deactivated, it does not publish to the relay", %{ end describe "Targets reachability filtering in `publish`" do - test_with_mock "it federates only to reachable instances via AP", - Pleroma.Web.ActivityPub.Publisher, - [:passthrough], - [] do + test "it federates only to reachable instances via AP" do user = insert(:user) {inbox1, inbox2} = @@ -104,20 +95,13 @@ test "with relays deactivated, it does not publish to the relay", %{ {:ok, _activity} = CommonAPI.post(user, %{"status" => "HI @nick1@domain.com, @nick2@domain2.com!"}) - assert called( - Pleroma.Web.ActivityPub.Publisher.publish_one(%{ - inbox: inbox1, - unreachable_since: dt - }) - ) + expected_dt = NaiveDateTime.to_iso8601(dt) - refute called(Pleroma.Web.ActivityPub.Publisher.publish_one(%{inbox: inbox2})) + assert [%{args: %{"params" => %{"inbox" => ^inbox1, "unreachable_since" => ^expected_dt}}}] = + all_enqueued(worker: Pleroma.Workers.Publisher) end - test_with_mock "it federates only to reachable instances via Websub", - Pleroma.Web.Websub, - [:passthrough], - [] do + test "it federates only to reachable instances via Websub" do user = insert(:user) websub_topic = Pleroma.Web.OStatus.feed_path(user) @@ -142,23 +126,25 @@ test "with relays deactivated, it does not publish to the relay", %{ {:ok, _activity} = CommonAPI.post(user, %{"status" => "HI"}) - assert called( - Pleroma.Web.Websub.publish_one(%{ - callback: sub2.callback, - unreachable_since: dt - }) - ) + expected_callback = sub2.callback + expected_dt = NaiveDateTime.to_iso8601(dt) - refute called(Pleroma.Web.Websub.publish_one(%{callback: sub1.callback})) + assert [ + %{ + args: %{ + "params" => %{ + "callback" => ^expected_callback, + "unreachable_since" => ^expected_dt + } + } + } + ] = all_enqueued(worker: Pleroma.Workers.Publisher) end - test_with_mock "it federates only to reachable instances via Salmon", - Pleroma.Web.Salmon, - [:passthrough], - [] do + test "it federates only to reachable instances via Salmon" do user = insert(:user) - remote_user1 = + _remote_user1 = insert(:user, %{ local: false, nickname: "nick1@domain.com", @@ -174,6 +160,8 @@ test "with relays deactivated, it does not publish to the relay", %{ info: %{salmon: "https://domain2.com/salmon"} }) + remote_user2_id = remote_user2.id + dt = NaiveDateTime.utc_now() Instances.set_unreachable(remote_user2.ap_id, dt) @@ -182,14 +170,18 @@ test "with relays deactivated, it does not publish to the relay", %{ {:ok, _activity} = CommonAPI.post(user, %{"status" => "HI @nick1@domain.com, @nick2@domain2.com!"}) - assert called( - Pleroma.Web.Salmon.publish_one(%{ - recipient: remote_user2, - unreachable_since: dt - }) - ) + expected_dt = NaiveDateTime.to_iso8601(dt) - refute called(Pleroma.Web.Salmon.publish_one(%{recipient: remote_user1})) + assert [ + %{ + args: %{ + "params" => %{ + "recipient_id" => ^remote_user2_id, + "unreachable_since" => ^expected_dt + } + } + } + ] = all_enqueued(worker: Pleroma.Workers.Publisher) end end diff --git a/test/web/retry_queue_test.exs b/test/web/retry_queue_test.exs deleted file mode 100644 index ecb3ce5d0..000000000 --- a/test/web/retry_queue_test.exs +++ /dev/null @@ -1,48 +0,0 @@ -# Pleroma: A lightweight social networking server -# Copyright © 2017-2018 Pleroma Authors -# SPDX-License-Identifier: AGPL-3.0-only - -defmodule MockActivityPub do - def publish_one({ret, waiter}) do - send(waiter, :complete) - {ret, "success"} - end -end - -defmodule Pleroma.Web.Federator.RetryQueueTest do - use Pleroma.DataCase - alias Pleroma.Web.Federator.RetryQueue - - @small_retry_count 0 - @hopeless_retry_count 10 - - setup do - RetryQueue.reset_stats() - end - - test "RetryQueue responds to stats request" do - assert %{delivered: 0, dropped: 0} == RetryQueue.get_stats() - end - - test "failed posts are retried" do - {:retry, _timeout} = RetryQueue.get_retry_params(@small_retry_count) - - wait_task = - Task.async(fn -> - receive do - :complete -> :ok - end - end) - - RetryQueue.enqueue({:ok, wait_task.pid}, MockActivityPub, @small_retry_count) - Task.await(wait_task) - assert %{delivered: 1, dropped: 0} == RetryQueue.get_stats() - end - - test "posts that have been tried too many times are dropped" do - {:drop, _timeout} = RetryQueue.get_retry_params(@hopeless_retry_count) - - RetryQueue.enqueue({:ok, nil}, MockActivityPub, @hopeless_retry_count) - assert %{delivered: 0, dropped: 1} == RetryQueue.get_stats() - end -end diff --git a/test/web/salmon/salmon_test.exs b/test/web/salmon/salmon_test.exs index e86e76fe9..0186f3fef 100644 --- a/test/web/salmon/salmon_test.exs +++ b/test/web/salmon/salmon_test.exs @@ -96,6 +96,6 @@ test "it gets a magic key" do Salmon.publish(user, activity) - assert called(Publisher.enqueue_one(Salmon, %{recipient: mentioned_user})) + assert called(Publisher.enqueue_one(Salmon, %{recipient_id: mentioned_user.id})) end end From b7fad8d395c2bd1afe445a370e539571f5ec0c18 Mon Sep 17 00:00:00 2001 From: Ivan Tashkinov Date: Fri, 9 Aug 2019 20:08:01 +0300 Subject: [PATCH 017/400] [#1149] Oban jobs implementation for :federator_incoming and :federator_outgoing queues. --- config/config.exs | 7 + lib/pleroma/web/activity_pub/utils.ex | 9 +- lib/pleroma/web/federator/federator.ex | 134 +++++------------- lib/pleroma/web/federator/publisher.ex | 12 +- lib/pleroma/workers/publisher.ex | 25 +++- lib/pleroma/workers/receiver.ex | 61 ++++++++ lib/pleroma/workers/subscriber.ex | 44 ++++++ test/activity_test.exs | 4 +- test/support/oban_helpers.ex | 36 +++++ test/user_test.exs | 11 +- .../activity_pub_controller_test.exs | 14 +- test/web/federator_test.exs | 57 +++++--- test/web/websub/websub_test.exs | 4 + 13 files changed, 280 insertions(+), 138 deletions(-) create mode 100644 lib/pleroma/workers/receiver.ex create mode 100644 lib/pleroma/workers/subscriber.ex create mode 100644 test/support/oban_helpers.ex diff --git a/config/config.exs b/config/config.exs index 1bb325bf5..5fd64365c 100644 --- a/config/config.exs +++ b/config/config.exs @@ -458,6 +458,13 @@ prune: {:maxage, 60 * 60 * 24 * 7}, queues: job_queues +config :pleroma, :workers, + retries: [ + compile_time_default: 1, + federator_incoming: 5, + federator_outgoing: 5 + ] + config :pleroma, :fetch_initial_posts, enabled: false, pages: 5 diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex index 39074888b..f0917f9d4 100644 --- a/lib/pleroma/web/activity_pub/utils.ex +++ b/lib/pleroma/web/activity_pub/utils.ex @@ -168,14 +168,7 @@ def create_context(context) do """ def maybe_federate(%Activity{local: true} = activity) do if Pleroma.Config.get!([:instance, :federating]) do - priority = - case activity.data["type"] do - "Delete" -> 10 - "Create" -> 1 - _ -> 5 - end - - Pleroma.Web.Federator.publish(activity, priority) + Pleroma.Web.Federator.publish(activity) end :ok diff --git a/lib/pleroma/web/federator/federator.ex b/lib/pleroma/web/federator/federator.ex index 97ec9d549..bb9eadfee 100644 --- a/lib/pleroma/web/federator/federator.ex +++ b/lib/pleroma/web/federator/federator.ex @@ -3,22 +3,15 @@ # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Web.Federator do - alias Pleroma.Activity - alias Pleroma.Object.Containment - alias Pleroma.User - alias Pleroma.Web.ActivityPub.ActivityPub - alias Pleroma.Web.ActivityPub.Transmogrifier - alias Pleroma.Web.ActivityPub.Utils - alias Pleroma.Web.Federator.Publisher - alias Pleroma.Web.OStatus - alias Pleroma.Web.Websub + alias Pleroma.Workers.Publisher, as: PublisherWorker + alias Pleroma.Workers.Receiver, as: ReceiverWorker + alias Pleroma.Workers.Subscriber, as: SubscriberWorker require Logger def init do # 1 minute - Process.sleep(1000 * 60) - refresh_subscriptions() + refresh_subscriptions(schedule_in: 60) end @doc "Addresses [memory leaks on recursive replies fetching](https://git.pleroma.social/pleroma/pleroma/issues/161)" @@ -36,111 +29,50 @@ def allowed_incoming_reply_depth?(depth) do # Client API def incoming_doc(doc) do - PleromaJobQueue.enqueue(:federator_incoming, __MODULE__, [:incoming_doc, doc]) + %{"op" => "incoming_doc", "body" => doc} + |> ReceiverWorker.new(worker_args(:federator_incoming)) + |> Pleroma.Repo.insert() end def incoming_ap_doc(params) do - PleromaJobQueue.enqueue(:federator_incoming, __MODULE__, [:incoming_ap_doc, params]) + %{"op" => "incoming_ap_doc", "params" => params} + |> ReceiverWorker.new(worker_args(:federator_incoming)) + |> Pleroma.Repo.insert() end - def publish(activity, priority \\ 1) do - PleromaJobQueue.enqueue(:federator_outgoing, __MODULE__, [:publish, activity], priority) + def publish(%{id: "pleroma:fakeid"} = activity) do + PublisherWorker.perform_publish(activity) + end + + def publish(activity) do + %{"op" => "publish", "activity_id" => activity.id} + |> PublisherWorker.new(worker_args(:federator_outgoing)) + |> Pleroma.Repo.insert() end def verify_websub(websub) do - PleromaJobQueue.enqueue(:federator_outgoing, __MODULE__, [:verify_websub, websub]) + %{"op" => "verify_websub", "websub_id" => websub.id} + |> SubscriberWorker.new(worker_args(:federator_outgoing)) + |> Pleroma.Repo.insert() end - def request_subscription(sub) do - PleromaJobQueue.enqueue(:federator_outgoing, __MODULE__, [:request_subscription, sub]) + def request_subscription(websub) do + %{"op" => "request_subscription", "websub_id" => websub.id} + |> SubscriberWorker.new(worker_args(:federator_outgoing)) + |> Pleroma.Repo.insert() end - def refresh_subscriptions do - PleromaJobQueue.enqueue(:federator_outgoing, __MODULE__, [:refresh_subscriptions]) + def refresh_subscriptions(worker_args \\ []) do + %{"op" => "refresh_subscriptions"} + |> SubscriberWorker.new(worker_args ++ [max_attempts: 1] ++ worker_args(:federator_outgoing)) + |> Pleroma.Repo.insert() end - # Job Worker Callbacks - - def perform(:refresh_subscriptions) do - Logger.debug("Federator running refresh subscriptions") - Websub.refresh_subscriptions() - - spawn(fn -> - # 6 hours - Process.sleep(1000 * 60 * 60 * 6) - refresh_subscriptions() - end) - end - - def perform(:request_subscription, websub) do - Logger.debug("Refreshing #{websub.topic}") - - with {:ok, websub} <- Websub.request_subscription(websub) do - Logger.debug("Successfully refreshed #{websub.topic}") + defp worker_args(queue) do + if max_attempts = Pleroma.Config.get([:workers, :retries, queue]) do + [max_attempts: max_attempts] else - _e -> Logger.debug("Couldn't refresh #{websub.topic}") - end - end - - def perform(:publish, activity) do - Logger.debug(fn -> "Running publish for #{activity.data["id"]}" end) - - with %User{} = actor <- User.get_cached_by_ap_id(activity.data["actor"]), - {:ok, actor} <- User.ensure_keys_present(actor) do - Publisher.publish(actor, activity) - end - end - - def perform(:verify_websub, websub) do - Logger.debug(fn -> - "Running WebSub verification for #{websub.id} (#{websub.topic}, #{websub.callback})" - end) - - Websub.verify(websub) - end - - def perform(:incoming_doc, doc) do - Logger.info("Got document, trying to parse") - OStatus.handle_incoming(doc) - end - - def perform(:incoming_ap_doc, params) do - Logger.info("Handling incoming AP activity") - - params = Utils.normalize_params(params) - - # NOTE: we use the actor ID to do the containment, this is fine because an - # actor shouldn't be acting on objects outside their own AP server. - with {:ok, _user} <- ap_enabled_actor(params["actor"]), - nil <- Activity.normalize(params["id"]), - :ok <- Containment.contain_origin_from_id(params["actor"], params), - {:ok, activity} <- Transmogrifier.handle_incoming(params) do - {:ok, activity} - else - %Activity{} -> - Logger.info("Already had #{params["id"]}") - :error - - _e -> - # Just drop those for now - Logger.info("Unhandled activity") - Logger.info(Jason.encode!(params, pretty: true)) - :error - end - end - - def perform(type, _) do - Logger.debug(fn -> "Unknown task: #{type}" end) - {:error, "Don't know what to do with this"} - end - - def ap_enabled_actor(id) do - user = User.get_cached_by_ap_id(id) - - if User.ap_enabled?(user) do - {:ok, user} - else - ActivityPub.make_user_from_ap_id(id) + [] end end end diff --git a/lib/pleroma/web/federator/publisher.ex b/lib/pleroma/web/federator/publisher.ex index e8c1bf17f..05d2be615 100644 --- a/lib/pleroma/web/federator/publisher.ex +++ b/lib/pleroma/web/federator/publisher.ex @@ -6,6 +6,7 @@ defmodule Pleroma.Web.Federator.Publisher do alias Pleroma.Activity alias Pleroma.Config alias Pleroma.User + alias Pleroma.Workers.Publisher, as: PublisherWorker require Logger @@ -30,8 +31,15 @@ defmodule Pleroma.Web.Federator.Publisher do """ @spec enqueue_one(module(), Map.t()) :: :ok def enqueue_one(module, %{} = params) do - %{module: to_string(module), params: params} - |> Pleroma.Workers.Publisher.new() + worker_args = + if max_attempts = Pleroma.Config.get([:workers, :retries, :federator_outgoing]) do + [max_attempts: max_attempts] + else + [] + end + + %{"op" => "publish_one", "module" => to_string(module), "params" => params} + |> PublisherWorker.new(worker_args) |> Pleroma.Repo.insert() end diff --git a/lib/pleroma/workers/publisher.ex b/lib/pleroma/workers/publisher.ex index 639794830..67871977a 100644 --- a/lib/pleroma/workers/publisher.ex +++ b/lib/pleroma/workers/publisher.ex @@ -3,12 +3,33 @@ # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Workers.Publisher do - use Oban.Worker, queue: "federator_outgoing", max_attempts: 5 + alias Pleroma.Activity + alias Pleroma.User + + # Note: `max_attempts` is intended to be overridden in `new/1` call + use Oban.Worker, + queue: "federator_outgoing", + max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default]) @impl Oban.Worker - def perform(%Oban.Job{args: %{module: module_name, params: params}}) do + def perform(%{"op" => "publish", "activity_id" => activity_id}) do + with %Activity{} = activity <- Activity.get_by_id(activity_id) do + perform_publish(activity) + else + _ -> raise "Non-existing activity: #{activity_id}" + end + end + + def perform(%{"op" => "publish_one", "module" => module_name, "params" => params}) do module_name |> String.to_atom() |> apply(:publish_one, [params]) end + + def perform_publish(%Activity{} = activity) do + with %User{} = actor <- User.get_cached_by_ap_id(activity.data["actor"]), + {:ok, actor} <- User.ensure_keys_present(actor) do + Pleroma.Web.Federator.Publisher.publish(actor, activity) + end + end end diff --git a/lib/pleroma/workers/receiver.ex b/lib/pleroma/workers/receiver.ex new file mode 100644 index 000000000..43558b4e6 --- /dev/null +++ b/lib/pleroma/workers/receiver.ex @@ -0,0 +1,61 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Workers.Receiver do + alias Pleroma.Activity + alias Pleroma.Object.Containment + alias Pleroma.User + alias Pleroma.Web.ActivityPub.ActivityPub + alias Pleroma.Web.ActivityPub.Transmogrifier + alias Pleroma.Web.ActivityPub.Utils + alias Pleroma.Web.OStatus + + require Logger + + # Note: `max_attempts` is intended to be overridden in `new/1` call + use Oban.Worker, + queue: "federator_incoming", + max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default]) + + @impl Oban.Worker + def perform(%{"op" => "incoming_doc", "body" => doc}) do + Logger.info("Got incoming document, trying to parse") + OStatus.handle_incoming(doc) + end + + def perform(%{"op" => "incoming_ap_doc", "params" => params}) do + Logger.info("Handling incoming AP activity") + + params = Utils.normalize_params(params) + + # NOTE: we use the actor ID to do the containment, this is fine because an + # actor shouldn't be acting on objects outside their own AP server. + with {:ok, _user} <- ap_enabled_actor(params["actor"]), + nil <- Activity.normalize(params["id"]), + :ok <- Containment.contain_origin_from_id(params["actor"], params), + {:ok, activity} <- Transmogrifier.handle_incoming(params) do + {:ok, activity} + else + %Activity{} -> + Logger.info("Already had #{params["id"]}") + :error + + _e -> + # Just drop those for now + Logger.info("Unhandled activity") + Logger.info(Jason.encode!(params, pretty: true)) + :error + end + end + + defp ap_enabled_actor(id) do + user = User.get_cached_by_ap_id(id) + + if User.ap_enabled?(user) do + {:ok, user} + else + ActivityPub.make_user_from_ap_id(id) + end + end +end diff --git a/lib/pleroma/workers/subscriber.ex b/lib/pleroma/workers/subscriber.ex new file mode 100644 index 000000000..a8c01bb10 --- /dev/null +++ b/lib/pleroma/workers/subscriber.ex @@ -0,0 +1,44 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Workers.Subscriber do + alias Pleroma.Repo + alias Pleroma.Web.Websub + alias Pleroma.Web.Websub.WebsubClientSubscription + + require Logger + + # Note: `max_attempts` is intended to be overridden in `new/1` call + use Oban.Worker, + queue: "federator_outgoing", + max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default]) + + @impl Oban.Worker + def perform(%{"op" => "refresh_subscriptions"}) do + Websub.refresh_subscriptions() + # Schedule the next run in 6 hours + Pleroma.Web.Federator.refresh_subscriptions(schedule_in: 3600 * 6) + end + + def perform(%{"op" => "request_subscription", "websub_id" => websub_id}) do + websub = Repo.get(WebsubClientSubscription, websub_id) + Logger.debug("Refreshing #{websub.topic}") + + with {:ok, websub} <- Websub.request_subscription(websub) do + Logger.debug("Successfully refreshed #{websub.topic}") + else + _e -> Logger.debug("Couldn't refresh #{websub.topic}") + end + end + + def perform(%{"op" => "verify_websub", "websub_id" => websub_id}) do + websub = Repo.get(WebsubClientSubscription, websub_id) + + Logger.debug(fn -> + "Running WebSub verification for #{websub.id} (#{websub.topic}, #{websub.callback})" + end) + + Websub.verify(websub) + end +end diff --git a/test/activity_test.exs b/test/activity_test.exs index b27f6fd36..b9c12adb2 100644 --- a/test/activity_test.exs +++ b/test/activity_test.exs @@ -6,6 +6,7 @@ defmodule Pleroma.ActivityTest do use Pleroma.DataCase alias Pleroma.Activity alias Pleroma.Bookmark + alias Pleroma.ObanHelpers alias Pleroma.Object alias Pleroma.ThreadMute import Pleroma.Factory @@ -125,7 +126,8 @@ test "when association is not loaded" do } {:ok, local_activity} = Pleroma.Web.CommonAPI.post(user, %{"status" => "find me!"}) - {:ok, remote_activity} = Pleroma.Web.Federator.incoming_ap_doc(params) + {:ok, job} = Pleroma.Web.Federator.incoming_ap_doc(params) + {:ok, remote_activity} = ObanHelpers.perform(job) %{local_activity: local_activity, remote_activity: remote_activity, user: user} end diff --git a/test/support/oban_helpers.ex b/test/support/oban_helpers.ex new file mode 100644 index 000000000..54b5a9566 --- /dev/null +++ b/test/support/oban_helpers.ex @@ -0,0 +1,36 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2018 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.ObanHelpers do + @moduledoc """ + Oban test helpers. + """ + + alias Pleroma.Repo + + def perform(%Oban.Job{} = job) do + res = apply(String.to_existing_atom("Elixir." <> job.worker), :perform, [job]) + Repo.delete(job) + res + end + + def perform(jobs) when is_list(jobs) do + for job <- jobs, do: perform(job) + end + + def member?(%{} = job_args, jobs) when is_list(jobs) do + Enum.any?(jobs, fn job -> + member?(job_args, job.args) + end) + end + + def member?(%{} = test_attrs, %{} = attrs) do + Enum.all?( + test_attrs, + fn {k, _v} -> member?(test_attrs[k], attrs[k]) end + ) + end + + def member?(x, y), do: x == y +end diff --git a/test/user_test.exs b/test/user_test.exs index 70c376384..ee6d8e8f3 100644 --- a/test/user_test.exs +++ b/test/user_test.exs @@ -5,6 +5,7 @@ defmodule Pleroma.UserTest do alias Pleroma.Activity alias Pleroma.Builders.UserBuilder + alias Pleroma.ObanHelpers alias Pleroma.Object alias Pleroma.Repo alias Pleroma.User @@ -1044,8 +1045,16 @@ test "it sends out User Delete activity", %{user: user} do {:ok, _user} = User.delete(user) - assert [%{args: %{"params" => %{"inbox" => "http://mastodon.example.org/inbox"}}}] = + assert ObanHelpers.member?( + %{ + "op" => "publish_one", + "params" => %{ + "inbox" => "http://mastodon.example.org/inbox", + "id" => "pleroma:fakeid" + } + }, all_enqueued(worker: Pleroma.Workers.Publisher) + ) Pleroma.Config.put(config_path, initial_setting) end diff --git a/test/web/activity_pub/activity_pub_controller_test.exs b/test/web/activity_pub/activity_pub_controller_test.exs index 40344f17e..1d809164f 100644 --- a/test/web/activity_pub/activity_pub_controller_test.exs +++ b/test/web/activity_pub/activity_pub_controller_test.exs @@ -4,15 +4,19 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do use Pleroma.Web.ConnCase + use Oban.Testing, repo: Pleroma.Repo + import Pleroma.Factory alias Pleroma.Activity alias Pleroma.Instances + alias Pleroma.ObanHelpers alias Pleroma.Object alias Pleroma.User alias Pleroma.Web.ActivityPub.ObjectView alias Pleroma.Web.ActivityPub.UserView alias Pleroma.Web.ActivityPub.Utils alias Pleroma.Web.CommonAPI + alias Pleroma.Workers.Receiver, as: ReceiverWorker setup_all do Tesla.Mock.mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end) @@ -232,7 +236,8 @@ test "it inserts an incoming activity into the database", %{conn: conn} do |> post("/inbox", data) assert "ok" == json_response(conn, 200) - :timer.sleep(500) + + ObanHelpers.perform(all_enqueued(worker: ReceiverWorker)) assert Activity.get_by_ap_id(data["id"]) end @@ -274,7 +279,7 @@ test "it inserts an incoming activity into the database", %{conn: conn, data: da |> post("/users/#{user.nickname}/inbox", data) assert "ok" == json_response(conn, 200) - :timer.sleep(500) + ObanHelpers.perform(all_enqueued(worker: ReceiverWorker)) assert Activity.get_by_ap_id(data["id"]) end @@ -303,7 +308,7 @@ test "it accepts messages from actors that are followed by the user", %{ |> post("/users/#{recipient.nickname}/inbox", data) assert "ok" == json_response(conn, 200) - :timer.sleep(500) + ObanHelpers.perform(all_enqueued(worker: ReceiverWorker)) assert Activity.get_by_ap_id(data["id"]) end @@ -382,6 +387,8 @@ test "it removes all follower collections but actor's", %{conn: conn} do |> post("/users/#{recipient.nickname}/inbox", data) |> json_response(200) + ObanHelpers.perform(all_enqueued(worker: ReceiverWorker)) + activity = Activity.get_by_ap_id(data["id"]) assert activity.id @@ -457,6 +464,7 @@ test "it inserts an incoming create activity into the database", %{conn: conn} d |> post("/users/#{user.nickname}/outbox", data) result = json_response(conn, 201) + assert Activity.get_by_ap_id(result["id"]) end diff --git a/test/web/federator_test.exs b/test/web/federator_test.exs index 5c1704548..ebe962da2 100644 --- a/test/web/federator_test.exs +++ b/test/web/federator_test.exs @@ -4,8 +4,10 @@ defmodule Pleroma.Web.FederatorTest do alias Pleroma.Instances + alias Pleroma.ObanHelpers alias Pleroma.Web.CommonAPI alias Pleroma.Web.Federator + alias Pleroma.Workers.Publisher, as: PublisherWorker use Pleroma.DataCase use Oban.Testing, repo: Pleroma.Repo @@ -45,6 +47,7 @@ test "with relays active, it publishes to the relay", %{ } do with_mocks([relay_mock]) do Federator.publish(activity) + ObanHelpers.perform(all_enqueued(worker: PublisherWorker)) end assert_received :relay_publish @@ -58,6 +61,7 @@ test "with relays deactivated, it does not publish to the relay", %{ with_mocks([relay_mock]) do Federator.publish(activity) + ObanHelpers.perform(all_enqueued(worker: PublisherWorker)) end refute_received :relay_publish @@ -97,8 +101,15 @@ test "it federates only to reachable instances via AP" do expected_dt = NaiveDateTime.to_iso8601(dt) - assert [%{args: %{"params" => %{"inbox" => ^inbox1, "unreachable_since" => ^expected_dt}}}] = - all_enqueued(worker: Pleroma.Workers.Publisher) + ObanHelpers.perform(all_enqueued(worker: PublisherWorker)) + + assert ObanHelpers.member?( + %{ + "op" => "publish_one", + "params" => %{"inbox" => inbox1, "unreachable_since" => expected_dt} + }, + all_enqueued(worker: PublisherWorker) + ) end test "it federates only to reachable instances via Websub" do @@ -129,16 +140,18 @@ test "it federates only to reachable instances via Websub" do expected_callback = sub2.callback expected_dt = NaiveDateTime.to_iso8601(dt) - assert [ + ObanHelpers.perform(all_enqueued(worker: PublisherWorker)) + + assert ObanHelpers.member?( %{ - args: %{ - "params" => %{ - "callback" => ^expected_callback, - "unreachable_since" => ^expected_dt - } + "op" => "publish_one", + "params" => %{ + "callback" => expected_callback, + "unreachable_since" => expected_dt } - } - ] = all_enqueued(worker: Pleroma.Workers.Publisher) + }, + all_enqueued(worker: PublisherWorker) + ) end test "it federates only to reachable instances via Salmon" do @@ -172,16 +185,18 @@ test "it federates only to reachable instances via Salmon" do expected_dt = NaiveDateTime.to_iso8601(dt) - assert [ + ObanHelpers.perform(all_enqueued(worker: PublisherWorker)) + + assert ObanHelpers.member?( %{ - args: %{ - "params" => %{ - "recipient_id" => ^remote_user2_id, - "unreachable_since" => ^expected_dt - } + "op" => "publish_one", + "params" => %{ + "recipient_id" => remote_user2_id, + "unreachable_since" => expected_dt } - } - ] = all_enqueued(worker: Pleroma.Workers.Publisher) + }, + all_enqueued(worker: PublisherWorker) + ) end end @@ -201,7 +216,8 @@ test "successfully processes incoming AP docs with correct origin" do "to" => ["https://www.w3.org/ns/activitystreams#Public"] } - {:ok, _activity} = Federator.incoming_ap_doc(params) + assert {:ok, job} = Federator.incoming_ap_doc(params) + assert {:ok, _activity} = ObanHelpers.perform(job) end test "rejects incoming AP docs with incorrect origin" do @@ -219,7 +235,8 @@ test "rejects incoming AP docs with incorrect origin" do "to" => ["https://www.w3.org/ns/activitystreams#Public"] } - :error = Federator.incoming_ap_doc(params) + assert {:ok, job} = Federator.incoming_ap_doc(params) + assert :error = ObanHelpers.perform(job) end end end diff --git a/test/web/websub/websub_test.exs b/test/web/websub/websub_test.exs index 74386d7db..b704a558a 100644 --- a/test/web/websub/websub_test.exs +++ b/test/web/websub/websub_test.exs @@ -4,11 +4,14 @@ defmodule Pleroma.Web.WebsubTest do use Pleroma.DataCase + use Oban.Testing, repo: Pleroma.Repo + alias Pleroma.ObanHelpers alias Pleroma.Web.Router.Helpers alias Pleroma.Web.Websub alias Pleroma.Web.Websub.WebsubClientSubscription alias Pleroma.Web.Websub.WebsubServerSubscription + alias Pleroma.Workers.Subscriber, as: SubscriberWorker import Pleroma.Factory import Tesla.Mock @@ -224,6 +227,7 @@ test "it renews subscriptions that have less than a day of time left" do }) _refresh = Websub.refresh_subscriptions() + ObanHelpers.perform(all_enqueued(worker: SubscriberWorker)) assert still_good == Repo.get(WebsubClientSubscription, still_good.id) refute needs_refresh == Repo.get(WebsubClientSubscription, needs_refresh.id) From 33a5fc4a70b6f9b8c2d8c03a412d7eec8d5b3db1 Mon Sep 17 00:00:00 2001 From: Ivan Tashkinov Date: Sat, 10 Aug 2019 20:38:31 +0300 Subject: [PATCH 018/400] [#1149] Fixed failing tests. Ensured Instance.set_unreachable/2 supports ISO 8601 datetime. --- lib/pleroma/digest_email_worker.ex | 4 +--- lib/pleroma/instances/instance.ex | 8 +++++++- test/conversation_test.exs | 2 ++ test/support/oban_helpers.ex | 6 ++++++ test/web/federator_test.exs | 3 ++- test/web/instances/instance_test.exs | 3 ++- 6 files changed, 20 insertions(+), 6 deletions(-) diff --git a/lib/pleroma/digest_email_worker.ex b/lib/pleroma/digest_email_worker.ex index 18e67d39b..3b0e2bca6 100644 --- a/lib/pleroma/digest_email_worker.ex +++ b/lib/pleroma/digest_email_worker.ex @@ -1,8 +1,6 @@ defmodule Pleroma.DigestEmailWorker do import Ecto.Query - @queue_name :digest_emails - def perform do config = Pleroma.Config.get([:email_notifications, :digest]) negative_interval = -Map.fetch!(config, :interval) @@ -17,7 +15,7 @@ def perform do select: u ) |> Pleroma.Repo.all() - |> Enum.each(&PleromaJobQueue.enqueue(@queue_name, __MODULE__, [&1])) + |> Enum.each(&PleromaJobQueue.enqueue(:digest_emails, __MODULE__, [&1])) end @doc """ diff --git a/lib/pleroma/instances/instance.ex b/lib/pleroma/instances/instance.ex index 4d7ed4ca1..544c4b687 100644 --- a/lib/pleroma/instances/instance.ex +++ b/lib/pleroma/instances/instance.ex @@ -90,7 +90,7 @@ def set_reachable(_), do: {:error, nil} def set_unreachable(url_or_host, unreachable_since \\ nil) def set_unreachable(url_or_host, unreachable_since) when is_binary(url_or_host) do - unreachable_since = unreachable_since || DateTime.utc_now() + unreachable_since = parse_datetime(unreachable_since) || NaiveDateTime.utc_now() host = host(url_or_host) existing_record = Repo.get_by(Instance, %{host: host}) @@ -114,4 +114,10 @@ def set_unreachable(url_or_host, unreachable_since) when is_binary(url_or_host) end def set_unreachable(_, _), do: {:error, nil} + + defp parse_datetime(datetime) when is_binary(datetime) do + NaiveDateTime.from_iso8601(datetime) + end + + defp parse_datetime(datetime), do: datetime end diff --git a/test/conversation_test.exs b/test/conversation_test.exs index aa193e0d4..2ebbcab76 100644 --- a/test/conversation_test.exs +++ b/test/conversation_test.exs @@ -28,6 +28,8 @@ test "it goes through old direct conversations" do {:ok, _activity} = CommonAPI.post(user, %{"visibility" => "direct", "status" => "hey @#{other_user.nickname}"}) + Pleroma.ObanHelpers.perform_all() + Repo.delete_all(Conversation) Repo.delete_all(Conversation.Participation) diff --git a/test/support/oban_helpers.ex b/test/support/oban_helpers.ex index 54b5a9566..ecc03ba1a 100644 --- a/test/support/oban_helpers.ex +++ b/test/support/oban_helpers.ex @@ -9,6 +9,12 @@ defmodule Pleroma.ObanHelpers do alias Pleroma.Repo + def perform_all do + Oban.Job + |> Repo.all() + |> perform() + end + def perform(%Oban.Job{} = job) do res = apply(String.to_existing_atom("Elixir." <> job.worker), :perform, [job]) Repo.delete(job) diff --git a/test/web/federator_test.exs b/test/web/federator_test.exs index d3a28d50e..e0be4342b 100644 --- a/test/web/federator_test.exs +++ b/test/web/federator_test.exs @@ -249,7 +249,8 @@ test "it does not crash if MRF rejects the post" do File.read!("test/fixtures/mastodon-post-activity.json") |> Poison.decode!() - assert Federator.incoming_ap_doc(params) == :error + assert {:ok, job} = Federator.incoming_ap_doc(params) + assert :error = ObanHelpers.perform(job) Pleroma.Config.put([:instance, :rewrite_policy], policies) Pleroma.Config.put(:mrf_keyword, mrf_keyword_policy) diff --git a/test/web/instances/instance_test.exs b/test/web/instances/instance_test.exs index d28730994..a1bdd45d3 100644 --- a/test/web/instances/instance_test.exs +++ b/test/web/instances/instance_test.exs @@ -22,7 +22,8 @@ defmodule Pleroma.Instances.InstanceTest do describe "set_reachable/1" do test "clears `unreachable_since` of existing matching Instance record having non-nil `unreachable_since`" do - instance = insert(:instance, unreachable_since: NaiveDateTime.utc_now()) + unreachable_since = NaiveDateTime.to_iso8601(NaiveDateTime.utc_now()) + instance = insert(:instance, unreachable_since: unreachable_since) assert {:ok, instance} = Instance.set_reachable(instance.host) refute instance.unreachable_since From 0e1c481a94392b69833fbe6afc184ebbd90e1330 Mon Sep 17 00:00:00 2001 From: Ivan Tashkinov Date: Tue, 13 Aug 2019 20:20:26 +0300 Subject: [PATCH 019/400] [#1149] Added more oban workers. Refactoring. --- lib/pleroma/digest_email_worker.ex | 11 ++- lib/pleroma/scheduled_activity_worker.ex | 8 +- lib/pleroma/user.ex | 55 +++++++---- lib/pleroma/web/activity_pub/activity_pub.ex | 7 +- .../mrf/mediaproxy_warming_policy.ex | 12 ++- .../web/activity_pub/transmogrifier.ex | 7 +- lib/pleroma/web/federator/federator.ex | 98 ++++++++++++++++++- lib/pleroma/web/oauth/token/clean_worker.ex | 10 +- lib/pleroma/web/push/push.ex | 12 ++- .../controllers/util_controller.ex | 14 +-- lib/pleroma/workers/background_worker.ex | 66 +++++++++++++ lib/pleroma/workers/helper.ex | 13 +++ lib/pleroma/workers/mailer.ex | 18 ++++ lib/pleroma/workers/publisher.ex | 20 +--- lib/pleroma/workers/receiver.ex | 46 +-------- .../workers/scheduled_activity_worker.ex | 15 +++ lib/pleroma/workers/subscriber.ex | 23 +---- lib/pleroma/workers/transmogrifier.ex | 18 ++++ lib/pleroma/workers/web_pusher.ex | 19 ++++ test/activity_test.exs | 2 +- test/conversation_test.exs | 2 +- test/notification_test.exs | 5 +- test/support/oban_helpers.ex | 2 +- test/user_test.exs | 19 ++-- .../activity_pub_controller_test.exs | 2 +- .../mrf/mediaproxy_warming_policy_test.exs | 6 ++ test/web/activity_pub/transmogrifier_test.exs | 4 + test/web/federator_test.exs | 2 +- test/web/twitter_api/util_controller_test.exs | 43 ++++---- test/web/websub/websub_test.exs | 2 +- 30 files changed, 402 insertions(+), 159 deletions(-) create mode 100644 lib/pleroma/workers/background_worker.ex create mode 100644 lib/pleroma/workers/helper.ex create mode 100644 lib/pleroma/workers/mailer.ex create mode 100644 lib/pleroma/workers/scheduled_activity_worker.ex create mode 100644 lib/pleroma/workers/transmogrifier.ex create mode 100644 lib/pleroma/workers/web_pusher.ex diff --git a/lib/pleroma/digest_email_worker.ex b/lib/pleroma/digest_email_worker.ex index 3b0e2bca6..6e44cc955 100644 --- a/lib/pleroma/digest_email_worker.ex +++ b/lib/pleroma/digest_email_worker.ex @@ -1,6 +1,11 @@ defmodule Pleroma.DigestEmailWorker do + alias Pleroma.Repo + alias Pleroma.Workers.Mailer, as: MailerWorker + import Ecto.Query + defdelegate worker_args(queue), to: Pleroma.Workers.Helper + def perform do config = Pleroma.Config.get([:email_notifications, :digest]) negative_interval = -Map.fetch!(config, :interval) @@ -15,7 +20,11 @@ def perform do select: u ) |> Pleroma.Repo.all() - |> Enum.each(&PleromaJobQueue.enqueue(:digest_emails, __MODULE__, [&1])) + |> Enum.each(fn user -> + %{"op" => "digest_email", "user_id" => user.id} + |> MailerWorker.new([queue: "digest_emails"] ++ worker_args(:digest_emails)) + |> Repo.insert() + end) end @doc """ diff --git a/lib/pleroma/scheduled_activity_worker.ex b/lib/pleroma/scheduled_activity_worker.ex index 65b38622f..cabea51ca 100644 --- a/lib/pleroma/scheduled_activity_worker.ex +++ b/lib/pleroma/scheduled_activity_worker.ex @@ -8,14 +8,18 @@ defmodule Pleroma.ScheduledActivityWorker do """ alias Pleroma.Config + alias Pleroma.Repo alias Pleroma.ScheduledActivity alias Pleroma.User alias Pleroma.Web.CommonAPI + use GenServer require Logger @schedule_interval :timer.minutes(1) + defdelegate worker_args(queue), to: Pleroma.Workers.Helper + def start_link do GenServer.start_link(__MODULE__, nil) end @@ -45,7 +49,9 @@ def perform(:execute, scheduled_activity_id) do def handle_info(:perform, state) do ScheduledActivity.due_activities(@schedule_interval) |> Enum.each(fn scheduled_activity -> - PleromaJobQueue.enqueue(:scheduled_activities, __MODULE__, [:execute, scheduled_activity.id]) + %{"op" => "execute", "activity_id" => scheduled_activity.id} + |> Pleroma.Workers.ScheduledActivityWorker.new(worker_args(:scheduled_activities)) + |> Repo.insert() end) schedule_next() diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 7d18f099e..bc2102ca7 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -26,6 +26,7 @@ defmodule Pleroma.User do alias Pleroma.Web.OStatus alias Pleroma.Web.RelMe alias Pleroma.Web.Websub + alias Pleroma.Workers.BackgroundWorker require Logger @@ -39,6 +40,8 @@ defmodule Pleroma.User do @strict_local_nickname_regex ~r/^[a-zA-Z\d]+$/ @extended_local_nickname_regex ~r/^[a-zA-Z\d_-]+$/ + defdelegate worker_args(queue), to: Pleroma.Workers.Helper + schema "users" do field(:bio, :string) field(:email, :string) @@ -579,8 +582,11 @@ def get_or_fetch_by_nickname(nickname) do end @doc "Fetch some posts when the user has just been federated with" - def fetch_initial_posts(user), - do: PleromaJobQueue.enqueue(:background, __MODULE__, [:fetch_initial_posts, user]) + def fetch_initial_posts(user) do + %{"op" => "fetch_initial_posts", "user_id" => user.id} + |> BackgroundWorker.new(worker_args(:background)) + |> Repo.insert() + end @spec get_followers_query(User.t(), pos_integer() | nil) :: Ecto.Query.t() def get_followers_query(%User{} = user, nil) do @@ -1001,7 +1007,9 @@ def unblock_domain(user, domain) do end def deactivate_async(user, status \\ true) do - PleromaJobQueue.enqueue(:background, __MODULE__, [:deactivate_async, user, status]) + %{"op" => "deactivate_user", "user_id" => user.id, "status" => status} + |> BackgroundWorker.new(worker_args(:background)) + |> Repo.insert() end def deactivate(%User{} = user, status \\ true) do @@ -1029,9 +1037,11 @@ def update_notification_settings(%User{} = user, settings \\ %{}) do |> update_and_set_cache() end - @spec delete(User.t()) :: :ok - def delete(%User{} = user), - do: PleromaJobQueue.enqueue(:background, __MODULE__, [:delete, user]) + def delete(%User{} = user) do + %{"op" => "delete_user", "user_id" => user.id} + |> BackgroundWorker.new(worker_args(:background)) + |> Repo.insert() + end @spec perform(atom(), User.t()) :: {:ok, User.t()} def perform(:delete, %User{} = user) do @@ -1138,21 +1148,26 @@ def external_users(opts \\ []) do Repo.all(query) end - def blocks_import(%User{} = blocker, blocked_identifiers) when is_list(blocked_identifiers), - do: - PleromaJobQueue.enqueue(:background, __MODULE__, [ - :blocks_import, - blocker, - blocked_identifiers - ]) + def blocks_import(%User{} = blocker, blocked_identifiers) when is_list(blocked_identifiers) do + %{ + "op" => "blocks_import", + "blocker_id" => blocker.id, + "blocked_identifiers" => blocked_identifiers + } + |> BackgroundWorker.new(worker_args(:background)) + |> Repo.insert() + end - def follow_import(%User{} = follower, followed_identifiers) when is_list(followed_identifiers), - do: - PleromaJobQueue.enqueue(:background, __MODULE__, [ - :follow_import, - follower, - followed_identifiers - ]) + def follow_import(%User{} = follower, followed_identifiers) + when is_list(followed_identifiers) do + %{ + "op" => "follow_import", + "follower_id" => follower.id, + "followed_identifiers" => followed_identifiers + } + |> BackgroundWorker.new(worker_args(:background)) + |> Repo.insert() + end def delete_user_activities(%User{ap_id: ap_id} = user) do ap_id diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 1a279a7df..8be8ac86f 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -17,6 +17,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do alias Pleroma.Web.ActivityPub.MRF alias Pleroma.Web.ActivityPub.Transmogrifier alias Pleroma.Web.WebFinger + alias Pleroma.Workers.BackgroundWorker import Ecto.Query import Pleroma.Web.ActivityPub.Utils @@ -25,6 +26,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do require Logger require Pleroma.Constants + defdelegate worker_args(queue), to: Pleroma.Workers.Helper + # For Announce activities, we filter the recipients based on following status for any actors # that match actual users. See issue #164 for more information about why this is necessary. defp get_recipients(%{"type" => "Announce"} = data) do @@ -145,7 +148,9 @@ def insert(map, local \\ true, fake \\ false) when is_map(map) do activity end - PleromaJobQueue.enqueue(:background, Pleroma.Web.RichMedia.Helpers, [:fetch, activity]) + %{"op" => "fetch_data_for_activity", "activity_id" => activity.id} + |> BackgroundWorker.new(worker_args(:background)) + |> Repo.insert() Notification.create_notifications(activity) diff --git a/lib/pleroma/web/activity_pub/mrf/mediaproxy_warming_policy.ex b/lib/pleroma/web/activity_pub/mrf/mediaproxy_warming_policy.ex index 01d21a299..1df3bb5b6 100644 --- a/lib/pleroma/web/activity_pub/mrf/mediaproxy_warming_policy.ex +++ b/lib/pleroma/web/activity_pub/mrf/mediaproxy_warming_policy.ex @@ -7,7 +7,9 @@ defmodule Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy do @behaviour Pleroma.Web.ActivityPub.MRF alias Pleroma.HTTP + alias Pleroma.Repo alias Pleroma.Web.MediaProxy + alias Pleroma.Workers.BackgroundWorker require Logger @@ -16,6 +18,8 @@ defmodule Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy do recv_timeout: 10_000 ] + defdelegate worker_args(queue), to: Pleroma.Workers.Helper + def perform(:prefetch, url) do Logger.info("Prefetching #{inspect(url)}") @@ -30,7 +34,9 @@ def perform(:preload, %{"object" => %{"attachment" => attachments}} = _message) url |> Enum.each(fn %{"href" => href} -> - PleromaJobQueue.enqueue(:background, __MODULE__, [:prefetch, href]) + %{"op" => "media_proxy_prefetch", "url" => href} + |> BackgroundWorker.new(worker_args(:background)) + |> Repo.insert() x -> Logger.debug("Unhandled attachment URL object #{inspect(x)}") @@ -46,7 +52,9 @@ def filter( %{"type" => "Create", "object" => %{"attachment" => attachments} = _object} = message ) when is_list(attachments) and length(attachments) > 0 do - PleromaJobQueue.enqueue(:background, __MODULE__, [:preload, message]) + %{"op" => "media_proxy_preload", "message" => message} + |> BackgroundWorker.new(worker_args(:background)) + |> Repo.insert() {:ok, message} end diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 5403b71d8..0f117cd04 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -15,12 +15,15 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do alias Pleroma.Web.ActivityPub.Utils alias Pleroma.Web.ActivityPub.Visibility alias Pleroma.Web.Federator + alias Pleroma.Workers.Transmogrifier, as: TransmogrifierWorker import Ecto.Query require Logger require Pleroma.Constants + defdelegate worker_args(queue), to: Pleroma.Workers.Helper + @doc """ Modifies an incoming AP object (mastodon format) to our internal format. """ @@ -1073,7 +1076,9 @@ def upgrade_user_from_ap_id(ap_id) do already_ap <- User.ap_enabled?(user), {:ok, user} <- user |> User.upgrade_changeset(data) |> User.update_and_set_cache() do unless already_ap do - PleromaJobQueue.enqueue(:transmogrifier, __MODULE__, [:user_upgrade, user]) + %{"op" => "user_upgrade", "user_id" => user.id} + |> TransmogrifierWorker.new(worker_args(:transmogrifier)) + |> Repo.insert() end {:ok, user} diff --git a/lib/pleroma/web/federator/federator.ex b/lib/pleroma/web/federator/federator.ex index bb9eadfee..d85fe824f 100644 --- a/lib/pleroma/web/federator/federator.ex +++ b/lib/pleroma/web/federator/federator.ex @@ -3,12 +3,23 @@ # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Web.Federator do + alias Pleroma.Activity + alias Pleroma.Object.Containment + alias Pleroma.User + alias Pleroma.Web.ActivityPub.ActivityPub + alias Pleroma.Web.ActivityPub.Transmogrifier + alias Pleroma.Web.ActivityPub.Utils + alias Pleroma.Web.Federator.Publisher + alias Pleroma.Web.OStatus + alias Pleroma.Web.Websub alias Pleroma.Workers.Publisher, as: PublisherWorker alias Pleroma.Workers.Receiver, as: ReceiverWorker alias Pleroma.Workers.Subscriber, as: SubscriberWorker require Logger + defdelegate worker_args(queue), to: Pleroma.Workers.Helper + def init do # 1 minute refresh_subscriptions(schedule_in: 60) @@ -41,7 +52,7 @@ def incoming_ap_doc(params) do end def publish(%{id: "pleroma:fakeid"} = activity) do - PublisherWorker.perform_publish(activity) + perform(:publish, activity) end def publish(activity) do @@ -68,11 +79,88 @@ def refresh_subscriptions(worker_args \\ []) do |> Pleroma.Repo.insert() end - defp worker_args(queue) do - if max_attempts = Pleroma.Config.get([:workers, :retries, queue]) do - [max_attempts: max_attempts] + # Job Worker Callbacks + + @spec perform(atom(), module(), any()) :: {:ok, any()} | {:error, any()} + def perform(:publish_one, module, params) do + apply(module, :publish_one, [params]) + end + + def perform(:publish, activity) do + Logger.debug(fn -> "Running publish for #{activity.data["id"]}" end) + + with %User{} = actor <- User.get_cached_by_ap_id(activity.data["actor"]), + {:ok, actor} <- User.ensure_keys_present(actor) do + Publisher.publish(actor, activity) + end + end + + def perform(:incoming_doc, doc) do + Logger.info("Got document, trying to parse") + OStatus.handle_incoming(doc) + end + + def perform(:incoming_ap_doc, params) do + Logger.info("Handling incoming AP activity") + + params = Utils.normalize_params(params) + + # NOTE: we use the actor ID to do the containment, this is fine because an + # actor shouldn't be acting on objects outside their own AP server. + with {:ok, _user} <- ap_enabled_actor(params["actor"]), + nil <- Activity.normalize(params["id"]), + :ok <- Containment.contain_origin_from_id(params["actor"], params), + {:ok, activity} <- Transmogrifier.handle_incoming(params) do + {:ok, activity} else - [] + %Activity{} -> + Logger.info("Already had #{params["id"]}") + :error + + _e -> + # Just drop those for now + Logger.info("Unhandled activity") + Logger.info(Jason.encode!(params, pretty: true)) + :error + end + end + + def perform(:request_subscription, websub) do + Logger.debug("Refreshing #{websub.topic}") + + with {:ok, websub} <- Websub.request_subscription(websub) do + Logger.debug("Successfully refreshed #{websub.topic}") + else + _e -> Logger.debug("Couldn't refresh #{websub.topic}") + end + end + + def perform(:verify_websub, websub) do + Logger.debug(fn -> + "Running WebSub verification for #{websub.id} (#{websub.topic}, #{websub.callback})" + end) + + Websub.verify(websub) + end + + def perform(:refresh_subscriptions) do + Logger.debug("Federator running refresh subscriptions") + Websub.refresh_subscriptions() + + spawn(fn -> + # 6 hours + Process.sleep(1000 * 60 * 60 * 6) + refresh_subscriptions() + end) + end + + def ap_enabled_actor(id) do + user = User.get_cached_by_ap_id(id) + + if User.ap_enabled?(user) do + {:ok, user} + else + ActivityPub.make_user_from_ap_id(id) end end end diff --git a/lib/pleroma/web/oauth/token/clean_worker.ex b/lib/pleroma/web/oauth/token/clean_worker.ex index dca852449..c0c9c3653 100644 --- a/lib/pleroma/web/oauth/token/clean_worker.ex +++ b/lib/pleroma/web/oauth/token/clean_worker.ex @@ -14,9 +14,12 @@ defmodule Pleroma.Web.OAuth.Token.CleanWorker do [:oauth2, :clean_expired_tokens_interval], 86_400_000 ) - @queue :background + alias Pleroma.Repo alias Pleroma.Web.OAuth.Token + alias Pleroma.Workers.BackgroundWorker + + defdelegate worker_args(queue), to: Pleroma.Workers.Helper def start_link, do: GenServer.start_link(__MODULE__, nil) @@ -31,8 +34,11 @@ def init(_) do @doc false def handle_info(:perform, state) do + %{"op" => "clean_expired_tokens"} + |> BackgroundWorker.new(worker_args(:background)) + |> Repo.insert() + Process.send_after(self(), :perform, @interval) - PleromaJobQueue.enqueue(@queue, __MODULE__, [:clean]) {:noreply, state} end diff --git a/lib/pleroma/web/push/push.ex b/lib/pleroma/web/push/push.ex index 729dad02a..b4f0e5127 100644 --- a/lib/pleroma/web/push/push.ex +++ b/lib/pleroma/web/push/push.ex @@ -3,10 +3,13 @@ # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Web.Push do - alias Pleroma.Web.Push.Impl + alias Pleroma.Repo + alias Pleroma.Workers.WebPusher require Logger + defdelegate worker_args(queue), to: Pleroma.Workers.Helper + def init do unless enabled() do Logger.warn(""" @@ -31,6 +34,9 @@ def enabled do end end - def send(notification), - do: PleromaJobQueue.enqueue(:web_push, Impl, [notification]) + def send(notification) do + %{"op" => "web_push", "notification_id" => notification.id} + |> WebPusher.new(worker_args(:web_push)) + |> Repo.insert() + end end diff --git a/lib/pleroma/web/twitter_api/controllers/util_controller.ex b/lib/pleroma/web/twitter_api/controllers/util_controller.ex index 3405bd3b7..7ba4ad305 100644 --- a/lib/pleroma/web/twitter_api/controllers/util_controller.ex +++ b/lib/pleroma/web/twitter_api/controllers/util_controller.ex @@ -265,12 +265,7 @@ def follow_import(%{assigns: %{user: follower}} = conn, %{"list" => list}) do String.split(line, ",") |> List.first() end) |> List.delete("Account address") do - PleromaJobQueue.enqueue(:background, User, [ - :follow_import, - follower, - followed_identifiers - ]) - + User.follow_import(follower, followed_identifiers) json(conn, "job started") end end @@ -281,12 +276,7 @@ def blocks_import(conn, %{"list" => %Plug.Upload{} = listfile}) do def blocks_import(%{assigns: %{user: blocker}} = conn, %{"list" => list}) do with blocked_identifiers <- String.split(list) do - PleromaJobQueue.enqueue(:background, User, [ - :blocks_import, - blocker, - blocked_identifiers - ]) - + User.blocks_import(blocker, blocked_identifiers) json(conn, "job started") end end diff --git a/lib/pleroma/workers/background_worker.ex b/lib/pleroma/workers/background_worker.ex new file mode 100644 index 000000000..3ab2b6bcc --- /dev/null +++ b/lib/pleroma/workers/background_worker.ex @@ -0,0 +1,66 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Workers.BackgroundWorker do + alias Pleroma.Activity + alias Pleroma.User + alias Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy + alias Pleroma.Web.OAuth.Token.CleanWorker + + # Note: `max_attempts` is intended to be overridden in `new/1` call + use Oban.Worker, + queue: "background", + max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default]) + + @impl Oban.Worker + def perform(%{"op" => "fetch_initial_posts", "user_id" => user_id}) do + user = User.get_by_id(user_id) + User.perform(:fetch_initial_posts, user) + end + + def perform(%{"op" => "deactivate_user", "user_id" => user_id, "status" => status}) do + user = User.get_by_id(user_id) + User.perform(:deactivate_async, user, status) + end + + def perform(%{"op" => "delete_user", "user_id" => user_id}) do + user = User.get_by_id(user_id) + User.perform(:delete, user) + end + + def perform(%{ + "op" => "blocks_import", + "blocker_id" => blocker_id, + "blocked_identifiers" => blocked_identifiers + }) do + blocker = User.get_by_id(blocker_id) + User.perform(:blocks_import, blocker, blocked_identifiers) + end + + def perform(%{ + "op" => "follow_import", + "follower_id" => follower_id, + "followed_identifiers" => followed_identifiers + }) do + follower = User.get_by_id(follower_id) + User.perform(:follow_import, follower, followed_identifiers) + end + + def perform(%{"op" => "clean_expired_tokens"}) do + CleanWorker.perform(:clean) + end + + def perform(%{"op" => "media_proxy_preload", "message" => message}) do + MediaProxyWarmingPolicy.perform(:preload, message) + end + + def perform(%{"op" => "media_proxy_prefetch", "url" => url}) do + MediaProxyWarmingPolicy.perform(:prefetch, url) + end + + def perform(%{"op" => "fetch_data_for_activity", "activity_id" => activity_id}) do + activity = Activity.get_by_id(activity_id) + Pleroma.Web.RichMedia.Helpers.perform(:fetch, activity) + end +end diff --git a/lib/pleroma/workers/helper.ex b/lib/pleroma/workers/helper.ex new file mode 100644 index 000000000..3286ce0e8 --- /dev/null +++ b/lib/pleroma/workers/helper.ex @@ -0,0 +1,13 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Workers.Helper do + def worker_args(queue) do + if max_attempts = Pleroma.Config.get([:workers, :retries, queue]) do + [max_attempts: max_attempts] + else + [] + end + end +end diff --git a/lib/pleroma/workers/mailer.ex b/lib/pleroma/workers/mailer.ex new file mode 100644 index 000000000..da7fa6fd5 --- /dev/null +++ b/lib/pleroma/workers/mailer.ex @@ -0,0 +1,18 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Workers.Mailer do + alias Pleroma.User + + # Note: `max_attempts` is intended to be overridden in `new/1` call + use Oban.Worker, + queue: "mailer", + max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default]) + + @impl Oban.Worker + def perform(%{"op" => "digest_email", "user_id" => user_id}) do + user = User.get_by_id(user_id) + Pleroma.DigestEmailWorker.perform(user) + end +end diff --git a/lib/pleroma/workers/publisher.ex b/lib/pleroma/workers/publisher.ex index 67871977a..c890ffb79 100644 --- a/lib/pleroma/workers/publisher.ex +++ b/lib/pleroma/workers/publisher.ex @@ -4,7 +4,7 @@ defmodule Pleroma.Workers.Publisher do alias Pleroma.Activity - alias Pleroma.User + alias Pleroma.Web.Federator # Note: `max_attempts` is intended to be overridden in `new/1` call use Oban.Worker, @@ -13,23 +13,11 @@ defmodule Pleroma.Workers.Publisher do @impl Oban.Worker def perform(%{"op" => "publish", "activity_id" => activity_id}) do - with %Activity{} = activity <- Activity.get_by_id(activity_id) do - perform_publish(activity) - else - _ -> raise "Non-existing activity: #{activity_id}" - end + activity = Activity.get_by_id(activity_id) + Federator.perform(:publish, activity) end def perform(%{"op" => "publish_one", "module" => module_name, "params" => params}) do - module_name - |> String.to_atom() - |> apply(:publish_one, [params]) - end - - def perform_publish(%Activity{} = activity) do - with %User{} = actor <- User.get_cached_by_ap_id(activity.data["actor"]), - {:ok, actor} <- User.ensure_keys_present(actor) do - Pleroma.Web.Federator.Publisher.publish(actor, activity) - end + Federator.perform(:publish_one, String.to_atom(module_name), params) end end diff --git a/lib/pleroma/workers/receiver.ex b/lib/pleroma/workers/receiver.ex index 43558b4e6..d3de95716 100644 --- a/lib/pleroma/workers/receiver.ex +++ b/lib/pleroma/workers/receiver.ex @@ -3,15 +3,7 @@ # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Workers.Receiver do - alias Pleroma.Activity - alias Pleroma.Object.Containment - alias Pleroma.User - alias Pleroma.Web.ActivityPub.ActivityPub - alias Pleroma.Web.ActivityPub.Transmogrifier - alias Pleroma.Web.ActivityPub.Utils - alias Pleroma.Web.OStatus - - require Logger + alias Pleroma.Web.Federator # Note: `max_attempts` is intended to be overridden in `new/1` call use Oban.Worker, @@ -20,42 +12,10 @@ defmodule Pleroma.Workers.Receiver do @impl Oban.Worker def perform(%{"op" => "incoming_doc", "body" => doc}) do - Logger.info("Got incoming document, trying to parse") - OStatus.handle_incoming(doc) + Federator.perform(:incoming_doc, doc) end def perform(%{"op" => "incoming_ap_doc", "params" => params}) do - Logger.info("Handling incoming AP activity") - - params = Utils.normalize_params(params) - - # NOTE: we use the actor ID to do the containment, this is fine because an - # actor shouldn't be acting on objects outside their own AP server. - with {:ok, _user} <- ap_enabled_actor(params["actor"]), - nil <- Activity.normalize(params["id"]), - :ok <- Containment.contain_origin_from_id(params["actor"], params), - {:ok, activity} <- Transmogrifier.handle_incoming(params) do - {:ok, activity} - else - %Activity{} -> - Logger.info("Already had #{params["id"]}") - :error - - _e -> - # Just drop those for now - Logger.info("Unhandled activity") - Logger.info(Jason.encode!(params, pretty: true)) - :error - end - end - - defp ap_enabled_actor(id) do - user = User.get_cached_by_ap_id(id) - - if User.ap_enabled?(user) do - {:ok, user} - else - ActivityPub.make_user_from_ap_id(id) - end + Federator.perform(:incoming_ap_doc, params) end end diff --git a/lib/pleroma/workers/scheduled_activity_worker.ex b/lib/pleroma/workers/scheduled_activity_worker.ex new file mode 100644 index 000000000..a49834fd8 --- /dev/null +++ b/lib/pleroma/workers/scheduled_activity_worker.ex @@ -0,0 +1,15 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Workers.ScheduledActivityWorker do + # Note: `max_attempts` is intended to be overridden in `new/1` call + use Oban.Worker, + queue: "scheduled_activities", + max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default]) + + @impl Oban.Worker + def perform(%{"op" => "execute", "activity_id" => activity_id}) do + Pleroma.ScheduledActivityWorker.perform(:execute, activity_id) + end +end diff --git a/lib/pleroma/workers/subscriber.ex b/lib/pleroma/workers/subscriber.ex index a8c01bb10..6af3ad0a1 100644 --- a/lib/pleroma/workers/subscriber.ex +++ b/lib/pleroma/workers/subscriber.ex @@ -4,11 +4,9 @@ defmodule Pleroma.Workers.Subscriber do alias Pleroma.Repo - alias Pleroma.Web.Websub + alias Pleroma.Web.Federator alias Pleroma.Web.Websub.WebsubClientSubscription - require Logger - # Note: `max_attempts` is intended to be overridden in `new/1` call use Oban.Worker, queue: "federator_outgoing", @@ -16,29 +14,16 @@ defmodule Pleroma.Workers.Subscriber do @impl Oban.Worker def perform(%{"op" => "refresh_subscriptions"}) do - Websub.refresh_subscriptions() - # Schedule the next run in 6 hours - Pleroma.Web.Federator.refresh_subscriptions(schedule_in: 3600 * 6) + Federator.perform(:refresh_subscriptions) end def perform(%{"op" => "request_subscription", "websub_id" => websub_id}) do websub = Repo.get(WebsubClientSubscription, websub_id) - Logger.debug("Refreshing #{websub.topic}") - - with {:ok, websub} <- Websub.request_subscription(websub) do - Logger.debug("Successfully refreshed #{websub.topic}") - else - _e -> Logger.debug("Couldn't refresh #{websub.topic}") - end + Federator.perform(:request_subscription, websub) end def perform(%{"op" => "verify_websub", "websub_id" => websub_id}) do websub = Repo.get(WebsubClientSubscription, websub_id) - - Logger.debug(fn -> - "Running WebSub verification for #{websub.id} (#{websub.topic}, #{websub.callback})" - end) - - Websub.verify(websub) + Federator.perform(:verify_websub, websub) end end diff --git a/lib/pleroma/workers/transmogrifier.ex b/lib/pleroma/workers/transmogrifier.ex new file mode 100644 index 000000000..c6b4fab47 --- /dev/null +++ b/lib/pleroma/workers/transmogrifier.ex @@ -0,0 +1,18 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Workers.Transmogrifier do + alias Pleroma.User + + # Note: `max_attempts` is intended to be overridden in `new/1` call + use Oban.Worker, + queue: "transmogrifier", + max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default]) + + @impl Oban.Worker + def perform(%{"op" => "user_upgrade", "user_id" => user_id}) do + user = User.get_by_id(user_id) + Pleroma.Web.ActivityPub.Transmogrifier.perform(:user_upgrade, user) + end +end diff --git a/lib/pleroma/workers/web_pusher.ex b/lib/pleroma/workers/web_pusher.ex new file mode 100644 index 000000000..b99581eb0 --- /dev/null +++ b/lib/pleroma/workers/web_pusher.ex @@ -0,0 +1,19 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Workers.WebPusher do + alias Pleroma.Notification + alias Pleroma.Repo + + # Note: `max_attempts` is intended to be overridden in `new/1` call + use Oban.Worker, + queue: "web_push", + max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default]) + + @impl Oban.Worker + def perform(%{"op" => "web_push", "notification_id" => notification_id}) do + notification = Repo.get(Notification, notification_id) + Pleroma.Web.Push.Impl.perform(notification) + end +end diff --git a/test/activity_test.exs b/test/activity_test.exs index b9c12adb2..658c47837 100644 --- a/test/activity_test.exs +++ b/test/activity_test.exs @@ -6,8 +6,8 @@ defmodule Pleroma.ActivityTest do use Pleroma.DataCase alias Pleroma.Activity alias Pleroma.Bookmark - alias Pleroma.ObanHelpers alias Pleroma.Object + alias Pleroma.Tests.ObanHelpers alias Pleroma.ThreadMute import Pleroma.Factory diff --git a/test/conversation_test.exs b/test/conversation_test.exs index 2ebbcab76..f917aa691 100644 --- a/test/conversation_test.exs +++ b/test/conversation_test.exs @@ -28,7 +28,7 @@ test "it goes through old direct conversations" do {:ok, _activity} = CommonAPI.post(user, %{"visibility" => "direct", "status" => "hey @#{other_user.nickname}"}) - Pleroma.ObanHelpers.perform_all() + Pleroma.Tests.ObanHelpers.perform_all() Repo.delete_all(Conversation) Repo.delete_all(Conversation.Participation) diff --git a/test/notification_test.exs b/test/notification_test.exs index 80ea2a085..e1c9f4f93 100644 --- a/test/notification_test.exs +++ b/test/notification_test.exs @@ -8,6 +8,7 @@ defmodule Pleroma.NotificationTest do import Pleroma.Factory alias Pleroma.Notification + alias Pleroma.Tests.ObanHelpers alias Pleroma.User alias Pleroma.Web.ActivityPub.Transmogrifier alias Pleroma.Web.CommonAPI @@ -621,7 +622,8 @@ test "notifications are deleted if a local user is deleted" do refute Enum.empty?(Notification.for_user(other_user)) - User.delete(user) + {:ok, job} = User.delete(user) + ObanHelpers.perform(job) assert Enum.empty?(Notification.for_user(other_user)) end @@ -666,6 +668,7 @@ test "notifications are deleted if a remote user is deleted" do } {:ok, _delete_activity} = Transmogrifier.handle_incoming(delete_user_message) + ObanHelpers.perform_all() assert Enum.empty?(Notification.for_user(local_user)) end diff --git a/test/support/oban_helpers.ex b/test/support/oban_helpers.ex index ecc03ba1a..d379c9ec7 100644 --- a/test/support/oban_helpers.ex +++ b/test/support/oban_helpers.ex @@ -2,7 +2,7 @@ # Copyright © 2017-2018 Pleroma Authors # SPDX-License-Identifier: AGPL-3.0-only -defmodule Pleroma.ObanHelpers do +defmodule Pleroma.Tests.ObanHelpers do @moduledoc """ Oban test helpers. """ diff --git a/test/user_test.exs b/test/user_test.exs index 8617752d7..9c2117a0b 100644 --- a/test/user_test.exs +++ b/test/user_test.exs @@ -5,9 +5,9 @@ defmodule Pleroma.UserTest do alias Pleroma.Activity alias Pleroma.Builders.UserBuilder - alias Pleroma.ObanHelpers alias Pleroma.Object alias Pleroma.Repo + alias Pleroma.Tests.ObanHelpers alias Pleroma.User alias Pleroma.Web.ActivityPub.ActivityPub alias Pleroma.Web.CommonAPI @@ -676,7 +676,9 @@ test "it imports user followings from list" do user3.nickname ] - result = User.follow_import(user1, identifiers) + {:ok, job} = User.follow_import(user1, identifiers) + result = ObanHelpers.perform(job) + assert is_list(result) assert result == [user2, user3] end @@ -887,7 +889,9 @@ test "it imports user blocks from list" do user3.nickname ] - result = User.blocks_import(user1, identifiers) + {:ok, job} = User.blocks_import(user1, identifiers) + result = ObanHelpers.perform(job) + assert is_list(result) assert result == [user2, user3] end @@ -1013,7 +1017,8 @@ test "it deletes a user, all follow relationships and all activities", %{user: u {:ok, like_two, _} = CommonAPI.favorite(activity.id, follower) {:ok, repeat, _} = CommonAPI.repeat(activity_two.id, user) - {:ok, _} = User.delete(user) + {:ok, job} = User.delete(user) + {:ok, _user} = ObanHelpers.perform(job) follower = User.get_cached_by_id(follower.id) @@ -1043,7 +1048,8 @@ test "it sends out User Delete activity", %{user: user} do {:ok, follower} = User.get_or_fetch_by_ap_id("http://mastodon.example.org/users/admin") {:ok, _} = User.follow(follower, user) - {:ok, _user} = User.delete(user) + {:ok, job} = User.delete(user) + {:ok, _user} = ObanHelpers.perform(job) assert ObanHelpers.member?( %{ @@ -1100,7 +1106,8 @@ test "invalidate_cache works" do test "User.delete() plugs any possible zombie objects" do user = insert(:user) - {:ok, _} = User.delete(user) + {:ok, job} = User.delete(user) + {:ok, _} = ObanHelpers.perform(job) {:ok, cached_user} = Cachex.get(:user_cache, "ap_id:#{user.ap_id}") diff --git a/test/web/activity_pub/activity_pub_controller_test.exs b/test/web/activity_pub/activity_pub_controller_test.exs index d7f0a8264..f46353fdd 100644 --- a/test/web/activity_pub/activity_pub_controller_test.exs +++ b/test/web/activity_pub/activity_pub_controller_test.exs @@ -9,8 +9,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do import Pleroma.Factory alias Pleroma.Activity alias Pleroma.Instances - alias Pleroma.ObanHelpers alias Pleroma.Object + alias Pleroma.Tests.ObanHelpers alias Pleroma.User alias Pleroma.Web.ActivityPub.ObjectView alias Pleroma.Web.ActivityPub.UserView diff --git a/test/web/activity_pub/mrf/mediaproxy_warming_policy_test.exs b/test/web/activity_pub/mrf/mediaproxy_warming_policy_test.exs index 372e789be..95a809d25 100644 --- a/test/web/activity_pub/mrf/mediaproxy_warming_policy_test.exs +++ b/test/web/activity_pub/mrf/mediaproxy_warming_policy_test.exs @@ -6,6 +6,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicyTest do use Pleroma.DataCase alias Pleroma.HTTP + alias Pleroma.Tests.ObanHelpers alias Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy import Mock @@ -24,6 +25,11 @@ defmodule Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicyTest do test "it prefetches media proxy URIs" do with_mock HTTP, get: fn _, _, _ -> {:ok, []} end do MediaProxyWarmingPolicy.filter(@message) + + ObanHelpers.perform_all() + # Performing jobs which has been just enqueued + ObanHelpers.perform_all() + assert called(HTTP.get(:_, :_, :_)) end end diff --git a/test/web/activity_pub/transmogrifier_test.exs b/test/web/activity_pub/transmogrifier_test.exs index e7498e005..52f46c141 100644 --- a/test/web/activity_pub/transmogrifier_test.exs +++ b/test/web/activity_pub/transmogrifier_test.exs @@ -8,6 +8,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do alias Pleroma.Object alias Pleroma.Object.Fetcher alias Pleroma.Repo + alias Pleroma.Tests.ObanHelpers alias Pleroma.User alias Pleroma.Web.ActivityPub.ActivityPub alias Pleroma.Web.ActivityPub.Transmogrifier @@ -563,6 +564,7 @@ test "it works for incoming user deletes" do |> Poison.decode!() {:ok, _} = Transmogrifier.handle_incoming(data) + ObanHelpers.perform_all() refute User.get_cached_by_ap_id(ap_id) end @@ -1132,6 +1134,8 @@ test "it upgrades a user to activitypub" do assert user.info.note_count == 1 {:ok, user} = Transmogrifier.upgrade_user_from_ap_id("https://niu.moe/users/rye") + ObanHelpers.perform_all() + assert user.info.ap_enabled assert user.info.note_count == 1 assert user.follower_address == "https://niu.moe/users/rye/followers" diff --git a/test/web/federator_test.exs b/test/web/federator_test.exs index e0be4342b..9ca341b6d 100644 --- a/test/web/federator_test.exs +++ b/test/web/federator_test.exs @@ -4,7 +4,7 @@ defmodule Pleroma.Web.FederatorTest do alias Pleroma.Instances - alias Pleroma.ObanHelpers + alias Pleroma.Tests.ObanHelpers alias Pleroma.Web.CommonAPI alias Pleroma.Web.Federator alias Pleroma.Workers.Publisher, as: PublisherWorker diff --git a/test/web/twitter_api/util_controller_test.exs b/test/web/twitter_api/util_controller_test.exs index 640579c09..e3f129f72 100644 --- a/test/web/twitter_api/util_controller_test.exs +++ b/test/web/twitter_api/util_controller_test.exs @@ -4,9 +4,11 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do use Pleroma.Web.ConnCase + use Oban.Testing, repo: Pleroma.Repo alias Pleroma.Notification alias Pleroma.Repo + alias Pleroma.Tests.ObanHelpers alias Pleroma.User alias Pleroma.Web.CommonAPI import Pleroma.Factory @@ -50,8 +52,7 @@ test "it imports follow lists from file", %{conn: conn} do {File, [], read!: fn "follow_list.txt" -> "Account address,Show boosts\n#{user2.ap_id},true" - end}, - {PleromaJobQueue, [:passthrough], []} + end} ]) do response = conn @@ -59,15 +60,16 @@ test "it imports follow lists from file", %{conn: conn} do |> post("/api/pleroma/follow_import", %{"list" => %Plug.Upload{path: "follow_list.txt"}}) |> json_response(:ok) - assert called( - PleromaJobQueue.enqueue( - :background, - User, - [:follow_import, user1, [user2.ap_id]] - ) - ) - assert response == "job started" + + assert ObanHelpers.member?( + %{ + "op" => "follow_import", + "follower_id" => user1.id, + "followed_identifiers" => [user2.ap_id] + }, + all_enqueued(worker: Pleroma.Workers.BackgroundWorker) + ) end end @@ -126,8 +128,7 @@ test "it imports blocks users from file", %{conn: conn} do user3 = insert(:user) with_mocks([ - {File, [], read!: fn "blocks_list.txt" -> "#{user2.ap_id} #{user3.ap_id}" end}, - {PleromaJobQueue, [:passthrough], []} + {File, [], read!: fn "blocks_list.txt" -> "#{user2.ap_id} #{user3.ap_id}" end} ]) do response = conn @@ -135,15 +136,16 @@ test "it imports blocks users from file", %{conn: conn} do |> post("/api/pleroma/blocks_import", %{"list" => %Plug.Upload{path: "blocks_list.txt"}}) |> json_response(:ok) - assert called( - PleromaJobQueue.enqueue( - :background, - User, - [:blocks_import, user1, [user2.ap_id, user3.ap_id]] - ) - ) - assert response == "job started" + + assert ObanHelpers.member?( + %{ + "op" => "blocks_import", + "blocker_id" => user1.id, + "blocked_identifiers" => [user2.ap_id, user3.ap_id] + }, + all_enqueued(worker: Pleroma.Workers.BackgroundWorker) + ) end end end @@ -607,6 +609,7 @@ test "it returns HTTP 200", %{conn: conn} do |> json_response(:ok) assert response == %{"status" => "success"} + ObanHelpers.perform_all() user = User.get_cached_by_id(user.id) diff --git a/test/web/websub/websub_test.exs b/test/web/websub/websub_test.exs index b704a558a..414610879 100644 --- a/test/web/websub/websub_test.exs +++ b/test/web/websub/websub_test.exs @@ -6,7 +6,7 @@ defmodule Pleroma.Web.WebsubTest do use Pleroma.DataCase use Oban.Testing, repo: Pleroma.Repo - alias Pleroma.ObanHelpers + alias Pleroma.Tests.ObanHelpers alias Pleroma.Web.Router.Helpers alias Pleroma.Web.Websub alias Pleroma.Web.Websub.WebsubClientSubscription From a180c1360ecdbed76eccf3435bb2c831356746bc Mon Sep 17 00:00:00 2001 From: Ivan Tashkinov Date: Wed, 14 Aug 2019 21:42:21 +0300 Subject: [PATCH 020/400] [#1149] Oban mailer job. Adjusted tests. --- lib/pleroma/application.ex | 1 + lib/pleroma/emails/mailer.ex | 13 ++++++++++++- lib/pleroma/workers/mailer.ex | 9 +++++++++ test/mix/tasks/pleroma.digest_test.exs | 3 +++ .../mastodon_api/mastodon_api_controller_test.exs | 4 ++++ .../web/twitter_api/twitter_api_controller_test.exs | 4 ++++ test/web/twitter_api/twitter_api_test.exs | 2 ++ 7 files changed, 35 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/application.ex b/lib/pleroma/application.ex index 5550a4902..7cf60f44a 100644 --- a/lib/pleroma/application.ex +++ b/lib/pleroma/application.ex @@ -233,6 +233,7 @@ defp hackney_pool_children do defp after_supervisor_start do with digest_config <- Application.get_env(:pleroma, :email_notifications)[:digest], true <- digest_config[:active] do + # TODO: consider replacing with `quantum` scheduler PleromaJobQueue.schedule( digest_config[:schedule], :digest_emails, diff --git a/lib/pleroma/emails/mailer.ex b/lib/pleroma/emails/mailer.ex index 2e4657b7c..bb534f602 100644 --- a/lib/pleroma/emails/mailer.ex +++ b/lib/pleroma/emails/mailer.ex @@ -9,6 +9,8 @@ defmodule Pleroma.Emails.Mailer do The module contains functions to delivery email using Swoosh.Mailer. """ + alias Pleroma.Repo + alias Pleroma.Workers.Mailer, as: MailerWorker alias Swoosh.DeliveryError @otp_app :pleroma @@ -17,9 +19,18 @@ defmodule Pleroma.Emails.Mailer do @spec enabled?() :: boolean() def enabled?, do: Pleroma.Config.get([__MODULE__, :enabled]) + defdelegate worker_args(queue), to: Pleroma.Workers.Helper + @doc "add email to queue" def deliver_async(email, config \\ []) do - PleromaJobQueue.enqueue(:mailer, __MODULE__, [:deliver_async, email, config]) + encoded_email = + email + |> :erlang.term_to_binary() + |> Base.encode64() + + %{"op" => "email", "encoded_email" => encoded_email, "config" => config} + |> MailerWorker.new(worker_args(:mailer)) + |> Repo.insert() end @doc "callback to perform send email from queue" diff --git a/lib/pleroma/workers/mailer.ex b/lib/pleroma/workers/mailer.ex index da7fa6fd5..8bf9952bc 100644 --- a/lib/pleroma/workers/mailer.ex +++ b/lib/pleroma/workers/mailer.ex @@ -11,6 +11,15 @@ defmodule Pleroma.Workers.Mailer do max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default]) @impl Oban.Worker + def perform(%{"op" => "email", "encoded_email" => encoded_email, "config" => config}) do + email = + encoded_email + |> Base.decode64!() + |> :erlang.binary_to_term() + + Pleroma.Emails.Mailer.deliver(email, config) + end + def perform(%{"op" => "digest_email", "user_id" => user_id}) do user = User.get_by_id(user_id) Pleroma.DigestEmailWorker.perform(user) diff --git a/test/mix/tasks/pleroma.digest_test.exs b/test/mix/tasks/pleroma.digest_test.exs index 595f64ed7..5fbeac0d6 100644 --- a/test/mix/tasks/pleroma.digest_test.exs +++ b/test/mix/tasks/pleroma.digest_test.exs @@ -4,6 +4,7 @@ defmodule Mix.Tasks.Pleroma.DigestTest do import Pleroma.Factory import Swoosh.TestAssertions + alias Pleroma.Tests.ObanHelpers alias Pleroma.Web.CommonAPI setup_all do @@ -39,6 +40,8 @@ test "Sends digest to the given user" do :ok = Mix.Tasks.Pleroma.Digest.run(["test", user2.nickname, yesterday_date]) + ObanHelpers.perform_all() + assert_receive {:mix_shell, :info, [message]} assert message =~ "Digest email have been sent" diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index e49c4cc22..be9ff2568 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -11,6 +11,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do alias Pleroma.Object alias Pleroma.Repo alias Pleroma.ScheduledActivity + alias Pleroma.Tests.ObanHelpers alias Pleroma.User alias Pleroma.Web.ActivityPub.ActivityPub alias Pleroma.Web.CommonAPI @@ -3871,6 +3872,7 @@ test "it creates a PasswordResetToken record for user", %{user: user} do end test "it sends an email to user", %{user: user} do + ObanHelpers.perform_all() token_record = Repo.get_by(Pleroma.PasswordResetToken, user_id: user.id) email = Pleroma.Emails.UserEmail.password_reset_email(user, token_record.token) @@ -3934,6 +3936,8 @@ test "resend account confirmation email", %{conn: conn, user: user} do |> post("/api/v1/pleroma/accounts/confirmation_resend?email=#{user.email}") |> json_response(:no_content) + ObanHelpers.perform_all() + email = Pleroma.Emails.UserEmail.account_confirmation_email(user) notify_email = Pleroma.Config.get([:instance, :notify_email]) instance_name = Pleroma.Config.get([:instance, :name]) diff --git a/test/web/twitter_api/twitter_api_controller_test.exs b/test/web/twitter_api/twitter_api_controller_test.exs index 8bb8aa36d..9ac4ff929 100644 --- a/test/web/twitter_api/twitter_api_controller_test.exs +++ b/test/web/twitter_api/twitter_api_controller_test.exs @@ -12,6 +12,7 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do alias Pleroma.Notification alias Pleroma.Object alias Pleroma.Repo + alias Pleroma.Tests.ObanHelpers alias Pleroma.User alias Pleroma.Web.ActivityPub.ActivityPub alias Pleroma.Web.CommonAPI @@ -1099,6 +1100,7 @@ test "it creates a PasswordResetToken record for user", %{user: user} do end test "it sends an email to user", %{user: user} do + ObanHelpers.perform_all() token_record = Repo.get_by(Pleroma.PasswordResetToken, user_id: user.id) email = Pleroma.Emails.UserEmail.password_reset_email(user, token_record.token) @@ -1209,6 +1211,8 @@ test "it sends confirmation email", %{conn: conn, user: user} do |> assign(:user, user) |> post("/api/account/resend_confirmation_email?email=#{user.email}") + ObanHelpers.perform_all() + email = Pleroma.Emails.UserEmail.account_confirmation_email(user) notify_email = Pleroma.Config.get([:instance, :notify_email]) instance_name = Pleroma.Config.get([:instance, :name]) diff --git a/test/web/twitter_api/twitter_api_test.exs b/test/web/twitter_api/twitter_api_test.exs index cbe83852e..bf063a0de 100644 --- a/test/web/twitter_api/twitter_api_test.exs +++ b/test/web/twitter_api/twitter_api_test.exs @@ -7,6 +7,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do alias Pleroma.Activity alias Pleroma.Object alias Pleroma.Repo + alias Pleroma.Tests.ObanHelpers alias Pleroma.User alias Pleroma.UserInviteToken alias Pleroma.Web.ActivityPub.ActivityPub @@ -321,6 +322,7 @@ test "it sends confirmation email if :account_activation_required is specified i } {:ok, user} = TwitterAPI.register_user(data) + ObanHelpers.perform_all() assert user.info.confirmation_pending From 37229af15fe6d540e7b4a0b6e89f548a100d51c7 Mon Sep 17 00:00:00 2001 From: Sachin Joshi Date: Thu, 22 Aug 2019 00:15:00 +0545 Subject: [PATCH 021/400] remove old user create and delete routes for admin --- lib/pleroma/web/router.ex | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index eb3ee03f3..445cf62e2 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -151,10 +151,6 @@ defmodule Pleroma.Web.Router do post("/users/follow", AdminAPIController, :user_follow) post("/users/unfollow", AdminAPIController, :user_unfollow) - # TODO: to be removed at version 1.0 - delete("/user", AdminAPIController, :user_delete) - post("/user", AdminAPIController, :user_create) - delete("/users", AdminAPIController, :user_delete) post("/users", AdminAPIController, :users_create) patch("/users/:nickname/toggle_activation", AdminAPIController, :user_toggle_activation) From 64bfb41c553a45855e86737298185c1395bbb350 Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Thu, 22 Aug 2019 06:57:55 +0300 Subject: [PATCH 022/400] fixed unfollow for relay actor --- .../activity_pub/activity_pub_controller.ex | 14 +++++++++ lib/pleroma/web/activity_pub/relay.ex | 3 +- lib/pleroma/web/router.ex | 3 ++ .../activity_pub_controller_test.exs | 29 +++++++++++++++++++ 4 files changed, 48 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/web/activity_pub/activity_pub_controller.ex b/lib/pleroma/web/activity_pub/activity_pub_controller.ex index 133a726c5..e72ec5500 100644 --- a/lib/pleroma/web/activity_pub/activity_pub_controller.ex +++ b/lib/pleroma/web/activity_pub/activity_pub_controller.ex @@ -104,6 +104,13 @@ def activity(conn, %{"uuid" => uuid}) do end end + # GET /relay/following + def following(%{assigns: %{relay: true}} = conn, _params) do + conn + |> put_resp_header("content-type", "application/activity+json") + |> json(UserView.render("following.json", %{user: Relay.get_actor()})) + end + def following(%{assigns: %{user: for_user}} = conn, %{"nickname" => nickname, "page" => page}) do with %User{} = user <- User.get_cached_by_nickname(nickname), {user, for_user} <- ensure_user_keys_present_and_maybe_refresh_for_user(user, for_user), @@ -131,6 +138,13 @@ def following(%{assigns: %{user: for_user}} = conn, %{"nickname" => nickname}) d end end + # GET /relay/followers + def followers(%{assigns: %{relay: true}} = conn, _params) do + conn + |> put_resp_header("content-type", "application/activity+json") + |> json(UserView.render("followers.json", %{user: Relay.get_actor()})) + end + def followers(%{assigns: %{user: for_user}} = conn, %{"nickname" => nickname, "page" => page}) do with %User{} = user <- User.get_cached_by_nickname(nickname), {user, for_user} <- ensure_user_keys_present_and_maybe_refresh_for_user(user, for_user), diff --git a/lib/pleroma/web/activity_pub/relay.ex b/lib/pleroma/web/activity_pub/relay.ex index 5f18cc64a..905e85cc6 100644 --- a/lib/pleroma/web/activity_pub/relay.ex +++ b/lib/pleroma/web/activity_pub/relay.ex @@ -36,7 +36,8 @@ def follow(target_instance) do def unfollow(target_instance) do with %User{} = local_user <- get_actor(), {:ok, %User{} = target_user} <- User.get_or_fetch_by_ap_id(target_instance), - {:ok, activity} <- ActivityPub.unfollow(local_user, target_user) do + {:ok, activity} <- ActivityPub.unfollow(local_user, target_user), + {:ok, _, _} <- User.unfollow(local_user, target_user) do Logger.info("relay: unfollowed instance: #{target_instance}: id=#{activity.data["id"]}") {:ok, activity} else diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 1eb6f7b9d..469e46f5d 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -687,6 +687,9 @@ defmodule Pleroma.Web.Router do get("/", ActivityPubController, :relay) post("/inbox", ActivityPubController, :inbox) + + get("/following", ActivityPubController, :following, assigns: %{relay: true}) + get("/followers", ActivityPubController, :followers, assigns: %{relay: true}) end scope "/internal/fetch", Pleroma.Web.ActivityPub do diff --git a/test/web/activity_pub/activity_pub_controller_test.exs b/test/web/activity_pub/activity_pub_controller_test.exs index 77f5e39fa..cf71066fd 100644 --- a/test/web/activity_pub/activity_pub_controller_test.exs +++ b/test/web/activity_pub/activity_pub_controller_test.exs @@ -12,6 +12,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do alias Pleroma.Web.ActivityPub.ObjectView alias Pleroma.Web.ActivityPub.UserView alias Pleroma.Web.ActivityPub.Utils + alias Pleroma.Web.ActivityPub.Relay alias Pleroma.Web.CommonAPI setup_all do @@ -593,6 +594,34 @@ test "it increases like count when receiving a like action", %{conn: conn} do end end + describe "/relay/followers" do + test "it returns relay followers", %{conn: conn} do + relay_actor = Relay.get_actor() + user = insert(:user) + User.follow(user, relay_actor) + + result = + conn + |> assign(:relay, true) + |> get("/relay/followers") + |> json_response(200) + + assert result["first"]["orderedItems"] == [user.ap_id] + end + end + + describe "/relay/following" do + test "it returns relay following", %{conn: conn} do + result = + conn + |> assign(:relay, true) + |> get("/relay/following") + |> json_response(200) + + assert result["first"]["orderedItems"] == [] + end + end + describe "/users/:nickname/followers" do test "it returns the followers in a collection", %{conn: conn} do user = insert(:user) From 399ca9133b67725242f76093103e9909e2337e72 Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Thu, 22 Aug 2019 21:32:40 +0300 Subject: [PATCH 023/400] fix test --- lib/pleroma/web/activity_pub/relay.ex | 4 ++-- test/web/activity_pub/activity_pub_controller_test.exs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pleroma/web/activity_pub/relay.ex b/lib/pleroma/web/activity_pub/relay.ex index 905e85cc6..ce3e30874 100644 --- a/lib/pleroma/web/activity_pub/relay.ex +++ b/lib/pleroma/web/activity_pub/relay.ex @@ -36,8 +36,8 @@ def follow(target_instance) do def unfollow(target_instance) do with %User{} = local_user <- get_actor(), {:ok, %User{} = target_user} <- User.get_or_fetch_by_ap_id(target_instance), - {:ok, activity} <- ActivityPub.unfollow(local_user, target_user), - {:ok, _, _} <- User.unfollow(local_user, target_user) do + {:ok, activity} <- ActivityPub.unfollow(local_user, target_user) do + User.unfollow(local_user, target_user) Logger.info("relay: unfollowed instance: #{target_instance}: id=#{activity.data["id"]}") {:ok, activity} else diff --git a/test/web/activity_pub/activity_pub_controller_test.exs b/test/web/activity_pub/activity_pub_controller_test.exs index cf71066fd..5192e734f 100644 --- a/test/web/activity_pub/activity_pub_controller_test.exs +++ b/test/web/activity_pub/activity_pub_controller_test.exs @@ -10,9 +10,9 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do alias Pleroma.Object alias Pleroma.User alias Pleroma.Web.ActivityPub.ObjectView + alias Pleroma.Web.ActivityPub.Relay alias Pleroma.Web.ActivityPub.UserView alias Pleroma.Web.ActivityPub.Utils - alias Pleroma.Web.ActivityPub.Relay alias Pleroma.Web.CommonAPI setup_all do From 8dc6a6b210e56ec1a175a3496466d1f8aa62f128 Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Thu, 22 Aug 2019 22:39:06 +0300 Subject: [PATCH 024/400] fix /inbox for Relay --- lib/pleroma/object/fetcher.ex | 4 +--- lib/pleroma/signature.ex | 6 ++++++ lib/pleroma/web/activity_pub/publisher.ex | 4 +--- lib/pleroma/web/router.ex | 10 +++++++++- 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/lib/pleroma/object/fetcher.ex b/lib/pleroma/object/fetcher.ex index 8d79ddb1f..c1795ae0f 100644 --- a/lib/pleroma/object/fetcher.ex +++ b/lib/pleroma/object/fetcher.ex @@ -117,9 +117,7 @@ defp maybe_date_fetch(headers, date) do def fetch_and_contain_remote_object_from_id(id) when is_binary(id) do Logger.info("Fetching object #{id} via AP") - date = - NaiveDateTime.utc_now() - |> Timex.format!("{WDshort}, {0D} {Mshort} {YYYY} {h24}:{m}:{s} GMT") + date = Pleroma.Signature.signed_date() headers = [{:Accept, "application/activity+json"}] diff --git a/lib/pleroma/signature.ex b/lib/pleroma/signature.ex index 15bf3c317..f20aeb0d5 100644 --- a/lib/pleroma/signature.ex +++ b/lib/pleroma/signature.ex @@ -53,4 +53,10 @@ def sign(%User{} = user, headers) do HTTPSignatures.sign(private_key, user.ap_id <> "#main-key", headers) end end + + def signed_date, do: signed_date(NaiveDateTime.utc_now()) + + def signed_date(%NaiveDateTime{} = date) do + Timex.format!(date, "{WDshort}, {0D} {Mshort} {YYYY} {h24}:{m}:{s} GMT") + end end diff --git a/lib/pleroma/web/activity_pub/publisher.ex b/lib/pleroma/web/activity_pub/publisher.ex index 262529b84..c97405690 100644 --- a/lib/pleroma/web/activity_pub/publisher.ex +++ b/lib/pleroma/web/activity_pub/publisher.ex @@ -50,9 +50,7 @@ def publish_one(%{inbox: inbox, json: json, actor: %User{} = actor, id: id} = pa digest = "SHA-256=" <> (:crypto.hash(:sha256, json) |> Base.encode64()) - date = - NaiveDateTime.utc_now() - |> Timex.format!("{WDshort}, {0D} {Mshort} {YYYY} {h24}:{m}:{s} GMT") + date = Pleroma.Signature.signed_date() signature = Pleroma.Signature.sign(actor, %{ diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 469e46f5d..c2e6e8819 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -133,6 +133,10 @@ defmodule Pleroma.Web.Router do }) end + pipeline :http_signature do + plug(Pleroma.Web.Plugs.HTTPSignaturePlug) + end + scope "/api/pleroma", Pleroma.Web.TwitterAPI do pipe_through(:pleroma_api) @@ -686,7 +690,11 @@ defmodule Pleroma.Web.Router do pipe_through(:ap_service_actor) get("/", ActivityPubController, :relay) - post("/inbox", ActivityPubController, :inbox) + + scope [] do + pipe_through(:http_signature) + post("/inbox", ActivityPubController, :inbox) + end get("/following", ActivityPubController, :following, assigns: %{relay: true}) get("/followers", ActivityPubController, :followers, assigns: %{relay: true}) From c29686309eaf2cdae039ce813755c0e23cdc4a03 Mon Sep 17 00:00:00 2001 From: Ivan Tashkinov Date: Fri, 23 Aug 2019 09:23:10 +0300 Subject: [PATCH 025/400] [#1149] Upgraded `oban` from 0.6.0 to 0.7.1. --- config/config.exs | 1 - lib/pleroma/application.ex | 5 +-- lib/pleroma/workers/background_worker.ex | 42 +++++++++++-------- lib/pleroma/workers/mailer.ex | 6 +-- lib/pleroma/workers/publisher.ex | 6 +-- lib/pleroma/workers/receiver.ex | 6 +-- .../workers/scheduled_activity_worker.ex | 4 +- lib/pleroma/workers/subscriber.ex | 8 ++-- lib/pleroma/workers/transmogrifier.ex | 4 +- lib/pleroma/workers/web_pusher.ex | 4 +- mix.exs | 2 +- mix.lock | 10 ++--- test/support/oban_helpers.ex | 2 +- 13 files changed, 51 insertions(+), 49 deletions(-) diff --git a/config/config.exs b/config/config.exs index 9794997d9..1a6348bcd 100644 --- a/config/config.exs +++ b/config/config.exs @@ -469,7 +469,6 @@ config :pleroma, :workers, retries: [ - compile_time_default: 1, federator_incoming: 5, federator_outgoing: 5 ] diff --git a/lib/pleroma/application.ex b/lib/pleroma/application.ex index 2e2922d28..384b03aa9 100644 --- a/lib/pleroma/application.ex +++ b/lib/pleroma/application.ex @@ -41,10 +41,7 @@ def start(_type, _args) do hackney_pool_children() ++ [ Pleroma.Stats, - %{ - id: Oban, - start: {Oban, :start_link, [Application.get_env(:pleroma, Oban)]} - }, + {Oban, Application.get_env(:pleroma, Oban)}, %{ id: :web_push_init, start: {Task, :start_link, [&Pleroma.Web.Push.init/0]}, diff --git a/lib/pleroma/workers/background_worker.ex b/lib/pleroma/workers/background_worker.ex index 3ab2b6bcc..3c021b9b4 100644 --- a/lib/pleroma/workers/background_worker.ex +++ b/lib/pleroma/workers/background_worker.ex @@ -11,55 +11,61 @@ defmodule Pleroma.Workers.BackgroundWorker do # Note: `max_attempts` is intended to be overridden in `new/1` call use Oban.Worker, queue: "background", - max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default]) + max_attempts: 1 @impl Oban.Worker - def perform(%{"op" => "fetch_initial_posts", "user_id" => user_id}) do + def perform(%{"op" => "fetch_initial_posts", "user_id" => user_id}, _job) do user = User.get_by_id(user_id) User.perform(:fetch_initial_posts, user) end - def perform(%{"op" => "deactivate_user", "user_id" => user_id, "status" => status}) do + def perform(%{"op" => "deactivate_user", "user_id" => user_id, "status" => status}, _job) do user = User.get_by_id(user_id) User.perform(:deactivate_async, user, status) end - def perform(%{"op" => "delete_user", "user_id" => user_id}) do + def perform(%{"op" => "delete_user", "user_id" => user_id}, _job) do user = User.get_by_id(user_id) User.perform(:delete, user) end - def perform(%{ - "op" => "blocks_import", - "blocker_id" => blocker_id, - "blocked_identifiers" => blocked_identifiers - }) do + def perform( + %{ + "op" => "blocks_import", + "blocker_id" => blocker_id, + "blocked_identifiers" => blocked_identifiers + }, + _job + ) do blocker = User.get_by_id(blocker_id) User.perform(:blocks_import, blocker, blocked_identifiers) end - def perform(%{ - "op" => "follow_import", - "follower_id" => follower_id, - "followed_identifiers" => followed_identifiers - }) do + def perform( + %{ + "op" => "follow_import", + "follower_id" => follower_id, + "followed_identifiers" => followed_identifiers + }, + _job + ) do follower = User.get_by_id(follower_id) User.perform(:follow_import, follower, followed_identifiers) end - def perform(%{"op" => "clean_expired_tokens"}) do + def perform(%{"op" => "clean_expired_tokens"}, _job) do CleanWorker.perform(:clean) end - def perform(%{"op" => "media_proxy_preload", "message" => message}) do + def perform(%{"op" => "media_proxy_preload", "message" => message}, _job) do MediaProxyWarmingPolicy.perform(:preload, message) end - def perform(%{"op" => "media_proxy_prefetch", "url" => url}) do + def perform(%{"op" => "media_proxy_prefetch", "url" => url}, _job) do MediaProxyWarmingPolicy.perform(:prefetch, url) end - def perform(%{"op" => "fetch_data_for_activity", "activity_id" => activity_id}) do + def perform(%{"op" => "fetch_data_for_activity", "activity_id" => activity_id}, _job) do activity = Activity.get_by_id(activity_id) Pleroma.Web.RichMedia.Helpers.perform(:fetch, activity) end diff --git a/lib/pleroma/workers/mailer.ex b/lib/pleroma/workers/mailer.ex index 8bf9952bc..1cce2ea03 100644 --- a/lib/pleroma/workers/mailer.ex +++ b/lib/pleroma/workers/mailer.ex @@ -8,10 +8,10 @@ defmodule Pleroma.Workers.Mailer do # Note: `max_attempts` is intended to be overridden in `new/1` call use Oban.Worker, queue: "mailer", - max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default]) + max_attempts: 1 @impl Oban.Worker - def perform(%{"op" => "email", "encoded_email" => encoded_email, "config" => config}) do + def perform(%{"op" => "email", "encoded_email" => encoded_email, "config" => config}, _job) do email = encoded_email |> Base.decode64!() @@ -20,7 +20,7 @@ def perform(%{"op" => "email", "encoded_email" => encoded_email, "config" => con Pleroma.Emails.Mailer.deliver(email, config) end - def perform(%{"op" => "digest_email", "user_id" => user_id}) do + def perform(%{"op" => "digest_email", "user_id" => user_id}, _job) do user = User.get_by_id(user_id) Pleroma.DigestEmailWorker.perform(user) end diff --git a/lib/pleroma/workers/publisher.ex b/lib/pleroma/workers/publisher.ex index c890ffb79..0a9084589 100644 --- a/lib/pleroma/workers/publisher.ex +++ b/lib/pleroma/workers/publisher.ex @@ -9,15 +9,15 @@ defmodule Pleroma.Workers.Publisher do # Note: `max_attempts` is intended to be overridden in `new/1` call use Oban.Worker, queue: "federator_outgoing", - max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default]) + max_attempts: 1 @impl Oban.Worker - def perform(%{"op" => "publish", "activity_id" => activity_id}) do + def perform(%{"op" => "publish", "activity_id" => activity_id}, _job) do activity = Activity.get_by_id(activity_id) Federator.perform(:publish, activity) end - def perform(%{"op" => "publish_one", "module" => module_name, "params" => params}) do + def perform(%{"op" => "publish_one", "module" => module_name, "params" => params}, _job) do Federator.perform(:publish_one, String.to_atom(module_name), params) end end diff --git a/lib/pleroma/workers/receiver.ex b/lib/pleroma/workers/receiver.ex index d3de95716..4ee270d74 100644 --- a/lib/pleroma/workers/receiver.ex +++ b/lib/pleroma/workers/receiver.ex @@ -8,14 +8,14 @@ defmodule Pleroma.Workers.Receiver do # Note: `max_attempts` is intended to be overridden in `new/1` call use Oban.Worker, queue: "federator_incoming", - max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default]) + max_attempts: 1 @impl Oban.Worker - def perform(%{"op" => "incoming_doc", "body" => doc}) do + def perform(%{"op" => "incoming_doc", "body" => doc}, _job) do Federator.perform(:incoming_doc, doc) end - def perform(%{"op" => "incoming_ap_doc", "params" => params}) do + def perform(%{"op" => "incoming_ap_doc", "params" => params}, _job) do Federator.perform(:incoming_ap_doc, params) end end diff --git a/lib/pleroma/workers/scheduled_activity_worker.ex b/lib/pleroma/workers/scheduled_activity_worker.ex index a49834fd8..d9724c78a 100644 --- a/lib/pleroma/workers/scheduled_activity_worker.ex +++ b/lib/pleroma/workers/scheduled_activity_worker.ex @@ -6,10 +6,10 @@ defmodule Pleroma.Workers.ScheduledActivityWorker do # Note: `max_attempts` is intended to be overridden in `new/1` call use Oban.Worker, queue: "scheduled_activities", - max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default]) + max_attempts: 1 @impl Oban.Worker - def perform(%{"op" => "execute", "activity_id" => activity_id}) do + def perform(%{"op" => "execute", "activity_id" => activity_id}, _job) do Pleroma.ScheduledActivityWorker.perform(:execute, activity_id) end end diff --git a/lib/pleroma/workers/subscriber.ex b/lib/pleroma/workers/subscriber.ex index 6af3ad0a1..783c44173 100644 --- a/lib/pleroma/workers/subscriber.ex +++ b/lib/pleroma/workers/subscriber.ex @@ -10,19 +10,19 @@ defmodule Pleroma.Workers.Subscriber do # Note: `max_attempts` is intended to be overridden in `new/1` call use Oban.Worker, queue: "federator_outgoing", - max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default]) + max_attempts: 1 @impl Oban.Worker - def perform(%{"op" => "refresh_subscriptions"}) do + def perform(%{"op" => "refresh_subscriptions"}, _job) do Federator.perform(:refresh_subscriptions) end - def perform(%{"op" => "request_subscription", "websub_id" => websub_id}) do + def perform(%{"op" => "request_subscription", "websub_id" => websub_id}, _job) do websub = Repo.get(WebsubClientSubscription, websub_id) Federator.perform(:request_subscription, websub) end - def perform(%{"op" => "verify_websub", "websub_id" => websub_id}) do + def perform(%{"op" => "verify_websub", "websub_id" => websub_id}, _job) do websub = Repo.get(WebsubClientSubscription, websub_id) Federator.perform(:verify_websub, websub) end diff --git a/lib/pleroma/workers/transmogrifier.ex b/lib/pleroma/workers/transmogrifier.ex index c6b4fab47..e13202c06 100644 --- a/lib/pleroma/workers/transmogrifier.ex +++ b/lib/pleroma/workers/transmogrifier.ex @@ -8,10 +8,10 @@ defmodule Pleroma.Workers.Transmogrifier do # Note: `max_attempts` is intended to be overridden in `new/1` call use Oban.Worker, queue: "transmogrifier", - max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default]) + max_attempts: 1 @impl Oban.Worker - def perform(%{"op" => "user_upgrade", "user_id" => user_id}) do + def perform(%{"op" => "user_upgrade", "user_id" => user_id}, _job) do user = User.get_by_id(user_id) Pleroma.Web.ActivityPub.Transmogrifier.perform(:user_upgrade, user) end diff --git a/lib/pleroma/workers/web_pusher.ex b/lib/pleroma/workers/web_pusher.ex index b99581eb0..7b78bb3ea 100644 --- a/lib/pleroma/workers/web_pusher.ex +++ b/lib/pleroma/workers/web_pusher.ex @@ -9,10 +9,10 @@ defmodule Pleroma.Workers.WebPusher do # Note: `max_attempts` is intended to be overridden in `new/1` call use Oban.Worker, queue: "web_push", - max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default]) + max_attempts: 1 @impl Oban.Worker - def perform(%{"op" => "web_push", "notification_id" => notification_id}) do + def perform(%{"op" => "web_push", "notification_id" => notification_id}, _job) do notification = Repo.get(Notification, notification_id) Pleroma.Web.Push.Impl.perform(notification) end diff --git a/mix.exs b/mix.exs index b651520ed..eb023313d 100644 --- a/mix.exs +++ b/mix.exs @@ -101,7 +101,7 @@ defp deps do {:phoenix_ecto, "~> 4.0"}, {:ecto_sql, "~> 3.1"}, {:postgrex, ">= 0.13.5"}, - {:oban, "~> 0.6"}, + {:oban, "~> 0.7"}, {:gettext, "~> 0.15"}, {:comeonin, "~> 4.1.1"}, {:pbkdf2_elixir, "~> 0.12.3"}, diff --git a/mix.lock b/mix.lock index 52932c9ef..8b8596375 100644 --- a/mix.lock +++ b/mix.lock @@ -17,12 +17,12 @@ "credo": {:hex, :credo, "0.9.3", "76fa3e9e497ab282e0cf64b98a624aa11da702854c52c82db1bf24e54ab7c97a", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:poison, ">= 0.0.0", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm"}, "crontab": {:hex, :crontab, "1.1.7", "b9219f0bdc8678b94143655a8f229716c5810c0636a4489f98c0956137e53985", [:mix], [{:ecto, "~> 1.0 or ~> 2.0 or ~> 3.0", [hex: :ecto, repo: "hexpm", optional: true]}], "hexpm"}, "crypt": {:git, "https://github.com/msantos/crypt", "1f2b58927ab57e72910191a7ebaeff984382a1d3", [ref: "1f2b58927ab57e72910191a7ebaeff984382a1d3"]}, - "db_connection": {:hex, :db_connection, "2.0.6", "bde2f85d047969c5b5800cb8f4b3ed6316c8cb11487afedac4aa5f93fd39abfa", [:mix], [{:connection, "~> 1.0.2", [hex: :connection, repo: "hexpm", optional: false]}], "hexpm"}, + "db_connection": {:hex, :db_connection, "2.1.1", "a51e8a2ee54ef2ae6ec41a668c85787ed40cb8944928c191280fe34c15b76ae5", [:mix], [{:connection, "~> 1.0.2", [hex: :connection, repo: "hexpm", optional: false]}], "hexpm"}, "decimal": {:hex, :decimal, "1.8.0", "ca462e0d885f09a1c5a342dbd7c1dcf27ea63548c65a65e67334f4b61803822e", [:mix], [], "hexpm"}, "deep_merge": {:hex, :deep_merge, "1.0.0", "b4aa1a0d1acac393bdf38b2291af38cb1d4a52806cf7a4906f718e1feb5ee961", [:mix], [], "hexpm"}, "earmark": {:hex, :earmark, "1.3.2", "b840562ea3d67795ffbb5bd88940b1bed0ed9fa32834915125ea7d02e35888a5", [:mix], [], "hexpm"}, - "ecto": {:hex, :ecto, "3.1.4", "69d852da7a9f04ede725855a35ede48d158ca11a404fe94f8b2fb3b2162cd3c9", [:mix], [{:decimal, "~> 1.6", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm"}, - "ecto_sql": {:hex, :ecto_sql, "3.1.3", "2c536139190492d9de33c5fefac7323c5eaaa82e1b9bf93482a14649042f7cd9", [:mix], [{:db_connection, "~> 2.0", [hex: :db_connection, repo: "hexpm", optional: false]}, {:ecto, "~> 3.1.0", [hex: :ecto, repo: "hexpm", optional: false]}, {:mariaex, "~> 0.9.1", [hex: :mariaex, repo: "hexpm", optional: true]}, {:myxql, "~> 0.2.0", [hex: :myxql, repo: "hexpm", optional: true]}, {:postgrex, "~> 0.14.0", [hex: :postgrex, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm"}, + "ecto": {:hex, :ecto, "3.1.7", "fa21d06ef56cdc2fdaa62574e8c3ba34a2751d44ea34c30bc65f0728421043e5", [:mix], [{:decimal, "~> 1.6", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm"}, + "ecto_sql": {:hex, :ecto_sql, "3.1.6", "1e80e30d16138a729c717f73dcb938590bcdb3a4502f3012414d0cbb261045d8", [:mix], [{:db_connection, "~> 2.0", [hex: :db_connection, repo: "hexpm", optional: false]}, {:ecto, "~> 3.1.0", [hex: :ecto, repo: "hexpm", optional: false]}, {:mariaex, "~> 0.9.1", [hex: :mariaex, repo: "hexpm", optional: true]}, {:myxql, "~> 0.2.0", [hex: :myxql, repo: "hexpm", optional: true]}, {:postgrex, "~> 0.14.0 or ~> 0.15.0", [hex: :postgrex, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm"}, "esshd": {:hex, :esshd, "0.1.0", "6f93a2062adb43637edad0ea7357db2702a4b80dd9683482fe00f5134e97f4c1", [:mix], [], "hexpm"}, "eternal": {:hex, :eternal, "1.2.0", "e2a6b6ce3b8c248f7dc31451aefca57e3bdf0e48d73ae5043229380a67614c41", [:mix], [], "hexpm"}, "ex2ms": {:hex, :ex2ms, "1.5.0", "19e27f9212be9a96093fed8cdfbef0a2b56c21237196d26760f11dfcfae58e97", [:mix], [], "hexpm"}, @@ -57,7 +57,7 @@ "mogrify": {:hex, :mogrify, "0.6.1", "de1b527514f2d95a7bbe9642eb556061afb337e220cf97adbf3a4e6438ed70af", [:mix], [], "hexpm"}, "mox": {:hex, :mox, "0.5.1", "f86bb36026aac1e6f924a4b6d024b05e9adbed5c63e8daa069bd66fb3292165b", [:mix], [], "hexpm"}, "nimble_parsec": {:hex, :nimble_parsec, "0.5.0", "90e2eca3d0266e5c53f8fbe0079694740b9c91b6747f2b7e3c5d21966bba8300", [:mix], [], "hexpm"}, - "oban": {:hex, :oban, "0.6.0", "8b9b861355610e703e58a878bc29959f3f0e1b4cd1e90d785cf2bb2498d3b893", [:mix], [{:ecto_sql, "~> 3.1", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:jason, "~> 1.1", [hex: :jason, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.14", [hex: :postgrex, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm"}, + "oban": {:hex, :oban, "0.7.1", "171bdd1b69c1a4a839f8c768f5e962fc22d1de1513d459fb6b8e0cbd34817a9a", [:mix], [{:ecto_sql, "~> 3.1", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:jason, "~> 1.1", [hex: :jason, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.14", [hex: :postgrex, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm"}, "parse_trans": {:hex, :parse_trans, "3.3.0", "09765507a3c7590a784615cfd421d101aec25098d50b89d7aa1d66646bc571c1", [:rebar3], [], "hexpm"}, "pbkdf2_elixir": {:hex, :pbkdf2_elixir, "0.12.3", "6706a148809a29c306062862c803406e88f048277f6e85b68faf73291e820b84", [:mix], [], "hexpm"}, "phoenix": {:hex, :phoenix, "1.4.9", "746d098e10741c334d88143d3c94cab1756435f94387a63441792e66ec0ee974", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 1.1", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}, {:plug, "~> 1.8.1 or ~> 1.9", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 1.0 or ~> 2.0", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm"}, @@ -71,7 +71,7 @@ "plug_crypto": {:hex, :plug_crypto, "1.0.0", "18e49317d3fa343f24620ed22795ec29d4a5e602d52d1513ccea0b07d8ea7d4d", [:mix], [], "hexpm"}, "plug_static_index_html": {:hex, :plug_static_index_html, "1.0.0", "840123d4d3975585133485ea86af73cb2600afd7f2a976f9f5fd8b3808e636a0", [:mix], [{:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm"}, "poison": {:hex, :poison, "3.1.0", "d9eb636610e096f86f25d9a46f35a9facac35609a7591b3be3326e99a0484665", [:mix], [], "hexpm"}, - "postgrex": {:hex, :postgrex, "0.14.3", "5754dee2fdf6e9e508cbf49ab138df964278700b764177e8f3871e658b345a1e", [:mix], [{:connection, "~> 1.0", [hex: :connection, repo: "hexpm", optional: false]}, {:db_connection, "~> 2.0", [hex: :db_connection, repo: "hexpm", optional: false]}, {:decimal, "~> 1.5", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm"}, + "postgrex": {:hex, :postgrex, "0.15.0", "dd5349161019caeea93efa42f9b22f9d79995c3a86bdffb796427b4c9863b0f0", [:mix], [{:connection, "~> 1.0", [hex: :connection, repo: "hexpm", optional: false]}, {:db_connection, "~> 2.1", [hex: :db_connection, repo: "hexpm", optional: false]}, {:decimal, "~> 1.5", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm"}, "prometheus": {:hex, :prometheus, "4.4.1", "1e96073b3ed7788053768fea779cbc896ddc3bdd9ba60687f2ad50b252ac87d6", [:mix, :rebar3], [], "hexpm"}, "prometheus_ecto": {:hex, :prometheus_ecto, "1.4.1", "6c768ea9654de871e5b32fab2eac348467b3021604ebebbcbd8bcbe806a65ed5", [:mix], [{:ecto, "~> 2.0 or ~> 3.0", [hex: :ecto, repo: "hexpm", optional: false]}, {:prometheus_ex, "~> 1.1 or ~> 2.0 or ~> 3.0", [hex: :prometheus_ex, repo: "hexpm", optional: false]}], "hexpm"}, "prometheus_ex": {:hex, :prometheus_ex, "3.0.5", "fa58cfd983487fc5ead331e9a3e0aa622c67232b3ec71710ced122c4c453a02f", [:mix], [{:prometheus, "~> 4.0", [hex: :prometheus, repo: "hexpm", optional: false]}], "hexpm"}, diff --git a/test/support/oban_helpers.ex b/test/support/oban_helpers.ex index d379c9ec7..989770926 100644 --- a/test/support/oban_helpers.ex +++ b/test/support/oban_helpers.ex @@ -16,7 +16,7 @@ def perform_all do end def perform(%Oban.Job{} = job) do - res = apply(String.to_existing_atom("Elixir." <> job.worker), :perform, [job]) + res = apply(String.to_existing_atom("Elixir." <> job.worker), :perform, [job.args, job]) Repo.delete(job) res end From c056736daaedb2a08557ee6c6a9bcb6bf44110ca Mon Sep 17 00:00:00 2001 From: Ivan Tashkinov Date: Fri, 23 Aug 2019 16:11:39 +0300 Subject: [PATCH 026/400] [#1149] Publisher worker fix (atomized `params` keys). --- lib/pleroma/workers/publisher.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pleroma/workers/publisher.ex b/lib/pleroma/workers/publisher.ex index 0a9084589..00fae99c7 100644 --- a/lib/pleroma/workers/publisher.ex +++ b/lib/pleroma/workers/publisher.ex @@ -18,6 +18,7 @@ def perform(%{"op" => "publish", "activity_id" => activity_id}, _job) do end def perform(%{"op" => "publish_one", "module" => module_name, "params" => params}, _job) do + params = Map.new(params, fn {k, v} -> {String.to_atom(k), v} end) Federator.perform(:publish_one, String.to_atom(module_name), params) end end From 581123f8bb703023cb652267a1fc34292f862852 Mon Sep 17 00:00:00 2001 From: Ivan Tashkinov Date: Fri, 23 Aug 2019 18:28:23 +0300 Subject: [PATCH 027/400] [#1149] Introduced `quantum` job scheduler. Documentation & config changes. --- CHANGELOG.md | 2 ++ config/config.exs | 40 +++++++++++++++++--------- config/test.exs | 2 -- docs/config.md | 15 ++++++---- lib/pleroma/application.ex | 19 ++---------- lib/pleroma/scheduler.ex | 7 +++++ lib/pleroma/web/federator/federator.ex | 8 +----- mix.exs | 2 +- mix.lock | 6 +++- 9 files changed, 54 insertions(+), 47 deletions(-) create mode 100644 lib/pleroma/scheduler.ex diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b0f4f40e..6dc19e79f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Mastodon API: Unsubscribe followers when they unfollow a user - AdminAPI: Add "godmode" while fetching user statuses (i.e. admin can see private statuses) - Improve digest email template +- Replaced [pleroma_job_queue](https://git.pleroma.social/pleroma/pleroma_job_queue) with [Oban](https://github.com/sorentwo/oban) +- Introduced [quantum](https://github.com/quantum-elixir/quantum-core) job scheduler ### Fixed - Not being able to pin unlisted posts diff --git a/config/config.exs b/config/config.exs index 1a6348bcd..43d114d70 100644 --- a/config/config.exs +++ b/config/config.exs @@ -51,6 +51,24 @@ telemetry_event: [Pleroma.Repo.Instrumenter], migration_lock: nil +scheduled_jobs = + with digest_config <- Application.get_env(:pleroma, :email_notifications)[:digest], + true <- digest_config[:active] do + [{digest_config[:schedule], {Pleroma.DigestEmailWorker, :perform, []}}] + else + _ -> [] + end + +scheduled_jobs = + scheduled_jobs ++ + [{"0 */6 * * * *", {Pleroma.Web.Websub, :refresh_subscriptions, []}}] + +config :pleroma, Pleroma.Scheduler, + global: true, + overlap: true, + timezone: :utc, + jobs: scheduled_jobs + config :pleroma, Pleroma.Captcha, enabled: false, seconds_valid: 60, @@ -449,23 +467,19 @@ "web" ] -job_queues = [ - federator_incoming: 50, - federator_outgoing: 50, - web_push: 50, - mailer: 10, - transmogrifier: 20, - scheduled_activities: 10, - background: 5 -] - -config :pleroma_job_queue, :queues, job_queues - config :pleroma, Oban, repo: Pleroma.Repo, verbose: false, prune: {:maxage, 60 * 60 * 24 * 7}, - queues: job_queues + queues: [ + federator_incoming: 50, + federator_outgoing: 50, + web_push: 50, + mailer: 10, + transmogrifier: 20, + scheduled_activities: 10, + background: 5 + ] config :pleroma, :workers, retries: [ diff --git a/config/test.exs b/config/test.exs index a0fa67516..62f2a04d2 100644 --- a/config/test.exs +++ b/config/test.exs @@ -61,8 +61,6 @@ config :web_push_encryption, :http_client, Pleroma.Web.WebPushHttpClientMock -config :pleroma_job_queue, disabled: true - config :pleroma, Oban, queues: false, prune: :disabled diff --git a/docs/config.md b/docs/config.md index ae8afad89..81923c640 100644 --- a/docs/config.md +++ b/docs/config.md @@ -400,9 +400,9 @@ You can then do curl "http://localhost:4000/api/pleroma/admin/invite_token?admin_token=somerandomtoken" ``` -## :pleroma_job_queue +## Oban -[Pleroma Job Queue](https://git.pleroma.social/pleroma/pleroma_job_queue) configuration: a list of queues with maximum concurrent jobs. +[Oban](https://github.com/sorentwo/oban) asynchronous job processor configuration. Pleroma has the following queues: @@ -416,12 +416,15 @@ Pleroma has the following queues: Example: ```elixir -config :pleroma_job_queue, :queues, - federator_incoming: 50, - federator_outgoing: 50 +config :pleroma, Oban, + repo: Pleroma.Repo, + queues: [ + federator_incoming: 50, + federator_outgoing: 50 + ] ``` -This config contains two queues: `federator_incoming` and `federator_outgoing`. Both have the `max_jobs` set to `50`. +This config contains two queues: `federator_incoming` and `federator_outgoing`. Both have the number of max concurrent jobs set to `50`. ## Pleroma.Web.Metadata * `providers`: a list of metadata providers to enable. Providers available: diff --git a/lib/pleroma/application.ex b/lib/pleroma/application.ex index 384b03aa9..ce2d3ab59 100644 --- a/lib/pleroma/application.ex +++ b/lib/pleroma/application.ex @@ -31,6 +31,7 @@ def start(_type, _args) do children = [ Pleroma.Repo, + Pleroma.Scheduler, Pleroma.Config.TransferTask, Pleroma.Emoji, Pleroma.Captcha, @@ -69,9 +70,7 @@ def start(_type, _args) do # See http://elixir-lang.org/docs/stable/elixir/Supervisor.html # for other strategies and supported options opts = [strategy: :one_for_one, name: Pleroma.Supervisor] - result = Supervisor.start_link(children, opts) - :ok = after_supervisor_start() - result + Supervisor.start_link(children, opts) end defp setup_instrumenters do @@ -162,18 +161,4 @@ defp hackney_pool_children do :hackney_pool.child_spec(pool, options) end end - - defp after_supervisor_start do - with digest_config <- Application.get_env(:pleroma, :email_notifications)[:digest], - true <- digest_config[:active] do - # TODO: consider replacing with `quantum` scheduler - PleromaJobQueue.schedule( - digest_config[:schedule], - :digest_emails, - Pleroma.DigestEmailWorker - ) - end - - :ok - end end diff --git a/lib/pleroma/scheduler.ex b/lib/pleroma/scheduler.ex new file mode 100644 index 000000000..d84cd99ad --- /dev/null +++ b/lib/pleroma/scheduler.ex @@ -0,0 +1,7 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Scheduler do + use Quantum.Scheduler, otp_app: :pleroma +end diff --git a/lib/pleroma/web/federator/federator.ex b/lib/pleroma/web/federator/federator.ex index d85fe824f..cf7e50fee 100644 --- a/lib/pleroma/web/federator/federator.ex +++ b/lib/pleroma/web/federator/federator.ex @@ -21,7 +21,7 @@ defmodule Pleroma.Web.Federator do defdelegate worker_args(queue), to: Pleroma.Workers.Helper def init do - # 1 minute + # To do: consider removing this call in favor of scheduled execution (`quantum`-based) refresh_subscriptions(schedule_in: 60) end @@ -146,12 +146,6 @@ def perform(:verify_websub, websub) do def perform(:refresh_subscriptions) do Logger.debug("Federator running refresh subscriptions") Websub.refresh_subscriptions() - - spawn(fn -> - # 6 hours - Process.sleep(1000 * 60 * 60 * 6) - refresh_subscriptions() - end) end def ap_enabled_actor(id) do diff --git a/mix.exs b/mix.exs index eb023313d..9d8ded1ff 100644 --- a/mix.exs +++ b/mix.exs @@ -102,6 +102,7 @@ defp deps do {:ecto_sql, "~> 3.1"}, {:postgrex, ">= 0.13.5"}, {:oban, "~> 0.7"}, + {:quantum, "~> 2.3"}, {:gettext, "~> 0.15"}, {:comeonin, "~> 4.1.1"}, {:pbkdf2_elixir, "~> 0.12.3"}, @@ -142,7 +143,6 @@ defp deps do {:http_signatures, git: "https://git.pleroma.social/pleroma/http_signatures.git", ref: "293d77bb6f4a67ac8bde1428735c3b42f22cbb30"}, - {:pleroma_job_queue, "~> 0.3"}, {:telemetry, "~> 0.3"}, {:prometheus_ex, "~> 3.0"}, {:prometheus_plugs, "~> 1.1"}, diff --git a/mix.lock b/mix.lock index 8b8596375..6ebc66271 100644 --- a/mix.lock +++ b/mix.lock @@ -36,6 +36,8 @@ "excoveralls": {:hex, :excoveralls, "0.11.1", "dd677fbdd49114fdbdbf445540ec735808250d56b011077798316505064edb2c", [:mix], [{:hackney, "~> 1.0", [hex: :hackney, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm"}, "floki": {:hex, :floki, "0.20.4", "be42ac911fece24b4c72f3b5846774b6e61b83fe685c2fc9d62093277fb3bc86", [:mix], [{:html_entities, "~> 0.4.0", [hex: :html_entities, repo: "hexpm", optional: false]}, {:mochiweb, "~> 2.15", [hex: :mochiweb, repo: "hexpm", optional: false]}], "hexpm"}, "gen_smtp": {:hex, :gen_smtp, "0.14.0", "39846a03522456077c6429b4badfd1d55e5e7d0fdfb65e935b7c5e38549d9202", [:rebar3], [], "hexpm"}, + "gen_stage": {:hex, :gen_stage, "0.14.2", "6a2a578a510c5bfca8a45e6b27552f613b41cf584b58210f017088d3d17d0b14", [:mix], [], "hexpm"}, + "gen_state_machine": {:hex, :gen_state_machine, "2.0.5", "9ac15ec6e66acac994cc442dcc2c6f9796cf380ec4b08267223014be1c728a95", [:mix], [], "hexpm"}, "gettext": {:hex, :gettext, "0.17.0", "abe21542c831887a2b16f4c94556db9c421ab301aee417b7c4fbde7fbdbe01ec", [:mix], [], "hexpm"}, "hackney": {:hex, :hackney, "1.15.1", "9f8f471c844b8ce395f7b6d8398139e26ddca9ebc171a8b91342ee15a19963f4", [:rebar3], [{:certifi, "2.5.1", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "6.0.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "1.0.1", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~>1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "1.1.4", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}], "hexpm"}, "html_entities": {:hex, :html_entities, "0.4.0", "f2fee876858cf6aaa9db608820a3209e45a087c5177332799592142b50e89a6b", [:mix], [], "hexpm"}, @@ -46,6 +48,7 @@ "jason": {:hex, :jason, "1.1.2", "b03dedea67a99223a2eaf9f1264ce37154564de899fd3d8b9a21b1a6fd64afe7", [:mix], [{:decimal, "~> 1.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm"}, "joken": {:hex, :joken, "2.0.1", "ec9ab31bf660f343380da033b3316855197c8d4c6ef597fa3fcb451b326beb14", [:mix], [{:jose, "~> 1.9", [hex: :jose, repo: "hexpm", optional: false]}], "hexpm"}, "jose": {:hex, :jose, "1.9.0", "4167c5f6d06ffaebffd15cdb8da61a108445ef5e85ab8f5a7ad926fdf3ada154", [:mix, :rebar3], [{:base64url, "~> 0.0.1", [hex: :base64url, repo: "hexpm", optional: false]}], "hexpm"}, + "libring": {:hex, :libring, "1.4.0", "41246ba2f3fbc76b3971f6bce83119dfec1eee17e977a48d8a9cfaaf58c2a8d6", [:mix], [], "hexpm"}, "makeup": {:hex, :makeup, "0.8.0", "9cf32aea71c7fe0a4b2e9246c2c4978f9070257e5c9ce6d4a28ec450a839b55f", [:mix], [{:nimble_parsec, "~> 0.5.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm"}, "makeup_elixir": {:hex, :makeup_elixir, "0.13.0", "be7a477997dcac2e48a9d695ec730b2d22418292675c75aa2d34ba0909dcdeda", [:mix], [{:makeup, "~> 0.8", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm"}, "meck": {:hex, :meck, "0.8.13", "ffedb39f99b0b99703b8601c6f17c7f76313ee12de6b646e671e3188401f7866", [:rebar3], [], "hexpm"}, @@ -65,7 +68,6 @@ "phoenix_html": {:hex, :phoenix_html, "2.13.1", "fa8f034b5328e2dfa0e4131b5569379003f34bc1fafdaa84985b0b9d2f12e68b", [:mix], [{:plug, "~> 1.5", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm"}, "phoenix_pubsub": {:hex, :phoenix_pubsub, "1.1.2", "496c303bdf1b2e98a9d26e89af5bba3ab487ba3a3735f74bf1f4064d2a845a3e", [:mix], [], "hexpm"}, "phoenix_swoosh": {:hex, :phoenix_swoosh, "0.2.0", "a7e0b32077cd6d2323ae15198839b05d9caddfa20663fd85787479e81f89520e", [:mix], [{:phoenix, "~> 1.0", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.2", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:swoosh, "~> 0.1", [hex: :swoosh, repo: "hexpm", optional: false]}], "hexpm"}, - "pleroma_job_queue": {:hex, :pleroma_job_queue, "0.3.0", "b84538d621f0c3d6fcc1cff9d5648d3faaf873b8b21b94e6503428a07a48ec47", [:mix], [{:crontab, "~> 1.1", [hex: :crontab, repo: "hexpm", optional: false]}], "hexpm"}, "plug": {:hex, :plug, "1.8.2", "0bcce1daa420f189a6491f3940cc77ea7fb1919761175c9c3b59800d897440fc", [:mix], [{:mime, "~> 1.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_crypto, "~> 1.0", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4", [hex: :telemetry, repo: "hexpm", optional: true]}], "hexpm"}, "plug_cowboy": {:hex, :plug_cowboy, "2.1.0", "b75768153c3a8a9e8039d4b25bb9b14efbc58e9c4a6e6a270abff1cd30cbe320", [:mix], [{:cowboy, "~> 2.5", [hex: :cowboy, repo: "hexpm", optional: false]}, {:plug, "~> 1.7", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm"}, "plug_crypto": {:hex, :plug_crypto, "1.0.0", "18e49317d3fa343f24620ed22795ec29d4a5e602d52d1513ccea0b07d8ea7d4d", [:mix], [], "hexpm"}, @@ -78,9 +80,11 @@ "prometheus_phoenix": {:hex, :prometheus_phoenix, "1.3.0", "c4b527e0b3a9ef1af26bdcfbfad3998f37795b9185d475ca610fe4388fdd3bb5", [:mix], [{:phoenix, "~> 1.4", [hex: :phoenix, repo: "hexpm", optional: false]}, {:prometheus_ex, "~> 1.3 or ~> 2.0 or ~> 3.0", [hex: :prometheus_ex, repo: "hexpm", optional: false]}], "hexpm"}, "prometheus_plugs": {:hex, :prometheus_plugs, "1.1.5", "25933d48f8af3a5941dd7b621c889749894d8a1082a6ff7c67cc99dec26377c5", [:mix], [{:accept, "~> 0.1", [hex: :accept, repo: "hexpm", optional: false]}, {:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: false]}, {:prometheus_ex, "~> 1.1 or ~> 2.0 or ~> 3.0", [hex: :prometheus_ex, repo: "hexpm", optional: false]}, {:prometheus_process_collector, "~> 1.1", [hex: :prometheus_process_collector, repo: "hexpm", optional: true]}], "hexpm"}, "quack": {:hex, :quack, "0.1.1", "cca7b4da1a233757fdb44b3334fce80c94785b3ad5a602053b7a002b5a8967bf", [:mix], [{:poison, ">= 1.0.0", [hex: :poison, repo: "hexpm", optional: false]}, {:tesla, "~> 1.2.0", [hex: :tesla, repo: "hexpm", optional: false]}], "hexpm"}, + "quantum": {:hex, :quantum, "2.3.4", "72a0e8855e2adc101459eac8454787cb74ab4169de6ca50f670e72142d4960e9", [:mix], [{:calendar, "~> 0.17", [hex: :calendar, repo: "hexpm", optional: true]}, {:crontab, "~> 1.1", [hex: :crontab, repo: "hexpm", optional: false]}, {:gen_stage, "~> 0.12", [hex: :gen_stage, repo: "hexpm", optional: false]}, {:swarm, "~> 3.3", [hex: :swarm, repo: "hexpm", optional: false]}, {:timex, "~> 3.1", [hex: :timex, repo: "hexpm", optional: true]}], "hexpm"}, "ranch": {:hex, :ranch, "1.7.1", "6b1fab51b49196860b733a49c07604465a47bdb78aa10c1c16a3d199f7f8c881", [:rebar3], [], "hexpm"}, "recon": {:git, "https://github.com/ferd/recon.git", "75d70c7c08926d2f24f1ee6de14ee50fe8a52763", [tag: "2.4.0"]}, "ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.4", "f0eafff810d2041e93f915ef59899c923f4568f4585904d010387ed74988e77b", [:make, :mix, :rebar3], [], "hexpm"}, + "swarm": {:hex, :swarm, "3.4.0", "64f8b30055d74640d2186c66354b33b999438692a91be275bb89cdc7e401f448", [:mix], [{:gen_state_machine, "~> 2.0", [hex: :gen_state_machine, repo: "hexpm", optional: false]}, {:libring, "~> 1.0", [hex: :libring, repo: "hexpm", optional: false]}], "hexpm"}, "sweet_xml": {:hex, :sweet_xml, "0.6.6", "fc3e91ec5dd7c787b6195757fbcf0abc670cee1e4172687b45183032221b66b8", [:mix], [], "hexpm"}, "swoosh": {:hex, :swoosh, "0.23.2", "7dda95ff0bf54a2298328d6899c74dae1223777b43563ccebebb4b5d2b61df38", [:mix], [{:cowboy, "~> 1.0.1 or ~> 1.1 or ~> 2.4", [hex: :cowboy, repo: "hexpm", optional: true]}, {:gen_smtp, "~> 0.13", [hex: :gen_smtp, repo: "hexpm", optional: true]}, {:hackney, "~> 1.9", [hex: :hackney, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mail, "~> 0.2", [hex: :mail, repo: "hexpm", optional: true]}, {:mime, "~> 1.1", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_cowboy, ">= 1.0.0", [hex: :plug_cowboy, repo: "hexpm", optional: true]}], "hexpm"}, "syslog": {:git, "https://github.com/Vagabond/erlang-syslog.git", "4a6c6f2c996483e86c1320e9553f91d337bcb6aa", [tag: "1.0.5"]}, From 71700ea6d4104ecd2cc0afb0ac103e722b30fbb5 Mon Sep 17 00:00:00 2001 From: Ivan Tashkinov Date: Sat, 24 Aug 2019 09:27:32 +0300 Subject: [PATCH 028/400] [#1149] Updated docs & tests. --- docs/config.md | 6 ++++++ test/web/admin_api/admin_api_controller_test.exs | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/config.md b/docs/config.md index 81923c640..5b2c3a022 100644 --- a/docs/config.md +++ b/docs/config.md @@ -426,6 +426,12 @@ config :pleroma, Oban, This config contains two queues: `federator_incoming` and `federator_outgoing`. Both have the number of max concurrent jobs set to `50`. +## :workers + +Includes custom worker options not interpretable directly by `Oban`. + +* `retries` — keyword lists where keys are `Oban` queues (see above) and values are numbers of max attempts for failed jobs. + ## Pleroma.Web.Metadata * `providers`: a list of metadata providers to enable. Providers available: * Pleroma.Web.Metadata.Providers.OpenGraph diff --git a/test/web/admin_api/admin_api_controller_test.exs b/test/web/admin_api/admin_api_controller_test.exs index 844cd0732..a867ac998 100644 --- a/test/web/admin_api/admin_api_controller_test.exs +++ b/test/web/admin_api/admin_api_controller_test.exs @@ -1861,7 +1861,7 @@ test "queues key as atom", %{conn: conn} do post(conn, "/api/pleroma/admin/config", %{ configs: [ %{ - "group" => "pleroma_job_queue", + "group" => "oban", "key" => ":queues", "value" => [ %{"tuple" => [":federator_incoming", 50]}, @@ -1879,7 +1879,7 @@ test "queues key as atom", %{conn: conn} do assert json_response(conn, 200) == %{ "configs" => [ %{ - "group" => "pleroma_job_queue", + "group" => "oban", "key" => ":queues", "value" => [ %{"tuple" => [":federator_incoming", 50]}, From 73bcbf4fa3bcac7e3ef04049ae6e5768baa6b1d8 Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Fri, 23 Aug 2019 21:17:14 +0300 Subject: [PATCH 029/400] add tests --- test/signature_test.exs | 14 ++++++++++++++ test/tasks/relay_test.exs | 4 +++- test/web/activity_pub/relay_test.exs | 3 +++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/test/signature_test.exs b/test/signature_test.exs index 26337eaf9..d5bf63d7d 100644 --- a/test/signature_test.exs +++ b/test/signature_test.exs @@ -8,6 +8,7 @@ defmodule Pleroma.SignatureTest do import ExUnit.CaptureLog import Pleroma.Factory import Tesla.Mock + import Mock alias Pleroma.Signature @@ -114,4 +115,17 @@ test "it properly deduces the actor id for mastodon and pleroma" do "https://example.com/users/1234" end end + + describe "signed_date" do + test "it returns formatted current date" do + with_mock(NaiveDateTime, utc_now: fn -> ~N[2019-08-23 18:11:24.822233] end) do + assert Signature.signed_date() == "Fri, 23 Aug 2019 18:11:24 GMT" + end + end + + test "it returns formatted date" do + assert Signature.signed_date(~N[2019-08-23 08:11:24.822233]) == + "Fri, 23 Aug 2019 08:11:24 GMT" + end + end end diff --git a/test/tasks/relay_test.exs b/test/tasks/relay_test.exs index 0d341c8d6..7bde56606 100644 --- a/test/tasks/relay_test.exs +++ b/test/tasks/relay_test.exs @@ -50,7 +50,8 @@ test "relay is unfollowed" do %User{ap_id: follower_id} = local_user = Relay.get_actor() target_user = User.get_cached_by_ap_id(target_instance) follow_activity = Utils.fetch_latest_follow(local_user, target_user) - + User.follow(local_user, target_user) + assert "#{target_instance}/followers" in refresh_record(local_user).following Mix.Tasks.Pleroma.Relay.run(["unfollow", target_instance]) cancelled_activity = Activity.get_by_ap_id(follow_activity.data["id"]) @@ -67,6 +68,7 @@ test "relay is unfollowed" do assert undo_activity.data["type"] == "Undo" assert undo_activity.data["actor"] == local_user.ap_id assert undo_activity.data["object"] == cancelled_activity.data + refute "#{target_instance}/followers" in refresh_record(local_user).following end end diff --git a/test/web/activity_pub/relay_test.exs b/test/web/activity_pub/relay_test.exs index e10b808f7..aeef91cda 100644 --- a/test/web/activity_pub/relay_test.exs +++ b/test/web/activity_pub/relay_test.exs @@ -43,12 +43,15 @@ test "returns activity" do user = insert(:user) service_actor = Relay.get_actor() ActivityPub.follow(service_actor, user) + Pleroma.User.follow(service_actor, user) + assert "#{user.ap_id}/followers" in refresh_record(service_actor).following assert {:ok, %Activity{} = activity} = Relay.unfollow(user.ap_id) assert activity.actor == "#{Pleroma.Web.Endpoint.url()}/relay" assert user.ap_id in activity.recipients assert activity.data["type"] == "Undo" assert activity.data["actor"] == service_actor.ap_id assert activity.data["to"] == [user.ap_id] + refute "#{user.ap_id}/followers" in refresh_record(service_actor).following end end From ef9930ed8050a309f2d95df8f0504de2b1da4677 Mon Sep 17 00:00:00 2001 From: ultem Date: Sat, 24 Aug 2019 10:16:27 +0000 Subject: [PATCH 030/400] Minor corrections and clarification for Alpine standard v.3.10 --- docs/installation/alpine_linux_en.md | 33 +++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/docs/installation/alpine_linux_en.md b/docs/installation/alpine_linux_en.md index 1f300f353..c77618936 100644 --- a/docs/installation/alpine_linux_en.md +++ b/docs/installation/alpine_linux_en.md @@ -1,7 +1,9 @@ # Installing on Alpine Linux ## Installation -This guide is a step-by-step installation guide for Alpine Linux. It also assumes that you have administrative rights, either as root or a user with [sudo permissions](https://www.linode.com/docs/tools-reference/custom-kernels-distros/install-alpine-linux-on-your-linode/#configuration). If you want to run this guide with root, ignore the `sudo` at the beginning of the lines, unless it calls a user like `sudo -Hu pleroma`; in this case, use `su -l -s $SHELL -c 'command'` instead. +This guide is a step-by-step installation guide for Alpine Linux. The instructions were verified against Alpine v.3.10 standard image. You might miss additional dependencies if you use `netboot` instead. + +It assumes that you have administrative rights, either as root or a user with [sudo permissions](https://www.linode.com/docs/tools-reference/custom-kernels-distros/install-alpine-linux-on-your-linode/#configuration). If you want to run this guide with root, ignore the `sudo` at the beginning of the lines, unless it calls a user like `sudo -Hu pleroma`; in this case, use `su -l -s $SHELL -c 'command'` instead. ### Required packages @@ -20,12 +22,13 @@ This guide is a step-by-step installation guide for Alpine Linux. It also assume ### Prepare the system -* First make sure to have the community repository enabled: +* The community repository must be enabled in `/etc/apk/repositories`. Depending on which version and mirror you use this looks like `http://alpine.42.fr/v3.10/community`. If you autogenerated the mirror during installation: ```shell -echo "https://nl.alpinelinux.org/alpine/latest-stable/community" | sudo tee -a /etc/apk/repository +awk 'NR==2' /etc/apk/repositories | sed 's/main/community/' | tee -a /etc/apk/repositories ``` + * Then update the system, if not already done: ```shell @@ -77,7 +80,8 @@ sudo rc-update add postgresql * Add a new system user for the Pleroma service: ```shell -sudo adduser -S -s /bin/false -h /opt/pleroma -H pleroma +sudo addgroup pleroma +sudo adduser -S -s /bin/false -h /opt/pleroma -H -G pleroma pleroma ``` **Note**: To execute a single command as the Pleroma system user, use `sudo -Hu pleroma command`. You can also switch to a shell by using `sudo -Hu pleroma $SHELL`. If you don’t have and want `sudo` on your system, you can use `su` as root user (UID 0) for a single command by using `su -l pleroma -s $SHELL -c 'command'` and `su -l pleroma -s $SHELL` for starting a shell. @@ -164,7 +168,26 @@ If that doesn’t work, make sure, that nginx is not already running. If it stil sudo cp /opt/pleroma/installation/pleroma.nginx /etc/nginx/conf.d/pleroma.conf ``` -* Before starting nginx edit the configuration and change it to your needs (e.g. change servername, change cert paths) +* Before starting nginx edit the configuration and change it to your needs. You must change change `server_name` and the paths to the certificates. You can use `nano` (install with `apk add nano` if missing). + +``` +server { + server_name your.domain; + listen 80; + ... +} + +server { + server_name your.domain; + listen 443 ssl http2; + ... + ssl_trusted_certificate /etc/letsencrypt/live/your.domain/chain.pem; + ssl_certificate /etc/letsencrypt/live/your.domain/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/your.domain/privkey.pem; + ... +} +``` + * Enable and start nginx: ```shell From 6062017493bd8c8749fcbe590121d20ef94df44f Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Sat, 24 Aug 2019 17:17:17 +0300 Subject: [PATCH 031/400] put_resp_header("content-type", "application/activity+json") -> put_resp_content_type("application/activity+json") --- .../activity_pub/activity_pub_controller.ex | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/lib/pleroma/web/activity_pub/activity_pub_controller.ex b/lib/pleroma/web/activity_pub/activity_pub_controller.ex index e72ec5500..ed801a7ae 100644 --- a/lib/pleroma/web/activity_pub/activity_pub_controller.ex +++ b/lib/pleroma/web/activity_pub/activity_pub_controller.ex @@ -41,7 +41,7 @@ def user(conn, %{"nickname" => nickname}) do with %User{} = user <- User.get_cached_by_nickname(nickname), {:ok, user} <- User.ensure_keys_present(user) do conn - |> put_resp_header("content-type", "application/activity+json") + |> put_resp_content_type("application/activity+json") |> json(UserView.render("user.json", %{user: user})) else nil -> {:error, :not_found} @@ -53,7 +53,7 @@ def object(conn, %{"uuid" => uuid}) do %Object{} = object <- Object.get_cached_by_ap_id(ap_id), {_, true} <- {:public?, Visibility.is_public?(object)} do conn - |> put_resp_header("content-type", "application/activity+json") + |> put_resp_content_type("application/activity+json") |> json(ObjectView.render("object.json", %{object: object})) else {:public?, false} -> @@ -69,7 +69,7 @@ def object_likes(conn, %{"uuid" => uuid, "page" => page}) do {page, _} = Integer.parse(page) conn - |> put_resp_header("content-type", "application/activity+json") + |> put_resp_content_type("application/activity+json") |> json(ObjectView.render("likes.json", ap_id, likes, page)) else {:public?, false} -> @@ -83,7 +83,7 @@ def object_likes(conn, %{"uuid" => uuid}) do {_, true} <- {:public?, Visibility.is_public?(object)}, likes <- Utils.get_object_likes(object) do conn - |> put_resp_header("content-type", "application/activity+json") + |> put_resp_content_type("application/activity+json") |> json(ObjectView.render("likes.json", ap_id, likes)) else {:public?, false} -> @@ -96,7 +96,7 @@ def activity(conn, %{"uuid" => uuid}) do %Activity{} = activity <- Activity.normalize(ap_id), {_, true} <- {:public?, Visibility.is_public?(activity)} do conn - |> put_resp_header("content-type", "application/activity+json") + |> put_resp_content_type("application/activity+json") |> json(ObjectView.render("object.json", %{object: activity})) else {:public?, false} -> @@ -107,7 +107,7 @@ def activity(conn, %{"uuid" => uuid}) do # GET /relay/following def following(%{assigns: %{relay: true}} = conn, _params) do conn - |> put_resp_header("content-type", "application/activity+json") + |> put_resp_content_type("application/activity+json") |> json(UserView.render("following.json", %{user: Relay.get_actor()})) end @@ -119,12 +119,12 @@ def following(%{assigns: %{user: for_user}} = conn, %{"nickname" => nickname, "p {page, _} = Integer.parse(page) conn - |> put_resp_header("content-type", "application/activity+json") + |> put_resp_content_type("application/activity+json") |> json(UserView.render("following.json", %{user: user, page: page, for: for_user})) else {:show_follows, _} -> conn - |> put_resp_header("content-type", "application/activity+json") + |> put_resp_content_type("application/activity+json") |> send_resp(403, "") end end @@ -133,7 +133,7 @@ def following(%{assigns: %{user: for_user}} = conn, %{"nickname" => nickname}) d with %User{} = user <- User.get_cached_by_nickname(nickname), {user, for_user} <- ensure_user_keys_present_and_maybe_refresh_for_user(user, for_user) do conn - |> put_resp_header("content-type", "application/activity+json") + |> put_resp_content_type("application/activity+json") |> json(UserView.render("following.json", %{user: user, for: for_user})) end end @@ -141,7 +141,7 @@ def following(%{assigns: %{user: for_user}} = conn, %{"nickname" => nickname}) d # GET /relay/followers def followers(%{assigns: %{relay: true}} = conn, _params) do conn - |> put_resp_header("content-type", "application/activity+json") + |> put_resp_content_type("application/activity+json") |> json(UserView.render("followers.json", %{user: Relay.get_actor()})) end @@ -153,12 +153,12 @@ def followers(%{assigns: %{user: for_user}} = conn, %{"nickname" => nickname, "p {page, _} = Integer.parse(page) conn - |> put_resp_header("content-type", "application/activity+json") + |> put_resp_content_type("application/activity+json") |> json(UserView.render("followers.json", %{user: user, page: page, for: for_user})) else {:show_followers, _} -> conn - |> put_resp_header("content-type", "application/activity+json") + |> put_resp_content_type("application/activity+json") |> send_resp(403, "") end end @@ -167,7 +167,7 @@ def followers(%{assigns: %{user: for_user}} = conn, %{"nickname" => nickname}) d with %User{} = user <- User.get_cached_by_nickname(nickname), {user, for_user} <- ensure_user_keys_present_and_maybe_refresh_for_user(user, for_user) do conn - |> put_resp_header("content-type", "application/activity+json") + |> put_resp_content_type("application/activity+json") |> json(UserView.render("followers.json", %{user: user, for: for_user})) end end @@ -176,7 +176,7 @@ def outbox(conn, %{"nickname" => nickname} = params) do with %User{} = user <- User.get_cached_by_nickname(nickname), {:ok, user} <- User.ensure_keys_present(user) do conn - |> put_resp_header("content-type", "application/activity+json") + |> put_resp_content_type("application/activity+json") |> json(UserView.render("outbox.json", %{user: user, max_id: params["max_id"]})) end end @@ -224,7 +224,7 @@ def inbox(conn, params) do defp represent_service_actor(%User{} = user, conn) do with {:ok, user} <- User.ensure_keys_present(user) do conn - |> put_resp_header("content-type", "application/activity+json") + |> put_resp_content_type("application/activity+json") |> json(UserView.render("user.json", %{user: user})) else nil -> {:error, :not_found} @@ -245,7 +245,7 @@ def internal_fetch(conn, _params) do def whoami(%{assigns: %{user: %User{} = user}} = conn, _params) do conn - |> put_resp_header("content-type", "application/activity+json") + |> put_resp_content_type("application/activity+json") |> json(UserView.render("user.json", %{user: user})) end @@ -254,7 +254,7 @@ def whoami(_conn, _params), do: {:error, :not_found} def read_inbox(%{assigns: %{user: user}} = conn, %{"nickname" => nickname} = params) do if nickname == user.nickname do conn - |> put_resp_header("content-type", "application/activity+json") + |> put_resp_content_type("application/activity+json") |> json(UserView.render("inbox.json", %{user: user, max_id: params["max_id"]})) else err = From 654d291b6d151bc372bca849ce0b42f723e2bd94 Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Sat, 24 Aug 2019 17:41:53 +0300 Subject: [PATCH 032/400] update tests --- lib/pleroma/web/activity_pub/relay.ex | 27 ++++++++------------ test/web/activity_pub/relay_test.exs | 36 ++++++++++++++++++++++++++- 2 files changed, 45 insertions(+), 18 deletions(-) diff --git a/lib/pleroma/web/activity_pub/relay.ex b/lib/pleroma/web/activity_pub/relay.ex index ce3e30874..c2ac38907 100644 --- a/lib/pleroma/web/activity_pub/relay.ex +++ b/lib/pleroma/web/activity_pub/relay.ex @@ -22,13 +22,7 @@ def follow(target_instance) do Logger.info("relay: followed instance: #{target_instance}; id=#{activity.data["id"]}") {:ok, activity} else - {:error, _} = error -> - Logger.error("error: #{inspect(error)}") - error - - e -> - Logger.error("error: #{inspect(e)}") - {:error, e} + error -> format_error(error) end end @@ -41,13 +35,7 @@ def unfollow(target_instance) do Logger.info("relay: unfollowed instance: #{target_instance}: id=#{activity.data["id"]}") {:ok, activity} else - {:error, _} = error -> - Logger.error("error: #{inspect(error)}") - error - - e -> - Logger.error("error: #{inspect(e)}") - {:error, e} + error -> format_error(error) end end @@ -57,11 +45,16 @@ def publish(%Activity{data: %{"type" => "Create"}} = activity) do %Object{} = object <- Object.normalize(activity) do ActivityPub.announce(user, object, nil, true, false) else - e -> - Logger.error("error: #{inspect(e)}") - {:error, inspect(e)} + error -> format_error(error) end end def publish(_), do: {:error, "Not implemented"} + + defp format_error({:error, error}), do: format_error(error) + + defp format_error(error) do + Logger.error("error: #{inspect(error)}") + {:error, error} + end end diff --git a/test/web/activity_pub/relay_test.exs b/test/web/activity_pub/relay_test.exs index aeef91cda..4f7d592a6 100644 --- a/test/web/activity_pub/relay_test.exs +++ b/test/web/activity_pub/relay_test.exs @@ -11,6 +11,7 @@ defmodule Pleroma.Web.ActivityPub.RelayTest do alias Pleroma.Web.ActivityPub.Relay import Pleroma.Factory + import Mock test "gets an actor for the relay" do user = Relay.get_actor() @@ -56,6 +57,8 @@ test "returns activity" do end describe "publish/1" do + clear_config([:instance, :federating]) + test "returns error when activity not `Create` type" do activity = insert(:like_activity) assert Relay.publish(activity) == {:error, "Not implemented"} @@ -66,13 +69,44 @@ test "returns error when activity not public" do assert Relay.publish(activity) == {:error, false} end - test "returns announce activity" do + test "returns error when object is unknown" do + activity = + insert(:note_activity, + data: %{ + "type" => "Create", + "object" => "http://mastodon.example.org/eee/99541947525187367" + } + ) + + assert Relay.publish(activity) == {:error, nil} + end + + test_with_mock "returns announce activity and publish to federate", + Pleroma.Web.Federator, + [:passthrough], + [] do + Pleroma.Config.put([:instance, :federating], true) service_actor = Relay.get_actor() note = insert(:note_activity) assert {:ok, %Activity{} = activity, %Object{} = obj} = Relay.publish(note) assert activity.data["type"] == "Announce" assert activity.data["actor"] == service_actor.ap_id assert activity.data["object"] == obj.data["id"] + assert called(Pleroma.Web.Federator.publish(activity, 5)) + end + + test_with_mock "returns announce activity and not publish to federate", + Pleroma.Web.Federator, + [:passthrough], + [] do + Pleroma.Config.put([:instance, :federating], false) + service_actor = Relay.get_actor() + note = insert(:note_activity) + assert {:ok, %Activity{} = activity, %Object{} = obj} = Relay.publish(note) + assert activity.data["type"] == "Announce" + assert activity.data["actor"] == service_actor.ap_id + assert activity.data["object"] == obj.data["id"] + refute called(Pleroma.Web.Federator.publish(activity, 5)) end end end From 1692fa89458f0f83f69ffa2f85a998869b8fe454 Mon Sep 17 00:00:00 2001 From: lain Date: Sat, 24 Aug 2019 17:22:26 +0200 Subject: [PATCH 033/400] ActivityExpirationWorker: Fix merge issues. --- lib/pleroma/activity_expiration_worker.ex | 2 +- lib/pleroma/application.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pleroma/activity_expiration_worker.ex b/lib/pleroma/activity_expiration_worker.ex index a341f58df..0f9e715f8 100644 --- a/lib/pleroma/activity_expiration_worker.ex +++ b/lib/pleroma/activity_expiration_worker.ex @@ -15,7 +15,7 @@ defmodule Pleroma.ActivityExpirationWorker do @schedule_interval :timer.minutes(1) - def start_link do + def start_link(_) do GenServer.start_link(__MODULE__, nil) end diff --git a/lib/pleroma/application.ex b/lib/pleroma/application.ex index 1e4de272c..483ac1f39 100644 --- a/lib/pleroma/application.ex +++ b/lib/pleroma/application.ex @@ -36,7 +36,7 @@ def start(_type, _args) do Pleroma.Captcha, Pleroma.FlakeId, Pleroma.ScheduledActivityWorker, - Pleroma.ActiviyExpirationWorker + Pleroma.ActivityExpirationWorker ] ++ cachex_children() ++ hackney_pool_children() ++ From efb8818e9ee280b53eac17699e8114e8af82b03b Mon Sep 17 00:00:00 2001 From: lain Date: Sat, 24 Aug 2019 17:22:48 +0200 Subject: [PATCH 034/400] Activity Expiration: Switch to 'expires_in' system. --- lib/pleroma/web/common_api/common_api.ex | 15 +++++++++++---- test/web/common_api/common_api_test.exs | 4 +--- .../mastodon_api/mastodon_api_controller_test.exs | 9 ++++++--- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/lib/pleroma/web/common_api/common_api.ex b/lib/pleroma/web/common_api/common_api.ex index 69120cc19..5faddc9f4 100644 --- a/lib/pleroma/web/common_api/common_api.ex +++ b/lib/pleroma/web/common_api/common_api.ex @@ -201,16 +201,23 @@ def get_replied_to_visibility(activity) do end end - defp check_expiry_date(expiry_str) do - {:ok, expiry} = Ecto.Type.cast(:naive_datetime, expiry_str) + defp check_expiry_date({:ok, nil} = res), do: res - if is_nil(expiry) || ActivityExpiration.expires_late_enough?(expiry) do + defp check_expiry_date({:ok, in_seconds}) do + expiry = NaiveDateTime.utc_now() |> NaiveDateTime.add(in_seconds) + + if ActivityExpiration.expires_late_enough?(expiry) do {:ok, expiry} else {:error, "Expiry date is too soon"} end end + defp check_expiry_date(expiry_str) do + Ecto.Type.cast(:integer, expiry_str) + |> check_expiry_date() + end + def post(user, %{"status" => status} = data) do limit = Pleroma.Config.get([:instance, :limit]) @@ -237,7 +244,7 @@ def post(user, %{"status" => status} = data) do context <- make_context(in_reply_to, in_reply_to_conversation), cw <- data["spoiler_text"] || "", sensitive <- data["sensitive"] || Enum.member?(tags, {"#nsfw", "nsfw"}), - {:ok, expires_at} <- check_expiry_date(data["expires_at"]), + {:ok, expires_at} <- check_expiry_date(data["expires_in"]), full_payload <- String.trim(status <> cw), :ok <- validate_character_limit(full_payload, attachments, limit), object <- diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs index 5fda91438..f28a66090 100644 --- a/test/web/common_api/common_api_test.exs +++ b/test/web/common_api/common_api_test.exs @@ -213,10 +213,8 @@ test "it can handle activities that expire" do |> NaiveDateTime.truncate(:second) |> NaiveDateTime.add(1_000_000, :second) - expires_at_iso8601 = expires_at |> NaiveDateTime.to_iso8601() - assert {:ok, activity} = - CommonAPI.post(user, %{"status" => "chai", "expires_at" => expires_at_iso8601}) + CommonAPI.post(user, %{"status" => "chai", "expires_in" => 1_000_000}) assert expiration = Pleroma.ActivityExpiration.get_by_activity_id(activity.id) assert expiration.scheduled_at == expires_at diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index c05c39db6..6fcdc19aa 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -153,7 +153,8 @@ test "posting a status", %{conn: conn} do refute id == third_id # An activity that will expire: - expires_in = 120 + # 2 hours + expires_in = 120 * 60 conn_four = conn @@ -168,12 +169,14 @@ test "posting a status", %{conn: conn} do estimated_expires_at = NaiveDateTime.utc_now() - |> NaiveDateTime.add(:timer.minutes(expires_in), :millisecond) + |> NaiveDateTime.add(expires_in) |> NaiveDateTime.truncate(:second) # This assert will fail if the test takes longer than a minute. I sure hope it never does: assert abs(NaiveDateTime.diff(expiration.scheduled_at, estimated_expires_at, :second)) < 60 - assert fourth_response["pleroma"]["expires_at"] == NaiveDateTime.to_iso8601(expiration.scheduled_at) + + assert fourth_response["pleroma"]["expires_at"] == + NaiveDateTime.to_iso8601(expiration.scheduled_at) end test "replying to a status", %{conn: conn} do From 24994f3e0c643abe4d74bec3edec53fa89f4ed72 Mon Sep 17 00:00:00 2001 From: lain Date: Sat, 24 Aug 2019 17:28:19 +0200 Subject: [PATCH 035/400] Activity expiration: Fix docs. --- docs/api/differences_in_mastoapi_responses.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/differences_in_mastoapi_responses.md b/docs/api/differences_in_mastoapi_responses.md index 197c465d8..f34e3dd72 100644 --- a/docs/api/differences_in_mastoapi_responses.md +++ b/docs/api/differences_in_mastoapi_responses.md @@ -25,7 +25,7 @@ Has these additional fields under the `pleroma` object: - `in_reply_to_account_acct`: the `acct` property of User entity for replied user (if any) - `content`: a map consisting of alternate representations of the `content` property with the key being it's mimetype. Currently the only alternate representation supported is `text/plain` - `spoiler_text`: a map consisting of alternate representations of the `spoiler_text` property with the key being it's mimetype. Currently the only alternate representation supported is `text/plain` -- `expires_on`: a datetime (iso8601) that states when the post will expire (be deleted automatically), or empty if the post won't expire +- `expires_at`: a datetime (iso8601) that states when the post will expire (be deleted automatically), or empty if the post won't expire ## Attachments @@ -87,7 +87,7 @@ Additional parameters can be added to the JSON body/Form data: - `content_type`: string, contain the MIME type of the status, it is transformed into HTML by the backend. You can get the list of the supported MIME types with the nodeinfo endpoint. - `to`: A list of nicknames (like `lain@soykaf.club` or `lain` on the local server) that will be used to determine who is going to be addressed by this post. Using this will disable the implicit addressing by mentioned names in the `status` body, only the people in the `to` list will be addressed. The normal rules for for post visibility are not affected by this and will still apply. - `visibility`: string, besides standard MastoAPI values (`direct`, `private`, `unlisted` or `public`) it can be used to address a List by setting it to `list:LIST_ID`. -- `expires_on`: datetime (iso8601), sets when the posted activity should expire. When a posted activity expires it will be deleted from the server, and a delete request for it will be federated. +- `expires_in`: The number of seconds the posted activity should expire in. When a posted activity expires it will be deleted from the server, and a delete request for it will be federated. This needs to be longer than an hour. - `in_reply_to_conversation_id`: Will reply to a given conversation, addressing only the people who are part of the recipient set of that conversation. Sets the visibility to `direct`. ## PATCH `/api/v1/update_credentials` From 1d7033d96289edf0adf2ca61a725f93b345305ec Mon Sep 17 00:00:00 2001 From: lain Date: Sat, 24 Aug 2019 15:33:17 +0000 Subject: [PATCH 036/400] Update CHANGELOG.md --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 949577842..b1ec21818 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,9 +50,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - ActivityPub: Deactivated user deletion ### Added -- Expiring/ephemeral activites. All activities can have expires_on value set, which controls when they should be deleted automatically. -- Mastodon API: in post_status, the expires_in parameter lets you set the number of minutes until an activity expires. It must be at least one hour. -- Mastodon API: all status JSON responses contain a `pleroma.expires_on` item which states when an activity will expire. The value is only shown to the user who created the activity. To everyone else it's empty. +- Expiring/ephemeral activites. All activities can have expires_at value set, which controls when they should be deleted automatically. +- Mastodon API: in post_status, the expires_in parameter lets you set the number of seconds until an activity expires. It must be at least one hour. +- Mastodon API: all status JSON responses contain a `pleroma.expires_at` item which states when an activity will expire. The value is only shown to the user who created the activity. To everyone else it's empty. - Configuration: `ActivityExpiration.enabled` controls whether expired activites will get deleted at the appropriate time. Enabled by default. - Conversations: Add Pleroma-specific conversation endpoints and status posting extensions. Run the `bump_all_conversations` task again to create the necessary data. - **Breaking:** MRF describe API, which adds support for exposing configuration information about MRF policies to NodeInfo. From 3549cd9754f95b17a2be2eb76d9bb6c38bdbf288 Mon Sep 17 00:00:00 2001 From: kPherox Date: Sun, 25 Aug 2019 01:28:38 +0900 Subject: [PATCH 037/400] Change to use attachment only when fields do not exist --- lib/pleroma/user/info.ex | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/pleroma/user/info.ex b/lib/pleroma/user/info.ex index 45a39924b..779bfbc18 100644 --- a/lib/pleroma/user/info.ex +++ b/lib/pleroma/user/info.ex @@ -49,7 +49,7 @@ defmodule Pleroma.User.Info do field(:mascot, :map, default: nil) field(:emoji, {:array, :map}, default: []) field(:pleroma_settings_store, :map, default: %{}) - field(:fields, {:array, :map}, default: []) + field(:fields, {:array, :map}, default: nil) field(:raw_fields, {:array, :map}, default: []) field(:notification_settings, :map, @@ -422,7 +422,7 @@ def remove_reblog_mute(info, ap_id) do # ``fields`` is an array of mastodon profile field, containing ``{"name": "…", "value": "…"}``. # For example: [{"name": "Pronoun", "value": "she/her"}, …] - def fields(%{fields: [], source_data: %{"attachment" => attachment}}) do + def fields(%{fields: nil, source_data: %{"attachment" => attachment}}) do limit = Pleroma.Config.get([:instance, :max_remote_account_fields], 0) attachment @@ -431,6 +431,8 @@ def fields(%{fields: [], source_data: %{"attachment" => attachment}}) do |> Enum.take(limit) end + def fields(%{fields: nil}), do: [] + def fields(%{fields: fields}), do: fields def follow_information_update(info, params) do From 18668447d268524e39d9cc8812805053ef9c186e Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sun, 25 Aug 2019 07:10:22 +0200 Subject: [PATCH 038/400] HttpRequestMock: Log mock errors as warnings --- test/support/http_request_mock.ex | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 3adb5ba3b..00f4660c1 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -17,9 +17,14 @@ def request( with {:ok, res} <- apply(__MODULE__, method, [url, query, body, headers]) do res else - {_, _r} = error -> - # Logger.warn(r) - error + error -> + error = error + + with {:error, message} <- error do + Logger.warn(message) + end + + {_, _r} = error end end From e22737ffb5f7e7c567802e2bcef5520e2759e734 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sun, 25 Aug 2019 07:33:46 +0200 Subject: [PATCH 039/400] HttpRequestMock: Improve non-implemented error message --- test/support/http_request_mock.ex | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 00f4660c1..320244c75 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -975,7 +975,7 @@ def get("https://mstdn.jp/.well-known/webfinger?resource=acct:kpherox@mstdn.jp", def get(url, query, body, headers) do {:error, - "Not implemented the mock response for get #{inspect(url)}, #{query}, #{inspect(body)}, #{ + "Mock response not implemented for GET #{inspect(url)}, #{query}, #{inspect(body)}, #{ inspect(headers) }"} end @@ -1037,7 +1037,10 @@ def post("http://404.site" <> _, _, _, _) do }} end - def post(url, _query, _body, _headers) do - {:error, "Not implemented the mock response for post #{inspect(url)}"} + def post(url, query, body, headers) do + {:error, + "Mock response not implemented for POST #{inspect(url)}, #{query}, #{inspect(body)}, #{ + inspect(headers) + }"} end end From 211e1637705266bebd33735d4bb1809c0326f707 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sun, 25 Aug 2019 08:03:25 +0200 Subject: [PATCH 040/400] Implement missing mocks for rel=me --- test/support/http_request_mock.ex | 16 ++++++++++++++++ test/web/rel_me_test.exs | 29 ++--------------------------- 2 files changed, 18 insertions(+), 27 deletions(-) diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 320244c75..c308e5a36 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -973,6 +973,22 @@ def get("https://mstdn.jp/.well-known/webfinger?resource=acct:kpherox@mstdn.jp", }} end + def get("http://example.com/rel_me/anchor", _, _, _) do + {:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/rel_me_anchor.html")}} + end + + def get("http://example.com/rel_me/anchor_nofollow", _, _, _) do + {:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/rel_me_anchor_nofollow.html")}} + end + + def get("http://example.com/rel_me/link", _, _, _) do + {:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/rel_me_link.html")}} + end + + def get("http://example.com/rel_me/null", _, _, _) do + {:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/rel_me_null.html")}} + end + def get(url, query, body, headers) do {:error, "Mock response not implemented for GET #{inspect(url)}, #{query}, #{inspect(body)}, #{ diff --git a/test/web/rel_me_test.exs b/test/web/rel_me_test.exs index 85515c432..2251fed16 100644 --- a/test/web/rel_me_test.exs +++ b/test/web/rel_me_test.exs @@ -5,33 +5,8 @@ defmodule Pleroma.Web.RelMeTest do use ExUnit.Case, async: true - setup do - Tesla.Mock.mock(fn - %{ - method: :get, - url: "http://example.com/rel_me/anchor" - } -> - %Tesla.Env{status: 200, body: File.read!("test/fixtures/rel_me_anchor.html")} - - %{ - method: :get, - url: "http://example.com/rel_me/anchor_nofollow" - } -> - %Tesla.Env{status: 200, body: File.read!("test/fixtures/rel_me_anchor_nofollow.html")} - - %{ - method: :get, - url: "http://example.com/rel_me/link" - } -> - %Tesla.Env{status: 200, body: File.read!("test/fixtures/rel_me_link.html")} - - %{ - method: :get, - url: "http://example.com/rel_me/null" - } -> - %Tesla.Env{status: 200, body: File.read!("test/fixtures/rel_me_null.html")} - end) - + setup_all do + Tesla.Mock.mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end) :ok end From f3b12662731fa8d1aa458ea16fb4bcb176b77744 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sun, 25 Aug 2019 08:48:38 +0200 Subject: [PATCH 041/400] user_test.exs: fix rel=me tests --- test/user_test.exs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/user_test.exs b/test/user_test.exs index 661ffc0b3..2cbc1f525 100644 --- a/test/user_test.exs +++ b/test/user_test.exs @@ -1253,18 +1253,18 @@ test "preserves hosts in user links text" do end test "Adds rel=me on linkbacked urls" do - user = insert(:user, ap_id: "http://social.example.org/users/lain") + user = insert(:user, ap_id: "https://social.example.org/users/lain") - bio = "http://example.org/rel_me/null" + bio = "http://example.com/rel_me/null" expected_text = "#{bio}" assert expected_text == User.parse_bio(bio, user) - bio = "http://example.org/rel_me/link" - expected_text = "#{bio}" + bio = "http://example.com/rel_me/link" + expected_text = "#{bio}" assert expected_text == User.parse_bio(bio, user) - bio = "http://example.org/rel_me/anchor" - expected_text = "#{bio}" + bio = "http://example.com/rel_me/anchor" + expected_text = "#{bio}" assert expected_text == User.parse_bio(bio, user) end end From 20c3f613d8574d67b1e5a47bf41f324101183398 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sun, 25 Aug 2019 08:55:29 +0200 Subject: [PATCH 042/400] HttpRequestMock: Remove useless `error = error` --- test/support/http_request_mock.ex | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 320244c75..314b20a45 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -18,8 +18,6 @@ def request( res else error -> - error = error - with {:error, message} <- error do Logger.warn(message) end From d74efde94e3526b45dc9b31d9d48ffce14203ffa Mon Sep 17 00:00:00 2001 From: kPherox Date: Mon, 26 Aug 2019 02:00:41 +0900 Subject: [PATCH 043/400] Update test for custom profile fields --- test/web/activity_pub/transmogrifier_test.exs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/web/activity_pub/transmogrifier_test.exs b/test/web/activity_pub/transmogrifier_test.exs index 629c76c97..0661d5d7c 100644 --- a/test/web/activity_pub/transmogrifier_test.exs +++ b/test/web/activity_pub/transmogrifier_test.exs @@ -563,6 +563,14 @@ test "it works with custom profile fields" do %{"name" => "foo", "value" => "updated"}, %{"name" => "foo1", "value" => "updated"} ] + + update_data = put_in(update_data, ["object", "attachment"], []) + + {:ok, _} = Transmogrifier.handle_incoming(update_data) + + user = User.get_cached_by_ap_id(user.ap_id) + + assert User.Info.fields(user.info) == [] end test "it works for incoming update activities which lock the account" do From 37dd3867bb0439e4a2717eb780a1837196fcef00 Mon Sep 17 00:00:00 2001 From: Maxim Filippov Date: Sun, 25 Aug 2019 19:39:37 +0000 Subject: [PATCH 044/400] Log admin/moderator actions --- CHANGELOG.md | 1 + docs/api/admin_api.md | 24 + lib/pleroma/moderation_log.ex | 433 ++++++++++++++++++ .../web/admin_api/admin_api_controller.ex | 183 +++++++- .../admin_api/views/moderation_log_view.ex | 26 ++ lib/pleroma/web/common_api/utils.ex | 3 +- lib/pleroma/web/ostatus/ostatus_controller.ex | 3 +- lib/pleroma/web/router.ex | 2 + .../20190818124341_create_moderation_log.exs | 11 + test/moderation_log_test.exs | 301 ++++++++++++ .../admin_api/admin_api_controller_test.exs | 241 +++++++++- 11 files changed, 1187 insertions(+), 41 deletions(-) create mode 100644 lib/pleroma/moderation_log.ex create mode 100644 lib/pleroma/web/admin_api/views/moderation_log_view.ex create mode 100644 priv/repo/migrations/20190818124341_create_moderation_log.exs create mode 100644 test/moderation_log_test.exs diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c3051c94..2fdcb014a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -94,6 +94,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Relays: Added a task to list relay subscriptions. - Mix Tasks: `mix pleroma.database fix_likes_collections` - Federation: Remove `likes` from objects. +- Admin API: Added moderation log ### Changed - Configuration: Filter.AnonymizeFilename added ability to retain file extension with custom text diff --git a/docs/api/admin_api.md b/docs/api/admin_api.md index 7ccb90836..d79c342be 100644 --- a/docs/api/admin_api.md +++ b/docs/api/admin_api.md @@ -694,3 +694,27 @@ Compile time settings (need instance reboot): ] } ``` + +## `/api/pleroma/admin/moderation_log` +### Get moderation log +- Method `GET` +- Params: + - *optional* `page`: **integer** page number + - *optional* `page_size`: **integer** number of users per page (default is `50`) +- Response: + +```json +[ + { + "data": { + "actor": { + "id": 1, + "nickname": "lain" + }, + "action": "relay_follow" + }, + "time": 1502812026, // timestamp + "message": "[2017-08-15 15:47:06] @nick0 followed relay: https://example.org/relay" // log message + } +] +``` diff --git a/lib/pleroma/moderation_log.ex b/lib/pleroma/moderation_log.ex new file mode 100644 index 000000000..1ef6fe67a --- /dev/null +++ b/lib/pleroma/moderation_log.ex @@ -0,0 +1,433 @@ +defmodule Pleroma.ModerationLog do + use Ecto.Schema + + alias Pleroma.Activity + alias Pleroma.ModerationLog + alias Pleroma.Repo + alias Pleroma.User + + import Ecto.Query + + schema "moderation_log" do + field(:data, :map) + + timestamps() + end + + def get_all(page, page_size) do + from(q in __MODULE__, + order_by: [desc: q.inserted_at], + limit: ^page_size, + offset: ^((page - 1) * page_size) + ) + |> Repo.all() + end + + def insert_log(%{ + actor: %User{} = actor, + subject: %User{} = subject, + action: action, + permission: permission + }) do + Repo.insert(%ModerationLog{ + data: %{ + actor: user_to_map(actor), + subject: user_to_map(subject), + action: action, + permission: permission + } + }) + end + + def insert_log(%{ + actor: %User{} = actor, + action: "report_update", + subject: %Activity{data: %{"type" => "Flag"}} = subject + }) do + Repo.insert(%ModerationLog{ + data: %{ + actor: user_to_map(actor), + action: "report_update", + subject: report_to_map(subject) + } + }) + end + + def insert_log(%{ + actor: %User{} = actor, + action: "report_response", + subject: %Activity{} = subject, + text: text + }) do + Repo.insert(%ModerationLog{ + data: %{ + actor: user_to_map(actor), + action: "report_response", + subject: report_to_map(subject), + text: text + } + }) + end + + def insert_log(%{ + actor: %User{} = actor, + action: "status_update", + subject: %Activity{} = subject, + sensitive: sensitive, + visibility: visibility + }) do + Repo.insert(%ModerationLog{ + data: %{ + actor: user_to_map(actor), + action: "status_update", + subject: status_to_map(subject), + sensitive: sensitive, + visibility: visibility + } + }) + end + + def insert_log(%{ + actor: %User{} = actor, + action: "status_delete", + subject_id: subject_id + }) do + Repo.insert(%ModerationLog{ + data: %{ + actor: user_to_map(actor), + action: "status_delete", + subject_id: subject_id + } + }) + end + + @spec insert_log(%{actor: User, subject: User, action: String.t()}) :: + {:ok, ModerationLog} | {:error, any} + def insert_log(%{actor: %User{} = actor, subject: subject, action: action}) do + Repo.insert(%ModerationLog{ + data: %{ + actor: user_to_map(actor), + action: action, + subject: user_to_map(subject) + } + }) + end + + @spec insert_log(%{actor: User, subjects: [User], action: String.t()}) :: + {:ok, ModerationLog} | {:error, any} + def insert_log(%{actor: %User{} = actor, subjects: subjects, action: action}) do + subjects = Enum.map(subjects, &user_to_map/1) + + Repo.insert(%ModerationLog{ + data: %{ + actor: user_to_map(actor), + action: action, + subjects: subjects + } + }) + end + + def insert_log(%{ + actor: %User{} = actor, + followed: %User{} = followed, + follower: %User{} = follower, + action: "follow" + }) do + Repo.insert(%ModerationLog{ + data: %{ + actor: user_to_map(actor), + action: "follow", + followed: user_to_map(followed), + follower: user_to_map(follower) + } + }) + end + + def insert_log(%{ + actor: %User{} = actor, + followed: %User{} = followed, + follower: %User{} = follower, + action: "unfollow" + }) do + Repo.insert(%ModerationLog{ + data: %{ + actor: user_to_map(actor), + action: "unfollow", + followed: user_to_map(followed), + follower: user_to_map(follower) + } + }) + end + + def insert_log(%{ + actor: %User{} = actor, + nicknames: nicknames, + tags: tags, + action: action + }) do + Repo.insert(%ModerationLog{ + data: %{ + actor: user_to_map(actor), + nicknames: nicknames, + tags: tags, + action: action + } + }) + end + + def insert_log(%{ + actor: %User{} = actor, + action: action, + target: target + }) + when action in ["relay_follow", "relay_unfollow"] do + Repo.insert(%ModerationLog{ + data: %{ + actor: user_to_map(actor), + action: action, + target: target + } + }) + end + + defp user_to_map(%User{} = user) do + user + |> Map.from_struct() + |> Map.take([:id, :nickname]) + |> Map.put(:type, "user") + end + + defp report_to_map(%Activity{} = report) do + %{ + type: "report", + id: report.id, + state: report.data["state"] + } + end + + defp status_to_map(%Activity{} = status) do + %{ + type: "status", + id: status.id + } + end + + def get_log_entry_message(%ModerationLog{ + data: %{ + "actor" => %{"nickname" => actor_nickname}, + "action" => action, + "followed" => %{"nickname" => followed_nickname}, + "follower" => %{"nickname" => follower_nickname} + } + }) do + "@#{actor_nickname} made @#{follower_nickname} #{action} @#{followed_nickname}" + end + + @spec get_log_entry_message(ModerationLog) :: String.t() + def get_log_entry_message(%ModerationLog{ + data: %{ + "actor" => %{"nickname" => actor_nickname}, + "action" => "delete", + "subject" => %{"nickname" => subject_nickname, "type" => "user"} + } + }) do + "@#{actor_nickname} deleted user @#{subject_nickname}" + end + + @spec get_log_entry_message(ModerationLog) :: String.t() + def get_log_entry_message(%ModerationLog{ + data: %{ + "actor" => %{"nickname" => actor_nickname}, + "action" => "create", + "subjects" => subjects + } + }) do + nicknames = + subjects + |> Enum.map(&"@#{&1["nickname"]}") + |> Enum.join(", ") + + "@#{actor_nickname} created users: #{nicknames}" + end + + @spec get_log_entry_message(ModerationLog) :: String.t() + def get_log_entry_message(%ModerationLog{ + data: %{ + "actor" => %{"nickname" => actor_nickname}, + "action" => "activate", + "subject" => %{"nickname" => subject_nickname, "type" => "user"} + } + }) do + "@#{actor_nickname} activated user @#{subject_nickname}" + end + + @spec get_log_entry_message(ModerationLog) :: String.t() + def get_log_entry_message(%ModerationLog{ + data: %{ + "actor" => %{"nickname" => actor_nickname}, + "action" => "deactivate", + "subject" => %{"nickname" => subject_nickname, "type" => "user"} + } + }) do + "@#{actor_nickname} deactivated user @#{subject_nickname}" + end + + @spec get_log_entry_message(ModerationLog) :: String.t() + def get_log_entry_message(%ModerationLog{ + data: %{ + "actor" => %{"nickname" => actor_nickname}, + "nicknames" => nicknames, + "tags" => tags, + "action" => "tag" + } + }) do + nicknames_string = + nicknames + |> Enum.map(&"@#{&1}") + |> Enum.join(", ") + + tags_string = tags |> Enum.join(", ") + + "@#{actor_nickname} added tags: #{tags_string} to users: #{nicknames_string}" + end + + @spec get_log_entry_message(ModerationLog) :: String.t() + def get_log_entry_message(%ModerationLog{ + data: %{ + "actor" => %{"nickname" => actor_nickname}, + "nicknames" => nicknames, + "tags" => tags, + "action" => "untag" + } + }) do + nicknames_string = + nicknames + |> Enum.map(&"@#{&1}") + |> Enum.join(", ") + + tags_string = tags |> Enum.join(", ") + + "@#{actor_nickname} removed tags: #{tags_string} from users: #{nicknames_string}" + end + + @spec get_log_entry_message(ModerationLog) :: String.t() + def get_log_entry_message(%ModerationLog{ + data: %{ + "actor" => %{"nickname" => actor_nickname}, + "action" => "grant", + "subject" => %{"nickname" => subject_nickname}, + "permission" => permission + } + }) do + "@#{actor_nickname} made @#{subject_nickname} #{permission}" + end + + @spec get_log_entry_message(ModerationLog) :: String.t() + def get_log_entry_message(%ModerationLog{ + data: %{ + "actor" => %{"nickname" => actor_nickname}, + "action" => "revoke", + "subject" => %{"nickname" => subject_nickname}, + "permission" => permission + } + }) do + "@#{actor_nickname} revoked #{permission} role from @#{subject_nickname}" + end + + @spec get_log_entry_message(ModerationLog) :: String.t() + def get_log_entry_message(%ModerationLog{ + data: %{ + "actor" => %{"nickname" => actor_nickname}, + "action" => "relay_follow", + "target" => target + } + }) do + "@#{actor_nickname} followed relay: #{target}" + end + + @spec get_log_entry_message(ModerationLog) :: String.t() + def get_log_entry_message(%ModerationLog{ + data: %{ + "actor" => %{"nickname" => actor_nickname}, + "action" => "relay_unfollow", + "target" => target + } + }) do + "@#{actor_nickname} unfollowed relay: #{target}" + end + + @spec get_log_entry_message(ModerationLog) :: String.t() + def get_log_entry_message(%ModerationLog{ + data: %{ + "actor" => %{"nickname" => actor_nickname}, + "action" => "report_update", + "subject" => %{"id" => subject_id, "state" => state, "type" => "report"} + } + }) do + "@#{actor_nickname} updated report ##{subject_id} with '#{state}' state" + end + + @spec get_log_entry_message(ModerationLog) :: String.t() + def get_log_entry_message(%ModerationLog{ + data: %{ + "actor" => %{"nickname" => actor_nickname}, + "action" => "report_response", + "subject" => %{"id" => subject_id, "type" => "report"}, + "text" => text + } + }) do + "@#{actor_nickname} responded with '#{text}' to report ##{subject_id}" + end + + @spec get_log_entry_message(ModerationLog) :: String.t() + def get_log_entry_message(%ModerationLog{ + data: %{ + "actor" => %{"nickname" => actor_nickname}, + "action" => "status_update", + "subject" => %{"id" => subject_id, "type" => "status"}, + "sensitive" => nil, + "visibility" => visibility + } + }) do + "@#{actor_nickname} updated status ##{subject_id}, set visibility: '#{visibility}'" + end + + @spec get_log_entry_message(ModerationLog) :: String.t() + def get_log_entry_message(%ModerationLog{ + data: %{ + "actor" => %{"nickname" => actor_nickname}, + "action" => "status_update", + "subject" => %{"id" => subject_id, "type" => "status"}, + "sensitive" => sensitive, + "visibility" => nil + } + }) do + "@#{actor_nickname} updated status ##{subject_id}, set sensitive: '#{sensitive}'" + end + + @spec get_log_entry_message(ModerationLog) :: String.t() + def get_log_entry_message(%ModerationLog{ + data: %{ + "actor" => %{"nickname" => actor_nickname}, + "action" => "status_update", + "subject" => %{"id" => subject_id, "type" => "status"}, + "sensitive" => sensitive, + "visibility" => visibility + } + }) do + "@#{actor_nickname} updated status ##{subject_id}, set sensitive: '#{sensitive}', visibility: '#{ + visibility + }'" + end + + @spec get_log_entry_message(ModerationLog) :: String.t() + def get_log_entry_message(%ModerationLog{ + data: %{ + "actor" => %{"nickname" => actor_nickname}, + "action" => "status_delete", + "subject_id" => subject_id + } + }) do + "@#{actor_nickname} deleted status ##{subject_id}" + end +end diff --git a/lib/pleroma/web/admin_api/admin_api_controller.ex b/lib/pleroma/web/admin_api/admin_api_controller.ex index 048ac8019..544b9d7d8 100644 --- a/lib/pleroma/web/admin_api/admin_api_controller.ex +++ b/lib/pleroma/web/admin_api/admin_api_controller.ex @@ -5,6 +5,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do use Pleroma.Web, :controller alias Pleroma.Activity + alias Pleroma.ModerationLog alias Pleroma.User alias Pleroma.UserInviteToken alias Pleroma.Web.ActivityPub.ActivityPub @@ -12,6 +13,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do alias Pleroma.Web.AdminAPI.AccountView alias Pleroma.Web.AdminAPI.Config alias Pleroma.Web.AdminAPI.ConfigView + alias Pleroma.Web.AdminAPI.ModerationLogView alias Pleroma.Web.AdminAPI.ReportView alias Pleroma.Web.AdminAPI.Search alias Pleroma.Web.CommonAPI @@ -25,35 +27,61 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do action_fallback(:errors) - def user_delete(conn, %{"nickname" => nickname}) do - User.get_cached_by_nickname(nickname) - |> User.delete() + def user_delete(%{assigns: %{user: admin}} = conn, %{"nickname" => nickname}) do + user = User.get_cached_by_nickname(nickname) + User.delete(user) + + ModerationLog.insert_log(%{ + actor: admin, + subject: user, + action: "delete" + }) conn |> json(nickname) end - def user_follow(conn, %{"follower" => follower_nick, "followed" => followed_nick}) do + def user_follow(%{assigns: %{user: admin}} = conn, %{ + "follower" => follower_nick, + "followed" => followed_nick + }) do with %User{} = follower <- User.get_cached_by_nickname(follower_nick), %User{} = followed <- User.get_cached_by_nickname(followed_nick) do User.follow(follower, followed) + + ModerationLog.insert_log(%{ + actor: admin, + followed: followed, + follower: follower, + action: "follow" + }) end conn |> json("ok") end - def user_unfollow(conn, %{"follower" => follower_nick, "followed" => followed_nick}) do + def user_unfollow(%{assigns: %{user: admin}} = conn, %{ + "follower" => follower_nick, + "followed" => followed_nick + }) do with %User{} = follower <- User.get_cached_by_nickname(follower_nick), %User{} = followed <- User.get_cached_by_nickname(followed_nick) do User.unfollow(follower, followed) + + ModerationLog.insert_log(%{ + actor: admin, + followed: followed, + follower: follower, + action: "unfollow" + }) end conn |> json("ok") end - def users_create(conn, %{"users" => users}) do + def users_create(%{assigns: %{user: admin}} = conn, %{"users" => users}) do changesets = Enum.map(users, fn %{"nickname" => nickname, "email" => email, "password" => password} -> user_data = %{ @@ -78,10 +106,17 @@ def users_create(conn, %{"users" => users}) do |> Map.values() |> Enum.map(fn user -> {:ok, user} = User.post_register_action(user) + user end) |> Enum.map(&AccountView.render("created.json", %{user: &1})) + ModerationLog.insert_log(%{ + actor: admin, + subjects: Map.values(users), + action: "create" + }) + conn |> json(res) @@ -129,23 +164,47 @@ def list_user_statuses(conn, %{"nickname" => nickname} = params) do end end - def user_toggle_activation(conn, %{"nickname" => nickname}) do + def user_toggle_activation(%{assigns: %{user: admin}} = conn, %{"nickname" => nickname}) do user = User.get_cached_by_nickname(nickname) {:ok, updated_user} = User.deactivate(user, !user.info.deactivated) + action = if user.info.deactivated, do: "activate", else: "deactivate" + + ModerationLog.insert_log(%{ + actor: admin, + subject: user, + action: action + }) + conn |> json(AccountView.render("show.json", %{user: updated_user})) end - def tag_users(conn, %{"nicknames" => nicknames, "tags" => tags}) do - with {:ok, _} <- User.tag(nicknames, tags), - do: json_response(conn, :no_content, "") + def tag_users(%{assigns: %{user: admin}} = conn, %{"nicknames" => nicknames, "tags" => tags}) do + with {:ok, _} <- User.tag(nicknames, tags) do + ModerationLog.insert_log(%{ + actor: admin, + nicknames: nicknames, + tags: tags, + action: "tag" + }) + + json_response(conn, :no_content, "") + end end - def untag_users(conn, %{"nicknames" => nicknames, "tags" => tags}) do - with {:ok, _} <- User.untag(nicknames, tags), - do: json_response(conn, :no_content, "") + def untag_users(%{assigns: %{user: admin}} = conn, %{"nicknames" => nicknames, "tags" => tags}) do + with {:ok, _} <- User.untag(nicknames, tags) do + ModerationLog.insert_log(%{ + actor: admin, + nicknames: nicknames, + tags: tags, + action: "untag" + }) + + json_response(conn, :no_content, "") + end end def list_users(conn, params) do @@ -186,7 +245,10 @@ defp maybe_parse_filters(filters) do |> Enum.into(%{}, &{&1, true}) end - def right_add(conn, %{"permission_group" => permission_group, "nickname" => nickname}) + def right_add(%{assigns: %{user: admin}} = conn, %{ + "permission_group" => permission_group, + "nickname" => nickname + }) when permission_group in ["moderator", "admin"] do user = User.get_cached_by_nickname(nickname) @@ -201,6 +263,13 @@ def right_add(conn, %{"permission_group" => permission_group, "nickname" => nick |> Ecto.Changeset.change() |> Ecto.Changeset.put_embed(:info, info_cng) + ModerationLog.insert_log(%{ + action: "grant", + actor: admin, + subject: user, + permission: permission_group + }) + {:ok, _user} = User.update_and_set_cache(cng) json(conn, info) @@ -221,7 +290,7 @@ def right_get(conn, %{"nickname" => nickname}) do end def right_delete( - %{assigns: %{user: %User{:nickname => admin_nickname}}} = conn, + %{assigns: %{user: %User{:nickname => admin_nickname} = admin}} = conn, %{ "permission_group" => permission_group, "nickname" => nickname @@ -245,6 +314,13 @@ def right_delete( {:ok, _user} = User.update_and_set_cache(cng) + ModerationLog.insert_log(%{ + action: "revoke", + actor: admin, + subject: user, + permission: permission_group + }) + json(conn, info) end end @@ -253,15 +329,33 @@ def right_delete(conn, _) do render_error(conn, :not_found, "No such permission_group") end - def set_activation_status(conn, %{"nickname" => nickname, "status" => status}) do + def set_activation_status(%{assigns: %{user: admin}} = conn, %{ + "nickname" => nickname, + "status" => status + }) do with {:ok, status} <- Ecto.Type.cast(:boolean, status), %User{} = user <- User.get_cached_by_nickname(nickname), - {:ok, _} <- User.deactivate(user, !status), - do: json_response(conn, :no_content, "") + {:ok, _} <- User.deactivate(user, !status) do + action = if(user.info.deactivated, do: "activate", else: "deactivate") + + ModerationLog.insert_log(%{ + actor: admin, + subject: user, + action: action + }) + + json_response(conn, :no_content, "") + end end - def relay_follow(conn, %{"relay_url" => target}) do + def relay_follow(%{assigns: %{user: admin}} = conn, %{"relay_url" => target}) do with {:ok, _message} <- Relay.follow(target) do + ModerationLog.insert_log(%{ + action: "relay_follow", + actor: admin, + target: target + }) + json(conn, target) else _ -> @@ -271,8 +365,14 @@ def relay_follow(conn, %{"relay_url" => target}) do end end - def relay_unfollow(conn, %{"relay_url" => target}) do + def relay_unfollow(%{assigns: %{user: admin}} = conn, %{"relay_url" => target}) do with {:ok, _message} <- Relay.unfollow(target) do + ModerationLog.insert_log(%{ + action: "relay_unfollow", + actor: admin, + target: target + }) + json(conn, target) else _ -> @@ -363,8 +463,14 @@ def report_show(conn, %{"id" => id}) do end end - def report_update_state(conn, %{"id" => id, "state" => state}) do + def report_update_state(%{assigns: %{user: admin}} = conn, %{"id" => id, "state" => state}) do with {:ok, report} <- CommonAPI.update_report_state(id, state) do + ModerationLog.insert_log(%{ + action: "report_update", + actor: admin, + subject: report + }) + conn |> put_view(ReportView) |> render("show.json", %{report: report}) @@ -381,6 +487,13 @@ def report_respond(%{assigns: %{user: user}} = conn, %{"id" => id} = params) do {:ok, activity} = CommonAPI.post(user, params) + ModerationLog.insert_log(%{ + action: "report_response", + actor: user, + subject: activity, + text: params["status"] + }) + conn |> put_view(StatusView) |> render("status.json", %{activity: activity}) @@ -393,8 +506,18 @@ def report_respond(%{assigns: %{user: user}} = conn, %{"id" => id} = params) do end end - def status_update(conn, %{"id" => id} = params) do + def status_update(%{assigns: %{user: admin}} = conn, %{"id" => id} = params) do with {:ok, activity} <- CommonAPI.update_activity_scope(id, params) do + {:ok, sensitive} = Ecto.Type.cast(:boolean, params["sensitive"]) + + ModerationLog.insert_log(%{ + action: "status_update", + actor: admin, + subject: activity, + sensitive: sensitive, + visibility: params["visibility"] + }) + conn |> put_view(StatusView) |> render("status.json", %{activity: activity}) @@ -403,10 +526,26 @@ def status_update(conn, %{"id" => id} = params) do def status_delete(%{assigns: %{user: user}} = conn, %{"id" => id}) do with {:ok, %Activity{}} <- CommonAPI.delete(id, user) do + ModerationLog.insert_log(%{ + action: "status_delete", + actor: user, + subject_id: id + }) + json(conn, %{}) end end + def list_log(conn, params) do + {page, page_size} = page_params(params) + + log = ModerationLog.get_all(page, page_size) + + conn + |> put_view(ModerationLogView) + |> render("index.json", %{log: log}) + end + def migrate_to_db(conn, _params) do Mix.Tasks.Pleroma.Config.run(["migrate_to_db"]) json(conn, %{}) diff --git a/lib/pleroma/web/admin_api/views/moderation_log_view.ex b/lib/pleroma/web/admin_api/views/moderation_log_view.ex new file mode 100644 index 000000000..b3fc7cfe5 --- /dev/null +++ b/lib/pleroma/web/admin_api/views/moderation_log_view.ex @@ -0,0 +1,26 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Web.AdminAPI.ModerationLogView do + use Pleroma.Web, :view + + alias Pleroma.ModerationLog + + def render("index.json", %{log: log}) do + render_many(log, __MODULE__, "show.json", as: :log_entry) + end + + def render("show.json", %{log_entry: log_entry}) do + time = + log_entry.inserted_at + |> DateTime.from_naive!("Etc/UTC") + |> DateTime.to_unix() + + %{ + data: log_entry.data, + time: time, + message: ModerationLog.get_log_entry_message(log_entry) + } + end +end diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 61b96aba9..6958c7511 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -93,8 +93,7 @@ def attachments_from_ids_descs(ids, descs_str) do Activity.t() | nil, String.t(), Participation.t() | nil - ) :: - {list(String.t()), list(String.t())} + ) :: {list(String.t()), list(String.t())} def get_to_and_cc(_, _, _, _, %Participation{} = participation) do participation = Repo.preload(participation, :recipients) diff --git a/lib/pleroma/web/ostatus/ostatus_controller.ex b/lib/pleroma/web/ostatus/ostatus_controller.ex index fdba0f77f..07e2a4c2d 100644 --- a/lib/pleroma/web/ostatus/ostatus_controller.ex +++ b/lib/pleroma/web/ostatus/ostatus_controller.ex @@ -37,8 +37,7 @@ defmodule Pleroma.Web.OStatus.OStatusController do action_fallback(:errors) def feed_redirect(%{assigns: %{format: "html"}} = conn, %{"nickname" => nickname}) do - with {_, %User{} = user} <- - {:fetch_user, User.get_cached_by_nickname_or_id(nickname)} do + with {_, %User{} = user} <- {:fetch_user, User.get_cached_by_nickname_or_id(nickname)} do RedirectController.redirector_with_meta(conn, %{user: user}) end end diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 97c5016d5..f800d16fd 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -198,6 +198,8 @@ defmodule Pleroma.Web.Router do post("/config", AdminAPIController, :config_update) get("/config/migrate_to_db", AdminAPIController, :migrate_to_db) get("/config/migrate_from_db", AdminAPIController, :migrate_from_db) + + get("/moderation_log", AdminAPIController, :list_log) end scope "/", Pleroma.Web.TwitterAPI do diff --git a/priv/repo/migrations/20190818124341_create_moderation_log.exs b/priv/repo/migrations/20190818124341_create_moderation_log.exs new file mode 100644 index 000000000..cef6636f3 --- /dev/null +++ b/priv/repo/migrations/20190818124341_create_moderation_log.exs @@ -0,0 +1,11 @@ +defmodule Pleroma.Repo.Migrations.CreateModerationLog do + use Ecto.Migration + + def change do + create table(:moderation_log) do + add(:data, :map) + + timestamps() + end + end +end diff --git a/test/moderation_log_test.exs b/test/moderation_log_test.exs new file mode 100644 index 000000000..c78708471 --- /dev/null +++ b/test/moderation_log_test.exs @@ -0,0 +1,301 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.ModerationLogTest do + alias Pleroma.Activity + alias Pleroma.ModerationLog + + use Pleroma.DataCase + + import Pleroma.Factory + + describe "user moderation" do + setup do + admin = insert(:user, info: %{is_admin: true}) + moderator = insert(:user, info: %{is_moderator: true}) + subject1 = insert(:user) + subject2 = insert(:user) + + [admin: admin, moderator: moderator, subject1: subject1, subject2: subject2] + end + + test "logging user deletion by moderator", %{moderator: moderator, subject1: subject1} do + {:ok, _} = + ModerationLog.insert_log(%{ + actor: moderator, + subject: subject1, + action: "delete" + }) + + log = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log) == + "@#{moderator.nickname} deleted user @#{subject1.nickname}" + end + + test "logging user creation by moderator", %{ + moderator: moderator, + subject1: subject1, + subject2: subject2 + } do + {:ok, _} = + ModerationLog.insert_log(%{ + actor: moderator, + subjects: [subject1, subject2], + action: "create" + }) + + log = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log) == + "@#{moderator.nickname} created users: @#{subject1.nickname}, @#{subject2.nickname}" + end + + test "logging user follow by admin", %{admin: admin, subject1: subject1, subject2: subject2} do + {:ok, _} = + ModerationLog.insert_log(%{ + actor: admin, + followed: subject1, + follower: subject2, + action: "follow" + }) + + log = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log) == + "@#{admin.nickname} made @#{subject2.nickname} follow @#{subject1.nickname}" + end + + test "logging user unfollow by admin", %{admin: admin, subject1: subject1, subject2: subject2} do + {:ok, _} = + ModerationLog.insert_log(%{ + actor: admin, + followed: subject1, + follower: subject2, + action: "unfollow" + }) + + log = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log) == + "@#{admin.nickname} made @#{subject2.nickname} unfollow @#{subject1.nickname}" + end + + test "logging user tagged by admin", %{admin: admin, subject1: subject1, subject2: subject2} do + {:ok, _} = + ModerationLog.insert_log(%{ + actor: admin, + nicknames: [subject1.nickname, subject2.nickname], + tags: ["foo", "bar"], + action: "tag" + }) + + log = Repo.one(ModerationLog) + + users = + [subject1.nickname, subject2.nickname] + |> Enum.map(&"@#{&1}") + |> Enum.join(", ") + + tags = ["foo", "bar"] |> Enum.join(", ") + + assert ModerationLog.get_log_entry_message(log) == + "@#{admin.nickname} added tags: #{tags} to users: #{users}" + end + + test "logging user untagged by admin", %{admin: admin, subject1: subject1, subject2: subject2} do + {:ok, _} = + ModerationLog.insert_log(%{ + actor: admin, + nicknames: [subject1.nickname, subject2.nickname], + tags: ["foo", "bar"], + action: "untag" + }) + + log = Repo.one(ModerationLog) + + users = + [subject1.nickname, subject2.nickname] + |> Enum.map(&"@#{&1}") + |> Enum.join(", ") + + tags = ["foo", "bar"] |> Enum.join(", ") + + assert ModerationLog.get_log_entry_message(log) == + "@#{admin.nickname} removed tags: #{tags} from users: #{users}" + end + + test "logging user grant by moderator", %{moderator: moderator, subject1: subject1} do + {:ok, _} = + ModerationLog.insert_log(%{ + actor: moderator, + subject: subject1, + action: "grant", + permission: "moderator" + }) + + log = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log) == + "@#{moderator.nickname} made @#{subject1.nickname} moderator" + end + + test "logging user revoke by moderator", %{moderator: moderator, subject1: subject1} do + {:ok, _} = + ModerationLog.insert_log(%{ + actor: moderator, + subject: subject1, + action: "revoke", + permission: "moderator" + }) + + log = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log) == + "@#{moderator.nickname} revoked moderator role from @#{subject1.nickname}" + end + + test "logging relay follow", %{moderator: moderator} do + {:ok, _} = + ModerationLog.insert_log(%{ + actor: moderator, + action: "relay_follow", + target: "https://example.org/relay" + }) + + log = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log) == + "@#{moderator.nickname} followed relay: https://example.org/relay" + end + + test "logging relay unfollow", %{moderator: moderator} do + {:ok, _} = + ModerationLog.insert_log(%{ + actor: moderator, + action: "relay_unfollow", + target: "https://example.org/relay" + }) + + log = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log) == + "@#{moderator.nickname} unfollowed relay: https://example.org/relay" + end + + test "logging report update", %{moderator: moderator} do + report = %Activity{ + id: "9m9I1F4p8ftrTP6QTI", + data: %{ + "type" => "Flag", + "state" => "resolved" + } + } + + {:ok, _} = + ModerationLog.insert_log(%{ + actor: moderator, + action: "report_update", + subject: report + }) + + log = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log) == + "@#{moderator.nickname} updated report ##{report.id} with 'resolved' state" + end + + test "logging report response", %{moderator: moderator} do + report = %Activity{ + id: "9m9I1F4p8ftrTP6QTI", + data: %{ + "type" => "Note" + } + } + + {:ok, _} = + ModerationLog.insert_log(%{ + actor: moderator, + action: "report_response", + subject: report, + text: "look at this" + }) + + log = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log) == + "@#{moderator.nickname} responded with 'look at this' to report ##{report.id}" + end + + test "logging status sensitivity update", %{moderator: moderator} do + note = insert(:note_activity) + + {:ok, _} = + ModerationLog.insert_log(%{ + actor: moderator, + action: "status_update", + subject: note, + sensitive: "true", + visibility: nil + }) + + log = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log) == + "@#{moderator.nickname} updated status ##{note.id}, set sensitive: 'true'" + end + + test "logging status visibility update", %{moderator: moderator} do + note = insert(:note_activity) + + {:ok, _} = + ModerationLog.insert_log(%{ + actor: moderator, + action: "status_update", + subject: note, + sensitive: nil, + visibility: "private" + }) + + log = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log) == + "@#{moderator.nickname} updated status ##{note.id}, set visibility: 'private'" + end + + test "logging status sensitivity & visibility update", %{moderator: moderator} do + note = insert(:note_activity) + + {:ok, _} = + ModerationLog.insert_log(%{ + actor: moderator, + action: "status_update", + subject: note, + sensitive: "true", + visibility: "private" + }) + + log = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log) == + "@#{moderator.nickname} updated status ##{note.id}, set sensitive: 'true', visibility: 'private'" + end + + test "logging status deletion", %{moderator: moderator} do + note = insert(:note_activity) + + {:ok, _} = + ModerationLog.insert_log(%{ + actor: moderator, + action: "status_delete", + subject_id: note.id + }) + + log = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log) == + "@#{moderator.nickname} deleted status ##{note.id}" + end + end +end diff --git a/test/web/admin_api/admin_api_controller_test.exs b/test/web/admin_api/admin_api_controller_test.exs index ab829d6bd..1afdb6a50 100644 --- a/test/web/admin_api/admin_api_controller_test.exs +++ b/test/web/admin_api/admin_api_controller_test.exs @@ -7,6 +7,8 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do alias Pleroma.Activity alias Pleroma.HTML + alias Pleroma.ModerationLog + alias Pleroma.Repo alias Pleroma.User alias Pleroma.UserInviteToken alias Pleroma.Web.CommonAPI @@ -24,6 +26,14 @@ test "Delete" do |> put_req_header("accept", "application/json") |> delete("/api/pleroma/admin/users?nickname=#{user.nickname}") + log_entry = Repo.one(ModerationLog) + + assert log_entry.data["subject"]["nickname"] == user.nickname + assert log_entry.data["action"] == "delete" + + assert ModerationLog.get_log_entry_message(log_entry) == + "@#{admin.nickname} deleted user @#{user.nickname}" + assert json_response(conn, 200) == user.nickname end @@ -51,6 +61,11 @@ test "Create" do response = json_response(conn, 200) |> Enum.map(&Map.get(&1, "type")) assert response == ["success", "success"] + + log_entry = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log_entry) == + "@#{admin.nickname} created users: @lain2, @lain" end test "Cannot create user with exisiting email" do @@ -218,6 +233,11 @@ test "allows to force-follow another user" do follower = User.get_cached_by_id(follower.id) assert User.following?(follower, user) + + log_entry = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log_entry) == + "@#{admin.nickname} made @#{follower.nickname} follow @#{user.nickname}" end end @@ -241,6 +261,11 @@ test "allows to force-unfollow another user" do follower = User.get_cached_by_id(follower.id) refute User.following?(follower, user) + + log_entry = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log_entry) == + "@#{admin.nickname} made @#{follower.nickname} unfollow @#{user.nickname}" end end @@ -261,17 +286,30 @@ test "allows to force-unfollow another user" do }&tags[]=foo&tags[]=bar" ) - %{conn: conn, user1: user1, user2: user2, user3: user3} + %{conn: conn, admin: admin, user1: user1, user2: user2, user3: user3} end test "it appends specified tags to users with specified nicknames", %{ conn: conn, + admin: admin, user1: user1, user2: user2 } do assert json_response(conn, :no_content) assert User.get_cached_by_id(user1.id).tags == ["x", "foo", "bar"] assert User.get_cached_by_id(user2.id).tags == ["y", "foo", "bar"] + + log_entry = Repo.one(ModerationLog) + + users = + [user1.nickname, user2.nickname] + |> Enum.map(&"@#{&1}") + |> Enum.join(", ") + + tags = ["foo", "bar"] |> Enum.join(", ") + + assert ModerationLog.get_log_entry_message(log_entry) == + "@#{admin.nickname} added tags: #{tags} to users: #{users}" end test "it does not modify tags of not specified users", %{conn: conn, user3: user3} do @@ -297,17 +335,30 @@ test "it does not modify tags of not specified users", %{conn: conn, user3: user }&tags[]=x&tags[]=z" ) - %{conn: conn, user1: user1, user2: user2, user3: user3} + %{conn: conn, admin: admin, user1: user1, user2: user2, user3: user3} end test "it removes specified tags from users with specified nicknames", %{ conn: conn, + admin: admin, user1: user1, user2: user2 } do assert json_response(conn, :no_content) assert User.get_cached_by_id(user1.id).tags == [] assert User.get_cached_by_id(user2.id).tags == ["y"] + + log_entry = Repo.one(ModerationLog) + + users = + [user1.nickname, user2.nickname] + |> Enum.map(&"@#{&1}") + |> Enum.join(", ") + + tags = ["x", "z"] |> Enum.join(", ") + + assert ModerationLog.get_log_entry_message(log_entry) == + "@#{admin.nickname} removed tags: #{tags} from users: #{users}" end test "it does not modify tags of not specified users", %{conn: conn, user3: user3} do @@ -345,6 +396,11 @@ test "/:right POST, can add to a permission group" do assert json_response(conn, 200) == %{ "is_admin" => true } + + log_entry = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log_entry) == + "@#{admin.nickname} made @#{user.nickname} admin" end test "/:right DELETE, can remove from a permission group" do @@ -360,6 +416,11 @@ test "/:right DELETE, can remove from a permission group" do assert json_response(conn, 200) == %{ "is_admin" => false } + + log_entry = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log_entry) == + "@#{admin.nickname} revoked admin role from @#{user.nickname}" end end @@ -372,10 +433,10 @@ test "/:right DELETE, can remove from a permission group" do |> assign(:user, admin) |> put_req_header("accept", "application/json") - %{conn: conn} + %{conn: conn, admin: admin} end - test "deactivates the user", %{conn: conn} do + test "deactivates the user", %{conn: conn, admin: admin} do user = insert(:user) conn = @@ -385,9 +446,14 @@ test "deactivates the user", %{conn: conn} do user = User.get_cached_by_id(user.id) assert user.info.deactivated == true assert json_response(conn, :no_content) + + log_entry = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log_entry) == + "@#{admin.nickname} deactivated user @#{user.nickname}" end - test "activates the user", %{conn: conn} do + test "activates the user", %{conn: conn, admin: admin} do user = insert(:user, info: %{deactivated: true}) conn = @@ -397,6 +463,11 @@ test "activates the user", %{conn: conn} do user = User.get_cached_by_id(user.id) assert user.info.deactivated == false assert json_response(conn, :no_content) + + log_entry = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log_entry) == + "@#{admin.nickname} activated user @#{user.nickname}" end test "returns 403 when requested by a non-admin", %{conn: conn} do @@ -987,6 +1058,11 @@ test "PATCH /api/pleroma/admin/users/:nickname/toggle_activation" do "avatar" => User.avatar_url(user) |> MediaProxy.url(), "display_name" => HTML.strip_tags(user.name || user.nickname) } + + log_entry = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log_entry) == + "@#{admin.nickname} deactivated user @#{user.nickname}" end describe "GET /api/pleroma/admin/users/invite_token" do @@ -1172,25 +1248,35 @@ test "returns 404 when report id is invalid", %{conn: conn} do "status_ids" => [activity.id] }) - %{conn: assign(conn, :user, admin), id: report_id} + %{conn: assign(conn, :user, admin), id: report_id, admin: admin} end - test "mark report as resolved", %{conn: conn, id: id} do + test "mark report as resolved", %{conn: conn, id: id, admin: admin} do response = conn |> put("/api/pleroma/admin/reports/#{id}", %{"state" => "resolved"}) |> json_response(:ok) assert response["state"] == "resolved" + + log_entry = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log_entry) == + "@#{admin.nickname} updated report ##{id} with 'resolved' state" end - test "closes report", %{conn: conn, id: id} do + test "closes report", %{conn: conn, id: id, admin: admin} do response = conn |> put("/api/pleroma/admin/reports/#{id}", %{"state" => "closed"}) |> json_response(:ok) assert response["state"] == "closed" + + log_entry = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log_entry) == + "@#{admin.nickname} updated report ##{id} with 'closed' state" end test "returns 400 when state is unknown", %{conn: conn, id: id} do @@ -1321,14 +1407,15 @@ test "returns 403 when requested by anonymous" do end end + # describe "POST /api/pleroma/admin/reports/:id/respond" do setup %{conn: conn} do admin = insert(:user, info: %{is_admin: true}) - %{conn: assign(conn, :user, admin)} + %{conn: assign(conn, :user, admin), admin: admin} end - test "returns created dm", %{conn: conn} do + test "returns created dm", %{conn: conn, admin: admin} do [reporter, target_user] = insert_pair(:user) activity = insert(:note_activity, user: target_user) @@ -1351,6 +1438,13 @@ test "returns created dm", %{conn: conn} do assert reporter.nickname in recipients assert response["content"] == "I will check it out" assert response["visibility"] == "direct" + + log_entry = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log_entry) == + "@#{admin.nickname} responded with 'I will check it out' to report ##{ + response["id"] + }" end test "returns 400 when status is missing", %{conn: conn} do @@ -1374,10 +1468,10 @@ test "returns 404 when report id is invalid", %{conn: conn} do admin = insert(:user, info: %{is_admin: true}) activity = insert(:note_activity) - %{conn: assign(conn, :user, admin), id: activity.id} + %{conn: assign(conn, :user, admin), id: activity.id, admin: admin} end - test "toggle sensitive flag", %{conn: conn, id: id} do + test "toggle sensitive flag", %{conn: conn, id: id, admin: admin} do response = conn |> put("/api/pleroma/admin/statuses/#{id}", %{"sensitive" => "true"}) @@ -1385,6 +1479,11 @@ test "toggle sensitive flag", %{conn: conn, id: id} do assert response["sensitive"] + log_entry = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log_entry) == + "@#{admin.nickname} updated status ##{id}, set sensitive: 'true'" + response = conn |> put("/api/pleroma/admin/statuses/#{id}", %{"sensitive" => "false"}) @@ -1393,7 +1492,7 @@ test "toggle sensitive flag", %{conn: conn, id: id} do refute response["sensitive"] end - test "change visibility flag", %{conn: conn, id: id} do + test "change visibility flag", %{conn: conn, id: id, admin: admin} do response = conn |> put("/api/pleroma/admin/statuses/#{id}", %{"visibility" => "public"}) @@ -1401,6 +1500,11 @@ test "change visibility flag", %{conn: conn, id: id} do assert response["visibility"] == "public" + log_entry = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log_entry) == + "@#{admin.nickname} updated status ##{id}, set visibility: 'public'" + response = conn |> put("/api/pleroma/admin/statuses/#{id}", %{"visibility" => "private"}) @@ -1430,15 +1534,20 @@ test "returns 400 when visibility is unknown", %{conn: conn, id: id} do admin = insert(:user, info: %{is_admin: true}) activity = insert(:note_activity) - %{conn: assign(conn, :user, admin), id: activity.id} + %{conn: assign(conn, :user, admin), id: activity.id, admin: admin} end - test "deletes status", %{conn: conn, id: id} do + test "deletes status", %{conn: conn, id: id, admin: admin} do conn |> delete("/api/pleroma/admin/statuses/#{id}") |> json_response(:ok) refute Activity.get_by_id(id) + + log_entry = Repo.one(ModerationLog) + + assert ModerationLog.get_log_entry_message(log_entry) == + "@#{admin.nickname} deleted status ##{id}" end test "returns error when status is not exist", %{conn: conn} do @@ -2139,6 +2248,108 @@ test "returns private statuses with godmode on", %{conn: conn, user: user} do assert json_response(conn, 200) |> length() == 5 end end + + describe "GET /api/pleroma/admin/moderation_log" do + setup %{conn: conn} do + admin = insert(:user, info: %{is_admin: true}) + + %{conn: assign(conn, :user, admin), admin: admin} + end + + test "returns the log", %{conn: conn, admin: admin} do + Repo.insert(%ModerationLog{ + data: %{ + actor: %{ + "id" => admin.id, + "nickname" => admin.nickname, + "type" => "user" + }, + action: "relay_follow", + target: "https://example.org/relay" + }, + inserted_at: NaiveDateTime.truncate(~N[2017-08-15 15:47:06.597036], :second) + }) + + Repo.insert(%ModerationLog{ + data: %{ + actor: %{ + "id" => admin.id, + "nickname" => admin.nickname, + "type" => "user" + }, + action: "relay_unfollow", + target: "https://example.org/relay" + }, + inserted_at: NaiveDateTime.truncate(~N[2017-08-16 15:47:06.597036], :second) + }) + + conn = get(conn, "/api/pleroma/admin/moderation_log") + + response = json_response(conn, 200) + [first_entry, second_entry] = response + + assert response |> length() == 2 + assert first_entry["data"]["action"] == "relay_unfollow" + + assert first_entry["message"] == + "@#{admin.nickname} unfollowed relay: https://example.org/relay" + + assert second_entry["data"]["action"] == "relay_follow" + + assert second_entry["message"] == + "@#{admin.nickname} followed relay: https://example.org/relay" + end + + test "returns the log with pagination", %{conn: conn, admin: admin} do + Repo.insert(%ModerationLog{ + data: %{ + actor: %{ + "id" => admin.id, + "nickname" => admin.nickname, + "type" => "user" + }, + action: "relay_follow", + target: "https://example.org/relay" + }, + inserted_at: NaiveDateTime.truncate(~N[2017-08-15 15:47:06.597036], :second) + }) + + Repo.insert(%ModerationLog{ + data: %{ + actor: %{ + "id" => admin.id, + "nickname" => admin.nickname, + "type" => "user" + }, + action: "relay_unfollow", + target: "https://example.org/relay" + }, + inserted_at: NaiveDateTime.truncate(~N[2017-08-16 15:47:06.597036], :second) + }) + + conn1 = get(conn, "/api/pleroma/admin/moderation_log?page_size=1&page=1") + + response1 = json_response(conn1, 200) + [first_entry] = response1 + + assert response1 |> length() == 1 + assert first_entry["data"]["action"] == "relay_unfollow" + + assert first_entry["message"] == + "@#{admin.nickname} unfollowed relay: https://example.org/relay" + + conn2 = get(conn, "/api/pleroma/admin/moderation_log?page_size=1&page=2") + + response2 = json_response(conn2, 200) + [second_entry] = response2 + + assert response2 |> length() == 1 + assert second_entry["data"]["action"] == "relay_follow" + + assert second_entry["message"] == + "@#{admin.nickname} followed relay: https://example.org/relay" + end + end end # Needed for testing From 3b1b631c2aedc8e359c296b11237fa4f6edd31e5 Mon Sep 17 00:00:00 2001 From: Egor Kislitsyn Date: Mon, 26 Aug 2019 18:59:57 +0700 Subject: [PATCH 045/400] Add validation in Pleroma.List.create/2 --- lib/pleroma/list.ex | 18 +++++++++++------- test/list_test.exs | 7 +++++++ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/lib/pleroma/list.ex b/lib/pleroma/list.ex index 1d320206e..c572380c2 100644 --- a/lib/pleroma/list.ex +++ b/lib/pleroma/list.ex @@ -109,15 +109,19 @@ def rename(%Pleroma.List{} = list, title) do end def create(title, %User{} = creator) do - list = %Pleroma.List{user_id: creator.id, title: title} + changeset = title_changeset(%Pleroma.List{user_id: creator.id}, %{title: title}) - Repo.transaction(fn -> - list = Repo.insert!(list) + if changeset.valid? do + Repo.transaction(fn -> + list = Repo.insert!(changeset) - list - |> change(ap_id: "#{creator.ap_id}/lists/#{list.id}") - |> Repo.update!() - end) + list + |> change(ap_id: "#{creator.ap_id}/lists/#{list.id}") + |> Repo.update!() + end) + else + {:error, changeset} + end end def follow(%Pleroma.List{following: following} = list, %User{} = followed) do diff --git a/test/list_test.exs b/test/list_test.exs index f39033d02..8efba75ea 100644 --- a/test/list_test.exs +++ b/test/list_test.exs @@ -15,6 +15,13 @@ test "creating a list" do assert title == "title" end + test "validates title" do + user = insert(:user) + + assert {:error, changeset} = Pleroma.List.create("", user) + assert changeset.errors == [title: {"can't be blank", [validation: :required]}] + end + test "getting a list not belonging to the user" do user = insert(:user) other_user = insert(:user) From 4d82bc8b0b5a0b8b584b43330f902f8dc9637d3d Mon Sep 17 00:00:00 2001 From: Egor Kislitsyn Date: Mon, 26 Aug 2019 19:16:40 +0700 Subject: [PATCH 046/400] Extract MastodonAPI.MastodonAPIController.errors/2 to MastodonAPI.FallbackController --- .../controllers/fallback_controller.ex | 34 +++++++++++++++++++ .../mastodon_api/mastodon_api_controller.ex | 31 +---------------- .../mastodon_api/subscription_controller.ex | 4 +-- 3 files changed, 36 insertions(+), 33 deletions(-) create mode 100644 lib/pleroma/web/mastodon_api/controllers/fallback_controller.ex diff --git a/lib/pleroma/web/mastodon_api/controllers/fallback_controller.ex b/lib/pleroma/web/mastodon_api/controllers/fallback_controller.ex new file mode 100644 index 000000000..41243d5e7 --- /dev/null +++ b/lib/pleroma/web/mastodon_api/controllers/fallback_controller.ex @@ -0,0 +1,34 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Web.MastodonAPI.FallbackController do + use Pleroma.Web, :controller + + def call(conn, {:error, %Ecto.Changeset{} = changeset}) do + error_message = + changeset + |> Ecto.Changeset.traverse_errors(fn {message, _opt} -> message end) + |> Enum.map_join(", ", fn {_k, v} -> v end) + + conn + |> put_status(:unprocessable_entity) + |> json(%{error: error_message}) + end + + def call(conn, {:error, :not_found}) do + render_error(conn, :not_found, "Record not found") + end + + def call(conn, {:error, error_message}) do + conn + |> put_status(:bad_request) + |> json(%{error: error_message}) + end + + def call(conn, _) do + conn + |> put_status(:internal_server_error) + |> json(dgettext("errors", "Something went wrong")) + end +end diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index 53cf95fbb..e51b2d89c 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -83,7 +83,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do @local_mastodon_name "Mastodon-Local" - action_fallback(:errors) + action_fallback(Pleroma.Web.MastodonAPI.FallbackController) def create_app(conn, params) do scopes = Scopes.fetch_scopes(params, ["read"]) @@ -1587,35 +1587,6 @@ def delete_filter(%{assigns: %{user: user}} = conn, %{"id" => filter_id}) do json(conn, %{}) end - # fallback action - # - def errors(conn, {:error, %Changeset{} = changeset}) do - error_message = - changeset - |> Changeset.traverse_errors(fn {message, _opt} -> message end) - |> Enum.map_join(", ", fn {_k, v} -> v end) - - conn - |> put_status(:unprocessable_entity) - |> json(%{error: error_message}) - end - - def errors(conn, {:error, :not_found}) do - render_error(conn, :not_found, "Record not found") - end - - def errors(conn, {:error, error_message}) do - conn - |> put_status(:bad_request) - |> json(%{error: error_message}) - end - - def errors(conn, _) do - conn - |> put_status(:internal_server_error) - |> json(dgettext("errors", "Something went wrong")) - end - def suggestions(%{assigns: %{user: user}} = conn, _) do suggestions = Config.get(:suggestions) diff --git a/lib/pleroma/web/mastodon_api/subscription_controller.ex b/lib/pleroma/web/mastodon_api/subscription_controller.ex index 255ee2f18..e2b17aab1 100644 --- a/lib/pleroma/web/mastodon_api/subscription_controller.ex +++ b/lib/pleroma/web/mastodon_api/subscription_controller.ex @@ -64,8 +64,6 @@ def errors(conn, {:error, :not_found}) do end def errors(conn, _) do - conn - |> put_status(:internal_server_error) - |> json(dgettext("errors", "Something went wrong")) + Pleroma.Web.MastodonAPI.FallbackController.call(conn, nil) end end From 30510ade0e2f813413c5599245adc4dae8c7ffd8 Mon Sep 17 00:00:00 2001 From: Egor Kislitsyn Date: Mon, 26 Aug 2019 19:37:54 +0700 Subject: [PATCH 047/400] Extract MastodonAPIController's list actions into MastodonAPI.ListController; Add more tests --- .../controllers/list_controller.ex | 84 +++++++++ .../mastodon_api/mastodon_api_controller.ex | 76 -------- .../web/mastodon_api/views/list_view.ex | 6 +- lib/pleroma/web/router.ex | 16 +- .../controllers/list_controller_test.exs | 166 ++++++++++++++++++ .../mastodon_api_controller_test.exs | 101 +---------- .../{ => views}/list_view_test.exs | 14 +- 7 files changed, 274 insertions(+), 189 deletions(-) create mode 100644 lib/pleroma/web/mastodon_api/controllers/list_controller.ex create mode 100644 test/web/mastodon_api/controllers/list_controller_test.exs rename test/web/mastodon_api/{ => views}/list_view_test.exs (56%) diff --git a/lib/pleroma/web/mastodon_api/controllers/list_controller.ex b/lib/pleroma/web/mastodon_api/controllers/list_controller.ex new file mode 100644 index 000000000..2873deda8 --- /dev/null +++ b/lib/pleroma/web/mastodon_api/controllers/list_controller.ex @@ -0,0 +1,84 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Web.MastodonAPI.ListController do + use Pleroma.Web, :controller + + alias Pleroma.User + alias Pleroma.Web.MastodonAPI.AccountView + + plug(:list_by_id_and_user when action not in [:index, :create]) + + action_fallback(Pleroma.Web.MastodonAPI.FallbackController) + + # GET /api/v1/lists + def index(%{assigns: %{user: user}} = conn, opts) do + lists = Pleroma.List.for_user(user, opts) + render(conn, "index.json", lists: lists) + end + + # POST /api/v1/lists + def create(%{assigns: %{user: user}} = conn, %{"title" => title}) do + with {:ok, %Pleroma.List{} = list} <- Pleroma.List.create(title, user) do + render(conn, "show.json", list: list) + end + end + + # GET /api/v1/lists/:id + def show(%{assigns: %{list: list}} = conn, _) do + render(conn, "show.json", list: list) + end + + # PUT /api/v1/lists/:id + def update(%{assigns: %{list: list}} = conn, %{"title" => title}) do + with {:ok, list} <- Pleroma.List.rename(list, title) do + render(conn, "show.json", list: list) + end + end + + # DELETE /api/v1/lists/:id + def delete(%{assigns: %{list: list}} = conn, _) do + with {:ok, _list} <- Pleroma.List.delete(list) do + json(conn, %{}) + end + end + + # GET /api/v1/lists/:id/accounts + def list_accounts(%{assigns: %{user: user, list: list}} = conn, _) do + with {:ok, users} <- Pleroma.List.get_following(list) do + conn + |> put_view(AccountView) + |> render("accounts.json", for: user, users: users, as: :user) + end + end + + # POST /api/v1/lists/:id/accounts + def add_to_list(%{assigns: %{list: list}} = conn, %{"account_ids" => account_ids}) do + Enum.each(account_ids, fn account_id -> + with %User{} = followed <- User.get_cached_by_id(account_id) do + Pleroma.List.follow(list, followed) + end + end) + + json(conn, %{}) + end + + # DELETE /api/v1/lists/:id/accounts + def remove_from_list(%{assigns: %{list: list}} = conn, %{"account_ids" => account_ids}) do + Enum.each(account_ids, fn account_id -> + with %User{} = followed <- User.get_cached_by_id(account_id) do + Pleroma.List.unfollow(list, followed) + end + end) + + json(conn, %{}) + end + + defp list_by_id_and_user(%{assigns: %{user: user}, params: %{"id" => id}} = conn, _) do + case Pleroma.List.get(id, user) do + %Pleroma.List{} = list -> assign(conn, :list, list) + nil -> conn |> render_error(:not_found, "List not found") |> halt() + end + end +end diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index e51b2d89c..31b0aaca0 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -1205,88 +1205,12 @@ def bookmarks(%{assigns: %{user: user}} = conn, params) do |> render("index.json", %{activities: activities, for: user, as: :activity}) end - def get_lists(%{assigns: %{user: user}} = conn, opts) do - lists = Pleroma.List.for_user(user, opts) - res = ListView.render("lists.json", lists: lists) - json(conn, res) - end - - def get_list(%{assigns: %{user: user}} = conn, %{"id" => id}) do - with %Pleroma.List{} = list <- Pleroma.List.get(id, user) do - res = ListView.render("list.json", list: list) - json(conn, res) - else - _e -> render_error(conn, :not_found, "Record not found") - end - end - def account_lists(%{assigns: %{user: user}} = conn, %{"id" => account_id}) do lists = Pleroma.List.get_lists_account_belongs(user, account_id) res = ListView.render("lists.json", lists: lists) json(conn, res) end - def delete_list(%{assigns: %{user: user}} = conn, %{"id" => id}) do - with %Pleroma.List{} = list <- Pleroma.List.get(id, user), - {:ok, _list} <- Pleroma.List.delete(list) do - json(conn, %{}) - else - _e -> - json(conn, dgettext("errors", "error")) - end - end - - def create_list(%{assigns: %{user: user}} = conn, %{"title" => title}) do - with {:ok, %Pleroma.List{} = list} <- Pleroma.List.create(title, user) do - res = ListView.render("list.json", list: list) - json(conn, res) - end - end - - def add_to_list(%{assigns: %{user: user}} = conn, %{"id" => id, "account_ids" => accounts}) do - accounts - |> Enum.each(fn account_id -> - with %Pleroma.List{} = list <- Pleroma.List.get(id, user), - %User{} = followed <- User.get_cached_by_id(account_id) do - Pleroma.List.follow(list, followed) - end - end) - - json(conn, %{}) - end - - def remove_from_list(%{assigns: %{user: user}} = conn, %{"id" => id, "account_ids" => accounts}) do - accounts - |> Enum.each(fn account_id -> - with %Pleroma.List{} = list <- Pleroma.List.get(id, user), - %User{} = followed <- User.get_cached_by_id(account_id) do - Pleroma.List.unfollow(list, followed) - end - end) - - json(conn, %{}) - end - - def list_accounts(%{assigns: %{user: user}} = conn, %{"id" => id}) do - with %Pleroma.List{} = list <- Pleroma.List.get(id, user), - {:ok, users} = Pleroma.List.get_following(list) do - conn - |> put_view(AccountView) - |> render("accounts.json", %{for: user, users: users, as: :user}) - end - end - - def rename_list(%{assigns: %{user: user}} = conn, %{"id" => id, "title" => title}) do - with %Pleroma.List{} = list <- Pleroma.List.get(id, user), - {:ok, list} <- Pleroma.List.rename(list, title) do - res = ListView.render("list.json", list: list) - json(conn, res) - else - _e -> - json(conn, dgettext("errors", "error")) - end - end - def list_timeline(%{assigns: %{user: user}} = conn, %{"list_id" => id} = params) do with %Pleroma.List{title: _title, following: following} <- Pleroma.List.get(id, user) do params = diff --git a/lib/pleroma/web/mastodon_api/views/list_view.ex b/lib/pleroma/web/mastodon_api/views/list_view.ex index 0f86e2512..bfda6f5b3 100644 --- a/lib/pleroma/web/mastodon_api/views/list_view.ex +++ b/lib/pleroma/web/mastodon_api/views/list_view.ex @@ -6,11 +6,11 @@ defmodule Pleroma.Web.MastodonAPI.ListView do use Pleroma.Web, :view alias Pleroma.Web.MastodonAPI.ListView - def render("lists.json", %{lists: lists} = opts) do - render_many(lists, ListView, "list.json", opts) + def render("index.json", %{lists: lists} = opts) do + render_many(lists, ListView, "show.json", opts) end - def render("list.json", %{list: list}) do + def render("show.json", %{list: list}) do %{ id: to_string(list.id), title: list.title diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 1ad33630c..969dc66fd 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -312,9 +312,9 @@ defmodule Pleroma.Web.Router do get("/scheduled_statuses", MastodonAPIController, :scheduled_statuses) get("/scheduled_statuses/:id", MastodonAPIController, :show_scheduled_status) - get("/lists", MastodonAPIController, :get_lists) - get("/lists/:id", MastodonAPIController, :get_list) - get("/lists/:id/accounts", MastodonAPIController, :list_accounts) + get("/lists", ListController, :index) + get("/lists/:id", ListController, :show) + get("/lists/:id/accounts", ListController, :list_accounts) get("/domain_blocks", MastodonAPIController, :domain_blocks) @@ -355,12 +355,12 @@ defmodule Pleroma.Web.Router do post("/media", MastodonAPIController, :upload) put("/media/:id", MastodonAPIController, :update_media) - delete("/lists/:id", MastodonAPIController, :delete_list) - post("/lists", MastodonAPIController, :create_list) - put("/lists/:id", MastodonAPIController, :rename_list) + delete("/lists/:id", ListController, :delete) + post("/lists", ListController, :create) + put("/lists/:id", ListController, :update) - post("/lists/:id/accounts", MastodonAPIController, :add_to_list) - delete("/lists/:id/accounts", MastodonAPIController, :remove_from_list) + post("/lists/:id/accounts", ListController, :add_to_list) + delete("/lists/:id/accounts", ListController, :remove_from_list) post("/filters", MastodonAPIController, :create_filter) get("/filters/:id", MastodonAPIController, :get_filter) diff --git a/test/web/mastodon_api/controllers/list_controller_test.exs b/test/web/mastodon_api/controllers/list_controller_test.exs new file mode 100644 index 000000000..093506309 --- /dev/null +++ b/test/web/mastodon_api/controllers/list_controller_test.exs @@ -0,0 +1,166 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Web.MastodonAPI.ListControllerTest do + use Pleroma.Web.ConnCase + + alias Pleroma.Repo + + import Pleroma.Factory + + test "creating a list", %{conn: conn} do + user = insert(:user) + + conn = + conn + |> assign(:user, user) + |> post("/api/v1/lists", %{"title" => "cuties"}) + + assert %{"title" => title} = json_response(conn, 200) + assert title == "cuties" + end + + test "renders error for invalid params", %{conn: conn} do + user = insert(:user) + + conn = + conn + |> assign(:user, user) + |> post("/api/v1/lists", %{"title" => nil}) + + assert %{"error" => "can't be blank"} == json_response(conn, :unprocessable_entity) + end + + test "listing a user's lists", %{conn: conn} do + user = insert(:user) + + conn + |> assign(:user, user) + |> post("/api/v1/lists", %{"title" => "cuties"}) + + conn + |> assign(:user, user) + |> post("/api/v1/lists", %{"title" => "cofe"}) + + conn = + conn + |> assign(:user, user) + |> get("/api/v1/lists") + + assert [ + %{"id" => _, "title" => "cofe"}, + %{"id" => _, "title" => "cuties"} + ] = json_response(conn, :ok) + end + + test "adding users to a list", %{conn: conn} do + user = insert(:user) + other_user = insert(:user) + {:ok, list} = Pleroma.List.create("name", user) + + conn = + conn + |> assign(:user, user) + |> post("/api/v1/lists/#{list.id}/accounts", %{"account_ids" => [other_user.id]}) + + assert %{} == json_response(conn, 200) + %Pleroma.List{following: following} = Pleroma.List.get(list.id, user) + assert following == [other_user.follower_address] + end + + test "removing users from a list", %{conn: conn} do + user = insert(:user) + other_user = insert(:user) + third_user = insert(:user) + {:ok, list} = Pleroma.List.create("name", user) + {:ok, list} = Pleroma.List.follow(list, other_user) + {:ok, list} = Pleroma.List.follow(list, third_user) + + conn = + conn + |> assign(:user, user) + |> delete("/api/v1/lists/#{list.id}/accounts", %{"account_ids" => [other_user.id]}) + + assert %{} == json_response(conn, 200) + %Pleroma.List{following: following} = Pleroma.List.get(list.id, user) + assert following == [third_user.follower_address] + end + + test "listing users in a list", %{conn: conn} do + user = insert(:user) + other_user = insert(:user) + {:ok, list} = Pleroma.List.create("name", user) + {:ok, list} = Pleroma.List.follow(list, other_user) + + conn = + conn + |> assign(:user, user) + |> get("/api/v1/lists/#{list.id}/accounts", %{"account_ids" => [other_user.id]}) + + assert [%{"id" => id}] = json_response(conn, 200) + assert id == to_string(other_user.id) + end + + test "retrieving a list", %{conn: conn} do + user = insert(:user) + {:ok, list} = Pleroma.List.create("name", user) + + conn = + conn + |> assign(:user, user) + |> get("/api/v1/lists/#{list.id}") + + assert %{"id" => id} = json_response(conn, 200) + assert id == to_string(list.id) + end + + test "renders 404 if list is not found", %{conn: conn} do + user = insert(:user) + + conn = + conn + |> assign(:user, user) + |> get("/api/v1/lists/666") + + assert %{"error" => "List not found"} = json_response(conn, :not_found) + end + + test "renaming a list", %{conn: conn} do + user = insert(:user) + {:ok, list} = Pleroma.List.create("name", user) + + conn = + conn + |> assign(:user, user) + |> put("/api/v1/lists/#{list.id}", %{"title" => "newname"}) + + assert %{"title" => name} = json_response(conn, 200) + assert name == "newname" + end + + test "validates title when renaming a list", %{conn: conn} do + user = insert(:user) + {:ok, list} = Pleroma.List.create("name", user) + + conn = + conn + |> assign(:user, user) + |> put("/api/v1/lists/#{list.id}", %{"title" => " "}) + + assert %{"error" => "can't be blank"} == json_response(conn, :unprocessable_entity) + end + + test "deleting a list", %{conn: conn} do + user = insert(:user) + {:ok, list} = Pleroma.List.create("name", user) + + conn = + conn + |> assign(:user, user) + |> delete("/api/v1/lists/#{list.id}") + + assert %{} = json_response(conn, 200) + assert is_nil(Repo.get(Pleroma.List, list.id)) + end +end diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 6fcdc19aa..4fd0a5aeb 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -927,106 +927,7 @@ test "delete a filter", %{conn: conn} do end end - describe "lists" do - test "creating a list", %{conn: conn} do - user = insert(:user) - - conn = - conn - |> assign(:user, user) - |> post("/api/v1/lists", %{"title" => "cuties"}) - - assert %{"title" => title} = json_response(conn, 200) - assert title == "cuties" - end - - test "adding users to a list", %{conn: conn} do - user = insert(:user) - other_user = insert(:user) - {:ok, list} = Pleroma.List.create("name", user) - - conn = - conn - |> assign(:user, user) - |> post("/api/v1/lists/#{list.id}/accounts", %{"account_ids" => [other_user.id]}) - - assert %{} == json_response(conn, 200) - %Pleroma.List{following: following} = Pleroma.List.get(list.id, user) - assert following == [other_user.follower_address] - end - - test "removing users from a list", %{conn: conn} do - user = insert(:user) - other_user = insert(:user) - third_user = insert(:user) - {:ok, list} = Pleroma.List.create("name", user) - {:ok, list} = Pleroma.List.follow(list, other_user) - {:ok, list} = Pleroma.List.follow(list, third_user) - - conn = - conn - |> assign(:user, user) - |> delete("/api/v1/lists/#{list.id}/accounts", %{"account_ids" => [other_user.id]}) - - assert %{} == json_response(conn, 200) - %Pleroma.List{following: following} = Pleroma.List.get(list.id, user) - assert following == [third_user.follower_address] - end - - test "listing users in a list", %{conn: conn} do - user = insert(:user) - other_user = insert(:user) - {:ok, list} = Pleroma.List.create("name", user) - {:ok, list} = Pleroma.List.follow(list, other_user) - - conn = - conn - |> assign(:user, user) - |> get("/api/v1/lists/#{list.id}/accounts", %{"account_ids" => [other_user.id]}) - - assert [%{"id" => id}] = json_response(conn, 200) - assert id == to_string(other_user.id) - end - - test "retrieving a list", %{conn: conn} do - user = insert(:user) - {:ok, list} = Pleroma.List.create("name", user) - - conn = - conn - |> assign(:user, user) - |> get("/api/v1/lists/#{list.id}") - - assert %{"id" => id} = json_response(conn, 200) - assert id == to_string(list.id) - end - - test "renaming a list", %{conn: conn} do - user = insert(:user) - {:ok, list} = Pleroma.List.create("name", user) - - conn = - conn - |> assign(:user, user) - |> put("/api/v1/lists/#{list.id}", %{"title" => "newname"}) - - assert %{"title" => name} = json_response(conn, 200) - assert name == "newname" - end - - test "deleting a list", %{conn: conn} do - user = insert(:user) - {:ok, list} = Pleroma.List.create("name", user) - - conn = - conn - |> assign(:user, user) - |> delete("/api/v1/lists/#{list.id}") - - assert %{} = json_response(conn, 200) - assert is_nil(Repo.get(Pleroma.List, list.id)) - end - + describe "list timelines" do test "list timeline", %{conn: conn} do user = insert(:user) other_user = insert(:user) diff --git a/test/web/mastodon_api/list_view_test.exs b/test/web/mastodon_api/views/list_view_test.exs similarity index 56% rename from test/web/mastodon_api/list_view_test.exs rename to test/web/mastodon_api/views/list_view_test.exs index 73143467f..fb00310b9 100644 --- a/test/web/mastodon_api/list_view_test.exs +++ b/test/web/mastodon_api/views/list_view_test.exs @@ -7,7 +7,7 @@ defmodule Pleroma.Web.MastodonAPI.ListViewTest do import Pleroma.Factory alias Pleroma.Web.MastodonAPI.ListView - test "Represent a list" do + test "show" do user = insert(:user) title = "mortal enemies" {:ok, list} = Pleroma.List.create(title, user) @@ -17,6 +17,16 @@ test "Represent a list" do title: title } - assert expected == ListView.render("list.json", %{list: list}) + assert expected == ListView.render("show.json", %{list: list}) + end + + test "index" do + user = insert(:user) + + {:ok, list} = Pleroma.List.create("my list", user) + {:ok, list2} = Pleroma.List.create("cofe", user) + + assert [%{id: _, title: "my list"}, %{id: _, title: "cofe"}] = + ListView.render("index.json", lists: [list, list2]) end end From 4194abbc8fbc8003d9923edaa491e798bea92107 Mon Sep 17 00:00:00 2001 From: Egor Kislitsyn Date: Mon, 26 Aug 2019 19:32:47 +0700 Subject: [PATCH 048/400] Move mastodon_api/*_controller.ex to mastodon_api/controllers/ --- .../mastodon_api_controller.ex | 20 +++++++++---------- .../{ => controllers}/search_controller.ex | 0 .../subscription_controller.ex | 0 3 files changed, 10 insertions(+), 10 deletions(-) rename lib/pleroma/web/mastodon_api/{ => controllers}/mastodon_api_controller.ex (98%) rename lib/pleroma/web/mastodon_api/{ => controllers}/search_controller.ex (100%) rename lib/pleroma/web/mastodon_api/{ => controllers}/subscription_controller.ex (100%) diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex similarity index 98% rename from lib/pleroma/web/mastodon_api/mastodon_api_controller.ex rename to lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex index 31b0aaca0..83e877c0e 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex @@ -189,7 +189,7 @@ def update_credentials(%{assigns: %{user: user}} = conn, params) do info_cng = User.Info.profile_update(user.info, info_params) with changeset <- User.update_changeset(user, user_params), - changeset <- Ecto.Changeset.put_embed(changeset, :info, info_cng), + changeset <- Changeset.put_embed(changeset, :info, info_cng), {:ok, user} <- User.update_and_set_cache(changeset) do if original_user != user do CommonAPI.update(user) @@ -225,7 +225,7 @@ def update_avatar(%{assigns: %{user: user}} = conn, params) do def update_banner(%{assigns: %{user: user}} = conn, %{"banner" => ""}) do with new_info <- %{"banner" => %{}}, info_cng <- User.Info.profile_update(user.info, new_info), - changeset <- Ecto.Changeset.change(user) |> Ecto.Changeset.put_embed(:info, info_cng), + changeset <- Changeset.change(user) |> Changeset.put_embed(:info, info_cng), {:ok, user} <- User.update_and_set_cache(changeset) do CommonAPI.update(user) @@ -237,7 +237,7 @@ def update_banner(%{assigns: %{user: user}} = conn, params) do with {:ok, object} <- ActivityPub.upload(%{"img" => params["banner"]}, type: :banner), new_info <- %{"banner" => object.data}, info_cng <- User.Info.profile_update(user.info, new_info), - changeset <- Ecto.Changeset.change(user) |> Ecto.Changeset.put_embed(:info, info_cng), + changeset <- Changeset.change(user) |> Changeset.put_embed(:info, info_cng), {:ok, user} <- User.update_and_set_cache(changeset) do CommonAPI.update(user) %{"url" => [%{"href" => href} | _]} = object.data @@ -249,7 +249,7 @@ def update_banner(%{assigns: %{user: user}} = conn, params) do def update_background(%{assigns: %{user: user}} = conn, %{"img" => ""}) do with new_info <- %{"background" => %{}}, info_cng <- User.Info.profile_update(user.info, new_info), - changeset <- Ecto.Changeset.change(user) |> Ecto.Changeset.put_embed(:info, info_cng), + changeset <- Changeset.change(user) |> Changeset.put_embed(:info, info_cng), {:ok, _user} <- User.update_and_set_cache(changeset) do json(conn, %{url: nil}) end @@ -259,7 +259,7 @@ def update_background(%{assigns: %{user: user}} = conn, params) do with {:ok, object} <- ActivityPub.upload(params, type: :background), new_info <- %{"background" => object.data}, info_cng <- User.Info.profile_update(user.info, new_info), - changeset <- Ecto.Changeset.change(user) |> Ecto.Changeset.put_embed(:info, info_cng), + changeset <- Changeset.change(user) |> Changeset.put_embed(:info, info_cng), {:ok, _user} <- User.update_and_set_cache(changeset) do %{"url" => [%{"href" => href} | _]} = object.data @@ -806,8 +806,8 @@ def set_mascot(%{assigns: %{user: user}} = conn, %{"file" => file}) do user_changeset = user - |> Ecto.Changeset.change() - |> Ecto.Changeset.put_embed(:info, info_changeset) + |> Changeset.change() + |> Changeset.put_embed(:info, info_changeset) {:ok, _user} = User.update_and_set_cache(user_changeset) @@ -1344,8 +1344,8 @@ def index(%{assigns: %{user: user}} = conn, _params) do def put_settings(%{assigns: %{user: user}} = conn, %{"data" => settings} = _params) do info_cng = User.Info.mastodon_settings_update(user.info, settings) - with changeset <- Ecto.Changeset.change(user), - changeset <- Ecto.Changeset.put_embed(changeset, :info, info_cng), + with changeset <- Changeset.change(user), + changeset <- Changeset.put_embed(changeset, :info, info_cng), {:ok, _user} <- User.update_and_set_cache(changeset) do json(conn, %{}) else @@ -1409,7 +1409,7 @@ defp get_or_make_app do {:ok, app} else app - |> Ecto.Changeset.change(%{scopes: scopes}) + |> Changeset.change(%{scopes: scopes}) |> Repo.update() end diff --git a/lib/pleroma/web/mastodon_api/search_controller.ex b/lib/pleroma/web/mastodon_api/controllers/search_controller.ex similarity index 100% rename from lib/pleroma/web/mastodon_api/search_controller.ex rename to lib/pleroma/web/mastodon_api/controllers/search_controller.ex diff --git a/lib/pleroma/web/mastodon_api/subscription_controller.ex b/lib/pleroma/web/mastodon_api/controllers/subscription_controller.ex similarity index 100% rename from lib/pleroma/web/mastodon_api/subscription_controller.ex rename to lib/pleroma/web/mastodon_api/controllers/subscription_controller.ex From 019ced055836b3d01ea95865549478dc5cdb3c0e Mon Sep 17 00:00:00 2001 From: Egor Kislitsyn Date: Mon, 26 Aug 2019 19:34:43 +0700 Subject: [PATCH 049/400] Move test/web/mastodon_api/*_test.exs to test/web/mastodon_api/controllers and test/web/mastodon_api/views --- .../mastodon_api_controller/update_credentials_test.exs | 0 .../web/mastodon_api/{ => controllers}/search_controller_test.exs | 0 .../{ => controllers}/subscription_controller_test.exs | 0 test/web/mastodon_api/{ => views}/account_view_test.exs | 0 test/web/mastodon_api/{ => views}/conversation_view_test.exs | 0 test/web/mastodon_api/{ => views}/notification_view_test.exs | 0 test/web/mastodon_api/{ => views}/push_subscription_view_test.exs | 0 .../web/mastodon_api/{ => views}/scheduled_activity_view_test.exs | 0 test/web/mastodon_api/{ => views}/status_view_test.exs | 0 9 files changed, 0 insertions(+), 0 deletions(-) rename test/web/mastodon_api/{ => controllers}/mastodon_api_controller/update_credentials_test.exs (100%) rename test/web/mastodon_api/{ => controllers}/search_controller_test.exs (100%) rename test/web/mastodon_api/{ => controllers}/subscription_controller_test.exs (100%) rename test/web/mastodon_api/{ => views}/account_view_test.exs (100%) rename test/web/mastodon_api/{ => views}/conversation_view_test.exs (100%) rename test/web/mastodon_api/{ => views}/notification_view_test.exs (100%) rename test/web/mastodon_api/{ => views}/push_subscription_view_test.exs (100%) rename test/web/mastodon_api/{ => views}/scheduled_activity_view_test.exs (100%) rename test/web/mastodon_api/{ => views}/status_view_test.exs (100%) diff --git a/test/web/mastodon_api/mastodon_api_controller/update_credentials_test.exs b/test/web/mastodon_api/controllers/mastodon_api_controller/update_credentials_test.exs similarity index 100% rename from test/web/mastodon_api/mastodon_api_controller/update_credentials_test.exs rename to test/web/mastodon_api/controllers/mastodon_api_controller/update_credentials_test.exs diff --git a/test/web/mastodon_api/search_controller_test.exs b/test/web/mastodon_api/controllers/search_controller_test.exs similarity index 100% rename from test/web/mastodon_api/search_controller_test.exs rename to test/web/mastodon_api/controllers/search_controller_test.exs diff --git a/test/web/mastodon_api/subscription_controller_test.exs b/test/web/mastodon_api/controllers/subscription_controller_test.exs similarity index 100% rename from test/web/mastodon_api/subscription_controller_test.exs rename to test/web/mastodon_api/controllers/subscription_controller_test.exs diff --git a/test/web/mastodon_api/account_view_test.exs b/test/web/mastodon_api/views/account_view_test.exs similarity index 100% rename from test/web/mastodon_api/account_view_test.exs rename to test/web/mastodon_api/views/account_view_test.exs diff --git a/test/web/mastodon_api/conversation_view_test.exs b/test/web/mastodon_api/views/conversation_view_test.exs similarity index 100% rename from test/web/mastodon_api/conversation_view_test.exs rename to test/web/mastodon_api/views/conversation_view_test.exs diff --git a/test/web/mastodon_api/notification_view_test.exs b/test/web/mastodon_api/views/notification_view_test.exs similarity index 100% rename from test/web/mastodon_api/notification_view_test.exs rename to test/web/mastodon_api/views/notification_view_test.exs diff --git a/test/web/mastodon_api/push_subscription_view_test.exs b/test/web/mastodon_api/views/push_subscription_view_test.exs similarity index 100% rename from test/web/mastodon_api/push_subscription_view_test.exs rename to test/web/mastodon_api/views/push_subscription_view_test.exs diff --git a/test/web/mastodon_api/scheduled_activity_view_test.exs b/test/web/mastodon_api/views/scheduled_activity_view_test.exs similarity index 100% rename from test/web/mastodon_api/scheduled_activity_view_test.exs rename to test/web/mastodon_api/views/scheduled_activity_view_test.exs diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/views/status_view_test.exs similarity index 100% rename from test/web/mastodon_api/status_view_test.exs rename to test/web/mastodon_api/views/status_view_test.exs From 66c1966688e9bb24ce1703217b89d8ec390b6095 Mon Sep 17 00:00:00 2001 From: Egor Kislitsyn Date: Mon, 26 Aug 2019 20:36:44 +0700 Subject: [PATCH 050/400] Disable rate limiter by default --- config/config.exs | 11 +---------- docs/config.md | 2 ++ 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/config/config.exs b/config/config.exs index e58454d68..f630771a3 100644 --- a/config/config.exs +++ b/config/config.exs @@ -556,16 +556,7 @@ config :http_signatures, adapter: Pleroma.Signature -config :pleroma, :rate_limit, - search: [{1000, 10}, {1000, 30}], - app_account_creation: {1_800_000, 25}, - relations_actions: {10_000, 10}, - relation_id_action: {60_000, 2}, - statuses_actions: {10_000, 15}, - status_id_action: {60_000, 3}, - password_reset: {1_800_000, 5}, - account_confirmation_resend: {8_640_000, 5}, - ap_routes: {60_000, 15} +config :pleroma, :rate_limit, nil config :pleroma, Pleroma.ActivityExpiration, enabled: true diff --git a/docs/config.md b/docs/config.md index 414b54660..61aa7db9b 100644 --- a/docs/config.md +++ b/docs/config.md @@ -671,6 +671,8 @@ This will probably take a long time. ## :rate_limit +This is an advanced feature and disabled by default. + A keyword list of rate limiters where a key is a limiter name and value is the limiter configuration. The basic configuration is a tuple where: * The first element: `scale` (Integer). The time scale in milliseconds. From c338224c93c3e8111cecdd3ef652016a574b55f4 Mon Sep 17 00:00:00 2001 From: Maxim Filippov Date: Mon, 26 Aug 2019 17:24:22 +0300 Subject: [PATCH 051/400] Fix sporadic test --- test/web/admin_api/admin_api_controller_test.exs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/web/admin_api/admin_api_controller_test.exs b/test/web/admin_api/admin_api_controller_test.exs index 1afdb6a50..4e2c27431 100644 --- a/test/web/admin_api/admin_api_controller_test.exs +++ b/test/web/admin_api/admin_api_controller_test.exs @@ -64,8 +64,7 @@ test "Create" do log_entry = Repo.one(ModerationLog) - assert ModerationLog.get_log_entry_message(log_entry) == - "@#{admin.nickname} created users: @lain2, @lain" + assert ["lain", "lain2"] -- Enum.map(log_entry.data["subjects"], & &1["nickname"]) == [] end test "Cannot create user with exisiting email" do From fd076def0a2d42ca4b406cdde3fc54b665512362 Mon Sep 17 00:00:00 2001 From: Egor Kislitsyn Date: Tue, 27 Aug 2019 02:24:14 +0700 Subject: [PATCH 052/400] Fix typo --- docs/config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/config.md b/docs/config.md index 61aa7db9b..7a8819c91 100644 --- a/docs/config.md +++ b/docs/config.md @@ -8,7 +8,7 @@ If you run Pleroma with ``MIX_ENV=prod`` the file is ``prod.secret.exs``, otherw * `filters`: List of `Pleroma.Upload.Filter` to use. * `link_name`: When enabled Pleroma will add a `name` parameter to the url of the upload, for example `https://instance.tld/media/corndog.png?name=corndog.png`. This is needed to provide the correct filename in Content-Disposition headers when using filters like `Pleroma.Upload.Filter.Dedupe` * `base_url`: The base URL to access a user-uploaded file. Useful when you want to proxy the media files via another host. -* `proxy_remote`: If you\'re using a remote uploader, Pleroma will proxy media requests instead of redirecting to it. +* `proxy_remote`: If you're using a remote uploader, Pleroma will proxy media requests instead of redirecting to it. * `proxy_opts`: Proxy options, see `Pleroma.ReverseProxy` documentation. Note: `strip_exif` has been replaced by `Pleroma.Upload.Filter.Mogrify`. From 3da65292b389c1f1edeff03fd5097579721fb681 Mon Sep 17 00:00:00 2001 From: lain Date: Mon, 26 Aug 2019 14:34:52 -0500 Subject: [PATCH 053/400] Transmogrifier: Fix follow handling when the actor is an object. --- CHANGELOG.md | 1 + lib/pleroma/object.ex | 4 ++ .../web/activity_pub/transmogrifier.ex | 4 +- test/fixtures/osada-follow-activity.json | 56 +++++++++++++++++++ .../fixtures/tesla_mock/osada-user-indio.json | 1 + test/support/http_request_mock.ex | 5 ++ .../transmogrifier/follow_handling_test.exs | 19 +++++++ 7 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 test/fixtures/osada-follow-activity.json create mode 100644 test/fixtures/tesla_mock/osada-user-indio.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fdcb014a..20af9badc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Improve digest email template ### Fixed +- Following from Osada - Not being able to pin unlisted posts - Objects being re-embedded to activities after being updated (e.g faved/reposted). Running 'mix pleroma.database prune_objects' again is advised. - Favorites timeline doing database-intensive queries diff --git a/lib/pleroma/object.ex b/lib/pleroma/object.ex index c8d339c19..468549c87 100644 --- a/lib/pleroma/object.ex +++ b/lib/pleroma/object.ex @@ -230,4 +230,8 @@ def increase_vote_count(ap_id, name) do _ -> :noop end end + + def get_ap_id(%{"id" => id}), do: id + def get_ap_id(id) when is_binary(id), do: id + def get_ap_id(_), do: {:error, "Object is not a string and has no id."} end diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 36340a3a1..6c4259c02 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -464,8 +464,8 @@ def handle_incoming( %{"type" => "Follow", "object" => followed, "actor" => follower, "id" => id} = data, _options ) do - with %User{local: true} = followed <- User.get_cached_by_ap_id(followed), - {:ok, %User{} = follower} <- User.get_or_fetch_by_ap_id(follower), + with %User{local: true} = followed <- User.get_cached_by_ap_id(Object.get_ap_id(followed)), + {:ok, %User{} = follower} <- User.get_or_fetch_by_ap_id(Object.get_ap_id(follower)), {:ok, activity} <- ActivityPub.follow(follower, followed, id, false) do with deny_follow_blocked <- Pleroma.Config.get([:user, :deny_follow_blocked]), {_, false} <- {:user_blocked, User.blocks?(followed, follower) && deny_follow_blocked}, diff --git a/test/fixtures/osada-follow-activity.json b/test/fixtures/osada-follow-activity.json new file mode 100644 index 000000000..b991eea36 --- /dev/null +++ b/test/fixtures/osada-follow-activity.json @@ -0,0 +1,56 @@ +{ + "@context":[ + "https://www.w3.org/ns/activitystreams", + "https://w3id.org/security/v1", + "https://apfed.club/apschema/v1.4" + ], + "id":"https://apfed.club/follow/9", + "type":"Follow", + "actor":{ + "type":"Person", + "id":"https://apfed.club/channel/indio", + "preferredUsername":"indio", + "name":"Indio", + "updated":"2019-08-20T23:52:34Z", + "icon":{ + "type":"Image", + "mediaType":"image/jpeg", + "updated":"2019-08-20T23:53:37Z", + "url":"https://apfed.club/photo/profile/l/2", + "height":300, + "width":300 + }, + "url":"https://apfed.club/channel/indio", + "inbox":"https://apfed.club/inbox/indio", + "outbox":"https://apfed.club/outbox/indio", + "followers":"https://apfed.club/followers/indio", + "following":"https://apfed.club/following/indio", + "endpoints":{ + "sharedInbox":"https://apfed.club/inbox" + }, + "publicKey":{ + "id":"https://apfed.club/channel/indio", + "owner":"https://apfed.club/channel/indio", + "publicKeyPem":"-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA77TIR1VuSYFnmDRFGHHb\n4vaGdx9ranzRX4bfOKAqa++Ch5L4EqJpPy08RuM+NrYCYiYl4QQFDSSDXAEgb5g9\nC1TgWTfI7q/E0UBX2Vr0mU6X4i1ztv0tuQvegRjcSJ7l1AvoBs8Ip4MEJ3OPEQhB\ngJqAACB3Gnps4zi2I0yavkxUfGVKr6zKT3BxWh5hTpKC7Do+ChIrVZC2EwxND9K6 +\nsAnQHThcb5EQuvuzUQZKeS7IEOsd0JpZDmJjbfMGrAWE81pLIfEeeA2joCJiBBTO\nglDsW+juvZ+lWqJpMr2hMWpvfrFjJeUawNJCIzsLdVIZR+aKj5yy6yqoS8hkN9Ha\n1MljZpsXl+EmwcwAIqim1YeLwERCEAQ/JWbSt8pQTQbzZ6ibwQ4mchCxacrRbIVR +\nnL59fWMBassJcbY0VwrTugm2SBsYbDjESd55UZV03Rwr8qseGTyi+hH8O7w2SIaY\nzjN6AdZiPmsh00YflzlCk8MSLOHMol1vqIUzXxU8CdXn9+KsuQdZGrTz0YKN/db4\naVwUGJatz2Tsvf7R1tJBjJfeQWOWbbn3pycLVH86LjZ83qngp9ZVnAveUnUqz0yS +\nhe+buZ6UMsfGzbIYon2bKNlz6gYTH0YPcr+cLe+29drtt0GZiXha1agbpo4RB8zE +\naNL2fucF5YT0yNpbd/5WoV0CAwEAAQ==\n-----END PUBLIC KEY-----\n" + } + }, + "object":"https://pleroma.site/users/kaniini", + "to":[ + "https://pleroma.site/users/kaniini" + ], + "signature":{ + "@context":[ + "https://www.w3.org/ns/activitystreams", + "https://w3id.org/security/v1" + ], + "type":"RsaSignature2017", + "nonce":"52c035e0a9e81dce8b486159204e97c22637e91f75cdfad5378de91de68e9117", + "creator":"https://apfed.club/channel/indio/public_key_pem", + "created":"2019-08-22T03:38:02Z", + "signatureValue":"oVliRCIqNIh6yUp851dYrF0y21aHp3Rz6VkIpW1pFMWfXuzExyWSfcELpyLseeRmsw5bUu9zJkH44B4G2LiJQKA9UoEQDjrDMZBmbeUpiQqq3DVUzkrBOI8bHZ7xyJ/CjSZcNHHh0MHhSKxswyxWMGi4zIqzkAZG3vRRgoPVHdjPm00sR3B8jBLw1cjoffv+KKeM/zEUpe13gqX9qHAWHHqZepxgSWmq+EKOkRvHUPBXiEJZfXzc5uW+vZ09F3WBYmaRoy8Y0e1P29fnRLqSy7EEINdrHaGclRqoUZyiawpkgy3lWWlynesV/HiLBR7EXT79eKstxf4wfTDaPKBCfTCsOWuMWHr7Genu37ew2/t7eiBGqCwwW12ylhml/OLHgNK3LOhmRABhtfpaFZSxfDVnlXfaLpY1xekVOj2oC0FpBtnoxVKLpIcyLw6dkfSil5ANd+hl59W/bpPA8KT90ii1fSNCo3+FcwQVx0YsPznJNA60XfFuVsme7zNcOst6393e1WriZxBanFpfB63zVQc9u1fjyfktx/yiUNxIlre+sz9OCc0AACn94iRhBYh4bbzdleUOTnM7lnD4Dj2FP+xeDIP8CA8wXUeq5+9kopSp2kAmlUEyFUdg4no7naIeu1SZnopfUg56PsVCp9JHiUK1SYAyWbdC+FbUECu5CvI=" + } +} diff --git a/test/fixtures/tesla_mock/osada-user-indio.json b/test/fixtures/tesla_mock/osada-user-indio.json new file mode 100644 index 000000000..c1d52c92a --- /dev/null +++ b/test/fixtures/tesla_mock/osada-user-indio.json @@ -0,0 +1 @@ +{"@context":["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1"],"type":"Person","id":"https://apfed.club/channel/indio","preferredUsername":"indio","name":"Indio","updated":"2019-08-20T23:52:34Z","icon":{"type":"Image","mediaType":"image/jpeg","updated":"2019-08-20T23:53:37Z","url":"https://apfed.club/photo/profile/l/2","height":300,"width":300},"url":"https://apfed.club/channel/indio","inbox":"https://apfed.club/inbox/indio","outbox":"https://apfed.club/outbox/indio","followers":"https://apfed.club/followers/indio","following":"https://apfed.club/following/indio","endpoints":{"sharedInbox":"https://apfed.club/inbox"},"publicKey":{"id":"https://apfed.club/channel/indio","owner":"https://apfed.club/channel/indio","publicKeyPem":"-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA77TIR1VuSYFnmDRFGHHb\n4vaGdx9ranzRX4bfOKAqa++Ch5L4EqJpPy08RuM+NrYCYiYl4QQFDSSDXAEgb5g9\nC1TgWTfI7q/E0UBX2Vr0mU6X4i1ztv0tuQvegRjcSJ7l1AvoBs8Ip4MEJ3OPEQhB\ngJqAACB3Gnps4zi2I0yavkxUfGVKr6zKT3BxWh5hTpKC7Do+ChIrVZC2EwxND9K6\nsAnQHThcb5EQuvuzUQZKeS7IEOsd0JpZDmJjbfMGrAWE81pLIfEeeA2joCJiBBTO\nglDsW+juvZ+lWqJpMr2hMWpvfrFjJeUawNJCIzsLdVIZR+aKj5yy6yqoS8hkN9Ha\n1MljZpsXl+EmwcwAIqim1YeLwERCEAQ/JWbSt8pQTQbzZ6ibwQ4mchCxacrRbIVR\nnL59fWMBassJcbY0VwrTugm2SBsYbDjESd55UZV03Rwr8qseGTyi+hH8O7w2SIaY\nzjN6AdZiPmsh00YflzlCk8MSLOHMol1vqIUzXxU8CdXn9+KsuQdZGrTz0YKN/db4\naVwUGJatz2Tsvf7R1tJBjJfeQWOWbbn3pycLVH86LjZ83qngp9ZVnAveUnUqz0yS\nhe+buZ6UMsfGzbIYon2bKNlz6gYTH0YPcr+cLe+29drtt0GZiXha1agbpo4RB8zE\naNL2fucF5YT0yNpbd/5WoV0CAwEAAQ==\n-----END PUBLIC KEY-----\n"},"signature":{"@context":["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1"],"type":"RsaSignature2017","nonce":"c672a408d2e88b322b36a61bf0c25f586be9245d30293c55b8d653dcc867aaf7","creator":"https://apfed.club/channel/indio/public_key_pem","created":"2019-08-26T07:24:03Z","signatureValue":"MyAv5gnedu6L/DYFaE1TUYvp4LjI9ZUU0axwGYOhgD7qsjivMgwbOrjX/iH32xlcfF8nWOMh/ogu3+Qwr5sqLHkS2AimWmw1+Ubf2KccE58b8vI8zWfyu8QJnMuE92jtBPv8UTQUHw8ZebbExk3L99oXaeyVihKiMBmd63NpVTpGXZTg6m+H+KfWchVajPoyNKZtKMd3nH99x5j54Cqkz0BN5CSTwCSG0wP95G0VtZHtmhX+tsAPM3oAj0d+gtCZSCd8Nu8fvFAwCyTg1oKSfRqKb27EKHlskqK9X57x0jURH77CTAIQSejgGcKJ5GGLtvofubJkafadjagqrtqz6Mz6BZ642ssJ2KGkRAn79Q4F08goI6cfU5lLk2Tooe5A55XERnmE3SkYGyTvLpacZplxJdU0sa+deX9D7+alSGFJZSziaxpCxzrO6lEApe4b9kHXAzn9VaZt9trijkHq/kkq0i3NRcP7n8JG9q+Vv8jY9ddY6HcH89RNCBIA6MKLtAqc+vSc5G24qeZlw2MzlQWBp0KGuVG8DQR00AL6cXLBzF1WY8JZeEg6zqm+DMznbuNzgiS34BP+AehBSHlQ4MZebwDnK3ZPPqGSwioIWMxIFfZDaVDX9Pp1pXAARQMw0c/y4sDcf9FMzsr8jteEa7ZQcoqq5kXQTSCP56TEHnI="}} \ No newline at end of file diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 55b141dd8..05eebbe9b 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -775,6 +775,11 @@ def get("https://mastodon.social/users/lambadalambda", _, _, _) do {:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/lambadalambda.json")}} end + def get("https://apfed.club/channel/indio", _, _, _) do + {:ok, + %Tesla.Env{status: 200, body: File.read!("test/fixtures/tesla_mock/osada-user-indio.json")}} + end + def get("https://social.heldscal.la/user/23211", _, _, Accept: "application/activity+json") do {:ok, Tesla.Mock.json(%{"id" => "https://social.heldscal.la/user/23211"}, status: 200)} end diff --git a/test/web/activity_pub/transmogrifier/follow_handling_test.exs b/test/web/activity_pub/transmogrifier/follow_handling_test.exs index 857d65564..fe89f7cb0 100644 --- a/test/web/activity_pub/transmogrifier/follow_handling_test.exs +++ b/test/web/activity_pub/transmogrifier/follow_handling_test.exs @@ -19,6 +19,25 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier.FollowHandlingTest do end describe "handle_incoming" do + test "it works for osada follow request" do + user = insert(:user) + + data = + File.read!("test/fixtures/osada-follow-activity.json") + |> Poison.decode!() + |> Map.put("object", user.ap_id) + + {:ok, %Activity{data: data, local: false} = activity} = Transmogrifier.handle_incoming(data) + + assert data["actor"] == "https://apfed.club/channel/indio" + assert data["type"] == "Follow" + assert data["id"] == "https://apfed.club/follow/9" + + activity = Repo.get(Activity, activity.id) + assert activity.data["state"] == "accept" + assert User.following?(User.get_cached_by_ap_id(data["actor"]), user) + end + test "it works for incoming follow requests" do user = insert(:user) From eb1739c59699754297149c92ea3d03ec688ae16a Mon Sep 17 00:00:00 2001 From: rinpatch Date: Tue, 27 Aug 2019 12:29:19 +0300 Subject: [PATCH 054/400] Remove most of TwitterAPIController --- lib/pleroma/web/router.ex | 106 - .../web/twitter_api/twitter_api_controller.ex | 763 +----- .../twitter_api_controller_test.exs | 2150 ----------------- 3 files changed, 6 insertions(+), 3013 deletions(-) delete mode 100644 test/web/twitter_api/twitter_api_controller_test.exs diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 1ad33630c..53728e298 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -482,53 +482,12 @@ defmodule Pleroma.Web.Router do scope "/api", Pleroma.Web do pipe_through(:api) - post("/account/register", TwitterAPI.Controller, :register) - post("/account/password_reset", TwitterAPI.Controller, :password_reset) - - post("/account/resend_confirmation_email", TwitterAPI.Controller, :resend_confirmation_email) - get( "/account/confirm_email/:user_id/:token", TwitterAPI.Controller, :confirm_email, as: :confirm_email ) - - scope [] do - pipe_through(:oauth_read_or_public) - - get("/statuses/user_timeline", TwitterAPI.Controller, :user_timeline) - get("/qvitter/statuses/user_timeline", TwitterAPI.Controller, :user_timeline) - get("/users/show", TwitterAPI.Controller, :show_user) - - get("/statuses/followers", TwitterAPI.Controller, :followers) - get("/statuses/friends", TwitterAPI.Controller, :friends) - get("/statuses/blocks", TwitterAPI.Controller, :blocks) - get("/statuses/show/:id", TwitterAPI.Controller, :fetch_status) - get("/statusnet/conversation/:id", TwitterAPI.Controller, :fetch_conversation) - - get("/search", TwitterAPI.Controller, :search) - get("/statusnet/tags/timeline/:tag", TwitterAPI.Controller, :public_and_external_timeline) - end - end - - scope "/api", Pleroma.Web do - pipe_through([:api, :oauth_read_or_public]) - - get("/statuses/public_timeline", TwitterAPI.Controller, :public_timeline) - - get( - "/statuses/public_and_external_timeline", - TwitterAPI.Controller, - :public_and_external_timeline - ) - - get("/statuses/networkpublic_timeline", TwitterAPI.Controller, :public_and_external_timeline) - end - - scope "/api", Pleroma.Web, as: :twitter_api_search do - pipe_through([:api, :oauth_read_or_public]) - get("/pleroma/search_user", TwitterAPI.Controller, :search_user) end scope "/api", Pleroma.Web, as: :authenticated_twitter_api do @@ -536,71 +495,6 @@ defmodule Pleroma.Web.Router do get("/oauth_tokens", TwitterAPI.Controller, :oauth_tokens) delete("/oauth_tokens/:id", TwitterAPI.Controller, :revoke_token) - - scope [] do - pipe_through(:oauth_read) - - get("/account/verify_credentials", TwitterAPI.Controller, :verify_credentials) - post("/account/verify_credentials", TwitterAPI.Controller, :verify_credentials) - - get("/statuses/home_timeline", TwitterAPI.Controller, :friends_timeline) - get("/statuses/friends_timeline", TwitterAPI.Controller, :friends_timeline) - get("/statuses/mentions", TwitterAPI.Controller, :mentions_timeline) - get("/statuses/mentions_timeline", TwitterAPI.Controller, :mentions_timeline) - get("/statuses/dm_timeline", TwitterAPI.Controller, :dm_timeline) - get("/qvitter/statuses/notifications", TwitterAPI.Controller, :notifications) - - get("/pleroma/friend_requests", TwitterAPI.Controller, :friend_requests) - - get("/friends/ids", TwitterAPI.Controller, :friends_ids) - get("/friendships/no_retweets/ids", TwitterAPI.Controller, :empty_array) - - get("/mutes/users/ids", TwitterAPI.Controller, :empty_array) - get("/qvitter/mutes", TwitterAPI.Controller, :raw_empty_array) - - get("/externalprofile/show", TwitterAPI.Controller, :external_profile) - - post("/qvitter/statuses/notifications/read", TwitterAPI.Controller, :notifications_read) - end - - scope [] do - pipe_through(:oauth_write) - - post("/account/update_profile", TwitterAPI.Controller, :update_profile) - post("/account/update_profile_banner", TwitterAPI.Controller, :update_banner) - post("/qvitter/update_background_image", TwitterAPI.Controller, :update_background) - - post("/statuses/update", TwitterAPI.Controller, :status_update) - post("/statuses/retweet/:id", TwitterAPI.Controller, :retweet) - post("/statuses/unretweet/:id", TwitterAPI.Controller, :unretweet) - post("/statuses/destroy/:id", TwitterAPI.Controller, :delete_post) - - post("/statuses/pin/:id", TwitterAPI.Controller, :pin) - post("/statuses/unpin/:id", TwitterAPI.Controller, :unpin) - - post("/statusnet/media/upload", TwitterAPI.Controller, :upload) - post("/media/upload", TwitterAPI.Controller, :upload_json) - post("/media/metadata/create", TwitterAPI.Controller, :update_media) - - post("/favorites/create/:id", TwitterAPI.Controller, :favorite) - post("/favorites/create", TwitterAPI.Controller, :favorite) - post("/favorites/destroy/:id", TwitterAPI.Controller, :unfavorite) - - post("/qvitter/update_avatar", TwitterAPI.Controller, :update_avatar) - end - - scope [] do - pipe_through(:oauth_follow) - - post("/pleroma/friendships/approve", TwitterAPI.Controller, :approve_friend_request) - post("/pleroma/friendships/deny", TwitterAPI.Controller, :deny_friend_request) - - post("/friendships/create", TwitterAPI.Controller, :follow) - post("/friendships/destroy", TwitterAPI.Controller, :unfollow) - - post("/blocks/create", TwitterAPI.Controller, :block) - post("/blocks/destroy", TwitterAPI.Controller, :unblock) - end end pipeline :ap_service_actor do diff --git a/lib/pleroma/web/twitter_api/twitter_api_controller.ex b/lib/pleroma/web/twitter_api/twitter_api_controller.ex index 5dfab6a6c..1c3b11a57 100644 --- a/lib/pleroma/web/twitter_api/twitter_api_controller.ex +++ b/lib/pleroma/web/twitter_api/twitter_api_controller.ex @@ -5,448 +5,15 @@ defmodule Pleroma.Web.TwitterAPI.Controller do use Pleroma.Web, :controller - import Pleroma.Web.ControllerHelper, only: [json_response: 3] - alias Ecto.Changeset - alias Pleroma.Activity - alias Pleroma.Formatter - alias Pleroma.Notification - alias Pleroma.Object - alias Pleroma.Repo alias Pleroma.User - alias Pleroma.Web.ActivityPub.ActivityPub - alias Pleroma.Web.ActivityPub.Visibility - alias Pleroma.Web.CommonAPI - alias Pleroma.Web.CommonAPI.Utils alias Pleroma.Web.OAuth.Token - alias Pleroma.Web.TwitterAPI.ActivityView - alias Pleroma.Web.TwitterAPI.NotificationView alias Pleroma.Web.TwitterAPI.TokenView - alias Pleroma.Web.TwitterAPI.TwitterAPI - alias Pleroma.Web.TwitterAPI.UserView require Logger - plug(Pleroma.Plugs.RateLimiter, :password_reset when action == :password_reset) - plug(:only_if_public_instance when action in [:public_timeline, :public_and_external_timeline]) action_fallback(:errors) - def verify_credentials(%{assigns: %{user: user}} = conn, _params) do - token = Phoenix.Token.sign(conn, "user socket", user.id) - - conn - |> put_view(UserView) - |> render("show.json", %{user: user, token: token, for: user}) - end - - def status_update(%{assigns: %{user: user}} = conn, %{"status" => _} = status_data) do - with media_ids <- extract_media_ids(status_data), - {:ok, activity} <- - TwitterAPI.create_status(user, Map.put(status_data, "media_ids", media_ids)) do - conn - |> json(ActivityView.render("activity.json", activity: activity, for: user)) - else - _ -> empty_status_reply(conn) - end - end - - def status_update(conn, _status_data) do - empty_status_reply(conn) - end - - defp empty_status_reply(conn) do - bad_request_reply(conn, "Client must provide a 'status' parameter with a value.") - end - - defp extract_media_ids(status_data) do - with media_ids when not is_nil(media_ids) <- status_data["media_ids"], - split_ids <- String.split(media_ids, ","), - clean_ids <- Enum.reject(split_ids, fn id -> String.length(id) == 0 end) do - clean_ids - else - _e -> [] - end - end - - def public_and_external_timeline(%{assigns: %{user: user}} = conn, params) do - params = - params - |> Map.put("type", ["Create", "Announce"]) - |> Map.put("blocking_user", user) - - activities = ActivityPub.fetch_public_activities(params) - - conn - |> put_view(ActivityView) - |> render("index.json", %{activities: activities, for: user}) - end - - def public_timeline(%{assigns: %{user: user}} = conn, params) do - params = - params - |> Map.put("type", ["Create", "Announce"]) - |> Map.put("local_only", true) - |> Map.put("blocking_user", user) - - activities = ActivityPub.fetch_public_activities(params) - - conn - |> put_view(ActivityView) - |> render("index.json", %{activities: activities, for: user}) - end - - def friends_timeline(%{assigns: %{user: user}} = conn, params) do - params = - params - |> Map.put("type", ["Create", "Announce", "Follow", "Like"]) - |> Map.put("blocking_user", user) - |> Map.put("user", user) - - activities = ActivityPub.fetch_activities([user.ap_id | user.following], params) - - conn - |> put_view(ActivityView) - |> render("index.json", %{activities: activities, for: user}) - end - - def show_user(conn, params) do - for_user = conn.assigns.user - - with {:ok, shown} <- TwitterAPI.get_user(params), - true <- - User.auth_active?(shown) || - (for_user && (for_user.id == shown.id || User.superuser?(for_user))) do - params = - if for_user do - %{user: shown, for: for_user} - else - %{user: shown} - end - - conn - |> put_view(UserView) - |> render("show.json", params) - else - {:error, msg} -> - bad_request_reply(conn, msg) - - false -> - conn - |> put_status(404) - |> json(%{error: "Unconfirmed user"}) - end - end - - def user_timeline(%{assigns: %{user: user}} = conn, params) do - case TwitterAPI.get_user(user, params) do - {:ok, target_user} -> - # Twitter and ActivityPub use a different name and sense for this parameter. - {include_rts, params} = Map.pop(params, "include_rts") - - params = - case include_rts do - x when x == "false" or x == "0" -> Map.put(params, "exclude_reblogs", "true") - _ -> params - end - - activities = ActivityPub.fetch_user_activities(target_user, user, params) - - conn - |> put_view(ActivityView) - |> render("index.json", %{activities: activities, for: user}) - - {:error, msg} -> - bad_request_reply(conn, msg) - end - end - - def mentions_timeline(%{assigns: %{user: user}} = conn, params) do - params = - params - |> Map.put("type", ["Create", "Announce", "Follow", "Like"]) - |> Map.put("blocking_user", user) - |> Map.put(:visibility, ~w[unlisted public private]) - - activities = ActivityPub.fetch_activities([user.ap_id], params) - - conn - |> put_view(ActivityView) - |> render("index.json", %{activities: activities, for: user}) - end - - def dm_timeline(%{assigns: %{user: user}} = conn, params) do - params = - params - |> Map.put("type", "Create") - |> Map.put("blocking_user", user) - |> Map.put("user", user) - |> Map.put(:visibility, "direct") - |> Map.put(:order, :desc) - - activities = - ActivityPub.fetch_activities_query([user.ap_id], params) - |> Repo.all() - - conn - |> put_view(ActivityView) - |> render("index.json", %{activities: activities, for: user}) - end - - def notifications(%{assigns: %{user: user}} = conn, params) do - params = - if Map.has_key?(params, "with_muted") do - Map.put(params, :with_muted, params["with_muted"] in [true, "True", "true", "1"]) - else - params - end - - notifications = Notification.for_user(user, params) - - conn - |> put_view(NotificationView) - |> render("notification.json", %{notifications: notifications, for: user}) - end - - def notifications_read(%{assigns: %{user: user}} = conn, %{"latest_id" => latest_id} = params) do - Notification.set_read_up_to(user, latest_id) - - notifications = Notification.for_user(user, params) - - conn - |> put_view(NotificationView) - |> render("notification.json", %{notifications: notifications, for: user}) - end - - def notifications_read(%{assigns: %{user: _user}} = conn, _) do - bad_request_reply(conn, "You need to specify latest_id") - end - - def follow(%{assigns: %{user: user}} = conn, params) do - case TwitterAPI.follow(user, params) do - {:ok, user, followed, _activity} -> - conn - |> put_view(UserView) - |> render("show.json", %{user: followed, for: user}) - - {:error, msg} -> - forbidden_json_reply(conn, msg) - end - end - - def block(%{assigns: %{user: user}} = conn, params) do - case TwitterAPI.block(user, params) do - {:ok, user, blocked} -> - conn - |> put_view(UserView) - |> render("show.json", %{user: blocked, for: user}) - - {:error, msg} -> - forbidden_json_reply(conn, msg) - end - end - - def unblock(%{assigns: %{user: user}} = conn, params) do - case TwitterAPI.unblock(user, params) do - {:ok, user, blocked} -> - conn - |> put_view(UserView) - |> render("show.json", %{user: blocked, for: user}) - - {:error, msg} -> - forbidden_json_reply(conn, msg) - end - end - - def delete_post(%{assigns: %{user: user}} = conn, %{"id" => id}) do - with {:ok, activity} <- TwitterAPI.delete(user, id) do - conn - |> put_view(ActivityView) - |> render("activity.json", %{activity: activity, for: user}) - end - end - - def unfollow(%{assigns: %{user: user}} = conn, params) do - case TwitterAPI.unfollow(user, params) do - {:ok, user, unfollowed} -> - conn - |> put_view(UserView) - |> render("show.json", %{user: unfollowed, for: user}) - - {:error, msg} -> - forbidden_json_reply(conn, msg) - end - end - - def fetch_status(%{assigns: %{user: user}} = conn, %{"id" => id}) do - with %Activity{} = activity <- Activity.get_by_id(id), - true <- Visibility.visible_for_user?(activity, user) do - conn - |> put_view(ActivityView) - |> render("activity.json", %{activity: activity, for: user}) - end - end - - def fetch_conversation(%{assigns: %{user: user}} = conn, %{"id" => id}) do - with context when is_binary(context) <- Utils.conversation_id_to_context(id), - activities <- - ActivityPub.fetch_activities_for_context(context, %{ - "blocking_user" => user, - "user" => user - }) do - conn - |> put_view(ActivityView) - |> render("index.json", %{activities: activities, for: user}) - end - end - - @doc """ - Updates metadata of uploaded media object. - Derived from [Twitter API endpoint](https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-metadata-create). - """ - def update_media(%{assigns: %{user: user}} = conn, %{"media_id" => id} = data) do - object = Repo.get(Object, id) - description = get_in(data, ["alt_text", "text"]) || data["name"] || data["description"] - - {conn, status, response_body} = - cond do - !object -> - {halt(conn), :not_found, ""} - - !Object.authorize_mutation(object, user) -> - {halt(conn), :forbidden, "You can only update your own uploads."} - - !is_binary(description) -> - {conn, :not_modified, ""} - - true -> - new_data = Map.put(object.data, "name", description) - - {:ok, _} = - object - |> Object.change(%{data: new_data}) - |> Repo.update() - - {conn, :no_content, ""} - end - - conn - |> put_status(status) - |> json(response_body) - end - - def upload(%{assigns: %{user: user}} = conn, %{"media" => media}) do - response = TwitterAPI.upload(media, user) - - conn - |> put_resp_content_type("application/atom+xml") - |> send_resp(200, response) - end - - def upload_json(%{assigns: %{user: user}} = conn, %{"media" => media}) do - response = TwitterAPI.upload(media, user, "json") - - conn - |> json_reply(200, response) - end - - def get_by_id_or_ap_id(id) do - activity = Activity.get_by_id(id) || Activity.get_create_by_object_ap_id(id) - - if activity.data["type"] == "Create" do - activity - else - Activity.get_create_by_object_ap_id(activity.data["object"]) - end - end - - def favorite(%{assigns: %{user: user}} = conn, %{"id" => id}) do - with {:ok, activity} <- TwitterAPI.fav(user, id) do - conn - |> put_view(ActivityView) - |> render("activity.json", %{activity: activity, for: user}) - else - _ -> json_reply(conn, 400, Jason.encode!(%{})) - end - end - - def unfavorite(%{assigns: %{user: user}} = conn, %{"id" => id}) do - with {:ok, activity} <- TwitterAPI.unfav(user, id) do - conn - |> put_view(ActivityView) - |> render("activity.json", %{activity: activity, for: user}) - else - _ -> json_reply(conn, 400, Jason.encode!(%{})) - end - end - - def retweet(%{assigns: %{user: user}} = conn, %{"id" => id}) do - with {:ok, activity} <- TwitterAPI.repeat(user, id) do - conn - |> put_view(ActivityView) - |> render("activity.json", %{activity: activity, for: user}) - else - _ -> json_reply(conn, 400, Jason.encode!(%{})) - end - end - - def unretweet(%{assigns: %{user: user}} = conn, %{"id" => id}) do - with {:ok, activity} <- TwitterAPI.unrepeat(user, id) do - conn - |> put_view(ActivityView) - |> render("activity.json", %{activity: activity, for: user}) - else - _ -> json_reply(conn, 400, Jason.encode!(%{})) - end - end - - def pin(%{assigns: %{user: user}} = conn, %{"id" => id}) do - with {:ok, activity} <- TwitterAPI.pin(user, id) do - conn - |> put_view(ActivityView) - |> render("activity.json", %{activity: activity, for: user}) - else - {:error, message} -> bad_request_reply(conn, message) - err -> err - end - end - - def unpin(%{assigns: %{user: user}} = conn, %{"id" => id}) do - with {:ok, activity} <- TwitterAPI.unpin(user, id) do - conn - |> put_view(ActivityView) - |> render("activity.json", %{activity: activity, for: user}) - else - {:error, message} -> bad_request_reply(conn, message) - err -> err - end - end - - def register(conn, params) do - with {:ok, user} <- TwitterAPI.register_user(params) do - conn - |> put_view(UserView) - |> render("show.json", %{user: user}) - else - {:error, errors} -> - conn - |> json_reply(400, Jason.encode!(errors)) - end - end - - def password_reset(conn, params) do - nickname_or_email = params["email"] || params["nickname"] - - with {:ok, _} <- TwitterAPI.password_reset(nickname_or_email) do - json_response(conn, :no_content, "") - else - {:error, "unknown user"} -> - send_resp(conn, :not_found, "") - - {:error, _} -> - send_resp(conn, :bad_request, "") - end - end - def confirm_email(conn, %{"user_id" => uid, "token" => token}) do with %User{} = user <- User.get_cached_by_id(uid), true <- user.local, @@ -460,147 +27,6 @@ def confirm_email(conn, %{"user_id" => uid, "token" => token}) do end end - def resend_confirmation_email(conn, params) do - nickname_or_email = params["email"] || params["nickname"] - - with %User{} = user <- User.get_by_nickname_or_email(nickname_or_email), - {:ok, _} <- User.try_send_confirmation_email(user) do - conn - |> json_response(:no_content, "") - end - end - - def update_avatar(%{assigns: %{user: user}} = conn, %{"img" => ""}) do - change = Changeset.change(user, %{avatar: nil}) - {:ok, user} = User.update_and_set_cache(change) - CommonAPI.update(user) - - conn - |> put_view(UserView) - |> render("show.json", %{user: user, for: user}) - end - - def update_avatar(%{assigns: %{user: user}} = conn, params) do - {:ok, object} = ActivityPub.upload(params, type: :avatar) - change = Changeset.change(user, %{avatar: object.data}) - {:ok, user} = User.update_and_set_cache(change) - CommonAPI.update(user) - - conn - |> put_view(UserView) - |> render("show.json", %{user: user, for: user}) - end - - def update_banner(%{assigns: %{user: user}} = conn, %{"banner" => ""}) do - with new_info <- %{"banner" => %{}}, - info_cng <- User.Info.profile_update(user.info, new_info), - changeset <- Ecto.Changeset.change(user) |> Ecto.Changeset.put_embed(:info, info_cng), - {:ok, user} <- User.update_and_set_cache(changeset) do - CommonAPI.update(user) - response = %{url: nil} |> Jason.encode!() - - conn - |> json_reply(200, response) - end - end - - def update_banner(%{assigns: %{user: user}} = conn, params) do - with {:ok, object} <- ActivityPub.upload(%{"img" => params["banner"]}, type: :banner), - new_info <- %{"banner" => object.data}, - info_cng <- User.Info.profile_update(user.info, new_info), - changeset <- Ecto.Changeset.change(user) |> Ecto.Changeset.put_embed(:info, info_cng), - {:ok, user} <- User.update_and_set_cache(changeset) do - CommonAPI.update(user) - %{"url" => [%{"href" => href} | _]} = object.data - response = %{url: href} |> Jason.encode!() - - conn - |> json_reply(200, response) - end - end - - def update_background(%{assigns: %{user: user}} = conn, %{"img" => ""}) do - with new_info <- %{"background" => %{}}, - info_cng <- User.Info.profile_update(user.info, new_info), - changeset <- Ecto.Changeset.change(user) |> Ecto.Changeset.put_embed(:info, info_cng), - {:ok, _user} <- User.update_and_set_cache(changeset) do - response = %{url: nil} |> Jason.encode!() - - conn - |> json_reply(200, response) - end - end - - def update_background(%{assigns: %{user: user}} = conn, params) do - with {:ok, object} <- ActivityPub.upload(params, type: :background), - new_info <- %{"background" => object.data}, - info_cng <- User.Info.profile_update(user.info, new_info), - changeset <- Ecto.Changeset.change(user) |> Ecto.Changeset.put_embed(:info, info_cng), - {:ok, _user} <- User.update_and_set_cache(changeset) do - %{"url" => [%{"href" => href} | _]} = object.data - response = %{url: href} |> Jason.encode!() - - conn - |> json_reply(200, response) - end - end - - def external_profile(%{assigns: %{user: current_user}} = conn, %{"profileurl" => uri}) do - with {:ok, user_map} <- TwitterAPI.get_external_profile(current_user, uri), - response <- Jason.encode!(user_map) do - conn - |> json_reply(200, response) - else - _e -> - conn - |> put_status(404) - |> json(%{error: "Can't find user"}) - end - end - - def followers(%{assigns: %{user: for_user}} = conn, params) do - {:ok, page} = Ecto.Type.cast(:integer, params["page"] || 1) - - with {:ok, user} <- TwitterAPI.get_user(for_user, params), - {:ok, followers} <- User.get_followers(user, page) do - followers = - cond do - for_user && user.id == for_user.id -> followers - user.info.hide_followers -> [] - true -> followers - end - - conn - |> put_view(UserView) - |> render("index.json", %{users: followers, for: conn.assigns[:user]}) - else - _e -> bad_request_reply(conn, "Can't get followers") - end - end - - def friends(%{assigns: %{user: for_user}} = conn, params) do - {:ok, page} = Ecto.Type.cast(:integer, params["page"] || 1) - {:ok, export} = Ecto.Type.cast(:boolean, params["all"] || false) - - page = if export, do: nil, else: page - - with {:ok, user} <- TwitterAPI.get_user(conn.assigns[:user], params), - {:ok, friends} <- User.get_friends(user, page) do - friends = - cond do - for_user && user.id == for_user.id -> friends - user.info.hide_follows -> [] - true -> friends - end - - conn - |> put_view(UserView) - |> render("index.json", %{users: friends, for: conn.assigns[:user]}) - else - _e -> bad_request_reply(conn, "Can't get friends") - end - end - def oauth_tokens(%{assigns: %{user: user}} = conn, _params) do with oauth_tokens <- Token.get_user_tokens(user) do conn @@ -615,189 +41,6 @@ def revoke_token(%{assigns: %{user: user}} = conn, %{"id" => id} = _params) do json_reply(conn, 201, "") end - def blocks(%{assigns: %{user: user}} = conn, _params) do - with blocked_users <- User.blocked_users(user) do - conn - |> put_view(UserView) - |> render("index.json", %{users: blocked_users, for: user}) - end - end - - def friend_requests(conn, params) do - with {:ok, user} <- TwitterAPI.get_user(conn.assigns[:user], params), - {:ok, friend_requests} <- User.get_follow_requests(user) do - conn - |> put_view(UserView) - |> render("index.json", %{users: friend_requests, for: conn.assigns[:user]}) - else - _e -> bad_request_reply(conn, "Can't get friend requests") - end - end - - def approve_friend_request(conn, %{"user_id" => uid} = _params) do - with followed <- conn.assigns[:user], - %User{} = follower <- User.get_cached_by_id(uid), - {:ok, follower} <- CommonAPI.accept_follow_request(follower, followed) do - conn - |> put_view(UserView) - |> render("show.json", %{user: follower, for: followed}) - else - e -> bad_request_reply(conn, "Can't approve user: #{inspect(e)}") - end - end - - def deny_friend_request(conn, %{"user_id" => uid} = _params) do - with followed <- conn.assigns[:user], - %User{} = follower <- User.get_cached_by_id(uid), - {:ok, follower} <- CommonAPI.reject_follow_request(follower, followed) do - conn - |> put_view(UserView) - |> render("show.json", %{user: follower, for: followed}) - else - e -> bad_request_reply(conn, "Can't deny user: #{inspect(e)}") - end - end - - def friends_ids(%{assigns: %{user: user}} = conn, _params) do - with {:ok, friends} <- User.get_friends(user) do - ids = - friends - |> Enum.map(fn x -> x.id end) - |> Jason.encode!() - - json(conn, ids) - else - _e -> bad_request_reply(conn, "Can't get friends") - end - end - - def empty_array(conn, _params) do - json(conn, Jason.encode!([])) - end - - def raw_empty_array(conn, _params) do - json(conn, []) - end - - defp build_info_cng(user, params) do - info_params = - [ - "no_rich_text", - "locked", - "hide_followers", - "hide_follows", - "hide_favorites", - "show_role", - "skip_thread_containment" - ] - |> Enum.reduce(%{}, fn key, res -> - if value = params[key] do - Map.put(res, key, value == "true") - else - res - end - end) - - info_params = - if value = params["default_scope"] do - Map.put(info_params, "default_scope", value) - else - info_params - end - - User.Info.profile_update(user.info, info_params) - end - - defp parse_profile_bio(user, params) do - if bio = params["description"] do - emojis_text = (params["description"] || "") <> " " <> (params["name"] || "") - - emojis = - ((user.info.emoji || []) ++ Formatter.get_emoji_map(emojis_text)) - |> Enum.dedup() - - user_info = - user.info - |> Map.put( - "emoji", - emojis - ) - - params - |> Map.put("bio", User.parse_bio(bio, user)) - |> Map.put("info", user_info) - else - params - end - end - - def update_profile(%{assigns: %{user: user}} = conn, params) do - params = parse_profile_bio(user, params) - info_cng = build_info_cng(user, params) - - with changeset <- User.update_changeset(user, params), - changeset <- Ecto.Changeset.put_embed(changeset, :info, info_cng), - {:ok, user} <- User.update_and_set_cache(changeset) do - CommonAPI.update(user) - - conn - |> put_view(UserView) - |> render("user.json", %{user: user, for: user}) - else - error -> - Logger.debug("Can't update user: #{inspect(error)}") - bad_request_reply(conn, "Can't update user") - end - end - - def search(%{assigns: %{user: user}} = conn, %{"q" => _query} = params) do - activities = TwitterAPI.search(user, params) - - conn - |> put_view(ActivityView) - |> render("index.json", %{activities: activities, for: user}) - end - - def search_user(%{assigns: %{user: user}} = conn, %{"query" => query}) do - users = User.search(query, resolve: true, for_user: user) - - conn - |> put_view(UserView) - |> render("index.json", %{users: users, for: user}) - end - - defp bad_request_reply(conn, error_message) do - json = error_json(conn, error_message) - json_reply(conn, 400, json) - end - - defp json_reply(conn, status, json) do - conn - |> put_resp_content_type("application/json") - |> send_resp(status, json) - end - - defp forbidden_json_reply(conn, error_message) do - json = error_json(conn, error_message) - json_reply(conn, 403, json) - end - - def only_if_public_instance(%{assigns: %{user: %User{}}} = conn, _), do: conn - - def only_if_public_instance(conn, _) do - if Pleroma.Config.get([:instance, :public]) do - conn - else - conn - |> forbidden_json_reply("Invalid credentials.") - |> halt() - end - end - - defp error_json(conn, error_message) do - %{"error" => error_message, "request" => conn.request_path} |> Jason.encode!() - end - def errors(conn, {:param_cast, _}) do conn |> put_status(400) @@ -809,4 +52,10 @@ def errors(conn, _) do |> put_status(500) |> json("Something went wrong") end + + defp json_reply(conn, status, json) do + conn + |> put_resp_content_type("application/json") + |> send_resp(status, json) + end end diff --git a/test/web/twitter_api/twitter_api_controller_test.exs b/test/web/twitter_api/twitter_api_controller_test.exs deleted file mode 100644 index 8ef14b4c5..000000000 --- a/test/web/twitter_api/twitter_api_controller_test.exs +++ /dev/null @@ -1,2150 +0,0 @@ -# Pleroma: A lightweight social networking server -# Copyright © 2017-2019 Pleroma Authors -# SPDX-License-Identifier: AGPL-3.0-only - -defmodule Pleroma.Web.TwitterAPI.ControllerTest do - use Pleroma.Web.ConnCase - alias Comeonin.Pbkdf2 - alias Ecto.Changeset - alias Pleroma.Activity - alias Pleroma.Builders.ActivityBuilder - alias Pleroma.Builders.UserBuilder - alias Pleroma.Notification - alias Pleroma.Object - alias Pleroma.Repo - alias Pleroma.User - alias Pleroma.Web.ActivityPub.ActivityPub - alias Pleroma.Web.CommonAPI - alias Pleroma.Web.OAuth.Token - alias Pleroma.Web.TwitterAPI.ActivityView - alias Pleroma.Web.TwitterAPI.Controller - alias Pleroma.Web.TwitterAPI.NotificationView - alias Pleroma.Web.TwitterAPI.TwitterAPI - alias Pleroma.Web.TwitterAPI.UserView - - import Mock - import Pleroma.Factory - import Swoosh.TestAssertions - - @banner "data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7" - - describe "POST /api/account/update_profile_banner" do - test "it updates the banner", %{conn: conn} do - user = insert(:user) - - conn - |> assign(:user, user) - |> post(authenticated_twitter_api__path(conn, :update_banner), %{"banner" => @banner}) - |> json_response(200) - - user = refresh_record(user) - assert user.info.banner["type"] == "Image" - end - - test "profile banner can be reset", %{conn: conn} do - user = insert(:user) - - conn - |> assign(:user, user) - |> post(authenticated_twitter_api__path(conn, :update_banner), %{"banner" => ""}) - |> json_response(200) - - user = refresh_record(user) - assert user.info.banner == %{} - end - end - - describe "POST /api/qvitter/update_background_image" do - test "it updates the background", %{conn: conn} do - user = insert(:user) - - conn - |> assign(:user, user) - |> post(authenticated_twitter_api__path(conn, :update_background), %{"img" => @banner}) - |> json_response(200) - - user = refresh_record(user) - assert user.info.background["type"] == "Image" - end - - test "background can be reset", %{conn: conn} do - user = insert(:user) - - conn - |> assign(:user, user) - |> post(authenticated_twitter_api__path(conn, :update_background), %{"img" => ""}) - |> json_response(200) - - user = refresh_record(user) - assert user.info.background == %{} - end - end - - describe "POST /api/account/verify_credentials" do - setup [:valid_user] - - test "without valid credentials", %{conn: conn} do - conn = post(conn, "/api/account/verify_credentials.json") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials", %{conn: conn, user: user} do - response = - conn - |> with_credentials(user.nickname, "test") - |> post("/api/account/verify_credentials.json") - |> json_response(200) - - assert response == - UserView.render("show.json", %{user: user, token: response["token"], for: user}) - end - end - - describe "POST /statuses/update.json" do - setup [:valid_user] - - test "without valid credentials", %{conn: conn} do - conn = post(conn, "/api/statuses/update.json") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials", %{conn: conn, user: user} do - conn_with_creds = conn |> with_credentials(user.nickname, "test") - request_path = "/api/statuses/update.json" - - error_response = %{ - "request" => request_path, - "error" => "Client must provide a 'status' parameter with a value." - } - - conn = - conn_with_creds - |> post(request_path) - - assert json_response(conn, 400) == error_response - - conn = - conn_with_creds - |> post(request_path, %{status: ""}) - - assert json_response(conn, 400) == error_response - - conn = - conn_with_creds - |> post(request_path, %{status: " "}) - - assert json_response(conn, 400) == error_response - - # we post with visibility private in order to avoid triggering relay - conn = - conn_with_creds - |> post(request_path, %{status: "Nice meme.", visibility: "private"}) - - assert json_response(conn, 200) == - ActivityView.render("activity.json", %{ - activity: Repo.one(Activity), - user: user, - for: user - }) - end - end - - describe "GET /statuses/public_timeline.json" do - setup [:valid_user] - clear_config([:instance, :public]) - - test "returns statuses", %{conn: conn} do - user = insert(:user) - activities = ActivityBuilder.insert_list(30, %{}, %{user: user}) - ActivityBuilder.insert_list(10, %{}, %{user: user}) - since_id = List.last(activities).id - - conn = - conn - |> get("/api/statuses/public_timeline.json", %{since_id: since_id}) - - response = json_response(conn, 200) - - assert length(response) == 10 - end - - test "returns 403 to unauthenticated request when the instance is not public", %{conn: conn} do - Pleroma.Config.put([:instance, :public], false) - - conn - |> get("/api/statuses/public_timeline.json") - |> json_response(403) - end - - test "returns 200 to authenticated request when the instance is not public", - %{conn: conn, user: user} do - Pleroma.Config.put([:instance, :public], false) - - conn - |> with_credentials(user.nickname, "test") - |> get("/api/statuses/public_timeline.json") - |> json_response(200) - end - - test "returns 200 to unauthenticated request when the instance is public", %{conn: conn} do - conn - |> get("/api/statuses/public_timeline.json") - |> json_response(200) - end - - test "returns 200 to authenticated request when the instance is public", - %{conn: conn, user: user} do - conn - |> with_credentials(user.nickname, "test") - |> get("/api/statuses/public_timeline.json") - |> json_response(200) - end - - test_with_mock "treats user as unauthenticated if `assigns[:token]` is present but lacks `read` permission", - Controller, - [:passthrough], - [] do - token = insert(:oauth_token, scopes: ["write"]) - - build_conn() - |> put_req_header("authorization", "Bearer #{token.token}") - |> get("/api/statuses/public_timeline.json") - |> json_response(200) - - assert called(Controller.public_timeline(%{assigns: %{user: nil}}, :_)) - end - end - - describe "GET /statuses/public_and_external_timeline.json" do - setup [:valid_user] - clear_config([:instance, :public]) - - test "returns 403 to unauthenticated request when the instance is not public", %{conn: conn} do - Pleroma.Config.put([:instance, :public], false) - - conn - |> get("/api/statuses/public_and_external_timeline.json") - |> json_response(403) - end - - test "returns 200 to authenticated request when the instance is not public", - %{conn: conn, user: user} do - Pleroma.Config.put([:instance, :public], false) - - conn - |> with_credentials(user.nickname, "test") - |> get("/api/statuses/public_and_external_timeline.json") - |> json_response(200) - end - - test "returns 200 to unauthenticated request when the instance is public", %{conn: conn} do - conn - |> get("/api/statuses/public_and_external_timeline.json") - |> json_response(200) - end - - test "returns 200 to authenticated request when the instance is public", - %{conn: conn, user: user} do - conn - |> with_credentials(user.nickname, "test") - |> get("/api/statuses/public_and_external_timeline.json") - |> json_response(200) - end - end - - describe "GET /statuses/show/:id.json" do - test "returns one status", %{conn: conn} do - user = insert(:user) - {:ok, activity} = CommonAPI.post(user, %{"status" => "Hey!"}) - actor = User.get_cached_by_ap_id(activity.data["actor"]) - - conn = - conn - |> get("/api/statuses/show/#{activity.id}.json") - - response = json_response(conn, 200) - - assert response == ActivityView.render("activity.json", %{activity: activity, user: actor}) - end - end - - describe "GET /users/show.json" do - test "gets user with screen_name", %{conn: conn} do - user = insert(:user) - - conn = - conn - |> get("/api/users/show.json", %{"screen_name" => user.nickname}) - - response = json_response(conn, 200) - - assert response["id"] == user.id - end - - test "gets user with user_id", %{conn: conn} do - user = insert(:user) - - conn = - conn - |> get("/api/users/show.json", %{"user_id" => user.id}) - - response = json_response(conn, 200) - - assert response["id"] == user.id - end - - test "gets a user for a logged in user", %{conn: conn} do - user = insert(:user) - logged_in = insert(:user) - - {:ok, logged_in, user, _activity} = TwitterAPI.follow(logged_in, %{"user_id" => user.id}) - - conn = - conn - |> with_credentials(logged_in.nickname, "test") - |> get("/api/users/show.json", %{"user_id" => user.id}) - - response = json_response(conn, 200) - - assert response["following"] == true - end - end - - describe "GET /statusnet/conversation/:id.json" do - test "returns the statuses in the conversation", %{conn: conn} do - {:ok, _user} = UserBuilder.insert() - {:ok, activity} = ActivityBuilder.insert(%{"type" => "Create", "context" => "2hu"}) - {:ok, _activity_two} = ActivityBuilder.insert(%{"type" => "Create", "context" => "2hu"}) - {:ok, _activity_three} = ActivityBuilder.insert(%{"type" => "Create", "context" => "3hu"}) - - conn = - conn - |> get("/api/statusnet/conversation/#{activity.data["context_id"]}.json") - - response = json_response(conn, 200) - - assert length(response) == 2 - end - end - - describe "GET /statuses/friends_timeline.json" do - setup [:valid_user] - - test "without valid credentials", %{conn: conn} do - conn = get(conn, "/api/statuses/friends_timeline.json") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials", %{conn: conn, user: current_user} do - user = insert(:user) - - activities = - ActivityBuilder.insert_list(30, %{"to" => [User.ap_followers(user)]}, %{user: user}) - - returned_activities = - ActivityBuilder.insert_list(10, %{"to" => [User.ap_followers(user)]}, %{user: user}) - - other_user = insert(:user) - ActivityBuilder.insert_list(10, %{}, %{user: other_user}) - since_id = List.last(activities).id - - current_user = - Changeset.change(current_user, following: [User.ap_followers(user)]) - |> Repo.update!() - - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> get("/api/statuses/friends_timeline.json", %{since_id: since_id}) - - response = json_response(conn, 200) - - assert length(response) == 10 - - assert response == - Enum.map(returned_activities, fn activity -> - ActivityView.render("activity.json", %{ - activity: activity, - user: User.get_cached_by_ap_id(activity.data["actor"]), - for: current_user - }) - end) - end - end - - describe "GET /statuses/dm_timeline.json" do - test "it show direct messages", %{conn: conn} do - user_one = insert(:user) - user_two = insert(:user) - - {:ok, user_two} = User.follow(user_two, user_one) - - {:ok, direct} = - CommonAPI.post(user_one, %{ - "status" => "Hi @#{user_two.nickname}!", - "visibility" => "direct" - }) - - {:ok, direct_two} = - CommonAPI.post(user_two, %{ - "status" => "Hi @#{user_one.nickname}!", - "visibility" => "direct" - }) - - {:ok, _follower_only} = - CommonAPI.post(user_one, %{ - "status" => "Hi @#{user_two.nickname}!", - "visibility" => "private" - }) - - # Only direct should be visible here - res_conn = - conn - |> assign(:user, user_two) - |> get("/api/statuses/dm_timeline.json") - - [status, status_two] = json_response(res_conn, 200) - assert status["id"] == direct_two.id - assert status_two["id"] == direct.id - end - - test "doesn't include DMs from blocked users", %{conn: conn} do - blocker = insert(:user) - blocked = insert(:user) - user = insert(:user) - {:ok, blocker} = User.block(blocker, blocked) - - {:ok, _blocked_direct} = - CommonAPI.post(blocked, %{ - "status" => "Hi @#{blocker.nickname}!", - "visibility" => "direct" - }) - - {:ok, direct} = - CommonAPI.post(user, %{ - "status" => "Hi @#{blocker.nickname}!", - "visibility" => "direct" - }) - - res_conn = - conn - |> assign(:user, blocker) - |> get("/api/statuses/dm_timeline.json") - - [status] = json_response(res_conn, 200) - assert status["id"] == direct.id - end - end - - describe "GET /statuses/mentions.json" do - setup [:valid_user] - - test "without valid credentials", %{conn: conn} do - conn = get(conn, "/api/statuses/mentions.json") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials", %{conn: conn, user: current_user} do - {:ok, activity} = - CommonAPI.post(current_user, %{ - "status" => "why is tenshi eating a corndog so cute?", - "visibility" => "public" - }) - - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> get("/api/statuses/mentions.json") - - response = json_response(conn, 200) - - assert length(response) == 1 - - assert Enum.at(response, 0) == - ActivityView.render("activity.json", %{ - user: current_user, - for: current_user, - activity: activity - }) - end - - test "does not show DMs in mentions timeline", %{conn: conn, user: current_user} do - {:ok, _activity} = - CommonAPI.post(current_user, %{ - "status" => "Have you guys ever seen how cute tenshi eating a corndog is?", - "visibility" => "direct" - }) - - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> get("/api/statuses/mentions.json") - - response = json_response(conn, 200) - - assert Enum.empty?(response) - end - end - - describe "GET /api/qvitter/statuses/notifications.json" do - setup [:valid_user] - - test "without valid credentials", %{conn: conn} do - conn = get(conn, "/api/qvitter/statuses/notifications.json") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials", %{conn: conn, user: current_user} do - other_user = insert(:user) - - {:ok, _activity} = - ActivityBuilder.insert(%{"to" => [current_user.ap_id]}, %{user: other_user}) - - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> get("/api/qvitter/statuses/notifications.json") - - response = json_response(conn, 200) - - assert length(response) == 1 - - assert response == - NotificationView.render("notification.json", %{ - notifications: Notification.for_user(current_user), - for: current_user - }) - end - - test "muted user", %{conn: conn, user: current_user} do - other_user = insert(:user) - - {:ok, current_user} = User.mute(current_user, other_user) - - {:ok, _activity} = - ActivityBuilder.insert(%{"to" => [current_user.ap_id]}, %{user: other_user}) - - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> get("/api/qvitter/statuses/notifications.json") - - assert json_response(conn, 200) == [] - end - - test "muted user with with_muted parameter", %{conn: conn, user: current_user} do - other_user = insert(:user) - - {:ok, current_user} = User.mute(current_user, other_user) - - {:ok, _activity} = - ActivityBuilder.insert(%{"to" => [current_user.ap_id]}, %{user: other_user}) - - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> get("/api/qvitter/statuses/notifications.json", %{"with_muted" => "true"}) - - assert length(json_response(conn, 200)) == 1 - end - end - - describe "POST /api/qvitter/statuses/notifications/read" do - setup [:valid_user] - - test "without valid credentials", %{conn: conn} do - conn = post(conn, "/api/qvitter/statuses/notifications/read", %{"latest_id" => 1_234_567}) - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials, without any params", %{conn: conn, user: current_user} do - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/qvitter/statuses/notifications/read") - - assert json_response(conn, 400) == %{ - "error" => "You need to specify latest_id", - "request" => "/api/qvitter/statuses/notifications/read" - } - end - - test "with credentials, with params", %{conn: conn, user: current_user} do - other_user = insert(:user) - - {:ok, _activity} = - ActivityBuilder.insert(%{"to" => [current_user.ap_id]}, %{user: other_user}) - - response_conn = - conn - |> with_credentials(current_user.nickname, "test") - |> get("/api/qvitter/statuses/notifications.json") - - [notification] = response = json_response(response_conn, 200) - - assert length(response) == 1 - - assert notification["is_seen"] == 0 - - response_conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/qvitter/statuses/notifications/read", %{"latest_id" => notification["id"]}) - - [notification] = response = json_response(response_conn, 200) - - assert length(response) == 1 - - assert notification["is_seen"] == 1 - end - end - - describe "GET /statuses/user_timeline.json" do - setup [:valid_user] - - test "without any params", %{conn: conn} do - conn = get(conn, "/api/statuses/user_timeline.json") - - assert json_response(conn, 400) == %{ - "error" => "You need to specify screen_name or user_id", - "request" => "/api/statuses/user_timeline.json" - } - end - - test "with user_id", %{conn: conn} do - user = insert(:user) - {:ok, activity} = ActivityBuilder.insert(%{"id" => 1}, %{user: user}) - - conn = get(conn, "/api/statuses/user_timeline.json", %{"user_id" => user.id}) - response = json_response(conn, 200) - assert length(response) == 1 - - assert Enum.at(response, 0) == - ActivityView.render("activity.json", %{user: user, activity: activity}) - end - - test "with screen_name", %{conn: conn} do - user = insert(:user) - {:ok, activity} = ActivityBuilder.insert(%{"id" => 1}, %{user: user}) - - conn = get(conn, "/api/statuses/user_timeline.json", %{"screen_name" => user.nickname}) - response = json_response(conn, 200) - assert length(response) == 1 - - assert Enum.at(response, 0) == - ActivityView.render("activity.json", %{user: user, activity: activity}) - end - - test "with credentials", %{conn: conn, user: current_user} do - {:ok, activity} = ActivityBuilder.insert(%{"id" => 1}, %{user: current_user}) - - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> get("/api/statuses/user_timeline.json") - - response = json_response(conn, 200) - - assert length(response) == 1 - - assert Enum.at(response, 0) == - ActivityView.render("activity.json", %{ - user: current_user, - for: current_user, - activity: activity - }) - end - - test "with credentials with user_id", %{conn: conn, user: current_user} do - user = insert(:user) - {:ok, activity} = ActivityBuilder.insert(%{"id" => 1}, %{user: user}) - - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> get("/api/statuses/user_timeline.json", %{"user_id" => user.id}) - - response = json_response(conn, 200) - - assert length(response) == 1 - - assert Enum.at(response, 0) == - ActivityView.render("activity.json", %{user: user, activity: activity}) - end - - test "with credentials screen_name", %{conn: conn, user: current_user} do - user = insert(:user) - {:ok, activity} = ActivityBuilder.insert(%{"id" => 1}, %{user: user}) - - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> get("/api/statuses/user_timeline.json", %{"screen_name" => user.nickname}) - - response = json_response(conn, 200) - - assert length(response) == 1 - - assert Enum.at(response, 0) == - ActivityView.render("activity.json", %{user: user, activity: activity}) - end - - test "with credentials with user_id, excluding RTs", %{conn: conn, user: current_user} do - user = insert(:user) - {:ok, activity} = ActivityBuilder.insert(%{"id" => 1, "type" => "Create"}, %{user: user}) - {:ok, _} = ActivityBuilder.insert(%{"id" => 2, "type" => "Announce"}, %{user: user}) - - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> get("/api/statuses/user_timeline.json", %{ - "user_id" => user.id, - "include_rts" => "false" - }) - - response = json_response(conn, 200) - - assert length(response) == 1 - - assert Enum.at(response, 0) == - ActivityView.render("activity.json", %{user: user, activity: activity}) - - conn = - conn - |> get("/api/statuses/user_timeline.json", %{"user_id" => user.id, "include_rts" => "0"}) - - response = json_response(conn, 200) - - assert length(response) == 1 - - assert Enum.at(response, 0) == - ActivityView.render("activity.json", %{user: user, activity: activity}) - end - end - - describe "POST /friendships/create.json" do - setup [:valid_user] - - test "without valid credentials", %{conn: conn} do - conn = post(conn, "/api/friendships/create.json") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials", %{conn: conn, user: current_user} do - followed = insert(:user) - - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/friendships/create.json", %{user_id: followed.id}) - - current_user = User.get_cached_by_id(current_user.id) - assert User.ap_followers(followed) in current_user.following - - assert json_response(conn, 200) == - UserView.render("show.json", %{user: followed, for: current_user}) - end - - test "for restricted account", %{conn: conn, user: current_user} do - followed = insert(:user, info: %User.Info{locked: true}) - - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/friendships/create.json", %{user_id: followed.id}) - - current_user = User.get_cached_by_id(current_user.id) - followed = User.get_cached_by_id(followed.id) - - refute User.ap_followers(followed) in current_user.following - - assert json_response(conn, 200) == - UserView.render("show.json", %{user: followed, for: current_user}) - end - end - - describe "POST /friendships/destroy.json" do - setup [:valid_user] - - test "without valid credentials", %{conn: conn} do - conn = post(conn, "/api/friendships/destroy.json") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials", %{conn: conn, user: current_user} do - followed = insert(:user) - - {:ok, current_user} = User.follow(current_user, followed) - assert User.ap_followers(followed) in current_user.following - ActivityPub.follow(current_user, followed) - - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/friendships/destroy.json", %{user_id: followed.id}) - - current_user = User.get_cached_by_id(current_user.id) - assert current_user.following == [current_user.ap_id] - - assert json_response(conn, 200) == - UserView.render("show.json", %{user: followed, for: current_user}) - end - end - - describe "POST /blocks/create.json" do - setup [:valid_user] - - test "without valid credentials", %{conn: conn} do - conn = post(conn, "/api/blocks/create.json") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials", %{conn: conn, user: current_user} do - blocked = insert(:user) - - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/blocks/create.json", %{user_id: blocked.id}) - - current_user = User.get_cached_by_id(current_user.id) - assert User.blocks?(current_user, blocked) - - assert json_response(conn, 200) == - UserView.render("show.json", %{user: blocked, for: current_user}) - end - end - - describe "POST /blocks/destroy.json" do - setup [:valid_user] - - test "without valid credentials", %{conn: conn} do - conn = post(conn, "/api/blocks/destroy.json") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials", %{conn: conn, user: current_user} do - blocked = insert(:user) - - {:ok, current_user, blocked} = TwitterAPI.block(current_user, %{"user_id" => blocked.id}) - assert User.blocks?(current_user, blocked) - - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/blocks/destroy.json", %{user_id: blocked.id}) - - current_user = User.get_cached_by_id(current_user.id) - assert current_user.info.blocks == [] - - assert json_response(conn, 200) == - UserView.render("show.json", %{user: blocked, for: current_user}) - end - end - - describe "GET /help/test.json" do - test "returns \"ok\"", %{conn: conn} do - conn = get(conn, "/api/help/test.json") - assert json_response(conn, 200) == "ok" - end - end - - describe "POST /api/qvitter/update_avatar.json" do - setup [:valid_user] - - test "without valid credentials", %{conn: conn} do - conn = post(conn, "/api/qvitter/update_avatar.json") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials", %{conn: conn, user: current_user} do - avatar_image = File.read!("test/fixtures/avatar_data_uri") - - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/qvitter/update_avatar.json", %{img: avatar_image}) - - current_user = User.get_cached_by_id(current_user.id) - assert is_map(current_user.avatar) - - assert json_response(conn, 200) == - UserView.render("show.json", %{user: current_user, for: current_user}) - end - - test "user avatar can be reset", %{conn: conn, user: current_user} do - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/qvitter/update_avatar.json", %{img: ""}) - - current_user = User.get_cached_by_id(current_user.id) - assert current_user.avatar == nil - - assert json_response(conn, 200) == - UserView.render("show.json", %{user: current_user, for: current_user}) - end - end - - describe "GET /api/qvitter/mutes.json" do - setup [:valid_user] - - test "unimplemented mutes without valid credentials", %{conn: conn} do - conn = get(conn, "/api/qvitter/mutes.json") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "unimplemented mutes with credentials", %{conn: conn, user: current_user} do - response = - conn - |> with_credentials(current_user.nickname, "test") - |> get("/api/qvitter/mutes.json") - |> json_response(200) - - assert [] = response - end - end - - describe "POST /api/favorites/create/:id" do - setup [:valid_user] - - test "without valid credentials", %{conn: conn} do - note_activity = insert(:note_activity) - conn = post(conn, "/api/favorites/create/#{note_activity.id}.json") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials", %{conn: conn, user: current_user} do - note_activity = insert(:note_activity) - - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/favorites/create/#{note_activity.id}.json") - - assert json_response(conn, 200) - end - - test "with credentials, invalid param", %{conn: conn, user: current_user} do - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/favorites/create/wrong.json") - - assert json_response(conn, 400) - end - - test "with credentials, invalid activity", %{conn: conn, user: current_user} do - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/favorites/create/1.json") - - assert json_response(conn, 400) - end - end - - describe "POST /api/favorites/destroy/:id" do - setup [:valid_user] - - test "without valid credentials", %{conn: conn} do - note_activity = insert(:note_activity) - conn = post(conn, "/api/favorites/destroy/#{note_activity.id}.json") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials", %{conn: conn, user: current_user} do - note_activity = insert(:note_activity) - object = Object.normalize(note_activity) - ActivityPub.like(current_user, object) - - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/favorites/destroy/#{note_activity.id}.json") - - assert json_response(conn, 200) - end - end - - describe "POST /api/statuses/retweet/:id" do - setup [:valid_user] - - test "without valid credentials", %{conn: conn} do - note_activity = insert(:note_activity) - conn = post(conn, "/api/statuses/retweet/#{note_activity.id}.json") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials", %{conn: conn, user: current_user} do - note_activity = insert(:note_activity) - - request_path = "/api/statuses/retweet/#{note_activity.id}.json" - - response = - conn - |> with_credentials(current_user.nickname, "test") - |> post(request_path) - - activity = Activity.get_by_id(note_activity.id) - activity_user = User.get_cached_by_ap_id(note_activity.data["actor"]) - - assert json_response(response, 200) == - ActivityView.render("activity.json", %{ - user: activity_user, - for: current_user, - activity: activity - }) - end - end - - describe "POST /api/statuses/unretweet/:id" do - setup [:valid_user] - - test "without valid credentials", %{conn: conn} do - note_activity = insert(:note_activity) - conn = post(conn, "/api/statuses/unretweet/#{note_activity.id}.json") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials", %{conn: conn, user: current_user} do - note_activity = insert(:note_activity) - - request_path = "/api/statuses/retweet/#{note_activity.id}.json" - - _response = - conn - |> with_credentials(current_user.nickname, "test") - |> post(request_path) - - request_path = String.replace(request_path, "retweet", "unretweet") - - response = - conn - |> with_credentials(current_user.nickname, "test") - |> post(request_path) - - activity = Activity.get_by_id(note_activity.id) - activity_user = User.get_cached_by_ap_id(note_activity.data["actor"]) - - assert json_response(response, 200) == - ActivityView.render("activity.json", %{ - user: activity_user, - for: current_user, - activity: activity - }) - end - end - - describe "POST /api/account/register" do - test "it creates a new user", %{conn: conn} do - data = %{ - "nickname" => "lain", - "email" => "lain@wired.jp", - "fullname" => "lain iwakura", - "bio" => "close the world.", - "password" => "bear", - "confirm" => "bear" - } - - conn = - conn - |> post("/api/account/register", data) - - user = json_response(conn, 200) - - fetched_user = User.get_cached_by_nickname("lain") - assert user == UserView.render("show.json", %{user: fetched_user}) - end - - test "it returns errors on a problem", %{conn: conn} do - data = %{ - "email" => "lain@wired.jp", - "fullname" => "lain iwakura", - "bio" => "close the world.", - "password" => "bear", - "confirm" => "bear" - } - - conn = - conn - |> post("/api/account/register", data) - - errors = json_response(conn, 400) - - assert is_binary(errors["error"]) - end - end - - describe "POST /api/account/password_reset, with valid parameters" do - setup %{conn: conn} do - user = insert(:user) - conn = post(conn, "/api/account/password_reset?email=#{user.email}") - %{conn: conn, user: user} - end - - test "it returns 204", %{conn: conn} do - assert json_response(conn, :no_content) - end - - test "it creates a PasswordResetToken record for user", %{user: user} do - token_record = Repo.get_by(Pleroma.PasswordResetToken, user_id: user.id) - assert token_record - end - - test "it sends an email to user", %{user: user} do - token_record = Repo.get_by(Pleroma.PasswordResetToken, user_id: user.id) - - email = Pleroma.Emails.UserEmail.password_reset_email(user, token_record.token) - notify_email = Pleroma.Config.get([:instance, :notify_email]) - instance_name = Pleroma.Config.get([:instance, :name]) - - assert_email_sent( - from: {instance_name, notify_email}, - to: {user.name, user.email}, - html_body: email.html_body - ) - end - end - - describe "POST /api/account/password_reset, with invalid parameters" do - setup [:valid_user] - - test "it returns 404 when user is not found", %{conn: conn, user: user} do - conn = post(conn, "/api/account/password_reset?email=nonexisting_#{user.email}") - assert conn.status == 404 - assert conn.resp_body == "" - end - - test "it returns 400 when user is not local", %{conn: conn, user: user} do - {:ok, user} = Repo.update(Changeset.change(user, local: false)) - conn = post(conn, "/api/account/password_reset?email=#{user.email}") - assert conn.status == 400 - assert conn.resp_body == "" - end - end - - describe "GET /api/account/confirm_email/:id/:token" do - setup do - user = insert(:user) - info_change = User.Info.confirmation_changeset(user.info, need_confirmation: true) - - {:ok, user} = - user - |> Changeset.change() - |> Changeset.put_embed(:info, info_change) - |> Repo.update() - - assert user.info.confirmation_pending - - [user: user] - end - - test "it redirects to root url", %{conn: conn, user: user} do - conn = get(conn, "/api/account/confirm_email/#{user.id}/#{user.info.confirmation_token}") - - assert 302 == conn.status - end - - test "it confirms the user account", %{conn: conn, user: user} do - get(conn, "/api/account/confirm_email/#{user.id}/#{user.info.confirmation_token}") - - user = User.get_cached_by_id(user.id) - - refute user.info.confirmation_pending - refute user.info.confirmation_token - end - - test "it returns 500 if user cannot be found by id", %{conn: conn, user: user} do - conn = get(conn, "/api/account/confirm_email/0/#{user.info.confirmation_token}") - - assert 500 == conn.status - end - - test "it returns 500 if token is invalid", %{conn: conn, user: user} do - conn = get(conn, "/api/account/confirm_email/#{user.id}/wrong_token") - - assert 500 == conn.status - end - end - - describe "POST /api/account/resend_confirmation_email" do - setup do - user = insert(:user) - info_change = User.Info.confirmation_changeset(user.info, need_confirmation: true) - - {:ok, user} = - user - |> Changeset.change() - |> Changeset.put_embed(:info, info_change) - |> Repo.update() - - assert user.info.confirmation_pending - - [user: user] - end - - clear_config([:instance, :account_activation_required]) do - Pleroma.Config.put([:instance, :account_activation_required], true) - end - - test "it returns 204 No Content", %{conn: conn, user: user} do - conn - |> assign(:user, user) - |> post("/api/account/resend_confirmation_email?email=#{user.email}") - |> json_response(:no_content) - end - - test "it sends confirmation email", %{conn: conn, user: user} do - conn - |> assign(:user, user) - |> post("/api/account/resend_confirmation_email?email=#{user.email}") - - email = Pleroma.Emails.UserEmail.account_confirmation_email(user) - notify_email = Pleroma.Config.get([:instance, :notify_email]) - instance_name = Pleroma.Config.get([:instance, :name]) - - assert_email_sent( - from: {instance_name, notify_email}, - to: {user.name, user.email}, - html_body: email.html_body - ) - end - end - - describe "GET /api/externalprofile/show" do - test "it returns the user", %{conn: conn} do - user = insert(:user) - other_user = insert(:user) - - conn = - conn - |> assign(:user, user) - |> get("/api/externalprofile/show", %{profileurl: other_user.ap_id}) - - assert json_response(conn, 200) == UserView.render("show.json", %{user: other_user}) - end - end - - describe "GET /api/statuses/followers" do - test "it returns a user's followers", %{conn: conn} do - user = insert(:user) - follower_one = insert(:user) - follower_two = insert(:user) - _not_follower = insert(:user) - - {:ok, follower_one} = User.follow(follower_one, user) - {:ok, follower_two} = User.follow(follower_two, user) - - conn = - conn - |> assign(:user, user) - |> get("/api/statuses/followers") - - expected = UserView.render("index.json", %{users: [follower_one, follower_two], for: user}) - result = json_response(conn, 200) - assert Enum.sort(expected) == Enum.sort(result) - end - - test "it returns 20 followers per page", %{conn: conn} do - user = insert(:user) - followers = insert_list(21, :user) - - Enum.each(followers, fn follower -> - User.follow(follower, user) - end) - - res_conn = - conn - |> assign(:user, user) - |> get("/api/statuses/followers") - - result = json_response(res_conn, 200) - assert length(result) == 20 - - res_conn = - conn - |> assign(:user, user) - |> get("/api/statuses/followers?page=2") - - result = json_response(res_conn, 200) - assert length(result) == 1 - end - - test "it returns a given user's followers with user_id", %{conn: conn} do - user = insert(:user) - follower_one = insert(:user) - follower_two = insert(:user) - not_follower = insert(:user) - - {:ok, follower_one} = User.follow(follower_one, user) - {:ok, follower_two} = User.follow(follower_two, user) - - conn = - conn - |> assign(:user, not_follower) - |> get("/api/statuses/followers", %{"user_id" => user.id}) - - assert MapSet.equal?( - MapSet.new(json_response(conn, 200)), - MapSet.new( - UserView.render("index.json", %{ - users: [follower_one, follower_two], - for: not_follower - }) - ) - ) - end - - test "it returns empty when hide_followers is set to true", %{conn: conn} do - user = insert(:user, %{info: %{hide_followers: true}}) - follower_one = insert(:user) - follower_two = insert(:user) - not_follower = insert(:user) - - {:ok, _follower_one} = User.follow(follower_one, user) - {:ok, _follower_two} = User.follow(follower_two, user) - - response = - conn - |> assign(:user, not_follower) - |> get("/api/statuses/followers", %{"user_id" => user.id}) - |> json_response(200) - - assert [] == response - end - - test "it returns the followers when hide_followers is set to true if requested by the user themselves", - %{ - conn: conn - } do - user = insert(:user, %{info: %{hide_followers: true}}) - follower_one = insert(:user) - follower_two = insert(:user) - _not_follower = insert(:user) - - {:ok, _follower_one} = User.follow(follower_one, user) - {:ok, _follower_two} = User.follow(follower_two, user) - - conn = - conn - |> assign(:user, user) - |> get("/api/statuses/followers", %{"user_id" => user.id}) - - refute [] == json_response(conn, 200) - end - end - - describe "GET /api/statuses/blocks" do - test "it returns the list of users blocked by requester", %{conn: conn} do - user = insert(:user) - other_user = insert(:user) - - {:ok, user} = User.block(user, other_user) - - conn = - conn - |> assign(:user, user) - |> get("/api/statuses/blocks") - - expected = UserView.render("index.json", %{users: [other_user], for: user}) - result = json_response(conn, 200) - assert Enum.sort(expected) == Enum.sort(result) - end - end - - describe "GET /api/statuses/friends" do - test "it returns the logged in user's friends", %{conn: conn} do - user = insert(:user) - followed_one = insert(:user) - followed_two = insert(:user) - _not_followed = insert(:user) - - {:ok, user} = User.follow(user, followed_one) - {:ok, user} = User.follow(user, followed_two) - - conn = - conn - |> assign(:user, user) - |> get("/api/statuses/friends") - - expected = UserView.render("index.json", %{users: [followed_one, followed_two], for: user}) - result = json_response(conn, 200) - assert Enum.sort(expected) == Enum.sort(result) - end - - test "it returns 20 friends per page, except if 'export' is set to true", %{conn: conn} do - user = insert(:user) - followeds = insert_list(21, :user) - - {:ok, user} = - Enum.reduce(followeds, {:ok, user}, fn followed, {:ok, user} -> - User.follow(user, followed) - end) - - res_conn = - conn - |> assign(:user, user) - |> get("/api/statuses/friends") - - result = json_response(res_conn, 200) - assert length(result) == 20 - - res_conn = - conn - |> assign(:user, user) - |> get("/api/statuses/friends", %{page: 2}) - - result = json_response(res_conn, 200) - assert length(result) == 1 - - res_conn = - conn - |> assign(:user, user) - |> get("/api/statuses/friends", %{all: true}) - - result = json_response(res_conn, 200) - assert length(result) == 21 - end - - test "it returns a given user's friends with user_id", %{conn: conn} do - user = insert(:user) - followed_one = insert(:user) - followed_two = insert(:user) - _not_followed = insert(:user) - - {:ok, user} = User.follow(user, followed_one) - {:ok, user} = User.follow(user, followed_two) - - conn = - conn - |> assign(:user, user) - |> get("/api/statuses/friends", %{"user_id" => user.id}) - - assert MapSet.equal?( - MapSet.new(json_response(conn, 200)), - MapSet.new( - UserView.render("index.json", %{users: [followed_one, followed_two], for: user}) - ) - ) - end - - test "it returns empty when hide_follows is set to true", %{conn: conn} do - user = insert(:user, %{info: %{hide_follows: true}}) - followed_one = insert(:user) - followed_two = insert(:user) - not_followed = insert(:user) - - {:ok, user} = User.follow(user, followed_one) - {:ok, user} = User.follow(user, followed_two) - - conn = - conn - |> assign(:user, not_followed) - |> get("/api/statuses/friends", %{"user_id" => user.id}) - - assert [] == json_response(conn, 200) - end - - test "it returns friends when hide_follows is set to true if the user themselves request it", - %{ - conn: conn - } do - user = insert(:user, %{info: %{hide_follows: true}}) - followed_one = insert(:user) - followed_two = insert(:user) - _not_followed = insert(:user) - - {:ok, _user} = User.follow(user, followed_one) - {:ok, _user} = User.follow(user, followed_two) - - response = - conn - |> assign(:user, user) - |> get("/api/statuses/friends", %{"user_id" => user.id}) - |> json_response(200) - - refute [] == response - end - - test "it returns a given user's friends with screen_name", %{conn: conn} do - user = insert(:user) - followed_one = insert(:user) - followed_two = insert(:user) - _not_followed = insert(:user) - - {:ok, user} = User.follow(user, followed_one) - {:ok, user} = User.follow(user, followed_two) - - conn = - conn - |> assign(:user, user) - |> get("/api/statuses/friends", %{"screen_name" => user.nickname}) - - assert MapSet.equal?( - MapSet.new(json_response(conn, 200)), - MapSet.new( - UserView.render("index.json", %{users: [followed_one, followed_two], for: user}) - ) - ) - end - end - - describe "GET /friends/ids" do - test "it returns a user's friends", %{conn: conn} do - user = insert(:user) - followed_one = insert(:user) - followed_two = insert(:user) - _not_followed = insert(:user) - - {:ok, user} = User.follow(user, followed_one) - {:ok, user} = User.follow(user, followed_two) - - conn = - conn - |> assign(:user, user) - |> get("/api/friends/ids") - - expected = [followed_one.id, followed_two.id] - - assert MapSet.equal?( - MapSet.new(Poison.decode!(json_response(conn, 200))), - MapSet.new(expected) - ) - end - end - - describe "POST /api/account/update_profile.json" do - test "it updates a user's profile", %{conn: conn} do - user = insert(:user) - user2 = insert(:user) - - conn = - conn - |> assign(:user, user) - |> post("/api/account/update_profile.json", %{ - "name" => "new name", - "description" => "hi @#{user2.nickname}" - }) - - user = Repo.get!(User, user.id) - assert user.name == "new name" - - assert user.bio == - "hi @#{user2.nickname}" - - assert json_response(conn, 200) == UserView.render("user.json", %{user: user, for: user}) - end - - test "it sets and un-sets hide_follows", %{conn: conn} do - user = insert(:user) - - conn - |> assign(:user, user) - |> post("/api/account/update_profile.json", %{ - "hide_follows" => "true" - }) - - user = Repo.get!(User, user.id) - assert user.info.hide_follows == true - - conn = - conn - |> assign(:user, user) - |> post("/api/account/update_profile.json", %{ - "hide_follows" => "false" - }) - - user = refresh_record(user) - assert user.info.hide_follows == false - assert json_response(conn, 200) == UserView.render("user.json", %{user: user, for: user}) - end - - test "it sets and un-sets hide_followers", %{conn: conn} do - user = insert(:user) - - conn - |> assign(:user, user) - |> post("/api/account/update_profile.json", %{ - "hide_followers" => "true" - }) - - user = Repo.get!(User, user.id) - assert user.info.hide_followers == true - - conn = - conn - |> assign(:user, user) - |> post("/api/account/update_profile.json", %{ - "hide_followers" => "false" - }) - - user = Repo.get!(User, user.id) - assert user.info.hide_followers == false - assert json_response(conn, 200) == UserView.render("user.json", %{user: user, for: user}) - end - - test "it sets and un-sets show_role", %{conn: conn} do - user = insert(:user) - - conn - |> assign(:user, user) - |> post("/api/account/update_profile.json", %{ - "show_role" => "true" - }) - - user = Repo.get!(User, user.id) - assert user.info.show_role == true - - conn = - conn - |> assign(:user, user) - |> post("/api/account/update_profile.json", %{ - "show_role" => "false" - }) - - user = Repo.get!(User, user.id) - assert user.info.show_role == false - assert json_response(conn, 200) == UserView.render("user.json", %{user: user, for: user}) - end - - test "it sets and un-sets skip_thread_containment", %{conn: conn} do - user = insert(:user) - - response = - conn - |> assign(:user, user) - |> post("/api/account/update_profile.json", %{"skip_thread_containment" => "true"}) - |> json_response(200) - - assert response["pleroma"]["skip_thread_containment"] == true - user = refresh_record(user) - assert user.info.skip_thread_containment - - response = - conn - |> assign(:user, user) - |> post("/api/account/update_profile.json", %{"skip_thread_containment" => "false"}) - |> json_response(200) - - assert response["pleroma"]["skip_thread_containment"] == false - refute refresh_record(user).info.skip_thread_containment - end - - test "it locks an account", %{conn: conn} do - user = insert(:user) - - conn = - conn - |> assign(:user, user) - |> post("/api/account/update_profile.json", %{ - "locked" => "true" - }) - - user = Repo.get!(User, user.id) - assert user.info.locked == true - - assert json_response(conn, 200) == UserView.render("user.json", %{user: user, for: user}) - end - - test "it unlocks an account", %{conn: conn} do - user = insert(:user) - - conn = - conn - |> assign(:user, user) - |> post("/api/account/update_profile.json", %{ - "locked" => "false" - }) - - user = Repo.get!(User, user.id) - assert user.info.locked == false - - assert json_response(conn, 200) == UserView.render("user.json", %{user: user, for: user}) - end - - # Broken before the change to class="emoji" and non- in the DB - @tag :skip - test "it formats emojos", %{conn: conn} do - user = insert(:user) - - conn = - conn - |> assign(:user, user) - |> post("/api/account/update_profile.json", %{ - "bio" => "I love our :moominmamma:​" - }) - - assert response = json_response(conn, 200) - - assert %{ - "description" => "I love our :moominmamma:", - "description_html" => - ~s{I love our moominmamma Base.encode64("#{username}:#{password}") - put_req_header(conn, "authorization", header_content) - end - - describe "GET /api/search.json" do - test "it returns search results", %{conn: conn} do - user = insert(:user) - user_two = insert(:user, %{nickname: "shp@shitposter.club"}) - - {:ok, activity} = CommonAPI.post(user, %{"status" => "This is about 2hu"}) - {:ok, _} = CommonAPI.post(user_two, %{"status" => "This isn't"}) - - conn = - conn - |> get("/api/search.json", %{"q" => "2hu", "page" => "1", "rpp" => "1"}) - - assert [status] = json_response(conn, 200) - assert status["id"] == activity.id - end - end - - describe "GET /api/statusnet/tags/timeline/:tag.json" do - test "it returns the tags timeline", %{conn: conn} do - user = insert(:user) - user_two = insert(:user, %{nickname: "shp@shitposter.club"}) - - {:ok, activity} = CommonAPI.post(user, %{"status" => "This is about #2hu"}) - {:ok, _} = CommonAPI.post(user_two, %{"status" => "This isn't"}) - - conn = - conn - |> get("/api/statusnet/tags/timeline/2hu.json") - - assert [status] = json_response(conn, 200) - assert status["id"] == activity.id - end - end - - test "Convert newlines to
in bio", %{conn: conn} do - user = insert(:user) - - _conn = - conn - |> assign(:user, user) - |> post("/api/account/update_profile.json", %{ - "description" => "Hello,\r\nWorld! I\n am a test." - }) - - user = Repo.get!(User, user.id) - assert user.bio == "Hello,
World! I
am a test." - end - - describe "POST /api/pleroma/change_password" do - setup [:valid_user] - - test "without credentials", %{conn: conn} do - conn = post(conn, "/api/pleroma/change_password") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials and invalid password", %{conn: conn, user: current_user} do - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/pleroma/change_password", %{ - "password" => "hi", - "new_password" => "newpass", - "new_password_confirmation" => "newpass" - }) - - assert json_response(conn, 200) == %{"error" => "Invalid password."} - end - - test "with credentials, valid password and new password and confirmation not matching", %{ - conn: conn, - user: current_user - } do - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/pleroma/change_password", %{ - "password" => "test", - "new_password" => "newpass", - "new_password_confirmation" => "notnewpass" - }) - - assert json_response(conn, 200) == %{ - "error" => "New password does not match confirmation." - } - end - - test "with credentials, valid password and invalid new password", %{ - conn: conn, - user: current_user - } do - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/pleroma/change_password", %{ - "password" => "test", - "new_password" => "", - "new_password_confirmation" => "" - }) - - assert json_response(conn, 200) == %{ - "error" => "New password can't be blank." - } - end - - test "with credentials, valid password and matching new password and confirmation", %{ - conn: conn, - user: current_user - } do - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/pleroma/change_password", %{ - "password" => "test", - "new_password" => "newpass", - "new_password_confirmation" => "newpass" - }) - - assert json_response(conn, 200) == %{"status" => "success"} - fetched_user = User.get_cached_by_id(current_user.id) - assert Pbkdf2.checkpw("newpass", fetched_user.password_hash) == true - end - end - - describe "POST /api/pleroma/delete_account" do - setup [:valid_user] - - test "without credentials", %{conn: conn} do - conn = post(conn, "/api/pleroma/delete_account") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials and invalid password", %{conn: conn, user: current_user} do - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/pleroma/delete_account", %{"password" => "hi"}) - - assert json_response(conn, 200) == %{"error" => "Invalid password."} - end - - test "with credentials and valid password", %{conn: conn, user: current_user} do - conn = - conn - |> with_credentials(current_user.nickname, "test") - |> post("/api/pleroma/delete_account", %{"password" => "test"}) - - assert json_response(conn, 200) == %{"status" => "success"} - # Wait a second for the started task to end - :timer.sleep(1000) - end - end - - describe "GET /api/pleroma/friend_requests" do - test "it lists friend requests" do - user = insert(:user) - other_user = insert(:user) - - {:ok, _activity} = ActivityPub.follow(other_user, user) - - user = User.get_cached_by_id(user.id) - other_user = User.get_cached_by_id(other_user.id) - - assert User.following?(other_user, user) == false - - conn = - build_conn() - |> assign(:user, user) - |> get("/api/pleroma/friend_requests") - - assert [relationship] = json_response(conn, 200) - assert other_user.id == relationship["id"] - end - - test "requires 'read' permission", %{conn: conn} do - token1 = insert(:oauth_token, scopes: ["write"]) - token2 = insert(:oauth_token, scopes: ["read"]) - - for token <- [token1, token2] do - conn = - conn - |> put_req_header("authorization", "Bearer #{token.token}") - |> get("/api/pleroma/friend_requests") - - if token == token1 do - assert %{"error" => "Insufficient permissions: read."} == json_response(conn, 403) - else - assert json_response(conn, 200) - end - end - end - end - - describe "POST /api/pleroma/friendships/approve" do - test "it approves a friend request" do - user = insert(:user) - other_user = insert(:user) - - {:ok, _activity} = ActivityPub.follow(other_user, user) - - user = User.get_cached_by_id(user.id) - other_user = User.get_cached_by_id(other_user.id) - - assert User.following?(other_user, user) == false - - conn = - build_conn() - |> assign(:user, user) - |> post("/api/pleroma/friendships/approve", %{"user_id" => other_user.id}) - - assert relationship = json_response(conn, 200) - assert other_user.id == relationship["id"] - assert relationship["follows_you"] == true - end - end - - describe "POST /api/pleroma/friendships/deny" do - test "it denies a friend request" do - user = insert(:user) - other_user = insert(:user) - - {:ok, _activity} = ActivityPub.follow(other_user, user) - - user = User.get_cached_by_id(user.id) - other_user = User.get_cached_by_id(other_user.id) - - assert User.following?(other_user, user) == false - - conn = - build_conn() - |> assign(:user, user) - |> post("/api/pleroma/friendships/deny", %{"user_id" => other_user.id}) - - assert relationship = json_response(conn, 200) - assert other_user.id == relationship["id"] - assert relationship["follows_you"] == false - end - end - - describe "GET /api/pleroma/search_user" do - test "it returns users, ordered by similarity", %{conn: conn} do - user = insert(:user, %{name: "eal"}) - user_two = insert(:user, %{name: "eal me"}) - _user_three = insert(:user, %{name: "zzz"}) - - resp = - conn - |> get(twitter_api_search__path(conn, :search_user), query: "eal me") - |> json_response(200) - - assert length(resp) == 2 - assert [user_two.id, user.id] == Enum.map(resp, fn %{"id" => id} -> id end) - end - end - - describe "POST /api/media/upload" do - setup context do - Pleroma.DataCase.ensure_local_uploader(context) - end - - test "it performs the upload and sets `data[actor]` with AP id of uploader user", %{ - conn: conn - } do - user = insert(:user) - - upload_filename = "test/fixtures/image_tmp.jpg" - File.cp!("test/fixtures/image.jpg", upload_filename) - - file = %Plug.Upload{ - content_type: "image/jpg", - path: Path.absname(upload_filename), - filename: "image.jpg" - } - - response = - conn - |> assign(:user, user) - |> put_req_header("content-type", "application/octet-stream") - |> post("/api/media/upload", %{ - "media" => file - }) - |> json_response(:ok) - - assert response["media_id"] - object = Repo.get(Object, response["media_id"]) - assert object - assert object.data["actor"] == User.ap_id(user) - end - end - - describe "POST /api/media/metadata/create" do - setup do - object = insert(:note) - user = User.get_cached_by_ap_id(object.data["actor"]) - %{object: object, user: user} - end - - test "it returns :forbidden status on attempt to modify someone else's upload", %{ - conn: conn, - object: object - } do - initial_description = object.data["name"] - another_user = insert(:user) - - conn - |> assign(:user, another_user) - |> post("/api/media/metadata/create", %{"media_id" => object.id}) - |> json_response(:forbidden) - - object = Repo.get(Object, object.id) - assert object.data["name"] == initial_description - end - - test "it updates `data[name]` of referenced Object with provided value", %{ - conn: conn, - object: object, - user: user - } do - description = "Informative description of the image. Initial value: #{object.data["name"]}}" - - conn - |> assign(:user, user) - |> post("/api/media/metadata/create", %{ - "media_id" => object.id, - "alt_text" => %{"text" => description} - }) - |> json_response(:no_content) - - object = Repo.get(Object, object.id) - assert object.data["name"] == description - end - end - - describe "POST /api/statuses/user_timeline.json?user_id=:user_id&pinned=true" do - test "it returns a list of pinned statuses", %{conn: conn} do - Pleroma.Config.put([:instance, :max_pinned_statuses], 1) - - user = insert(:user, %{name: "egor"}) - {:ok, %{id: activity_id}} = CommonAPI.post(user, %{"status" => "HI!!!"}) - {:ok, _} = CommonAPI.pin(activity_id, user) - - resp = - conn - |> get("/api/statuses/user_timeline.json", %{user_id: user.id, pinned: true}) - |> json_response(200) - - assert length(resp) == 1 - assert [%{"id" => ^activity_id, "pinned" => true}] = resp - end - end - - describe "POST /api/statuses/pin/:id" do - setup do - Pleroma.Config.put([:instance, :max_pinned_statuses], 1) - [user: insert(:user)] - end - - test "without valid credentials", %{conn: conn} do - note_activity = insert(:note_activity) - conn = post(conn, "/api/statuses/pin/#{note_activity.id}.json") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials", %{conn: conn, user: user} do - {:ok, activity} = CommonAPI.post(user, %{"status" => "test!"}) - - request_path = "/api/statuses/pin/#{activity.id}.json" - - response = - conn - |> with_credentials(user.nickname, "test") - |> post(request_path) - - user = refresh_record(user) - - assert json_response(response, 200) == - ActivityView.render("activity.json", %{user: user, for: user, activity: activity}) - end - end - - describe "POST /api/statuses/unpin/:id" do - setup do - Pleroma.Config.put([:instance, :max_pinned_statuses], 1) - [user: insert(:user)] - end - - test "without valid credentials", %{conn: conn} do - note_activity = insert(:note_activity) - conn = post(conn, "/api/statuses/unpin/#{note_activity.id}.json") - assert json_response(conn, 403) == %{"error" => "Invalid credentials."} - end - - test "with credentials", %{conn: conn, user: user} do - {:ok, activity} = CommonAPI.post(user, %{"status" => "test!"}) - {:ok, activity} = CommonAPI.pin(activity.id, user) - - request_path = "/api/statuses/unpin/#{activity.id}.json" - - response = - conn - |> with_credentials(user.nickname, "test") - |> post(request_path) - - user = refresh_record(user) - - assert json_response(response, 200) == - ActivityView.render("activity.json", %{user: user, for: user, activity: activity}) - end - end - - describe "GET /api/oauth_tokens" do - setup do - token = insert(:oauth_token) |> Repo.preload(:user) - - %{token: token} - end - - test "renders list", %{token: token} do - response = - build_conn() - |> assign(:user, token.user) - |> get("/api/oauth_tokens") - - keys = - json_response(response, 200) - |> hd() - |> Map.keys() - - assert keys -- ["id", "app_name", "valid_until"] == [] - end - - test "revoke token", %{token: token} do - response = - build_conn() - |> assign(:user, token.user) - |> delete("/api/oauth_tokens/#{token.id}") - - tokens = Token.get_user_tokens(token.user) - - assert tokens == [] - assert response.status == 201 - end - end -end From cd78e63a2528ab813088d5e44a026f6bb05b344b Mon Sep 17 00:00:00 2001 From: Ivan Tashkinov Date: Tue, 27 Aug 2019 14:34:37 +0300 Subject: [PATCH 055/400] [#1149] Bugfix: Pleroma.Workers.Subscriber / "verify_websub" works with WebsubServerSubscription. --- lib/pleroma/workers/subscriber.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pleroma/workers/subscriber.ex b/lib/pleroma/workers/subscriber.ex index 783c44173..e960b35bf 100644 --- a/lib/pleroma/workers/subscriber.ex +++ b/lib/pleroma/workers/subscriber.ex @@ -5,7 +5,7 @@ defmodule Pleroma.Workers.Subscriber do alias Pleroma.Repo alias Pleroma.Web.Federator - alias Pleroma.Web.Websub.WebsubClientSubscription + alias Pleroma.Web.Websub # Note: `max_attempts` is intended to be overridden in `new/1` call use Oban.Worker, @@ -18,12 +18,12 @@ def perform(%{"op" => "refresh_subscriptions"}, _job) do end def perform(%{"op" => "request_subscription", "websub_id" => websub_id}, _job) do - websub = Repo.get(WebsubClientSubscription, websub_id) + websub = Repo.get(Websub.WebsubClientSubscription, websub_id) Federator.perform(:request_subscription, websub) end def perform(%{"op" => "verify_websub", "websub_id" => websub_id}, _job) do - websub = Repo.get(WebsubClientSubscription, websub_id) + websub = Repo.get(Websub.WebsubServerSubscription, websub_id) Federator.perform(:verify_websub, websub) end end From 00abe099cd85b03b880908eef1e469e656d56365 Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Tue, 27 Aug 2019 16:21:03 +0300 Subject: [PATCH 056/400] added tests for ActivityPub.like\unlike --- lib/pleroma/activity/queries.ex | 49 ++++++ lib/pleroma/object.ex | 2 - lib/pleroma/web/activity_pub/activity_pub.ex | 9 +- .../activity_pub/activity_pub_controller.ex | 59 +++---- lib/pleroma/web/activity_pub/utils.ex | 150 ++++++++---------- test/support/factory.ex | 16 +- test/web/activity_pub/activity_pub_test.exs | 44 +++++ test/web/activity_pub/utils_test.exs | 102 ++++++++++++ 8 files changed, 304 insertions(+), 127 deletions(-) create mode 100644 lib/pleroma/activity/queries.ex diff --git a/lib/pleroma/activity/queries.ex b/lib/pleroma/activity/queries.ex new file mode 100644 index 000000000..aa5b29566 --- /dev/null +++ b/lib/pleroma/activity/queries.ex @@ -0,0 +1,49 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2018 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Activity.Queries do + @moduledoc """ + Contains queries for Activity. + """ + + import Ecto.Query, only: [from: 2] + + @type query :: Ecto.Queryable.t() | Activity.t() + + alias Pleroma.Activity + + @spec by_actor(query, String.t()) :: query + def by_actor(query \\ Activity, actor) do + from( + activity in query, + where: fragment("(?)->>'actor' = ?", activity.data, ^actor) + ) + end + + @spec by_object_id(query, String.t()) :: query + def by_object_id(query \\ Activity, object_id) do + from(activity in query, + where: + fragment( + "coalesce((?)->'object'->>'id', (?)->>'object') = ?", + activity.data, + activity.data, + ^object_id + ) + ) + end + + @spec by_type(query, String.t()) :: query + def by_type(query \\ Activity, activity_type) do + from( + activity in query, + where: fragment("(?)->>'type' = ?", activity.data, ^activity_type) + ) + end + + @spec limit(query, pos_integer()) :: query + def limit(query \\ Activity, limit) do + from(activity in query, limit: ^limit) + end +end diff --git a/lib/pleroma/object.ex b/lib/pleroma/object.ex index c8d339c19..d58eb7f7d 100644 --- a/lib/pleroma/object.ex +++ b/lib/pleroma/object.ex @@ -150,8 +150,6 @@ def set_cache(%Object{data: %{"id" => ap_id}} = object) do def update_and_set_cache(changeset) do with {:ok, object} <- Repo.update(changeset) do set_cache(object) - else - e -> e end end diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 172c952d4..eeb826814 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -139,7 +139,7 @@ def insert(map, local \\ true, fake \\ false, bypass_actor_check \\ false) when # Splice in the child object if we have one. activity = - if !is_nil(object) do + if not is_nil(object) do Map.put(activity, :object, object) else activity @@ -331,12 +331,7 @@ def like( end end - def unlike( - %User{} = actor, - %Object{} = object, - activity_id \\ nil, - local \\ true - ) do + def unlike(%User{} = actor, %Object{} = object, activity_id \\ nil, local \\ true) do with %Activity{} = like_activity <- get_existing_like(actor.ap_id, object), unlike_data <- make_unlike_data(actor, like_activity, activity_id), {:ok, unlike_activity} <- insert(unlike_data, local), diff --git a/lib/pleroma/web/activity_pub/activity_pub_controller.ex b/lib/pleroma/web/activity_pub/activity_pub_controller.ex index ed801a7ae..5c73fc9f3 100644 --- a/lib/pleroma/web/activity_pub/activity_pub_controller.ex +++ b/lib/pleroma/web/activity_pub/activity_pub_controller.ex @@ -309,42 +309,43 @@ def handle_user_activity(_, _) do end def update_outbox( - %{assigns: %{user: user}} = conn, + %{assigns: %{user: %User{nickname: user_nickname} = user}} = conn, %{"nickname" => nickname} = params - ) do - if nickname == user.nickname do - actor = user.ap_id() + ) + when user_nickname == nickname do + actor = user.ap_id() - params = - params - |> Map.drop(["id"]) - |> Map.put("actor", actor) - |> Transmogrifier.fix_addressing() - - with {:ok, %Activity{} = activity} <- handle_user_activity(user, params) do - conn - |> put_status(:created) - |> put_resp_header("location", activity.data["id"]) - |> json(activity.data) - else - {:error, message} -> - conn - |> put_status(:bad_request) - |> json(message) - end - else - err = - dgettext("errors", "can't update outbox of %{nickname} as %{as_nickname}", - nickname: nickname, - as_nickname: user.nickname - ) + params = + params + |> Map.drop(["id"]) + |> Map.put("actor", actor) + |> Transmogrifier.fix_addressing() + with {:ok, %Activity{} = activity} <- handle_user_activity(user, params) do conn - |> put_status(:forbidden) - |> json(err) + |> put_status(:created) + |> put_resp_header("location", activity.data["id"]) + |> json(activity.data) + else + {:error, message} -> + conn + |> put_status(:bad_request) + |> json(message) end end + def update_outbox(%{assigns: %{user: user}} = conn, %{"nickname" => nickname} = _) do + err = + dgettext("errors", "can't update outbox of %{nickname} as %{as_nickname}", + nickname: nickname, + as_nickname: user.nickname + ) + + conn + |> put_status(:forbidden) + |> json(err) + end + def errors(conn, {:error, :not_found}) do conn |> put_status(:not_found) diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex index 1c3058658..c9c0c3763 100644 --- a/lib/pleroma/web/activity_pub/utils.ex +++ b/lib/pleroma/web/activity_pub/utils.ex @@ -166,6 +166,7 @@ def create_context(context) do @doc """ Enqueues an activity for federation if it's local """ + @spec maybe_federate(any()) :: :ok def maybe_federate(%Activity{local: true} = activity) do if Pleroma.Config.get!([:instance, :federating]) do priority = @@ -256,46 +257,27 @@ def insert_full_object(map), do: {:ok, map, nil} @doc """ Returns an existing like if a user already liked an object """ + @spec get_existing_like(String.t(), map()) :: Activity.t() | nil def get_existing_like(actor, %{data: %{"id" => id}}) do - query = - from( - activity in Activity, - where: fragment("(?)->>'actor' = ?", activity.data, ^actor), - # this is to use the index - where: - fragment( - "coalesce((?)->'object'->>'id', (?)->>'object') = ?", - activity.data, - activity.data, - ^id - ), - where: fragment("(?)->>'type' = 'Like'", activity.data) - ) - - Repo.one(query) + actor + |> Activity.Queries.by_actor() + |> Activity.Queries.by_object_id(id) + |> Activity.Queries.by_type("Like") + |> Activity.Queries.limit(1) + |> Repo.one() end @doc """ Returns like activities targeting an object """ def get_object_likes(%{data: %{"id" => id}}) do - query = - from( - activity in Activity, - # this is to use the index - where: - fragment( - "coalesce((?)->'object'->>'id', (?)->>'object') = ?", - activity.data, - activity.data, - ^id - ), - where: fragment("(?)->>'type' = 'Like'", activity.data) - ) - - Repo.all(query) + id + |> Activity.Queries.by_object_id() + |> Activity.Queries.by_type("Like") + |> Repo.all() end + @spec make_like_data(User.t(), map(), String.t()) :: map() def make_like_data( %User{ap_id: ap_id} = actor, %{data: %{"actor" => object_actor_id, "id" => id}} = object, @@ -315,7 +297,7 @@ def make_like_data( |> List.delete(actor.ap_id) |> List.delete(object_actor.follower_address) - data = %{ + %{ "type" => "Like", "actor" => ap_id, "object" => id, @@ -323,38 +305,49 @@ def make_like_data( "cc" => cc, "context" => object.data["context"] } - - if activity_id, do: Map.put(data, "id", activity_id), else: data + |> maybe_put("id", activity_id) end + @spec update_element_in_object(String.t(), list(any), Object.t()) :: + {:ok, Object.t()} | {:error, Ecto.Changeset.t()} def update_element_in_object(property, element, object) do - with new_data <- - object.data - |> Map.put("#{property}_count", length(element)) - |> Map.put("#{property}s", element), - changeset <- Changeset.change(object, data: new_data), - {:ok, object} <- Object.update_and_set_cache(changeset) do - {:ok, object} - end + data = + Map.merge( + object.data, + %{"#{property}_count" => length(element), "#{property}s" => element} + ) + + object + |> Changeset.change(data: data) + |> Object.update_and_set_cache() end - def update_likes_in_object(likes, object) do + @spec add_like_to_object(Activity.t(), Object.t()) :: + {:ok, Object.t()} | {:error, Ecto.Changeset.t()} + def add_like_to_object(%Activity{data: %{"actor" => actor}}, object) do + [actor | fetch_likes(object)] + |> Enum.uniq() + |> update_likes_in_object(object) + end + + @spec remove_like_from_object(Activity.t(), Object.t()) :: + {:ok, Object.t()} | {:error, Ecto.Changeset.t()} + def remove_like_from_object(%Activity{data: %{"actor" => actor}}, object) do + object + |> fetch_likes() + |> List.delete(actor) + |> update_likes_in_object(object) + end + + defp update_likes_in_object(likes, object) do update_element_in_object("like", likes, object) end - def add_like_to_object(%Activity{data: %{"actor" => actor}}, object) do - likes = if is_list(object.data["likes"]), do: object.data["likes"], else: [] - - with likes <- [actor | likes] |> Enum.uniq() do - update_likes_in_object(likes, object) - end - end - - def remove_like_from_object(%Activity{data: %{"actor" => actor}}, object) do - likes = if is_list(object.data["likes"]), do: object.data["likes"], else: [] - - with likes <- likes |> List.delete(actor) do - update_likes_in_object(likes, object) + defp fetch_likes(object) do + if is_list(object.data["likes"]) do + object.data["likes"] + else + [] end end @@ -405,7 +398,7 @@ def make_follow_data( %User{ap_id: followed_id} = _followed, activity_id ) do - data = %{ + %{ "type" => "Follow", "actor" => follower_id, "to" => [followed_id], @@ -413,10 +406,7 @@ def make_follow_data( "object" => followed_id, "state" => "pending" } - - data = if activity_id, do: Map.put(data, "id", activity_id), else: data - - data + |> maybe_put("id", activity_id) end def fetch_latest_follow(%User{ap_id: follower_id}, %User{ap_id: followed_id}) do @@ -478,7 +468,7 @@ def make_announce_data( activity_id, false ) do - data = %{ + %{ "type" => "Announce", "actor" => ap_id, "object" => id, @@ -486,8 +476,7 @@ def make_announce_data( "cc" => [], "context" => object.data["context"] } - - if activity_id, do: Map.put(data, "id", activity_id), else: data + |> maybe_put("id", activity_id) end def make_announce_data( @@ -496,7 +485,7 @@ def make_announce_data( activity_id, true ) do - data = %{ + %{ "type" => "Announce", "actor" => ap_id, "object" => id, @@ -504,8 +493,7 @@ def make_announce_data( "cc" => [Pleroma.Constants.as_public()], "context" => object.data["context"] } - - if activity_id, do: Map.put(data, "id", activity_id), else: data + |> maybe_put("id", activity_id) end @doc """ @@ -516,7 +504,7 @@ def make_unannounce_data( %Activity{data: %{"context" => context}} = activity, activity_id ) do - data = %{ + %{ "type" => "Undo", "actor" => ap_id, "object" => activity.data, @@ -524,8 +512,7 @@ def make_unannounce_data( "cc" => [Pleroma.Constants.as_public()], "context" => context } - - if activity_id, do: Map.put(data, "id", activity_id), else: data + |> maybe_put("id", activity_id) end def make_unlike_data( @@ -533,7 +520,7 @@ def make_unlike_data( %Activity{data: %{"context" => context}} = activity, activity_id ) do - data = %{ + %{ "type" => "Undo", "actor" => ap_id, "object" => activity.data, @@ -541,8 +528,7 @@ def make_unlike_data( "cc" => [Pleroma.Constants.as_public()], "context" => context } - - if activity_id, do: Map.put(data, "id", activity_id), else: data + |> maybe_put("id", activity_id) end def add_announce_to_object( @@ -573,14 +559,13 @@ def remove_announce_from_object(%Activity{data: %{"actor" => actor}}, object) do #### Unfollow-related helpers def make_unfollow_data(follower, followed, follow_activity, activity_id) do - data = %{ + %{ "type" => "Undo", "actor" => follower.ap_id, "to" => [followed.ap_id], "object" => follow_activity.data } - - if activity_id, do: Map.put(data, "id", activity_id), else: data + |> maybe_put("id", activity_id) end #### Block-related helpers @@ -610,25 +595,23 @@ def fetch_latest_block(%User{ap_id: blocker_id}, %User{ap_id: blocked_id}) do end def make_block_data(blocker, blocked, activity_id) do - data = %{ + %{ "type" => "Block", "actor" => blocker.ap_id, "to" => [blocked.ap_id], "object" => blocked.ap_id } - - if activity_id, do: Map.put(data, "id", activity_id), else: data + |> maybe_put("id", activity_id) end def make_unblock_data(blocker, blocked, block_activity, activity_id) do - data = %{ + %{ "type" => "Undo", "actor" => blocker.ap_id, "to" => [blocked.ap_id], "object" => block_activity.data } - - if activity_id, do: Map.put(data, "id", activity_id), else: data + |> maybe_put("id", activity_id) end #### Create-related helpers @@ -799,4 +782,7 @@ def get_existing_votes(actor, %{data: %{"id" => id}}) do Repo.all(query) end + + defp maybe_put(map, _key, nil), do: map + defp maybe_put(map, key, value), do: Map.put(map, key, value) end diff --git a/test/support/factory.ex b/test/support/factory.ex index 62d1de717..719115003 100644 --- a/test/support/factory.ex +++ b/test/support/factory.ex @@ -207,13 +207,15 @@ def like_activity_factory(attrs \\ %{}) do object = Object.normalize(note_activity) user = insert(:user) - data = %{ - "id" => Pleroma.Web.ActivityPub.Utils.generate_activity_id(), - "actor" => user.ap_id, - "type" => "Like", - "object" => object.data["id"], - "published_at" => DateTime.utc_now() |> DateTime.to_iso8601() - } + data = + %{ + "id" => Pleroma.Web.ActivityPub.Utils.generate_activity_id(), + "actor" => user.ap_id, + "type" => "Like", + "object" => object.data["id"], + "published_at" => DateTime.utc_now() |> DateTime.to_iso8601() + } + |> Map.merge(attrs[:data_attrs] || %{}) %Pleroma.Activity{ data: data diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs index 1515f4eb6..f72b44aed 100644 --- a/test/web/activity_pub/activity_pub_test.exs +++ b/test/web/activity_pub/activity_pub_test.exs @@ -21,6 +21,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do :ok end + clear_config([:instance, :federating]) + describe "streaming out participations" do test "it streams them out" do user = insert(:user) @@ -676,6 +678,29 @@ test "returns reblogs for users for whom reblogs have not been muted" do end describe "like an object" do + test_with_mock "sends an activity to federation", Pleroma.Web.Federator, [:passthrough], [] do + Pleroma.Config.put([:instance, :federating], true) + note_activity = insert(:note_activity) + assert object_activity = Object.normalize(note_activity) + + user = insert(:user) + + {:ok, like_activity, _object} = ActivityPub.like(user, object_activity) + assert called(Pleroma.Web.Federator.publish(like_activity, 5)) + end + + test "returns exist activity if object already liked" do + note_activity = insert(:note_activity) + assert object_activity = Object.normalize(note_activity) + + user = insert(:user) + + {:ok, like_activity, _object} = ActivityPub.like(user, object_activity) + + {:ok, like_activity_exist, _object} = ActivityPub.like(user, object_activity) + assert like_activity == like_activity_exist + end + test "adds a like activity to the db" do note_activity = insert(:note_activity) assert object = Object.normalize(note_activity) @@ -706,6 +731,25 @@ test "adds a like activity to the db" do end describe "unliking" do + test_with_mock "sends an activity to federation", Pleroma.Web.Federator, [:passthrough], [] do + Pleroma.Config.put([:instance, :federating], true) + + note_activity = insert(:note_activity) + object = Object.normalize(note_activity) + user = insert(:user) + + {:ok, object} = ActivityPub.unlike(user, object) + refute called(Pleroma.Web.Federator.publish()) + + {:ok, _like_activity, object} = ActivityPub.like(user, object) + assert object.data["like_count"] == 1 + + {:ok, unlike_activity, _, object} = ActivityPub.unlike(user, object) + assert object.data["like_count"] == 0 + + assert called(Pleroma.Web.Federator.publish(unlike_activity, 5)) + end + test "unliking a previously liked object" do note_activity = insert(:note_activity) object = Object.normalize(note_activity) diff --git a/test/web/activity_pub/utils_test.exs b/test/web/activity_pub/utils_test.exs index ca5f057a7..eb429b2c4 100644 --- a/test/web/activity_pub/utils_test.exs +++ b/test/web/activity_pub/utils_test.exs @@ -14,6 +14,8 @@ defmodule Pleroma.Web.ActivityPub.UtilsTest do import Pleroma.Factory + require Pleroma.Constants + describe "fetch the latest Follow" do test "fetches the latest Follow activity" do %Activity{data: %{"type" => "Follow"}} = activity = insert(:follow_activity) @@ -87,6 +89,32 @@ test "works with an object that has only IR tags" do end end + describe "make_unlike_data/3" do + test "returns data for unlike activity" do + user = insert(:user) + like_activity = insert(:like_activity, data_attrs: %{"context" => "test context"}) + + assert Utils.make_unlike_data(user, like_activity, nil) == %{ + "type" => "Undo", + "actor" => user.ap_id, + "object" => like_activity.data, + "to" => [user.follower_address, like_activity.data["actor"]], + "cc" => [Pleroma.Constants.as_public()], + "context" => like_activity.data["context"] + } + + assert Utils.make_unlike_data(user, like_activity, "9mJEZK0tky1w2xD2vY") == %{ + "type" => "Undo", + "actor" => user.ap_id, + "object" => like_activity.data, + "to" => [user.follower_address, like_activity.data["actor"]], + "cc" => [Pleroma.Constants.as_public()], + "context" => like_activity.data["context"], + "id" => "9mJEZK0tky1w2xD2vY" + } + end + end + describe "make_like_data" do setup do user = insert(:user) @@ -299,4 +327,78 @@ test "updates the state of the given follow activity" do assert Repo.get(Activity, follow_activity_two.id).data["state"] == "reject" end end + + describe "update_element_in_object/3" do + test "updates likes" do + user = insert(:user) + activity = insert(:note_activity) + object = Object.normalize(activity) + + assert {:ok, updated_object} = + Utils.update_element_in_object( + "like", + [user.ap_id], + object + ) + + assert updated_object.data["likes"] == [user.ap_id] + assert updated_object.data["like_count"] == 1 + end + end + + describe "add_like_to_object/2" do + test "add actor to likes" do + user = insert(:user) + user2 = insert(:user) + object = insert(:note) + + assert {:ok, updated_object} = + Utils.add_like_to_object( + %Activity{data: %{"actor" => user.ap_id}}, + object + ) + + assert updated_object.data["likes"] == [user.ap_id] + assert updated_object.data["like_count"] == 1 + + assert {:ok, updated_object2} = + Utils.add_like_to_object( + %Activity{data: %{"actor" => user2.ap_id}}, + updated_object + ) + + assert updated_object2.data["likes"] == [user2.ap_id, user.ap_id] + assert updated_object2.data["like_count"] == 2 + end + end + + describe "remove_like_from_object/2" do + test "removes ap_id from likes" do + user = insert(:user) + user2 = insert(:user) + object = insert(:note, data: %{"likes" => [user.ap_id, user2.ap_id], "like_count" => 2}) + + assert {:ok, updated_object} = + Utils.remove_like_from_object( + %Activity{data: %{"actor" => user.ap_id}}, + object + ) + + assert updated_object.data["likes"] == [user2.ap_id] + assert updated_object.data["like_count"] == 1 + end + end + + describe "get_existing_like/2" do + test "fetches existing like" do + note_activity = insert(:note_activity) + assert object = Object.normalize(note_activity) + + user = insert(:user) + refute Utils.get_existing_like(user.ap_id, object) + {:ok, like_activity, _object} = ActivityPub.like(user, object) + + assert ^like_activity = Utils.get_existing_like(user.ap_id, object) + end + end end From c30cc039e423e8f31d0222747e301514b7d0dd9e Mon Sep 17 00:00:00 2001 From: lain Date: Tue, 27 Aug 2019 12:22:30 -0500 Subject: [PATCH 057/400] Transmogrifier: Use Containment.get_actor to get actors. --- lib/pleroma/object.ex | 4 ---- lib/pleroma/web/activity_pub/transmogrifier.ex | 6 ++++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/pleroma/object.ex b/lib/pleroma/object.ex index 468549c87..c8d339c19 100644 --- a/lib/pleroma/object.ex +++ b/lib/pleroma/object.ex @@ -230,8 +230,4 @@ def increase_vote_count(ap_id, name) do _ -> :noop end end - - def get_ap_id(%{"id" => id}), do: id - def get_ap_id(id) when is_binary(id), do: id - def get_ap_id(_), do: {:error, "Object is not a string and has no id."} end diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 6c4259c02..468961bd0 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -464,8 +464,10 @@ def handle_incoming( %{"type" => "Follow", "object" => followed, "actor" => follower, "id" => id} = data, _options ) do - with %User{local: true} = followed <- User.get_cached_by_ap_id(Object.get_ap_id(followed)), - {:ok, %User{} = follower} <- User.get_or_fetch_by_ap_id(Object.get_ap_id(follower)), + with %User{local: true} = followed <- + User.get_cached_by_ap_id(Containment.get_actor(%{"actor" => followed})), + {:ok, %User{} = follower} <- + User.get_or_fetch_by_ap_id(Containment.get_actor(%{"actor" => follower})), {:ok, activity} <- ActivityPub.follow(follower, followed, id, false) do with deny_follow_blocked <- Pleroma.Config.get([:user, :deny_follow_blocked]), {_, false} <- {:user_blocked, User.blocks?(followed, follower) && deny_follow_blocked}, From ffcd742aa0797b5bb872e58c1e605f22c8652250 Mon Sep 17 00:00:00 2001 From: Maksim Date: Tue, 27 Aug 2019 17:37:19 +0000 Subject: [PATCH 058/400] Apply suggestion to lib/pleroma/web/activity_pub/activity_pub_controller.ex --- lib/pleroma/web/activity_pub/activity_pub_controller.ex | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/pleroma/web/activity_pub/activity_pub_controller.ex b/lib/pleroma/web/activity_pub/activity_pub_controller.ex index 5c73fc9f3..08bf1c752 100644 --- a/lib/pleroma/web/activity_pub/activity_pub_controller.ex +++ b/lib/pleroma/web/activity_pub/activity_pub_controller.ex @@ -309,10 +309,9 @@ def handle_user_activity(_, _) do end def update_outbox( - %{assigns: %{user: %User{nickname: user_nickname} = user}} = conn, + %{assigns: %{user: %User{nickname: nickname} = user}} = conn, %{"nickname" => nickname} = params - ) - when user_nickname == nickname do + ) do actor = user.ap_id() params = From 5e4fde1d3d49ec56fae3b199fb4af51057e2dffd Mon Sep 17 00:00:00 2001 From: Maxim Filippov Date: Tue, 27 Aug 2019 20:48:16 +0300 Subject: [PATCH 059/400] Filter logs by date --- lib/pleroma/moderation_log.ex | 37 ++++++++++++++- lib/pleroma/user/info.ex | 4 +- .../web/admin_api/admin_api_controller.ex | 8 +++- .../admin_api/admin_api_controller_test.exs | 46 +++++++++++++++++++ 4 files changed, 89 insertions(+), 6 deletions(-) diff --git a/lib/pleroma/moderation_log.ex b/lib/pleroma/moderation_log.ex index 1ef6fe67a..2164ecfc2 100644 --- a/lib/pleroma/moderation_log.ex +++ b/lib/pleroma/moderation_log.ex @@ -14,13 +14,46 @@ defmodule Pleroma.ModerationLog do timestamps() end - def get_all(page, page_size) do + def get_all(params) do + params + |> get_all_query() + |> maybe_filter_by_date(params) + |> Repo.all() + end + + defp maybe_filter_by_date(query, %{start_date: nil, end_date: nil}), do: query + + defp maybe_filter_by_date(query, %{start_date: start_date, end_date: nil}) do + from(q in query, + where: q.inserted_at >= ^parse_datetime(start_date) + ) + end + + defp maybe_filter_by_date(query, %{start_date: nil, end_date: end_date}) do + from(q in query, + where: q.inserted_at <= ^parse_datetime(end_date) + ) + end + + defp maybe_filter_by_date(query, %{start_date: start_date, end_date: end_date}) do + from(q in query, + where: q.inserted_at >= ^parse_datetime(start_date), + where: q.inserted_at <= ^parse_datetime(end_date) + ) + end + + defp get_all_query(%{page: page, page_size: page_size}) do from(q in __MODULE__, order_by: [desc: q.inserted_at], limit: ^page_size, offset: ^((page - 1) * page_size) ) - |> Repo.all() + end + + defp parse_datetime(datetime) do + {:ok, parsed_datetime, _} = DateTime.from_iso8601(datetime) + + parsed_datetime end def insert_log(%{ diff --git a/lib/pleroma/user/info.ex b/lib/pleroma/user/info.ex index 779bfbc18..7027c947b 100644 --- a/lib/pleroma/user/info.ex +++ b/lib/pleroma/user/info.ex @@ -318,9 +318,7 @@ defp valid_field?(%{"name" => name, "value" => value}) do name_limit = Pleroma.Config.get([:instance, :account_field_name_length], 255) value_limit = Pleroma.Config.get([:instance, :account_field_value_length], 255) - is_binary(name) && - is_binary(value) && - String.length(name) <= name_limit && + is_binary(name) && is_binary(value) && String.length(name) <= name_limit && String.length(value) <= value_limit end diff --git a/lib/pleroma/web/admin_api/admin_api_controller.ex b/lib/pleroma/web/admin_api/admin_api_controller.ex index 544b9d7d8..065394a24 100644 --- a/lib/pleroma/web/admin_api/admin_api_controller.ex +++ b/lib/pleroma/web/admin_api/admin_api_controller.ex @@ -539,7 +539,13 @@ def status_delete(%{assigns: %{user: user}} = conn, %{"id" => id}) do def list_log(conn, params) do {page, page_size} = page_params(params) - log = ModerationLog.get_all(page, page_size) + log = + ModerationLog.get_all(%{ + page: page, + page_size: page_size, + start_date: params["start_date"], + end_date: params["end_date"] + }) conn |> put_view(ModerationLogView) diff --git a/test/web/admin_api/admin_api_controller_test.exs b/test/web/admin_api/admin_api_controller_test.exs index 4e2c27431..a7269aee9 100644 --- a/test/web/admin_api/admin_api_controller_test.exs +++ b/test/web/admin_api/admin_api_controller_test.exs @@ -2348,6 +2348,52 @@ test "returns the log with pagination", %{conn: conn, admin: admin} do assert second_entry["message"] == "@#{admin.nickname} followed relay: https://example.org/relay" end + + test "filters log by date", %{conn: conn, admin: admin} do + first_date = "2017-08-15T15:47:06Z" + second_date = "2017-08-20T15:47:06Z" + + Repo.insert(%ModerationLog{ + data: %{ + actor: %{ + "id" => admin.id, + "nickname" => admin.nickname, + "type" => "user" + }, + action: "relay_follow", + target: "https://example.org/relay" + }, + inserted_at: NaiveDateTime.from_iso8601!(first_date) + }) + + Repo.insert(%ModerationLog{ + data: %{ + actor: %{ + "id" => admin.id, + "nickname" => admin.nickname, + "type" => "user" + }, + action: "relay_unfollow", + target: "https://example.org/relay" + }, + inserted_at: NaiveDateTime.from_iso8601!(second_date) + }) + + conn1 = + get( + conn, + "/api/pleroma/admin/moderation_log?start_date=#{second_date}" + ) + + response1 = json_response(conn1, 200) + [first_entry] = response1 + + assert response1 |> length() == 1 + assert first_entry["data"]["action"] == "relay_unfollow" + + assert first_entry["message"] == + "@#{admin.nickname} unfollowed relay: https://example.org/relay" + end end end From 7853b3f17d3b57d7ac91bc909a57143674f57272 Mon Sep 17 00:00:00 2001 From: feld Date: Fri, 30 Aug 2019 00:38:03 +0000 Subject: [PATCH 060/400] Fix AntiFollowbotPolicy when trying to follow a relay --- CHANGELOG.md | 1 + .../web/activity_pub/mrf/anti_followbot_policy.ex | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20af9badc..4acb749ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Reverse Proxy limiting `max_body_length` was incorrectly defined and only checked `Content-Length` headers which may not be sufficient in some circumstances - MRF: fix use of unserializable keyword lists in describe() implementations - ActivityPub: Deactivated user deletion +- MRF: fix ability to follow a relay when AntiFollowbotPolicy was enabled ### Added - Expiring/ephemeral activites. All activities can have expires_at value set, which controls when they should be deleted automatically. diff --git a/lib/pleroma/web/activity_pub/mrf/anti_followbot_policy.ex b/lib/pleroma/web/activity_pub/mrf/anti_followbot_policy.ex index de1eb4aa5..b3547ecd4 100644 --- a/lib/pleroma/web/activity_pub/mrf/anti_followbot_policy.ex +++ b/lib/pleroma/web/activity_pub/mrf/anti_followbot_policy.ex @@ -25,11 +25,15 @@ defp score_displayname("fedibot"), do: 1.0 defp score_displayname(_), do: 0.0 defp determine_if_followbot(%User{nickname: nickname, name: displayname}) do - # nickname will always be a binary string because it's generated by Pleroma. + # nickname will be a binary string except when following a relay nick_score = - nickname - |> String.downcase() - |> score_nickname() + if is_binary(nickname) do + nickname + |> String.downcase() + |> score_nickname() + else + 0.0 + end # displayname will either be a binary string or nil, if a displayname isn't set. name_score = From cef2e980b1f6b07c2bdb01030559aca83257bd7e Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Wed, 28 Aug 2019 21:32:44 +0300 Subject: [PATCH 061/400] division emoji.ex on loader.ex and emoji.ex --- lib/mix/tasks/pleroma/emoji.ex | 2 +- lib/pleroma/emoji.ex | 212 +++------------------------------ lib/pleroma/emoji/loader.ex | 204 +++++++++++++++++++++++++++++++ test/emoji/loader_test.exs | 83 +++++++++++++ test/emoji_test.exs | 75 ------------ 5 files changed, 304 insertions(+), 272 deletions(-) create mode 100644 lib/pleroma/emoji/loader.ex create mode 100644 test/emoji/loader_test.exs diff --git a/lib/mix/tasks/pleroma/emoji.ex b/lib/mix/tasks/pleroma/emoji.ex index c2225af7d..dc5f7c193 100644 --- a/lib/mix/tasks/pleroma/emoji.ex +++ b/lib/mix/tasks/pleroma/emoji.ex @@ -235,7 +235,7 @@ def run(["gen-pack", src]) do cwd: tmp_pack_dir ) - emoji_map = Pleroma.Emoji.make_shortcode_to_file_map(tmp_pack_dir, exts) + emoji_map = Pleroma.Emoji.Loader.make_shortcode_to_file_map(tmp_pack_dir, exts) File.write!(files_name, Jason.encode!(emoji_map, pretty: true)) diff --git a/lib/pleroma/emoji.ex b/lib/pleroma/emoji.ex index 66e20f0e4..ab6ba7d6a 100644 --- a/lib/pleroma/emoji.ex +++ b/lib/pleroma/emoji.ex @@ -4,24 +4,22 @@ defmodule Pleroma.Emoji do @moduledoc """ - The emojis are loaded from: - - * emoji packs in INSTANCE-DIR/emoji - * the files: `config/emoji.txt` and `config/custom_emoji.txt` - * glob paths, nested folder is used as tag name for grouping e.g. priv/static/emoji/custom/nested_folder - - This GenServer stores in an ETS table the list of the loaded emojis, and also allows to reload the list at runtime. + This GenServer stores in an ETS table the list of the loaded emojis, + and also allows to reload the list at runtime. """ use GenServer + alias Pleroma.Emoji.Loader + require Logger - @type pattern :: Regex.t() | module() | String.t() - @type patterns :: pattern() | [pattern()] - @type group_patterns :: keyword(patterns()) - @ets __MODULE__.Ets - @ets_options [:ordered_set, :protected, :named_table, {:read_concurrency, true}] + @ets_options [ + :ordered_set, + :protected, + :named_table, + {:read_concurrency, true} + ] @doc false def start_link(_) do @@ -44,7 +42,7 @@ def get(name) do end @doc "Returns all the emojos!!" - @spec get_all() :: [{String.t(), String.t()}, ...] + @spec get_all() :: list({String.t(), String.t(), String.t()}) def get_all do :ets.tab2list(@ets) end @@ -58,13 +56,13 @@ def init(_) do @doc false def handle_cast(:reload, state) do - load() + update_emojis(Loader.load()) {:noreply, state} end @doc false def handle_call(:reload, _from, state) do - load() + update_emojis(Loader.load()) {:reply, :ok, state} end @@ -75,189 +73,11 @@ def terminate(_, _) do @doc false def code_change(_old_vsn, state, _extra) do - load() + update_emojis(Loader.load()) {:ok, state} end - defp load do - emoji_dir_path = - Path.join( - Pleroma.Config.get!([:instance, :static_dir]), - "emoji" - ) - - emoji_groups = Pleroma.Config.get([:emoji, :groups]) - - case File.ls(emoji_dir_path) do - {:error, :enoent} -> - # The custom emoji directory doesn't exist, - # don't do anything - nil - - {:error, e} -> - # There was some other error - Logger.error("Could not access the custom emoji directory #{emoji_dir_path}: #{e}") - - {:ok, results} -> - grouped = - Enum.group_by(results, fn file -> File.dir?(Path.join(emoji_dir_path, file)) end) - - packs = grouped[true] || [] - files = grouped[false] || [] - - # Print the packs we've found - Logger.info("Found emoji packs: #{Enum.join(packs, ", ")}") - - if not Enum.empty?(files) do - Logger.warn( - "Found files in the emoji folder. These will be ignored, please move them to a subdirectory\nFound files: #{ - Enum.join(files, ", ") - }" - ) - end - - emojis = - Enum.flat_map( - packs, - fn pack -> load_pack(Path.join(emoji_dir_path, pack), emoji_groups) end - ) - - true = :ets.insert(@ets, emojis) - end - - # Compat thing for old custom emoji handling & default emoji, - # it should run even if there are no emoji packs - shortcode_globs = Pleroma.Config.get([:emoji, :shortcode_globs], []) - - emojis = - (load_from_file("config/emoji.txt", emoji_groups) ++ - load_from_file("config/custom_emoji.txt", emoji_groups) ++ - load_from_globs(shortcode_globs, emoji_groups)) - |> Enum.reject(fn value -> value == nil end) - - true = :ets.insert(@ets, emojis) - - :ok - end - - defp load_pack(pack_dir, emoji_groups) do - pack_name = Path.basename(pack_dir) - - emoji_txt = Path.join(pack_dir, "emoji.txt") - - if File.exists?(emoji_txt) do - load_from_file(emoji_txt, emoji_groups) - else - extensions = Pleroma.Config.get([:emoji, :pack_extensions]) - - Logger.info( - "No emoji.txt found for pack \"#{pack_name}\", assuming all #{Enum.join(extensions, ", ")} files are emoji" - ) - - make_shortcode_to_file_map(pack_dir, extensions) - |> Enum.map(fn {shortcode, rel_file} -> - filename = Path.join("/emoji/#{pack_name}", rel_file) - - {shortcode, filename, [to_string(match_extra(emoji_groups, filename))]} - end) - end - end - - def make_shortcode_to_file_map(pack_dir, exts) do - find_all_emoji(pack_dir, exts) - |> Enum.map(&Path.relative_to(&1, pack_dir)) - |> Enum.map(fn f -> {f |> Path.basename() |> Path.rootname(), f} end) - |> Enum.into(%{}) - end - - def find_all_emoji(dir, exts) do - Enum.reduce( - File.ls!(dir), - [], - fn f, acc -> - filepath = Path.join(dir, f) - - if File.dir?(filepath) do - acc ++ find_all_emoji(filepath, exts) - else - acc ++ [filepath] - end - end - ) - |> Enum.filter(fn f -> Path.extname(f) in exts end) - end - - defp load_from_file(file, emoji_groups) do - if File.exists?(file) do - load_from_file_stream(File.stream!(file), emoji_groups) - else - [] - end - end - - defp load_from_file_stream(stream, emoji_groups) do - stream - |> Stream.map(&String.trim/1) - |> Stream.map(fn line -> - case String.split(line, ~r/,\s*/) do - [name, file] -> - {name, file, [to_string(match_extra(emoji_groups, file))]} - - [name, file | tags] -> - {name, file, tags} - - _ -> - nil - end - end) - |> Enum.to_list() - end - - defp load_from_globs(globs, emoji_groups) do - static_path = Path.join(:code.priv_dir(:pleroma), "static") - - paths = - Enum.map(globs, fn glob -> - Path.join(static_path, glob) - |> Path.wildcard() - end) - |> Enum.concat() - - Enum.map(paths, fn path -> - tag = match_extra(emoji_groups, Path.join("/", Path.relative_to(path, static_path))) - shortcode = Path.basename(path, Path.extname(path)) - external_path = Path.join("/", Path.relative_to(path, static_path)) - {shortcode, external_path, [to_string(tag)]} - end) - end - - @doc """ - Finds a matching group for the given emoji filename - """ - @spec match_extra(group_patterns(), String.t()) :: atom() | nil - def match_extra(group_patterns, filename) do - match_group_patterns(group_patterns, fn pattern -> - case pattern do - %Regex{} = regex -> Regex.match?(regex, filename) - string when is_binary(string) -> filename == string - end - end) - end - - defp match_group_patterns(group_patterns, matcher) do - Enum.find_value(group_patterns, fn {group, patterns} -> - patterns = - patterns - |> List.wrap() - |> Enum.map(fn pattern -> - if String.contains?(pattern, "*") do - ~r(#{String.replace(pattern, "*", ".*")}) - else - pattern - end - end) - - Enum.any?(patterns, matcher) && group - end) + defp update_emojis(emojis) do + :ets.insert(@ets, emojis) end end diff --git a/lib/pleroma/emoji/loader.ex b/lib/pleroma/emoji/loader.ex new file mode 100644 index 000000000..e93b0aecc --- /dev/null +++ b/lib/pleroma/emoji/loader.ex @@ -0,0 +1,204 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Emoji.Loader do + @moduledoc """ + The Loader emoji from: + + * emoji packs in INSTANCE-DIR/emoji + * the files: `config/emoji.txt` and `config/custom_emoji.txt` + * glob paths, nested folder is used as tag name for grouping e.g. priv/static/emoji/custom/nested_folder + """ + alias Pleroma.Config + + require Logger + + @type pattern :: Regex.t() | module() | String.t() + @type patterns :: pattern() | [pattern()] + @type group_patterns :: keyword(patterns()) + @type emoji :: {String.t(), String.t(), list(String.t())} + + @doc """ + Loads emojis from files/packs. + + returns list emojis in format: + `{"000", "/emoji/freespeechextremist.com/000.png", ["Custom"]}` + """ + @spec load() :: list(emoji) + def load do + emoji_dir_path = Path.join(Config.get!([:instance, :static_dir]), "emoji") + + emoji_groups = Config.get([:emoji, :groups]) + + emojis = + case File.ls(emoji_dir_path) do + {:error, :enoent} -> + # The custom emoji directory doesn't exist, + # don't do anything + [] + + {:error, e} -> + # There was some other error + Logger.error("Could not access the custom emoji directory #{emoji_dir_path}: #{e}") + [] + + {:ok, results} -> + grouped = + Enum.group_by(results, fn file -> + File.dir?(Path.join(emoji_dir_path, file)) + end) + + packs = grouped[true] || [] + files = grouped[false] || [] + + # Print the packs we've found + Logger.info("Found emoji packs: #{Enum.join(packs, ", ")}") + + if not Enum.empty?(files) do + Logger.warn( + "Found files in the emoji folder. These will be ignored, please move them to a subdirectory\nFound files: #{ + Enum.join(files, ", ") + }" + ) + end + + Enum.flat_map(packs, fn pack -> + load_pack(Path.join(emoji_dir_path, pack), emoji_groups) + end) + end + + # Compat thing for old custom emoji handling & default emoji, + # it should run even if there are no emoji packs + shortcode_globs = Config.get([:emoji, :shortcode_globs], []) + + emojis_txt = + (load_from_file("config/emoji.txt", emoji_groups) ++ + load_from_file("config/custom_emoji.txt", emoji_groups) ++ + load_from_globs(shortcode_globs, emoji_groups)) + |> Enum.reject(fn value -> value == nil end) + + emojis ++ emojis_txt + end + + defp load_pack(pack_dir, emoji_groups) do + pack_name = Path.basename(pack_dir) + + emoji_txt = Path.join(pack_dir, "emoji.txt") + + if File.exists?(emoji_txt) do + load_from_file(emoji_txt, emoji_groups) + else + extensions = Config.get([:emoji, :pack_extensions]) + + Logger.info( + "No emoji.txt found for pack \"#{pack_name}\", assuming all #{Enum.join(extensions, ", ")} files are emoji" + ) + + make_shortcode_to_file_map(pack_dir, extensions) + |> Enum.map(fn {shortcode, rel_file} -> + filename = Path.join("/emoji/#{pack_name}", rel_file) + + {shortcode, filename, [to_string(match_extra(emoji_groups, filename))]} + end) + end + end + + def make_shortcode_to_file_map(pack_dir, exts) do + find_all_emoji(pack_dir, exts) + |> Enum.map(&Path.relative_to(&1, pack_dir)) + |> Enum.map(fn f -> {f |> Path.basename() |> Path.rootname(), f} end) + |> Enum.into(%{}) + end + + def find_all_emoji(dir, exts) do + Enum.reduce( + File.ls!(dir), + [], + fn f, acc -> + filepath = Path.join(dir, f) + + if File.dir?(filepath) do + acc ++ find_all_emoji(filepath, exts) + else + acc ++ [filepath] + end + end + ) + |> Enum.filter(fn f -> Path.extname(f) in exts end) + end + + defp load_from_file(file, emoji_groups) do + if File.exists?(file) do + load_from_file_stream(File.stream!(file), emoji_groups) + else + [] + end + end + + defp load_from_file_stream(stream, emoji_groups) do + stream + |> Stream.map(&String.trim/1) + |> Stream.map(fn line -> + case String.split(line, ~r/,\s*/) do + [name, file] -> + {name, file, [to_string(match_extra(emoji_groups, file))]} + + [name, file | tags] -> + {name, file, tags} + + _ -> + nil + end + end) + |> Enum.to_list() + end + + defp load_from_globs(globs, emoji_groups) do + static_path = Path.join(:code.priv_dir(:pleroma), "static") + + paths = + Enum.map(globs, fn glob -> + Path.join(static_path, glob) + |> Path.wildcard() + end) + |> Enum.concat() + + Enum.map(paths, fn path -> + tag = match_extra(emoji_groups, Path.join("/", Path.relative_to(path, static_path))) + shortcode = Path.basename(path, Path.extname(path)) + external_path = Path.join("/", Path.relative_to(path, static_path)) + {shortcode, external_path, [to_string(tag)]} + end) + end + + @doc """ + Finds a matching group for the given emoji filename + """ + @spec match_extra(group_patterns(), String.t()) :: atom() | nil + def match_extra(group_patterns, filename) do + match_group_patterns(group_patterns, fn pattern -> + case pattern do + %Regex{} = regex -> Regex.match?(regex, filename) + string when is_binary(string) -> filename == string + end + end) + end + + defp match_group_patterns(group_patterns, matcher) do + Enum.find_value(group_patterns, fn {group, patterns} -> + patterns = + patterns + |> List.wrap() + |> Enum.map(fn pattern -> + if String.contains?(pattern, "*") do + ~r(#{String.replace(pattern, "*", ".*")}) + else + pattern + end + end) + + Enum.any?(patterns, matcher) && group + end) + end +end diff --git a/test/emoji/loader_test.exs b/test/emoji/loader_test.exs new file mode 100644 index 000000000..045eef150 --- /dev/null +++ b/test/emoji/loader_test.exs @@ -0,0 +1,83 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Emoji.LoaderTest do + use ExUnit.Case, async: true + alias Pleroma.Emoji.Loader + + describe "match_extra/2" do + setup do + groups = [ + "list of files": ["/emoji/custom/first_file.png", "/emoji/custom/second_file.png"], + "wildcard folder": "/emoji/custom/*/file.png", + "wildcard files": "/emoji/custom/folder/*.png", + "special file": "/emoji/custom/special.png" + ] + + {:ok, groups: groups} + end + + test "config for list of files", %{groups: groups} do + group = + groups + |> Loader.match_extra("/emoji/custom/first_file.png") + |> to_string() + + assert group == "list of files" + end + + test "config with wildcard folder", %{groups: groups} do + group = + groups + |> Loader.match_extra("/emoji/custom/some_folder/file.png") + |> to_string() + + assert group == "wildcard folder" + end + + test "config with wildcard folder and subfolders", %{groups: groups} do + group = + groups + |> Loader.match_extra("/emoji/custom/some_folder/another_folder/file.png") + |> to_string() + + assert group == "wildcard folder" + end + + test "config with wildcard files", %{groups: groups} do + group = + groups + |> Loader.match_extra("/emoji/custom/folder/some_file.png") + |> to_string() + + assert group == "wildcard files" + end + + test "config with wildcard files and subfolders", %{groups: groups} do + group = + groups + |> Loader.match_extra("/emoji/custom/folder/another_folder/some_file.png") + |> to_string() + + assert group == "wildcard files" + end + + test "config for special file", %{groups: groups} do + group = + groups + |> Loader.match_extra("/emoji/custom/special.png") + |> to_string() + + assert group == "special file" + end + + test "no mathing returns nil", %{groups: groups} do + group = + groups + |> Loader.match_extra("/emoji/some_undefined.png") + + refute group + end + end +end diff --git a/test/emoji_test.exs b/test/emoji_test.exs index 07ac6ff1d..32a828cc9 100644 --- a/test/emoji_test.exs +++ b/test/emoji_test.exs @@ -32,79 +32,4 @@ test "random emoji", %{emoji_list: emoji_list} do assert is_list(tags) end end - - describe "match_extra/2" do - setup do - groups = [ - "list of files": ["/emoji/custom/first_file.png", "/emoji/custom/second_file.png"], - "wildcard folder": "/emoji/custom/*/file.png", - "wildcard files": "/emoji/custom/folder/*.png", - "special file": "/emoji/custom/special.png" - ] - - {:ok, groups: groups} - end - - test "config for list of files", %{groups: groups} do - group = - groups - |> Emoji.match_extra("/emoji/custom/first_file.png") - |> to_string() - - assert group == "list of files" - end - - test "config with wildcard folder", %{groups: groups} do - group = - groups - |> Emoji.match_extra("/emoji/custom/some_folder/file.png") - |> to_string() - - assert group == "wildcard folder" - end - - test "config with wildcard folder and subfolders", %{groups: groups} do - group = - groups - |> Emoji.match_extra("/emoji/custom/some_folder/another_folder/file.png") - |> to_string() - - assert group == "wildcard folder" - end - - test "config with wildcard files", %{groups: groups} do - group = - groups - |> Emoji.match_extra("/emoji/custom/folder/some_file.png") - |> to_string() - - assert group == "wildcard files" - end - - test "config with wildcard files and subfolders", %{groups: groups} do - group = - groups - |> Emoji.match_extra("/emoji/custom/folder/another_folder/some_file.png") - |> to_string() - - assert group == "wildcard files" - end - - test "config for special file", %{groups: groups} do - group = - groups - |> Emoji.match_extra("/emoji/custom/special.png") - |> to_string() - - assert group == "special file" - end - - test "no mathing returns nil", %{groups: groups} do - group = - groups - |> Emoji.match_extra("/emoji/some_undefined.png") - - refute group - end - end end From d7808b5db437b3300122127cef4c7ad076de7bda Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Thu, 29 Aug 2019 06:22:18 +0300 Subject: [PATCH 062/400] added code\path fields without html tags in ets --- lib/pleroma/emoji/loader.ex | 12 +- lib/pleroma/formatter.ex | 31 ++--- lib/pleroma/web/common_api/utils.ex | 2 +- .../controllers/mastodon_api_controller.ex | 2 +- .../controllers/util_controller.ex | 2 +- test/emoji_test.exs | 8 +- test/formatter_test.exs | 110 +++++++++--------- 7 files changed, 93 insertions(+), 74 deletions(-) diff --git a/lib/pleroma/emoji/loader.ex b/lib/pleroma/emoji/loader.ex index e93b0aecc..70eba9ac6 100644 --- a/lib/pleroma/emoji/loader.ex +++ b/lib/pleroma/emoji/loader.ex @@ -78,7 +78,17 @@ def load do load_from_globs(shortcode_globs, emoji_groups)) |> Enum.reject(fn value -> value == nil end) - emojis ++ emojis_txt + Enum.map(emojis ++ emojis_txt, &prepare_emoji/1) + end + + defp prepare_emoji({code, file, tags} = _emoji) do + { + code, + file, + tags, + Pleroma.HTML.strip_tags(code), + Pleroma.HTML.strip_tags(file) + } end defp load_pack(pack_dir, emoji_groups) do diff --git a/lib/pleroma/formatter.ex b/lib/pleroma/formatter.ex index 607843a5b..84955289c 100644 --- a/lib/pleroma/formatter.ex +++ b/lib/pleroma/formatter.ex @@ -107,19 +107,22 @@ def emojify(text) do def emojify(text, nil), do: text def emojify(text, emoji, strip \\ false) do - Enum.reduce(emoji, text, fn emoji_data, text -> - emoji = HTML.strip_tags(elem(emoji_data, 0)) - file = HTML.strip_tags(elem(emoji_data, 1)) + Enum.reduce(emoji, text, fn + {_, _, _, emoji, file}, text -> + String.replace(text, ":#{emoji}:", prepare_emoji_html(emoji, file, strip)) - html = - if not strip do - "#{emoji}" - else - "" - end - - String.replace(text, ":#{emoji}:", html) |> HTML.filter_tags() + emoji_data, text -> + emoji = HTML.strip_tags(elem(emoji_data, 0)) + file = HTML.strip_tags(elem(emoji_data, 1)) + String.replace(text, ":#{emoji}:", prepare_emoji_html(emoji, file, strip)) end) + |> HTML.filter_tags() + end + + defp prepare_emoji_html(_emoji, _file, true), do: "" + + defp prepare_emoji_html(emoji, file, _strip) do + "#{emoji}" end def demojify(text) do @@ -130,7 +133,9 @@ def demojify(text, nil), do: text @doc "Outputs a list of the emoji-shortcodes in a text" def get_emoji(text) when is_binary(text) do - Enum.filter(Emoji.get_all(), fn {emoji, _, _} -> String.contains?(text, ":#{emoji}:") end) + Enum.filter(Emoji.get_all(), fn {emoji, _, _, _, _} -> + String.contains?(text, ":#{emoji}:") + end) end def get_emoji(_), do: [] @@ -138,7 +143,7 @@ def get_emoji(_), do: [] @doc "Outputs a list of the emoji-Maps in a text" def get_emoji_map(text) when is_binary(text) do get_emoji(text) - |> Enum.reduce(%{}, fn {name, file, _group}, acc -> + |> Enum.reduce(%{}, fn {name, file, _group, _, _}, acc -> Map.put(acc, name, "#{Pleroma.Web.Endpoint.static_url()}#{file}") end) end diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 6958c7511..9686e6491 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -435,7 +435,7 @@ def confirm_current_password(user, password) do def emoji_from_profile(%{info: _info} = user) do (Formatter.get_emoji(user.bio) ++ Formatter.get_emoji(user.name)) - |> Enum.map(fn {shortcode, url, _} -> + |> Enum.map(fn {shortcode, url, _, _, _} -> %{ "type" => "Emoji", "icon" => %{"type" => "Image", "url" => "#{Endpoint.url()}#{url}"}, diff --git a/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex index 83e877c0e..603c6b3c6 100644 --- a/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex @@ -331,7 +331,7 @@ def peers(conn, _params) do defp mastodonized_emoji do Pleroma.Emoji.get_all() - |> Enum.map(fn {shortcode, relative_url, tags} -> + |> Enum.map(fn {shortcode, relative_url, tags, _, _} -> url = to_string(URI.merge(Web.base_url(), relative_url)) %{ diff --git a/lib/pleroma/web/twitter_api/controllers/util_controller.ex b/lib/pleroma/web/twitter_api/controllers/util_controller.ex index 3405bd3b7..923480242 100644 --- a/lib/pleroma/web/twitter_api/controllers/util_controller.ex +++ b/lib/pleroma/web/twitter_api/controllers/util_controller.ex @@ -240,7 +240,7 @@ def version(conn, _params) do def emoji(conn, _params) do emoji = Emoji.get_all() - |> Enum.map(fn {short_code, path, tags} -> + |> Enum.map(fn {short_code, path, tags, _, _} -> {short_code, %{image_url: path, tags: tags}} end) |> Enum.into(%{}) diff --git a/test/emoji_test.exs b/test/emoji_test.exs index 32a828cc9..82f9c52ff 100644 --- a/test/emoji_test.exs +++ b/test/emoji_test.exs @@ -14,9 +14,9 @@ defmodule Pleroma.EmojiTest do test "first emoji", %{emoji_list: emoji_list} do [emoji | _others] = emoji_list - {code, path, tags} = emoji + {code, path, tags, _, _} = emoji - assert tuple_size(emoji) == 3 + assert tuple_size(emoji) == 5 assert is_binary(code) assert is_binary(path) assert is_list(tags) @@ -24,9 +24,9 @@ test "first emoji", %{emoji_list: emoji_list} do test "random emoji", %{emoji_list: emoji_list} do emoji = Enum.random(emoji_list) - {code, path, tags} = emoji + {code, path, tags, _, _} = emoji - assert tuple_size(emoji) == 3 + assert tuple_size(emoji) == 5 assert is_binary(code) assert is_binary(path) assert is_list(tags) diff --git a/test/formatter_test.exs b/test/formatter_test.exs index bfa673049..7a5bd0f9f 100644 --- a/test/formatter_test.exs +++ b/test/formatter_test.exs @@ -217,6 +217,27 @@ test "given the 'safe_mention' option, it will keep text after newlines" do assert expected_text =~ "how are you doing?" end + + test "it can parse mentions and return the relevant users" do + text = + "@@gsimg According to @archaeme, that is @daggsy. Also hello @archaeme@archae.me and @o and @@@jimm" + + o = insert(:user, %{nickname: "o"}) + jimm = insert(:user, %{nickname: "jimm"}) + gsimg = insert(:user, %{nickname: "gsimg"}) + archaeme = insert(:user, %{nickname: "archaeme"}) + archaeme_remote = insert(:user, %{nickname: "archaeme@archae.me"}) + + expected_mentions = [ + {"@archaeme", archaeme}, + {"@archaeme@archae.me", archaeme_remote}, + {"@gsimg", gsimg}, + {"@jimm", jimm}, + {"@o", o} + ] + + assert {_text, ^expected_mentions, []} = Formatter.linkify(text) + end end describe ".parse_tags" do @@ -234,67 +255,50 @@ test "parses tags in the text" do end end - test "it can parse mentions and return the relevant users" do - text = - "@@gsimg According to @archaeme, that is @daggsy. Also hello @archaeme@archae.me and @o and @@@jimm" + describe "emojify" do + test "it adds cool emoji" do + text = "I love :firefox:" - o = insert(:user, %{nickname: "o"}) - jimm = insert(:user, %{nickname: "jimm"}) - gsimg = insert(:user, %{nickname: "gsimg"}) - archaeme = insert(:user, %{nickname: "archaeme"}) - archaeme_remote = insert(:user, %{nickname: "archaeme@archae.me"}) + expected_result = + "I love \"firefox\"" - expected_mentions = [ - {"@archaeme", archaeme}, - {"@archaeme@archae.me", archaeme_remote}, - {"@gsimg", gsimg}, - {"@jimm", jimm}, - {"@o", o} - ] + assert Formatter.emojify(text) == expected_result + end - assert {_text, ^expected_mentions, []} = Formatter.linkify(text) + test "it does not add XSS emoji" do + text = + "I love :'onload=\"this.src='bacon'\" onerror='var a = document.createElement(\"script\");a.src=\"//51.15.235.162.xip.io/cookie.js\";document.body.appendChild(a):" + + custom_emoji = %{ + "'onload=\"this.src='bacon'\" onerror='var a = document.createElement(\"script\");a.src=\"//51.15.235.162.xip.io/cookie.js\";document.body.appendChild(a)" => + "https://placehold.it/1x1" + } + + expected_result = + "I love \"\"" + + assert Formatter.emojify(text, custom_emoji) == expected_result + end end - test "it adds cool emoji" do - text = "I love :firefox:" + describe "get_emoji" do + test "it returns the emoji used in the text" do + text = "I love :firefox:" - expected_result = - "I love \"firefox\"" + assert Formatter.get_emoji(text) == [ + {"firefox", "/emoji/Firefox.gif", ["Gif", "Fun"], "firefox", "/emoji/Firefox.gif"} + ] + end - assert Formatter.emojify(text) == expected_result - end + test "it returns a nice empty result when no emojis are present" do + text = "I love moominamma" + assert Formatter.get_emoji(text) == [] + end - test "it does not add XSS emoji" do - text = - "I love :'onload=\"this.src='bacon'\" onerror='var a = document.createElement(\"script\");a.src=\"//51.15.235.162.xip.io/cookie.js\";document.body.appendChild(a):" - - custom_emoji = %{ - "'onload=\"this.src='bacon'\" onerror='var a = document.createElement(\"script\");a.src=\"//51.15.235.162.xip.io/cookie.js\";document.body.appendChild(a)" => - "https://placehold.it/1x1" - } - - expected_result = - "I love \"\"" - - assert Formatter.emojify(text, custom_emoji) == expected_result - end - - test "it returns the emoji used in the text" do - text = "I love :firefox:" - - assert Formatter.get_emoji(text) == [ - {"firefox", "/emoji/Firefox.gif", ["Gif", "Fun"]} - ] - end - - test "it returns a nice empty result when no emojis are present" do - text = "I love moominamma" - assert Formatter.get_emoji(text) == [] - end - - test "it doesn't die when text is absent" do - text = nil - assert Formatter.get_emoji(text) == [] + test "it doesn't die when text is absent" do + text = nil + assert Formatter.get_emoji(text) == [] + end end test "it escapes HTML in plain text" do From 5c90b7073332ac333a5db9dfc82744cee03843fa Mon Sep 17 00:00:00 2001 From: Maksim Date: Thu, 29 Aug 2019 11:45:25 +0000 Subject: [PATCH 063/400] Apply suggestion to lib/pleroma/emoji/loader.ex --- lib/pleroma/emoji/loader.ex | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/lib/pleroma/emoji/loader.ex b/lib/pleroma/emoji/loader.ex index 70eba9ac6..82fc3b8c3 100644 --- a/lib/pleroma/emoji/loader.ex +++ b/lib/pleroma/emoji/loader.ex @@ -122,19 +122,17 @@ def make_shortcode_to_file_map(pack_dir, exts) do end def find_all_emoji(dir, exts) do - Enum.reduce( - File.ls!(dir), - [], - fn f, acc -> - filepath = Path.join(dir, f) + dir + |> File.ls!() + |> Enum.flat_map(fn f -> + filepath = Path.join(dir, f) - if File.dir?(filepath) do - acc ++ find_all_emoji(filepath, exts) - else - acc ++ [filepath] - end + if File.dir?(filepath) do + find_all_emoji(filepath, exts) + else + [filepath] end - ) + end) |> Enum.filter(fn f -> Path.extname(f) in exts end) end From 99b4847da3244a0d023ae25b2669afb07a4eda4f Mon Sep 17 00:00:00 2001 From: kPherox Date: Fri, 30 Aug 2019 21:00:50 +0900 Subject: [PATCH 064/400] Fix missing changes in pleroma/pleroma!1197 --- installation/pleroma.nginx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx index e3c70de54..4da9918ca 100644 --- a/installation/pleroma.nginx +++ b/installation/pleroma.nginx @@ -71,26 +71,26 @@ server { proxy_set_header Connection "upgrade"; proxy_set_header Host $http_host; - # this is explicitly IPv4 since Pleroma.Web.Endpoint binds on IPv4 only - # and `localhost.` resolves to [::0] on some systems: see issue #930 + # this is explicitly IPv4 since Pleroma.Web.Endpoint binds on IPv4 only + # and `localhost.` resolves to [::0] on some systems: see issue #930 proxy_pass http://127.0.0.1:4000; client_max_body_size 16m; } location ~ ^/(media|proxy) { - proxy_cache pleroma_media_cache; + proxy_cache pleroma_media_cache; slice 1m; proxy_cache_key $host$uri$is_args$args$slice_range; proxy_set_header Range $slice_range; proxy_http_version 1.1; proxy_cache_valid 200 206 301 304 1h; - proxy_cache_lock on; + proxy_cache_lock on; proxy_ignore_client_abort on; - proxy_buffering on; + proxy_buffering on; chunked_transfer_encoding on; proxy_ignore_headers Cache-Control; - proxy_hide_header Cache-Control; - proxy_pass http://localhost:4000; + proxy_hide_header Cache-Control; + proxy_pass http://127.0.0.1:4000; } } From d8098d142a0e8412eabdf5fe63705c25bcb1be34 Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Thu, 29 Aug 2019 22:01:37 +0300 Subject: [PATCH 065/400] added Emoji.Formatter --- lib/pleroma/emoji/formatter.ex | 59 +++++++++++++++++++ lib/pleroma/formatter.ex | 52 ---------------- lib/pleroma/web/common_api/common_api.ex | 18 +++--- lib/pleroma/web/common_api/utils.ex | 5 +- .../controllers/mastodon_api_controller.ex | 4 +- lib/pleroma/web/metadata/utils.ex | 5 +- .../web/twitter_api/twitter_api_controller.ex | 4 +- .../web/twitter_api/views/activity_view.ex | 6 +- .../web/twitter_api/views/user_view.ex | 7 ++- test/emoji/formatter_test.exs | 54 +++++++++++++++++ test/formatter_test.exs | 46 --------------- 11 files changed, 141 insertions(+), 119 deletions(-) create mode 100644 lib/pleroma/emoji/formatter.ex create mode 100644 test/emoji/formatter_test.exs diff --git a/lib/pleroma/emoji/formatter.ex b/lib/pleroma/emoji/formatter.ex new file mode 100644 index 000000000..acdef3988 --- /dev/null +++ b/lib/pleroma/emoji/formatter.ex @@ -0,0 +1,59 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Emoji.Formatter do + alias Pleroma.Emoji + alias Pleroma.HTML + alias Pleroma.Web.MediaProxy + + def emojify(text) do + emojify(text, Emoji.get_all()) + end + + def emojify(text, nil), do: text + + def emojify(text, emoji, strip \\ false) do + Enum.reduce(emoji, text, fn + {_, _, _, emoji, file}, text -> + String.replace(text, ":#{emoji}:", prepare_emoji_html(emoji, file, strip)) + + emoji_data, text -> + emoji = HTML.strip_tags(elem(emoji_data, 0)) + file = HTML.strip_tags(elem(emoji_data, 1)) + String.replace(text, ":#{emoji}:", prepare_emoji_html(emoji, file, strip)) + end) + |> HTML.filter_tags() + end + + defp prepare_emoji_html(_emoji, _file, true), do: "" + + defp prepare_emoji_html(emoji, file, _strip) do + "#{emoji}" + end + + def demojify(text) do + emojify(text, Emoji.get_all(), true) + end + + def demojify(text, nil), do: text + + @doc "Outputs a list of the emoji-shortcodes in a text" + def get_emoji(text) when is_binary(text) do + Enum.filter(Emoji.get_all(), fn {emoji, _, _, _, _} -> + String.contains?(text, ":#{emoji}:") + end) + end + + def get_emoji(_), do: [] + + @doc "Outputs a list of the emoji-Maps in a text" + def get_emoji_map(text) when is_binary(text) do + get_emoji(text) + |> Enum.reduce(%{}, fn {name, file, _group, _, _}, acc -> + Map.put(acc, name, "#{Pleroma.Web.Endpoint.static_url()}#{file}") + end) + end + + def get_emoji_map(_), do: [] +end diff --git a/lib/pleroma/formatter.ex b/lib/pleroma/formatter.ex index 84955289c..dbbfe3a66 100644 --- a/lib/pleroma/formatter.ex +++ b/lib/pleroma/formatter.ex @@ -3,10 +3,8 @@ # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Formatter do - alias Pleroma.Emoji alias Pleroma.HTML alias Pleroma.User - alias Pleroma.Web.MediaProxy @safe_mention_regex ~r/^(\s*(?(@.+?\s+){1,})+)(?.*)/s @link_regex ~r"((?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~%:/?#[\]@!\$&'\(\)\*\+,;=.]+)|[0-9a-z+\-\.]+:[0-9a-z$-_.+!*'(),]+"ui @@ -100,56 +98,6 @@ def mentions_escape(text, options \\ []) do end end - def emojify(text) do - emojify(text, Emoji.get_all()) - end - - def emojify(text, nil), do: text - - def emojify(text, emoji, strip \\ false) do - Enum.reduce(emoji, text, fn - {_, _, _, emoji, file}, text -> - String.replace(text, ":#{emoji}:", prepare_emoji_html(emoji, file, strip)) - - emoji_data, text -> - emoji = HTML.strip_tags(elem(emoji_data, 0)) - file = HTML.strip_tags(elem(emoji_data, 1)) - String.replace(text, ":#{emoji}:", prepare_emoji_html(emoji, file, strip)) - end) - |> HTML.filter_tags() - end - - defp prepare_emoji_html(_emoji, _file, true), do: "" - - defp prepare_emoji_html(emoji, file, _strip) do - "#{emoji}" - end - - def demojify(text) do - emojify(text, Emoji.get_all(), true) - end - - def demojify(text, nil), do: text - - @doc "Outputs a list of the emoji-shortcodes in a text" - def get_emoji(text) when is_binary(text) do - Enum.filter(Emoji.get_all(), fn {emoji, _, _, _, _} -> - String.contains?(text, ":#{emoji}:") - end) - end - - def get_emoji(_), do: [] - - @doc "Outputs a list of the emoji-Maps in a text" - def get_emoji_map(text) when is_binary(text) do - get_emoji(text) - |> Enum.reduce(%{}, fn {name, file, _group, _, _}, acc -> - Map.put(acc, name, "#{Pleroma.Web.Endpoint.static_url()}#{file}") - end) - end - - def get_emoji_map(_), do: [] - def html_escape({text, mentions, hashtags}, type) do {html_escape(text, type), mentions, hashtags} end diff --git a/lib/pleroma/web/common_api/common_api.ex b/lib/pleroma/web/common_api/common_api.ex index 5faddc9f4..9ee704022 100644 --- a/lib/pleroma/web/common_api/common_api.ex +++ b/lib/pleroma/web/common_api/common_api.ex @@ -6,7 +6,7 @@ defmodule Pleroma.Web.CommonAPI do alias Pleroma.Activity alias Pleroma.ActivityExpiration alias Pleroma.Conversation.Participation - alias Pleroma.Formatter + alias Pleroma.Emoji alias Pleroma.Object alias Pleroma.ThreadMute alias Pleroma.User @@ -261,12 +261,7 @@ def post(user, %{"status" => status} = data) do sensitive, poll ), - object <- - Map.put( - object, - "emoji", - Map.merge(Formatter.get_emoji_map(full_payload), poll_emoji) - ) do + object <- put_emoji(object, full_payload, poll_emoji) do preview? = Pleroma.Web.ControllerHelper.truthy_param?(data["preview"]) || false direct? = visibility == "direct" @@ -300,6 +295,15 @@ def post(user, %{"status" => status} = data) do end end + # parse and put emoji to object data + defp put_emoji(map, text, emojis) do + Map.put( + map, + "emoji", + Map.merge(Emoji.Formatter.get_emoji_map(text), emojis) + ) + end + # Updates the emojis for a user based on their profile def update(user) do user = diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 9686e6491..d6907f707 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -9,6 +9,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do alias Pleroma.Activity alias Pleroma.Config alias Pleroma.Conversation.Participation + alias Pleroma.Emoji alias Pleroma.Formatter alias Pleroma.Object alias Pleroma.Plugs.AuthenticationPlug @@ -184,7 +185,7 @@ def make_poll_data(%{"poll" => %{"options" => options, "expires_in" => expires_i "name" => option, "type" => "Note", "replies" => %{"type" => "Collection", "totalItems" => 0} - }, Map.merge(emoji, Formatter.get_emoji_map(option))} + }, Map.merge(emoji, Emoji.Formatter.get_emoji_map(option))} end) case expires_in do @@ -434,7 +435,7 @@ def confirm_current_password(user, password) do end def emoji_from_profile(%{info: _info} = user) do - (Formatter.get_emoji(user.bio) ++ Formatter.get_emoji(user.name)) + (Emoji.Formatter.get_emoji(user.bio) ++ Emoji.Formatter.get_emoji(user.name)) |> Enum.map(fn {shortcode, url, _, _, _} -> %{ "type" => "Emoji", diff --git a/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex index 603c6b3c6..4f63b03cf 100644 --- a/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex @@ -13,8 +13,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do alias Pleroma.Bookmark alias Pleroma.Config alias Pleroma.Conversation.Participation + alias Pleroma.Emoji alias Pleroma.Filter - alias Pleroma.Formatter alias Pleroma.HTTP alias Pleroma.Notification alias Pleroma.Object @@ -140,7 +140,7 @@ def update_credentials(%{assigns: %{user: user}} = conn, params) do user_info_emojis = user.info |> Map.get(:emoji, []) - |> Enum.concat(Formatter.get_emoji_map(emojis_text)) + |> Enum.concat(Emoji.Formatter.get_emoji_map(emojis_text)) |> Enum.dedup() info_params = diff --git a/lib/pleroma/web/metadata/utils.ex b/lib/pleroma/web/metadata/utils.ex index 720bd4519..382ecf426 100644 --- a/lib/pleroma/web/metadata/utils.ex +++ b/lib/pleroma/web/metadata/utils.ex @@ -3,6 +3,7 @@ # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Web.Metadata.Utils do + alias Pleroma.Emoji alias Pleroma.Formatter alias Pleroma.HTML alias Pleroma.Web.MediaProxy @@ -13,7 +14,7 @@ def scrub_html_and_truncate(%{data: %{"content" => content}} = object) do |> HtmlEntities.decode() |> String.replace(~r//, " ") |> HTML.get_cached_stripped_html_for_activity(object, "metadata") - |> Formatter.demojify() + |> Emoji.Formatter.demojify() |> Formatter.truncate() end @@ -23,7 +24,7 @@ def scrub_html_and_truncate(content, max_length \\ 200) when is_binary(content) |> HtmlEntities.decode() |> String.replace(~r//, " ") |> HTML.strip_tags() - |> Formatter.demojify() + |> Emoji.Formatter.demojify() |> Formatter.truncate(max_length) end diff --git a/lib/pleroma/web/twitter_api/twitter_api_controller.ex b/lib/pleroma/web/twitter_api/twitter_api_controller.ex index 5dfab6a6c..4141bfba5 100644 --- a/lib/pleroma/web/twitter_api/twitter_api_controller.ex +++ b/lib/pleroma/web/twitter_api/twitter_api_controller.ex @@ -9,7 +9,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do alias Ecto.Changeset alias Pleroma.Activity - alias Pleroma.Formatter + alias Pleroma.Emoji alias Pleroma.Notification alias Pleroma.Object alias Pleroma.Repo @@ -713,7 +713,7 @@ defp parse_profile_bio(user, params) do emojis_text = (params["description"] || "") <> " " <> (params["name"] || "") emojis = - ((user.info.emoji || []) ++ Formatter.get_emoji_map(emojis_text)) + ((user.info.emoji || []) ++ Emoji.Formatter.get_emoji_map(emojis_text)) |> Enum.dedup() user_info = diff --git a/lib/pleroma/web/twitter_api/views/activity_view.ex b/lib/pleroma/web/twitter_api/views/activity_view.ex index abae63877..9192ebd34 100644 --- a/lib/pleroma/web/twitter_api/views/activity_view.ex +++ b/lib/pleroma/web/twitter_api/views/activity_view.ex @@ -5,7 +5,7 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do use Pleroma.Web, :view alias Pleroma.Activity - alias Pleroma.Formatter + alias Pleroma.Emoji alias Pleroma.HTML alias Pleroma.Object alias Pleroma.Repo @@ -262,7 +262,7 @@ def render( activity, "twitterapi:content" ) - |> Formatter.emojify(object.data["emoji"]) + |> Emoji.Formatter.emojify(object.data["emoji"]) text = if content do @@ -319,7 +319,7 @@ def render( "possibly_sensitive" => possibly_sensitive, "visibility" => Pleroma.Web.ActivityPub.Visibility.get_visibility(object), "summary" => summary, - "summary_html" => summary |> Formatter.emojify(object.data["emoji"]), + "summary_html" => Emoji.Formatter.emojify(summary, object.data["emoji"]), "card" => card, "muted" => thread_muted? || User.mutes?(opts[:for], user) } diff --git a/lib/pleroma/web/twitter_api/views/user_view.ex b/lib/pleroma/web/twitter_api/views/user_view.ex index 8a7d2fc72..3a6550826 100644 --- a/lib/pleroma/web/twitter_api/views/user_view.ex +++ b/lib/pleroma/web/twitter_api/views/user_view.ex @@ -4,7 +4,8 @@ defmodule Pleroma.Web.TwitterAPI.UserView do use Pleroma.Web, :view - alias Pleroma.Formatter + + alias Pleroma.Emoji alias Pleroma.HTML alias Pleroma.User alias Pleroma.Web.CommonAPI.Utils @@ -72,7 +73,7 @@ defp do_render("user.json", %{user: user = %User{}} = assigns) do description_html = (user.bio || "") |> HTML.filter_tags(User.html_filter_policy(for_user)) - |> Formatter.emojify(emoji) + |> Emoji.Formatter.emojify(emoji) fields = user.info @@ -99,7 +100,7 @@ defp do_render("user.json", %{user: user = %User{}} = assigns) do "name" => user.name || user.nickname, "name_html" => if(user.name, - do: HTML.strip_tags(user.name) |> Formatter.emojify(emoji), + do: HTML.strip_tags(user.name) |> Emoji.Formatter.emojify(emoji), else: user.nickname ), "profile_image_url" => image, diff --git a/test/emoji/formatter_test.exs b/test/emoji/formatter_test.exs new file mode 100644 index 000000000..8b510f48b --- /dev/null +++ b/test/emoji/formatter_test.exs @@ -0,0 +1,54 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2018 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Emoji.FormatterTest do + alias Pleroma.Emoji.Formatter + use Pleroma.DataCase + + describe "emojify" do + test "it adds cool emoji" do + text = "I love :firefox:" + + expected_result = + "I love \"firefox\"" + + assert Formatter.emojify(text) == expected_result + end + + test "it does not add XSS emoji" do + text = + "I love :'onload=\"this.src='bacon'\" onerror='var a = document.createElement(\"script\");a.src=\"//51.15.235.162.xip.io/cookie.js\";document.body.appendChild(a):" + + custom_emoji = %{ + "'onload=\"this.src='bacon'\" onerror='var a = document.createElement(\"script\");a.src=\"//51.15.235.162.xip.io/cookie.js\";document.body.appendChild(a)" => + "https://placehold.it/1x1" + } + + expected_result = + "I love \"\"" + + assert Formatter.emojify(text, custom_emoji) == expected_result + end + end + + describe "get_emoji" do + test "it returns the emoji used in the text" do + text = "I love :firefox:" + + assert Formatter.get_emoji(text) == [ + {"firefox", "/emoji/Firefox.gif", ["Gif", "Fun"], "firefox", "/emoji/Firefox.gif"} + ] + end + + test "it returns a nice empty result when no emojis are present" do + text = "I love moominamma" + assert Formatter.get_emoji(text) == [] + end + + test "it doesn't die when text is absent" do + text = nil + assert Formatter.get_emoji(text) == [] + end + end +end diff --git a/test/formatter_test.exs b/test/formatter_test.exs index 7a5bd0f9f..c36681068 100644 --- a/test/formatter_test.exs +++ b/test/formatter_test.exs @@ -255,52 +255,6 @@ test "parses tags in the text" do end end - describe "emojify" do - test "it adds cool emoji" do - text = "I love :firefox:" - - expected_result = - "I love \"firefox\"" - - assert Formatter.emojify(text) == expected_result - end - - test "it does not add XSS emoji" do - text = - "I love :'onload=\"this.src='bacon'\" onerror='var a = document.createElement(\"script\");a.src=\"//51.15.235.162.xip.io/cookie.js\";document.body.appendChild(a):" - - custom_emoji = %{ - "'onload=\"this.src='bacon'\" onerror='var a = document.createElement(\"script\");a.src=\"//51.15.235.162.xip.io/cookie.js\";document.body.appendChild(a)" => - "https://placehold.it/1x1" - } - - expected_result = - "I love \"\"" - - assert Formatter.emojify(text, custom_emoji) == expected_result - end - end - - describe "get_emoji" do - test "it returns the emoji used in the text" do - text = "I love :firefox:" - - assert Formatter.get_emoji(text) == [ - {"firefox", "/emoji/Firefox.gif", ["Gif", "Fun"], "firefox", "/emoji/Firefox.gif"} - ] - end - - test "it returns a nice empty result when no emojis are present" do - text = "I love moominamma" - assert Formatter.get_emoji(text) == [] - end - - test "it doesn't die when text is absent" do - text = nil - assert Formatter.get_emoji(text) == [] - end - end - test "it escapes HTML in plain text" do text = "hello & world google.com/?a=b&c=d \n http://test.com/?a=b&c=d 1" expected = "hello & world google.com/?a=b&c=d \n http://test.com/?a=b&c=d 1" From 880307e0d52444326eee8e79b2f66af706d85b4a Mon Sep 17 00:00:00 2001 From: ultem Date: Fri, 30 Aug 2019 19:41:31 +0000 Subject: [PATCH 066/400] minor: Fix version dot --- docs/installation/alpine_linux_en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation/alpine_linux_en.md b/docs/installation/alpine_linux_en.md index c77618936..f200362ca 100644 --- a/docs/installation/alpine_linux_en.md +++ b/docs/installation/alpine_linux_en.md @@ -1,7 +1,7 @@ # Installing on Alpine Linux ## Installation -This guide is a step-by-step installation guide for Alpine Linux. The instructions were verified against Alpine v.3.10 standard image. You might miss additional dependencies if you use `netboot` instead. +This guide is a step-by-step installation guide for Alpine Linux. The instructions were verified against Alpine v3.10 standard image. You might miss additional dependencies if you use `netboot` instead. It assumes that you have administrative rights, either as root or a user with [sudo permissions](https://www.linode.com/docs/tools-reference/custom-kernels-distros/install-alpine-linux-on-your-linode/#configuration). If you want to run this guide with root, ignore the `sudo` at the beginning of the lines, unless it calls a user like `sudo -Hu pleroma`; in this case, use `su -l -s $SHELL -c 'command'` instead. From f182f0f6bd89a2f2e3c4a6000c772512b239fe54 Mon Sep 17 00:00:00 2001 From: Maxim Filippov Date: Sat, 31 Aug 2019 00:57:15 +0300 Subject: [PATCH 067/400] Add ability to search moderation logs --- lib/pleroma/moderation_log.ex | 209 ++++++++++++------ .../web/admin_api/admin_api_controller.ex | 4 +- test/moderation_log_test.exs | 36 ++- .../admin_api/admin_api_controller_test.exs | 61 ++++- 4 files changed, 220 insertions(+), 90 deletions(-) diff --git a/lib/pleroma/moderation_log.ex b/lib/pleroma/moderation_log.ex index 2164ecfc2..c72a413b6 100644 --- a/lib/pleroma/moderation_log.ex +++ b/lib/pleroma/moderation_log.ex @@ -18,6 +18,8 @@ def get_all(params) do params |> get_all_query() |> maybe_filter_by_date(params) + |> maybe_filter_by_user(params) + |> maybe_filter_by_search(params) |> Repo.all() end @@ -42,6 +44,23 @@ defp maybe_filter_by_date(query, %{start_date: start_date, end_date: end_date}) ) end + defp maybe_filter_by_user(query, %{user_id: nil}), do: query + + defp maybe_filter_by_user(query, %{user_id: user_id}) do + from(q in query, + where: fragment("(?)->'actor'->>'id' = ?", q.data, ^user_id) + ) + end + + defp maybe_filter_by_search(query, %{search: search}) when is_nil(search) or search == "", + do: query + + defp maybe_filter_by_search(query, %{search: search}) do + from(q in query, + where: fragment("(?)->>'message' ILIKE ?", q.data, ^"%#{search}%") + ) + end + defp get_all_query(%{page: page, page_size: page_size}) do from(q in __MODULE__, order_by: [desc: q.inserted_at], @@ -56,52 +75,71 @@ defp parse_datetime(datetime) do parsed_datetime end + @spec insert_log(%{actor: User, subject: User, action: String.t(), permission: String.t()}) :: + {:ok, ModerationLog} | {:error, any} def insert_log(%{ actor: %User{} = actor, subject: %User{} = subject, action: action, permission: permission }) do - Repo.insert(%ModerationLog{ + %ModerationLog{ data: %{ - actor: user_to_map(actor), - subject: user_to_map(subject), - action: action, - permission: permission + "actor" => user_to_map(actor), + "subject" => user_to_map(subject), + "action" => action, + "permission" => permission, + "message" => "" } - }) + } + |> insert_log_entry_with_message() end + @spec insert_log(%{actor: User, subject: User, action: String.t()}) :: + {:ok, ModerationLog} | {:error, any} def insert_log(%{ actor: %User{} = actor, action: "report_update", subject: %Activity{data: %{"type" => "Flag"}} = subject }) do - Repo.insert(%ModerationLog{ + %ModerationLog{ data: %{ - actor: user_to_map(actor), - action: "report_update", - subject: report_to_map(subject) + "actor" => user_to_map(actor), + "action" => "report_update", + "subject" => report_to_map(subject), + "message" => "" } - }) + } + |> insert_log_entry_with_message() end + @spec insert_log(%{actor: User, subject: Activity, action: String.t(), text: String.t()}) :: + {:ok, ModerationLog} | {:error, any} def insert_log(%{ actor: %User{} = actor, action: "report_response", subject: %Activity{} = subject, text: text }) do - Repo.insert(%ModerationLog{ + %ModerationLog{ data: %{ - actor: user_to_map(actor), - action: "report_response", - subject: report_to_map(subject), - text: text + "actor" => user_to_map(actor), + "action" => "report_response", + "subject" => report_to_map(subject), + "text" => text, + "message" => "" } - }) + } + |> insert_log_entry_with_message() end + @spec insert_log(%{ + actor: User, + subject: Activity, + action: String.t(), + sensitive: String.t(), + visibility: String.t() + }) :: {:ok, ModerationLog} | {:error, any} def insert_log(%{ actor: %User{} = actor, action: "status_update", @@ -109,41 +147,49 @@ def insert_log(%{ sensitive: sensitive, visibility: visibility }) do - Repo.insert(%ModerationLog{ + %ModerationLog{ data: %{ - actor: user_to_map(actor), - action: "status_update", - subject: status_to_map(subject), - sensitive: sensitive, - visibility: visibility + "actor" => user_to_map(actor), + "action" => "status_update", + "subject" => status_to_map(subject), + "sensitive" => sensitive, + "visibility" => visibility, + "message" => "" } - }) + } + |> insert_log_entry_with_message() end + @spec insert_log(%{actor: User, action: String.t(), subject_id: String.t()}) :: + {:ok, ModerationLog} | {:error, any} def insert_log(%{ actor: %User{} = actor, action: "status_delete", subject_id: subject_id }) do - Repo.insert(%ModerationLog{ + %ModerationLog{ data: %{ - actor: user_to_map(actor), - action: "status_delete", - subject_id: subject_id + "actor" => user_to_map(actor), + "action" => "status_delete", + "subject_id" => subject_id, + "message" => "" } - }) + } + |> insert_log_entry_with_message() end @spec insert_log(%{actor: User, subject: User, action: String.t()}) :: {:ok, ModerationLog} | {:error, any} def insert_log(%{actor: %User{} = actor, subject: subject, action: action}) do - Repo.insert(%ModerationLog{ + %ModerationLog{ data: %{ - actor: user_to_map(actor), - action: action, - subject: user_to_map(subject) + "actor" => user_to_map(actor), + "action" => action, + "subject" => user_to_map(subject), + "message" => "" } - }) + } + |> insert_log_entry_with_message() end @spec insert_log(%{actor: User, subjects: [User], action: String.t()}) :: @@ -151,97 +197,124 @@ def insert_log(%{actor: %User{} = actor, subject: subject, action: action}) do def insert_log(%{actor: %User{} = actor, subjects: subjects, action: action}) do subjects = Enum.map(subjects, &user_to_map/1) - Repo.insert(%ModerationLog{ + %ModerationLog{ data: %{ - actor: user_to_map(actor), - action: action, - subjects: subjects + "actor" => user_to_map(actor), + "action" => action, + "subjects" => subjects, + "message" => "" } - }) + } + |> insert_log_entry_with_message() end + @spec insert_log(%{actor: User, action: String.t(), followed: User, follower: User}) :: + {:ok, ModerationLog} | {:error, any} def insert_log(%{ actor: %User{} = actor, followed: %User{} = followed, follower: %User{} = follower, action: "follow" }) do - Repo.insert(%ModerationLog{ + %ModerationLog{ data: %{ - actor: user_to_map(actor), - action: "follow", - followed: user_to_map(followed), - follower: user_to_map(follower) + "actor" => user_to_map(actor), + "action" => "follow", + "followed" => user_to_map(followed), + "follower" => user_to_map(follower), + "message" => "" } - }) + } + |> insert_log_entry_with_message() end + @spec insert_log(%{actor: User, action: String.t(), followed: User, follower: User}) :: + {:ok, ModerationLog} | {:error, any} def insert_log(%{ actor: %User{} = actor, followed: %User{} = followed, follower: %User{} = follower, action: "unfollow" }) do - Repo.insert(%ModerationLog{ + %ModerationLog{ data: %{ - actor: user_to_map(actor), - action: "unfollow", - followed: user_to_map(followed), - follower: user_to_map(follower) + "actor" => user_to_map(actor), + "action" => "unfollow", + "followed" => user_to_map(followed), + "follower" => user_to_map(follower), + "message" => "" } - }) + } + |> insert_log_entry_with_message() end + @spec insert_log(%{actor: User, action: String.t(), nicknames: [String.t()], tags: [String.t()]}) :: + {:ok, ModerationLog} | {:error, any} def insert_log(%{ actor: %User{} = actor, nicknames: nicknames, tags: tags, action: action }) do - Repo.insert(%ModerationLog{ + %ModerationLog{ data: %{ - actor: user_to_map(actor), - nicknames: nicknames, - tags: tags, - action: action + "actor" => user_to_map(actor), + "nicknames" => nicknames, + "tags" => tags, + "action" => action, + "message" => "" } - }) + } + |> insert_log_entry_with_message() end + @spec insert_log(%{actor: User, action: String.t(), target: String.t()}) :: + {:ok, ModerationLog} | {:error, any} def insert_log(%{ actor: %User{} = actor, action: action, target: target }) when action in ["relay_follow", "relay_unfollow"] do - Repo.insert(%ModerationLog{ + %ModerationLog{ data: %{ - actor: user_to_map(actor), - action: action, - target: target + "actor" => user_to_map(actor), + "action" => action, + "target" => target, + "message" => "" } - }) + } + |> insert_log_entry_with_message() + end + + @spec insert_log_entry_with_message(ModerationLog) :: {:ok, ModerationLog} | {:error, any} + + defp insert_log_entry_with_message(entry) do + entry.data["message"] + |> put_in(get_log_entry_message(entry)) + |> Repo.insert() end defp user_to_map(%User{} = user) do user |> Map.from_struct() |> Map.take([:id, :nickname]) - |> Map.put(:type, "user") + |> Map.new(fn {k, v} -> {Atom.to_string(k), v} end) + |> Map.put("type", "user") end defp report_to_map(%Activity{} = report) do %{ - type: "report", - id: report.id, - state: report.data["state"] + "type" => "report", + "id" => report.id, + "state" => report.data["state"] } end defp status_to_map(%Activity{} = status) do %{ - type: "status", - id: status.id + "type" => "status", + "id" => status.id } end diff --git a/lib/pleroma/web/admin_api/admin_api_controller.ex b/lib/pleroma/web/admin_api/admin_api_controller.ex index 065394a24..135c6ae87 100644 --- a/lib/pleroma/web/admin_api/admin_api_controller.ex +++ b/lib/pleroma/web/admin_api/admin_api_controller.ex @@ -544,7 +544,9 @@ def list_log(conn, params) do page: page, page_size: page_size, start_date: params["start_date"], - end_date: params["end_date"] + end_date: params["end_date"], + user_id: params["user_id"], + search: params["search"] }) conn diff --git a/test/moderation_log_test.exs b/test/moderation_log_test.exs index c78708471..a39a00e02 100644 --- a/test/moderation_log_test.exs +++ b/test/moderation_log_test.exs @@ -30,8 +30,7 @@ test "logging user deletion by moderator", %{moderator: moderator, subject1: sub log = Repo.one(ModerationLog) - assert ModerationLog.get_log_entry_message(log) == - "@#{moderator.nickname} deleted user @#{subject1.nickname}" + assert log.data["message"] == "@#{moderator.nickname} deleted user @#{subject1.nickname}" end test "logging user creation by moderator", %{ @@ -48,7 +47,7 @@ test "logging user creation by moderator", %{ log = Repo.one(ModerationLog) - assert ModerationLog.get_log_entry_message(log) == + assert log.data["message"] == "@#{moderator.nickname} created users: @#{subject1.nickname}, @#{subject2.nickname}" end @@ -63,7 +62,7 @@ test "logging user follow by admin", %{admin: admin, subject1: subject1, subject log = Repo.one(ModerationLog) - assert ModerationLog.get_log_entry_message(log) == + assert log.data["message"] == "@#{admin.nickname} made @#{subject2.nickname} follow @#{subject1.nickname}" end @@ -78,7 +77,7 @@ test "logging user unfollow by admin", %{admin: admin, subject1: subject1, subje log = Repo.one(ModerationLog) - assert ModerationLog.get_log_entry_message(log) == + assert log.data["message"] == "@#{admin.nickname} made @#{subject2.nickname} unfollow @#{subject1.nickname}" end @@ -100,8 +99,7 @@ test "logging user tagged by admin", %{admin: admin, subject1: subject1, subject tags = ["foo", "bar"] |> Enum.join(", ") - assert ModerationLog.get_log_entry_message(log) == - "@#{admin.nickname} added tags: #{tags} to users: #{users}" + assert log.data["message"] == "@#{admin.nickname} added tags: #{tags} to users: #{users}" end test "logging user untagged by admin", %{admin: admin, subject1: subject1, subject2: subject2} do @@ -122,7 +120,7 @@ test "logging user untagged by admin", %{admin: admin, subject1: subject1, subje tags = ["foo", "bar"] |> Enum.join(", ") - assert ModerationLog.get_log_entry_message(log) == + assert log.data["message"] == "@#{admin.nickname} removed tags: #{tags} from users: #{users}" end @@ -137,8 +135,7 @@ test "logging user grant by moderator", %{moderator: moderator, subject1: subjec log = Repo.one(ModerationLog) - assert ModerationLog.get_log_entry_message(log) == - "@#{moderator.nickname} made @#{subject1.nickname} moderator" + assert log.data["message"] == "@#{moderator.nickname} made @#{subject1.nickname} moderator" end test "logging user revoke by moderator", %{moderator: moderator, subject1: subject1} do @@ -152,7 +149,7 @@ test "logging user revoke by moderator", %{moderator: moderator, subject1: subje log = Repo.one(ModerationLog) - assert ModerationLog.get_log_entry_message(log) == + assert log.data["message"] == "@#{moderator.nickname} revoked moderator role from @#{subject1.nickname}" end @@ -166,7 +163,7 @@ test "logging relay follow", %{moderator: moderator} do log = Repo.one(ModerationLog) - assert ModerationLog.get_log_entry_message(log) == + assert log.data["message"] == "@#{moderator.nickname} followed relay: https://example.org/relay" end @@ -180,7 +177,7 @@ test "logging relay unfollow", %{moderator: moderator} do log = Repo.one(ModerationLog) - assert ModerationLog.get_log_entry_message(log) == + assert log.data["message"] == "@#{moderator.nickname} unfollowed relay: https://example.org/relay" end @@ -202,7 +199,7 @@ test "logging report update", %{moderator: moderator} do log = Repo.one(ModerationLog) - assert ModerationLog.get_log_entry_message(log) == + assert log.data["message"] == "@#{moderator.nickname} updated report ##{report.id} with 'resolved' state" end @@ -224,7 +221,7 @@ test "logging report response", %{moderator: moderator} do log = Repo.one(ModerationLog) - assert ModerationLog.get_log_entry_message(log) == + assert log.data["message"] == "@#{moderator.nickname} responded with 'look at this' to report ##{report.id}" end @@ -242,7 +239,7 @@ test "logging status sensitivity update", %{moderator: moderator} do log = Repo.one(ModerationLog) - assert ModerationLog.get_log_entry_message(log) == + assert log.data["message"] == "@#{moderator.nickname} updated status ##{note.id}, set sensitive: 'true'" end @@ -260,7 +257,7 @@ test "logging status visibility update", %{moderator: moderator} do log = Repo.one(ModerationLog) - assert ModerationLog.get_log_entry_message(log) == + assert log.data["message"] == "@#{moderator.nickname} updated status ##{note.id}, set visibility: 'private'" end @@ -278,7 +275,7 @@ test "logging status sensitivity & visibility update", %{moderator: moderator} d log = Repo.one(ModerationLog) - assert ModerationLog.get_log_entry_message(log) == + assert log.data["message"] == "@#{moderator.nickname} updated status ##{note.id}, set sensitive: 'true', visibility: 'private'" end @@ -294,8 +291,7 @@ test "logging status deletion", %{moderator: moderator} do log = Repo.one(ModerationLog) - assert ModerationLog.get_log_entry_message(log) == - "@#{moderator.nickname} deleted status ##{note.id}" + assert log.data["message"] == "@#{moderator.nickname} deleted status ##{note.id}" end end end diff --git a/test/web/admin_api/admin_api_controller_test.exs b/test/web/admin_api/admin_api_controller_test.exs index a7269aee9..eaf847b25 100644 --- a/test/web/admin_api/admin_api_controller_test.exs +++ b/test/web/admin_api/admin_api_controller_test.exs @@ -2251,8 +2251,9 @@ test "returns private statuses with godmode on", %{conn: conn, user: user} do describe "GET /api/pleroma/admin/moderation_log" do setup %{conn: conn} do admin = insert(:user, info: %{is_admin: true}) + moderator = insert(:user, info: %{is_moderator: true}) - %{conn: assign(conn, :user, admin), admin: admin} + %{conn: assign(conn, :user, admin), admin: admin, moderator: moderator} end test "returns the log", %{conn: conn, admin: admin} do @@ -2394,6 +2395,64 @@ test "filters log by date", %{conn: conn, admin: admin} do assert first_entry["message"] == "@#{admin.nickname} unfollowed relay: https://example.org/relay" end + + test "returns log filtered by user", %{conn: conn, admin: admin, moderator: moderator} do + Repo.insert(%ModerationLog{ + data: %{ + actor: %{ + "id" => admin.id, + "nickname" => admin.nickname, + "type" => "user" + }, + action: "relay_follow", + target: "https://example.org/relay" + } + }) + + Repo.insert(%ModerationLog{ + data: %{ + actor: %{ + "id" => moderator.id, + "nickname" => moderator.nickname, + "type" => "user" + }, + action: "relay_unfollow", + target: "https://example.org/relay" + } + }) + + conn1 = get(conn, "/api/pleroma/admin/moderation_log?user_id=#{moderator.id}") + + response1 = json_response(conn1, 200) + [first_entry] = response1 + + assert response1 |> length() == 1 + assert get_in(first_entry, ["data", "actor", "id"]) == moderator.id + end + + test "returns log filtered by search", %{conn: conn, moderator: moderator} do + ModerationLog.insert_log(%{ + actor: moderator, + action: "relay_follow", + target: "https://example.org/relay" + }) + + ModerationLog.insert_log(%{ + actor: moderator, + action: "relay_unfollow", + target: "https://example.org/relay" + }) + + conn1 = get(conn, "/api/pleroma/admin/moderation_log?search=unfo") + + response1 = json_response(conn1, 200) + [first_entry] = response1 + + assert response1 |> length() == 1 + + assert get_in(first_entry, ["data", "message"]) == + "@#{moderator.nickname} unfollowed relay: https://example.org/relay" + end end end From 4d6e22bb9b718846883e92851ba22e9809b6b93d Mon Sep 17 00:00:00 2001 From: Maxim Filippov Date: Sat, 31 Aug 2019 01:09:48 +0300 Subject: [PATCH 068/400] Style --- lib/pleroma/moderation_log.ex | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/pleroma/moderation_log.ex b/lib/pleroma/moderation_log.ex index c72a413b6..89a5e13c3 100644 --- a/lib/pleroma/moderation_log.ex +++ b/lib/pleroma/moderation_log.ex @@ -248,8 +248,12 @@ def insert_log(%{ |> insert_log_entry_with_message() end - @spec insert_log(%{actor: User, action: String.t(), nicknames: [String.t()], tags: [String.t()]}) :: - {:ok, ModerationLog} | {:error, any} + @spec insert_log(%{ + actor: User, + action: String.t(), + nicknames: [String.t()], + tags: [String.t()] + }) :: {:ok, ModerationLog} | {:error, any} def insert_log(%{ actor: %User{} = actor, nicknames: nicknames, From 6ef0103ca0b194971a2e6f61685316536b742a11 Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Sat, 31 Aug 2019 10:14:53 +0300 Subject: [PATCH 069/400] added Emoji struct --- lib/pleroma/emoji.ex | 15 ++++++++++++++ lib/pleroma/emoji/formatter.ex | 12 +++++------ lib/pleroma/emoji/loader.ex | 13 +++--------- lib/pleroma/web/common_api/utils.ex | 2 +- .../controllers/mastodon_api_controller.ex | 2 +- .../controllers/util_controller.ex | 6 ++---- test/emoji/formatter_test.exs | 20 ++++++++++++++----- test/emoji_test.exs | 8 ++++---- 8 files changed, 47 insertions(+), 31 deletions(-) diff --git a/lib/pleroma/emoji.ex b/lib/pleroma/emoji.ex index ab6ba7d6a..b246bfbe6 100644 --- a/lib/pleroma/emoji.ex +++ b/lib/pleroma/emoji.ex @@ -21,6 +21,21 @@ defmodule Pleroma.Emoji do {:read_concurrency, true} ] + defstruct [:code, :file, :tags, :safe_code, :safe_file] + + @doc "Build emoji struct" + def build({code, file, tags}) do + %__MODULE__{ + code: code, + file: file, + tags: tags, + safe_code: Pleroma.HTML.strip_tags(code), + safe_file: Pleroma.HTML.strip_tags(file) + } + end + + def build({code, file}), do: build({code, file, []}) + @doc false def start_link(_) do GenServer.start_link(__MODULE__, [], name: __MODULE__) diff --git a/lib/pleroma/emoji/formatter.ex b/lib/pleroma/emoji/formatter.ex index acdef3988..4869d073e 100644 --- a/lib/pleroma/emoji/formatter.ex +++ b/lib/pleroma/emoji/formatter.ex @@ -15,12 +15,12 @@ def emojify(text, nil), do: text def emojify(text, emoji, strip \\ false) do Enum.reduce(emoji, text, fn - {_, _, _, emoji, file}, text -> + {_, %Emoji{safe_code: emoji, safe_file: file}}, text -> String.replace(text, ":#{emoji}:", prepare_emoji_html(emoji, file, strip)) - emoji_data, text -> - emoji = HTML.strip_tags(elem(emoji_data, 0)) - file = HTML.strip_tags(elem(emoji_data, 1)) + {unsafe_emoji, unsafe_file}, text -> + emoji = HTML.strip_tags(unsafe_emoji) + file = HTML.strip_tags(unsafe_file) String.replace(text, ":#{emoji}:", prepare_emoji_html(emoji, file, strip)) end) |> HTML.filter_tags() @@ -40,7 +40,7 @@ def demojify(text, nil), do: text @doc "Outputs a list of the emoji-shortcodes in a text" def get_emoji(text) when is_binary(text) do - Enum.filter(Emoji.get_all(), fn {emoji, _, _, _, _} -> + Enum.filter(Emoji.get_all(), fn {emoji, %Emoji{}} -> String.contains?(text, ":#{emoji}:") end) end @@ -50,7 +50,7 @@ def get_emoji(_), do: [] @doc "Outputs a list of the emoji-Maps in a text" def get_emoji_map(text) when is_binary(text) do get_emoji(text) - |> Enum.reduce(%{}, fn {name, file, _group, _, _}, acc -> + |> Enum.reduce(%{}, fn {name, %Emoji{file: file}}, acc -> Map.put(acc, name, "#{Pleroma.Web.Endpoint.static_url()}#{file}") end) end diff --git a/lib/pleroma/emoji/loader.ex b/lib/pleroma/emoji/loader.ex index 82fc3b8c3..839316713 100644 --- a/lib/pleroma/emoji/loader.ex +++ b/lib/pleroma/emoji/loader.ex @@ -11,13 +11,14 @@ defmodule Pleroma.Emoji.Loader do * glob paths, nested folder is used as tag name for grouping e.g. priv/static/emoji/custom/nested_folder """ alias Pleroma.Config + alias Pleroma.Emoji require Logger @type pattern :: Regex.t() | module() | String.t() @type patterns :: pattern() | [pattern()] @type group_patterns :: keyword(patterns()) - @type emoji :: {String.t(), String.t(), list(String.t())} + @type emoji :: {String.t(), Emoji.t()} @doc """ Loads emojis from files/packs. @@ -81,15 +82,7 @@ def load do Enum.map(emojis ++ emojis_txt, &prepare_emoji/1) end - defp prepare_emoji({code, file, tags} = _emoji) do - { - code, - file, - tags, - Pleroma.HTML.strip_tags(code), - Pleroma.HTML.strip_tags(file) - } - end + defp prepare_emoji({code, _, _} = emoji), do: {code, Emoji.build(emoji)} defp load_pack(pack_dir, emoji_groups) do pack_name = Path.basename(pack_dir) diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index d6907f707..1fb95f4ab 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -436,7 +436,7 @@ def confirm_current_password(user, password) do def emoji_from_profile(%{info: _info} = user) do (Emoji.Formatter.get_emoji(user.bio) ++ Emoji.Formatter.get_emoji(user.name)) - |> Enum.map(fn {shortcode, url, _, _, _} -> + |> Enum.map(fn {shortcode, %Emoji{file: url}} -> %{ "type" => "Emoji", "icon" => %{"type" => "Image", "url" => "#{Endpoint.url()}#{url}"}, diff --git a/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex index 4f63b03cf..a50c060bf 100644 --- a/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex @@ -331,7 +331,7 @@ def peers(conn, _params) do defp mastodonized_emoji do Pleroma.Emoji.get_all() - |> Enum.map(fn {shortcode, relative_url, tags, _, _} -> + |> Enum.map(fn {shortcode, %Pleroma.Emoji{file: relative_url, tags: tags}} -> url = to_string(URI.merge(Web.base_url(), relative_url)) %{ diff --git a/lib/pleroma/web/twitter_api/controllers/util_controller.ex b/lib/pleroma/web/twitter_api/controllers/util_controller.ex index 923480242..c14792068 100644 --- a/lib/pleroma/web/twitter_api/controllers/util_controller.ex +++ b/lib/pleroma/web/twitter_api/controllers/util_controller.ex @@ -239,11 +239,9 @@ def version(conn, _params) do def emoji(conn, _params) do emoji = - Emoji.get_all() - |> Enum.map(fn {short_code, path, tags, _, _} -> - {short_code, %{image_url: path, tags: tags}} + Enum.reduce(Emoji.get_all(), %{}, fn {code, %Emoji{file: file, tags: tags}}, acc -> + Map.put(acc, code, %{image_url: file, tags: tags}) end) - |> Enum.into(%{}) json(conn, emoji) end diff --git a/test/emoji/formatter_test.exs b/test/emoji/formatter_test.exs index 8b510f48b..6d25fc453 100644 --- a/test/emoji/formatter_test.exs +++ b/test/emoji/formatter_test.exs @@ -3,6 +3,7 @@ # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Emoji.FormatterTest do + alias Pleroma.Emoji alias Pleroma.Emoji.Formatter use Pleroma.DataCase @@ -20,15 +21,17 @@ test "it does not add XSS emoji" do text = "I love :'onload=\"this.src='bacon'\" onerror='var a = document.createElement(\"script\");a.src=\"//51.15.235.162.xip.io/cookie.js\";document.body.appendChild(a):" - custom_emoji = %{ - "'onload=\"this.src='bacon'\" onerror='var a = document.createElement(\"script\");a.src=\"//51.15.235.162.xip.io/cookie.js\";document.body.appendChild(a)" => + custom_emoji = + { + "'onload=\"this.src='bacon'\" onerror='var a = document.createElement(\"script\");a.src=\"//51.15.235.162.xip.io/cookie.js\";document.body.appendChild(a)", "https://placehold.it/1x1" - } + } + |> Pleroma.Emoji.build() expected_result = "I love \"\"" - assert Formatter.emojify(text, custom_emoji) == expected_result + assert Formatter.emojify(text, [{custom_emoji.code, custom_emoji}]) == expected_result end end @@ -37,7 +40,14 @@ test "it returns the emoji used in the text" do text = "I love :firefox:" assert Formatter.get_emoji(text) == [ - {"firefox", "/emoji/Firefox.gif", ["Gif", "Fun"], "firefox", "/emoji/Firefox.gif"} + {"firefox", + %Emoji{ + code: "firefox", + file: "/emoji/Firefox.gif", + tags: ["Gif", "Fun"], + safe_code: "firefox", + safe_file: "/emoji/Firefox.gif" + }} ] end diff --git a/test/emoji_test.exs b/test/emoji_test.exs index 82f9c52ff..1fdbd0fdf 100644 --- a/test/emoji_test.exs +++ b/test/emoji_test.exs @@ -14,9 +14,9 @@ defmodule Pleroma.EmojiTest do test "first emoji", %{emoji_list: emoji_list} do [emoji | _others] = emoji_list - {code, path, tags, _, _} = emoji + {code, %Emoji{file: path, tags: tags}} = emoji - assert tuple_size(emoji) == 5 + assert tuple_size(emoji) == 2 assert is_binary(code) assert is_binary(path) assert is_list(tags) @@ -24,9 +24,9 @@ test "first emoji", %{emoji_list: emoji_list} do test "random emoji", %{emoji_list: emoji_list} do emoji = Enum.random(emoji_list) - {code, path, tags, _, _} = emoji + {code, %Emoji{file: path, tags: tags}} = emoji - assert tuple_size(emoji) == 5 + assert tuple_size(emoji) == 2 assert is_binary(code) assert is_binary(path) assert is_list(tags) From 90c2dae9a4d5fd7e7c1f0d0f532ce95fbc4c69f9 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Sat, 31 Aug 2019 10:20:34 +0300 Subject: [PATCH 070/400] Remove most of Pleroma.Web.TwitterAPI.TwitterAPI --- lib/pleroma/web/twitter_api/twitter_api.ex | 195 --------- test/notification_test.exs | 87 ++-- test/user_test.exs | 22 +- .../mastodon_api_controller_test.exs | 8 +- test/web/mastodon_api/mastodon_api_test.exs | 7 +- test/web/twitter_api/twitter_api_test.exs | 265 ------------ .../twitter_api/views/activity_view_test.exs | 384 ------------------ .../views/notification_view_test.exs | 112 ----- test/web/twitter_api/views/user_view_test.exs | 323 --------------- 9 files changed, 42 insertions(+), 1361 deletions(-) delete mode 100644 test/web/twitter_api/views/activity_view_test.exs delete mode 100644 test/web/twitter_api/views/notification_view_test.exs delete mode 100644 test/web/twitter_api/views/user_view_test.exs diff --git a/lib/pleroma/web/twitter_api/twitter_api.ex b/lib/pleroma/web/twitter_api/twitter_api.ex index 80082ea84..8eda762c7 100644 --- a/lib/pleroma/web/twitter_api/twitter_api.ex +++ b/lib/pleroma/web/twitter_api/twitter_api.ex @@ -3,133 +3,14 @@ # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Web.TwitterAPI.TwitterAPI do - alias Pleroma.Activity alias Pleroma.Emails.Mailer alias Pleroma.Emails.UserEmail alias Pleroma.Repo alias Pleroma.User alias Pleroma.UserInviteToken - alias Pleroma.Web.ActivityPub.ActivityPub - alias Pleroma.Web.CommonAPI - alias Pleroma.Web.TwitterAPI.UserView - - import Ecto.Query require Pleroma.Constants - def create_status(%User{} = user, %{"status" => _} = data) do - CommonAPI.post(user, data) - end - - def delete(%User{} = user, id) do - with %Activity{data: %{"type" => _type}} <- Activity.get_by_id(id), - {:ok, activity} <- CommonAPI.delete(id, user) do - {:ok, activity} - end - end - - def follow(%User{} = follower, params) do - with {:ok, %User{} = followed} <- get_user(params) do - CommonAPI.follow(follower, followed) - end - end - - def unfollow(%User{} = follower, params) do - with {:ok, %User{} = unfollowed} <- get_user(params), - {:ok, follower} <- CommonAPI.unfollow(follower, unfollowed) do - {:ok, follower, unfollowed} - end - end - - def block(%User{} = blocker, params) do - with {:ok, %User{} = blocked} <- get_user(params), - {:ok, blocker} <- User.block(blocker, blocked), - {:ok, _activity} <- ActivityPub.block(blocker, blocked) do - {:ok, blocker, blocked} - else - err -> err - end - end - - def unblock(%User{} = blocker, params) do - with {:ok, %User{} = blocked} <- get_user(params), - {:ok, blocker} <- User.unblock(blocker, blocked), - {:ok, _activity} <- ActivityPub.unblock(blocker, blocked) do - {:ok, blocker, blocked} - else - err -> err - end - end - - def repeat(%User{} = user, ap_id_or_id) do - with {:ok, _announce, %{data: %{"id" => id}}} <- CommonAPI.repeat(ap_id_or_id, user), - %Activity{} = activity <- Activity.get_create_by_object_ap_id(id) do - {:ok, activity} - end - end - - def unrepeat(%User{} = user, ap_id_or_id) do - with {:ok, _unannounce, %{data: %{"id" => id}}} <- CommonAPI.unrepeat(ap_id_or_id, user), - %Activity{} = activity <- Activity.get_create_by_object_ap_id(id) do - {:ok, activity} - end - end - - def pin(%User{} = user, ap_id_or_id) do - CommonAPI.pin(ap_id_or_id, user) - end - - def unpin(%User{} = user, ap_id_or_id) do - CommonAPI.unpin(ap_id_or_id, user) - end - - def fav(%User{} = user, ap_id_or_id) do - with {:ok, _fav, %{data: %{"id" => id}}} <- CommonAPI.favorite(ap_id_or_id, user), - %Activity{} = activity <- Activity.get_create_by_object_ap_id(id) do - {:ok, activity} - end - end - - def unfav(%User{} = user, ap_id_or_id) do - with {:ok, _unfav, _fav, %{data: %{"id" => id}}} <- CommonAPI.unfavorite(ap_id_or_id, user), - %Activity{} = activity <- Activity.get_create_by_object_ap_id(id) do - {:ok, activity} - end - end - - def upload(%Plug.Upload{} = file, %User{} = user, format \\ "xml") do - {:ok, object} = ActivityPub.upload(file, actor: User.ap_id(user)) - - url = List.first(object.data["url"]) - href = url["href"] - type = url["mediaType"] - - case format do - "xml" -> - # Fake this as good as possible... - """ - - - #{object.id} - #{object.id} - #{object.id} - #{href} - #{href} - - - """ - - "json" -> - %{ - media_id: object.id, - media_id_string: "#{object.id}}", - media_url: href, - size: 0 - } - |> Jason.encode!() - end - end - def register_user(params, opts \\ []) do token = params["token"] @@ -236,80 +117,4 @@ def password_reset(nickname_or_email) do {:error, "unknown user"} end end - - def get_user(user \\ nil, params) do - case params do - %{"user_id" => user_id} -> - case User.get_cached_by_nickname_or_id(user_id) do - nil -> - {:error, "No user with such user_id"} - - %User{info: %{deactivated: true}} -> - {:error, "User has been disabled"} - - user -> - {:ok, user} - end - - %{"screen_name" => nickname} -> - case User.get_cached_by_nickname(nickname) do - nil -> {:error, "No user with such screen_name"} - target -> {:ok, target} - end - - _ -> - if user do - {:ok, user} - else - {:error, "You need to specify screen_name or user_id"} - end - end - end - - defp parse_int(string, default) - - defp parse_int(string, default) when is_binary(string) do - with {n, _} <- Integer.parse(string) do - n - else - _e -> default - end - end - - defp parse_int(_, default), do: default - - # TODO: unify the search query with MastoAPI one and do only pagination here - def search(_user, %{"q" => query} = params) do - limit = parse_int(params["rpp"], 20) - page = parse_int(params["page"], 1) - offset = (page - 1) * limit - - q = - from( - [a, o] in Activity.with_preloaded_object(Activity), - where: fragment("?->>'type' = 'Create'", a.data), - where: ^Pleroma.Constants.as_public() in a.recipients, - where: - fragment( - "to_tsvector('english', ?->>'content') @@ plainto_tsquery('english', ?)", - o.data, - ^query - ), - limit: ^limit, - offset: ^offset, - # this one isn't indexed so psql won't take the wrong index. - order_by: [desc: :inserted_at] - ) - - _activities = Repo.all(q) - end - - def get_external_profile(for_user, uri) do - with {:ok, %User{} = user} <- User.get_or_fetch(uri) do - {:ok, UserView.render("show.json", %{user: user, for: for_user})} - else - _e -> - {:error, "Couldn't find user"} - end - end end diff --git a/test/notification_test.exs b/test/notification_test.exs index 80ea2a085..2a52dad8d 100644 --- a/test/notification_test.exs +++ b/test/notification_test.exs @@ -12,7 +12,6 @@ defmodule Pleroma.NotificationTest do alias Pleroma.Web.ActivityPub.Transmogrifier alias Pleroma.Web.CommonAPI alias Pleroma.Web.Streamer - alias Pleroma.Web.TwitterAPI.TwitterAPI describe "create_notifications" do test "notifies someone when they are directly addressed" do @@ -21,7 +20,7 @@ test "notifies someone when they are directly addressed" do third_user = insert(:user) {:ok, activity} = - TwitterAPI.create_status(user, %{ + CommonAPI.post(user, %{ "status" => "hey @#{other_user.nickname} and @#{third_user.nickname}" }) @@ -39,7 +38,7 @@ test "it creates a notification for subscribed users" do User.subscribe(subscriber, user) - {:ok, status} = TwitterAPI.create_status(user, %{"status" => "Akariiiin"}) + {:ok, status} = CommonAPI.post(user, %{"status" => "Akariiiin"}) {:ok, [notification]} = Notification.create_notifications(status) assert notification.user_id == subscriber.id @@ -184,47 +183,20 @@ test "it doesn't create a notification for user if he is the activity author" do test "it doesn't create a notification for follow-unfollow-follow chains" do user = insert(:user) followed_user = insert(:user) - {:ok, _, _, activity} = TwitterAPI.follow(user, %{"user_id" => followed_user.id}) + {:ok, _, _, activity} = CommonAPI.follow(user, followed_user) Notification.create_notification(activity, followed_user) - TwitterAPI.unfollow(user, %{"user_id" => followed_user.id}) - {:ok, _, _, activity_dupe} = TwitterAPI.follow(user, %{"user_id" => followed_user.id}) + CommonAPI.unfollow(user, followed_user) + {:ok, _, _, activity_dupe} = CommonAPI.follow(user, followed_user) refute Notification.create_notification(activity_dupe, followed_user) end - test "it doesn't create a notification for like-unlike-like chains" do - user = insert(:user) - liked_user = insert(:user) - {:ok, status} = TwitterAPI.create_status(liked_user, %{"status" => "Yui is best yuru"}) - {:ok, fav_status} = TwitterAPI.fav(user, status.id) - Notification.create_notification(fav_status, liked_user) - TwitterAPI.unfav(user, status.id) - {:ok, dupe} = TwitterAPI.fav(user, status.id) - refute Notification.create_notification(dupe, liked_user) - end - - test "it doesn't create a notification for repeat-unrepeat-repeat chains" do - user = insert(:user) - retweeted_user = insert(:user) - - {:ok, status} = - TwitterAPI.create_status(retweeted_user, %{ - "status" => "Send dupe notifications to the shadow realm" - }) - - {:ok, retweeted_activity} = TwitterAPI.repeat(user, status.id) - Notification.create_notification(retweeted_activity, retweeted_user) - TwitterAPI.unrepeat(user, status.id) - {:ok, dupe} = TwitterAPI.repeat(user, status.id) - refute Notification.create_notification(dupe, retweeted_user) - end - test "it doesn't create duplicate notifications for follow+subscribed users" do user = insert(:user) subscriber = insert(:user) - {:ok, _, _, _} = TwitterAPI.follow(subscriber, %{"user_id" => user.id}) + {:ok, _, _, _} = CommonAPI.follow(subscriber, user) User.subscribe(subscriber, user) - {:ok, status} = TwitterAPI.create_status(user, %{"status" => "Akariiiin"}) + {:ok, status} = CommonAPI.post(user, %{"status" => "Akariiiin"}) {:ok, [_notif]} = Notification.create_notifications(status) end @@ -234,8 +206,7 @@ test "it doesn't create subscription notifications if the recipient cannot see t User.subscribe(subscriber, user) - {:ok, status} = - TwitterAPI.create_status(user, %{"status" => "inwisible", "visibility" => "direct"}) + {:ok, status} = CommonAPI.post(user, %{"status" => "inwisible", "visibility" => "direct"}) assert {:ok, []} == Notification.create_notifications(status) end @@ -246,8 +217,7 @@ test "it gets a notification that belongs to the user" do user = insert(:user) other_user = insert(:user) - {:ok, activity} = - TwitterAPI.create_status(user, %{"status" => "hey @#{other_user.nickname}"}) + {:ok, activity} = CommonAPI.post(user, %{"status" => "hey @#{other_user.nickname}"}) {:ok, [notification]} = Notification.create_notifications(activity) {:ok, notification} = Notification.get(other_user, notification.id) @@ -259,8 +229,7 @@ test "it returns error if the notification doesn't belong to the user" do user = insert(:user) other_user = insert(:user) - {:ok, activity} = - TwitterAPI.create_status(user, %{"status" => "hey @#{other_user.nickname}"}) + {:ok, activity} = CommonAPI.post(user, %{"status" => "hey @#{other_user.nickname}"}) {:ok, [notification]} = Notification.create_notifications(activity) {:error, _notification} = Notification.get(user, notification.id) @@ -272,8 +241,7 @@ test "it dismisses a notification that belongs to the user" do user = insert(:user) other_user = insert(:user) - {:ok, activity} = - TwitterAPI.create_status(user, %{"status" => "hey @#{other_user.nickname}"}) + {:ok, activity} = CommonAPI.post(user, %{"status" => "hey @#{other_user.nickname}"}) {:ok, [notification]} = Notification.create_notifications(activity) {:ok, notification} = Notification.dismiss(other_user, notification.id) @@ -285,8 +253,7 @@ test "it returns error if the notification doesn't belong to the user" do user = insert(:user) other_user = insert(:user) - {:ok, activity} = - TwitterAPI.create_status(user, %{"status" => "hey @#{other_user.nickname}"}) + {:ok, activity} = CommonAPI.post(user, %{"status" => "hey @#{other_user.nickname}"}) {:ok, [notification]} = Notification.create_notifications(activity) {:error, _notification} = Notification.dismiss(user, notification.id) @@ -300,14 +267,14 @@ test "it clears all notifications belonging to the user" do third_user = insert(:user) {:ok, activity} = - TwitterAPI.create_status(user, %{ + CommonAPI.post(user, %{ "status" => "hey @#{other_user.nickname} and @#{third_user.nickname} !" }) {:ok, _notifs} = Notification.create_notifications(activity) {:ok, activity} = - TwitterAPI.create_status(user, %{ + CommonAPI.post(user, %{ "status" => "hey again @#{other_user.nickname} and @#{third_user.nickname} !" }) @@ -325,12 +292,12 @@ test "it sets all notifications as read up to a specified notification ID" do other_user = insert(:user) {:ok, _activity} = - TwitterAPI.create_status(user, %{ + CommonAPI.post(user, %{ "status" => "hey @#{other_user.nickname}!" }) {:ok, _activity} = - TwitterAPI.create_status(user, %{ + CommonAPI.post(user, %{ "status" => "hey again @#{other_user.nickname}!" }) @@ -340,7 +307,7 @@ test "it sets all notifications as read up to a specified notification ID" do assert n2.id > n1.id {:ok, _activity} = - TwitterAPI.create_status(user, %{ + CommonAPI.post(user, %{ "status" => "hey yet again @#{other_user.nickname}!" }) @@ -677,7 +644,7 @@ test "it returns notifications for muted user without notifications" do muted = insert(:user) {:ok, user} = User.mute(user, muted, false) - {:ok, _activity} = TwitterAPI.create_status(muted, %{"status" => "hey @#{user.nickname}"}) + {:ok, _activity} = CommonAPI.post(muted, %{"status" => "hey @#{user.nickname}"}) assert length(Notification.for_user(user)) == 1 end @@ -687,7 +654,7 @@ test "it doesn't return notifications for muted user with notifications" do muted = insert(:user) {:ok, user} = User.mute(user, muted) - {:ok, _activity} = TwitterAPI.create_status(muted, %{"status" => "hey @#{user.nickname}"}) + {:ok, _activity} = CommonAPI.post(muted, %{"status" => "hey @#{user.nickname}"}) assert Notification.for_user(user) == [] end @@ -697,7 +664,7 @@ test "it doesn't return notifications for blocked user" do blocked = insert(:user) {:ok, user} = User.block(user, blocked) - {:ok, _activity} = TwitterAPI.create_status(blocked, %{"status" => "hey @#{user.nickname}"}) + {:ok, _activity} = CommonAPI.post(blocked, %{"status" => "hey @#{user.nickname}"}) assert Notification.for_user(user) == [] end @@ -707,7 +674,7 @@ test "it doesn't return notificatitons for blocked domain" do blocked = insert(:user, ap_id: "http://some-domain.com") {:ok, user} = User.block_domain(user, "some-domain.com") - {:ok, _activity} = TwitterAPI.create_status(blocked, %{"status" => "hey @#{user.nickname}"}) + {:ok, _activity} = CommonAPI.post(blocked, %{"status" => "hey @#{user.nickname}"}) assert Notification.for_user(user) == [] end @@ -716,8 +683,7 @@ test "it doesn't return notifications for muted thread" do user = insert(:user) another_user = insert(:user) - {:ok, activity} = - TwitterAPI.create_status(another_user, %{"status" => "hey @#{user.nickname}"}) + {:ok, activity} = CommonAPI.post(another_user, %{"status" => "hey @#{user.nickname}"}) {:ok, _} = Pleroma.ThreadMute.add_mute(user.id, activity.data["context"]) assert Notification.for_user(user) == [] @@ -728,7 +694,7 @@ test "it returns notifications for muted user with notifications and with_muted muted = insert(:user) {:ok, user} = User.mute(user, muted) - {:ok, _activity} = TwitterAPI.create_status(muted, %{"status" => "hey @#{user.nickname}"}) + {:ok, _activity} = CommonAPI.post(muted, %{"status" => "hey @#{user.nickname}"}) assert length(Notification.for_user(user, %{with_muted: true})) == 1 end @@ -738,7 +704,7 @@ test "it returns notifications for blocked user and with_muted parameter" do blocked = insert(:user) {:ok, user} = User.block(user, blocked) - {:ok, _activity} = TwitterAPI.create_status(blocked, %{"status" => "hey @#{user.nickname}"}) + {:ok, _activity} = CommonAPI.post(blocked, %{"status" => "hey @#{user.nickname}"}) assert length(Notification.for_user(user, %{with_muted: true})) == 1 end @@ -748,7 +714,7 @@ test "it returns notificatitons for blocked domain and with_muted parameter" do blocked = insert(:user, ap_id: "http://some-domain.com") {:ok, user} = User.block_domain(user, "some-domain.com") - {:ok, _activity} = TwitterAPI.create_status(blocked, %{"status" => "hey @#{user.nickname}"}) + {:ok, _activity} = CommonAPI.post(blocked, %{"status" => "hey @#{user.nickname}"}) assert length(Notification.for_user(user, %{with_muted: true})) == 1 end @@ -757,8 +723,7 @@ test "it returns notifications for muted thread with_muted parameter" do user = insert(:user) another_user = insert(:user) - {:ok, activity} = - TwitterAPI.create_status(another_user, %{"status" => "hey @#{user.nickname}"}) + {:ok, activity} = CommonAPI.post(another_user, %{"status" => "hey @#{user.nickname}"}) {:ok, _} = Pleroma.ThreadMute.add_mute(user.id, activity.data["context"]) assert length(Notification.for_user(user, %{with_muted: true})) == 1 diff --git a/test/user_test.exs b/test/user_test.exs index 2cbc1f525..a25b72f4e 100644 --- a/test/user_test.exs +++ b/test/user_test.exs @@ -69,8 +69,8 @@ test "returns all pending follow requests" do locked = insert(:user, %{info: %{locked: true}}) follower = insert(:user) - Pleroma.Web.TwitterAPI.TwitterAPI.follow(follower, %{"user_id" => unlocked.id}) - Pleroma.Web.TwitterAPI.TwitterAPI.follow(follower, %{"user_id" => locked.id}) + CommonAPI.follow(follower, unlocked) + CommonAPI.follow(follower, locked) assert {:ok, []} = User.get_follow_requests(unlocked) assert {:ok, [activity]} = User.get_follow_requests(locked) @@ -83,9 +83,9 @@ test "doesn't return already accepted or duplicate follow requests" do pending_follower = insert(:user) accepted_follower = insert(:user) - Pleroma.Web.TwitterAPI.TwitterAPI.follow(pending_follower, %{"user_id" => locked.id}) - Pleroma.Web.TwitterAPI.TwitterAPI.follow(pending_follower, %{"user_id" => locked.id}) - Pleroma.Web.TwitterAPI.TwitterAPI.follow(accepted_follower, %{"user_id" => locked.id}) + CommonAPI.follow(pending_follower, locked) + CommonAPI.follow(pending_follower, locked) + CommonAPI.follow(accepted_follower, locked) User.follow(accepted_follower, locked) assert {:ok, [activity]} = User.get_follow_requests(locked) @@ -1279,11 +1279,9 @@ test "follower count is updated when a follower is blocked" do {:ok, _follower2} = User.follow(follower2, user) {:ok, _follower3} = User.follow(follower3, user) - {:ok, _} = User.block(user, follower) + {:ok, user} = User.block(user, follower) - user_show = Pleroma.Web.TwitterAPI.UserView.render("show.json", %{user: user}) - - assert Map.get(user_show, "followers_count") == 2 + assert User.user_info(user).follower_count == 2 end describe "list_inactive_users_query/1" do @@ -1327,7 +1325,7 @@ test "Only includes users who has no recent activity" do to = Enum.random(users -- [user]) {:ok, _} = - Pleroma.Web.TwitterAPI.TwitterAPI.create_status(user, %{ + CommonAPI.post(user, %{ "status" => "hey @#{to.nickname}" }) end) @@ -1359,12 +1357,12 @@ test "Only includes users with no read notifications" do Enum.each(recipients, fn to -> {:ok, _} = - Pleroma.Web.TwitterAPI.TwitterAPI.create_status(sender, %{ + CommonAPI.post(sender, %{ "status" => "hey @#{to.nickname}" }) {:ok, _} = - Pleroma.Web.TwitterAPI.TwitterAPI.create_status(sender, %{ + CommonAPI.post(sender, %{ "status" => "hey again @#{to.nickname}" }) end) diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 6fcdc19aa..66588c891 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -21,7 +21,6 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do alias Pleroma.Web.OAuth.Token alias Pleroma.Web.OStatus alias Pleroma.Web.Push - alias Pleroma.Web.TwitterAPI.TwitterAPI import Pleroma.Factory import ExUnit.CaptureLog import Tesla.Mock @@ -1583,12 +1582,9 @@ test "gets an users media", %{conn: conn} do filename: "an_image.jpg" } - media = - TwitterAPI.upload(file, user, "json") - |> Jason.decode!() + {:ok, %{id: media_id}} = ActivityPub.upload(file, actor: user.ap_id) - {:ok, image_post} = - CommonAPI.post(user, %{"status" => "cofe", "media_ids" => [media["media_id"]]}) + {:ok, image_post} = CommonAPI.post(user, %{"status" => "cofe", "media_ids" => [media_id]}) conn = conn diff --git a/test/web/mastodon_api/mastodon_api_test.exs b/test/web/mastodon_api/mastodon_api_test.exs index b4c0427c9..7fcb2bd55 100644 --- a/test/web/mastodon_api/mastodon_api_test.exs +++ b/test/web/mastodon_api/mastodon_api_test.exs @@ -8,8 +8,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPITest do alias Pleroma.Notification alias Pleroma.ScheduledActivity alias Pleroma.User + alias Pleroma.Web.CommonAPI alias Pleroma.Web.MastodonAPI.MastodonAPI - alias Pleroma.Web.TwitterAPI.TwitterAPI import Pleroma.Factory @@ -75,8 +75,9 @@ test "returns notifications for user" do User.subscribe(subscriber, user) - {:ok, status} = TwitterAPI.create_status(user, %{"status" => "Akariiiin"}) - {:ok, status1} = TwitterAPI.create_status(user, %{"status" => "Magi"}) + {:ok, status} = CommonAPI.post(user, %{"status" => "Akariiiin"}) + + {:ok, status1} = CommonAPI.post(user, %{"status" => "Magi"}) {:ok, [notification]} = Notification.create_notifications(status) {:ok, [notification1]} = Notification.create_notifications(status1) res = MastodonAPI.get_notifications(subscriber) diff --git a/test/web/twitter_api/twitter_api_test.exs b/test/web/twitter_api/twitter_api_test.exs index cbe83852e..ac9c0c27e 100644 --- a/test/web/twitter_api/twitter_api_test.exs +++ b/test/web/twitter_api/twitter_api_test.exs @@ -4,12 +4,9 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do use Pleroma.DataCase - alias Pleroma.Activity - alias Pleroma.Object alias Pleroma.Repo alias Pleroma.User alias Pleroma.UserInviteToken - alias Pleroma.Web.ActivityPub.ActivityPub alias Pleroma.Web.TwitterAPI.ActivityView alias Pleroma.Web.TwitterAPI.TwitterAPI alias Pleroma.Web.TwitterAPI.UserView @@ -21,253 +18,6 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do :ok end - test "create a status" do - user = insert(:user) - mentioned_user = insert(:user, %{nickname: "shp", ap_id: "shp"}) - - object_data = %{ - "type" => "Image", - "url" => [ - %{ - "type" => "Link", - "mediaType" => "image/jpg", - "href" => "http://example.org/image.jpg" - } - ], - "uuid" => 1 - } - - object = Repo.insert!(%Object{data: object_data}) - - input = %{ - "status" => - "Hello again, @shp.\nThis is on another :firefox: line. #2hu #epic #phantasmagoric", - "media_ids" => [object.id] - } - - {:ok, activity = %Activity{}} = TwitterAPI.create_status(user, input) - object = Object.normalize(activity) - - expected_text = - "Hello again, @shp.<script></script>
This is on another :firefox: line.
image.jpg" - - assert get_in(object.data, ["content"]) == expected_text - assert get_in(object.data, ["type"]) == "Note" - assert get_in(object.data, ["actor"]) == user.ap_id - assert get_in(activity.data, ["actor"]) == user.ap_id - assert Enum.member?(get_in(activity.data, ["cc"]), User.ap_followers(user)) - - assert Enum.member?( - get_in(activity.data, ["to"]), - "https://www.w3.org/ns/activitystreams#Public" - ) - - assert Enum.member?(get_in(activity.data, ["to"]), "shp") - assert activity.local == true - - assert %{"firefox" => "http://localhost:4001/emoji/Firefox.gif"} = object.data["emoji"] - - # hashtags - assert object.data["tag"] == ["2hu", "epic", "phantasmagoric"] - - # Add a context - assert is_binary(get_in(activity.data, ["context"])) - assert is_binary(get_in(object.data, ["context"])) - - assert is_list(object.data["attachment"]) - - assert activity.data["object"] == object.data["id"] - - user = User.get_cached_by_ap_id(user.ap_id) - - assert user.info.note_count == 1 - end - - test "create a status that is a reply" do - user = insert(:user) - - input = %{ - "status" => "Hello again." - } - - {:ok, activity = %Activity{}} = TwitterAPI.create_status(user, input) - object = Object.normalize(activity) - - input = %{ - "status" => "Here's your (you).", - "in_reply_to_status_id" => activity.id - } - - {:ok, reply = %Activity{}} = TwitterAPI.create_status(user, input) - reply_object = Object.normalize(reply) - - assert get_in(reply.data, ["context"]) == get_in(activity.data, ["context"]) - - assert get_in(reply_object.data, ["context"]) == get_in(object.data, ["context"]) - - assert get_in(reply_object.data, ["inReplyTo"]) == get_in(activity.data, ["object"]) - assert Activity.get_in_reply_to_activity(reply).id == activity.id - end - - test "Follow another user using user_id" do - user = insert(:user) - followed = insert(:user) - - {:ok, user, followed, _activity} = TwitterAPI.follow(user, %{"user_id" => followed.id}) - assert User.ap_followers(followed) in user.following - - {:ok, _, _, _} = TwitterAPI.follow(user, %{"user_id" => followed.id}) - end - - test "Follow another user using screen_name" do - user = insert(:user) - followed = insert(:user) - - {:ok, user, followed, _activity} = - TwitterAPI.follow(user, %{"screen_name" => followed.nickname}) - - assert User.ap_followers(followed) in user.following - - followed = User.get_cached_by_ap_id(followed.ap_id) - assert followed.info.follower_count == 1 - - {:ok, _, _, _} = TwitterAPI.follow(user, %{"screen_name" => followed.nickname}) - end - - test "Unfollow another user using user_id" do - unfollowed = insert(:user) - user = insert(:user, %{following: [User.ap_followers(unfollowed)]}) - ActivityPub.follow(user, unfollowed) - - {:ok, user, unfollowed} = TwitterAPI.unfollow(user, %{"user_id" => unfollowed.id}) - assert user.following == [] - - {:error, msg} = TwitterAPI.unfollow(user, %{"user_id" => unfollowed.id}) - assert msg == "Not subscribed!" - end - - test "Unfollow another user using screen_name" do - unfollowed = insert(:user) - user = insert(:user, %{following: [User.ap_followers(unfollowed)]}) - - ActivityPub.follow(user, unfollowed) - - {:ok, user, unfollowed} = TwitterAPI.unfollow(user, %{"screen_name" => unfollowed.nickname}) - assert user.following == [] - - {:error, msg} = TwitterAPI.unfollow(user, %{"screen_name" => unfollowed.nickname}) - assert msg == "Not subscribed!" - end - - test "Block another user using user_id" do - user = insert(:user) - blocked = insert(:user) - - {:ok, user, blocked} = TwitterAPI.block(user, %{"user_id" => blocked.id}) - assert User.blocks?(user, blocked) - end - - test "Block another user using screen_name" do - user = insert(:user) - blocked = insert(:user) - - {:ok, user, blocked} = TwitterAPI.block(user, %{"screen_name" => blocked.nickname}) - assert User.blocks?(user, blocked) - end - - test "Unblock another user using user_id" do - unblocked = insert(:user) - user = insert(:user) - {:ok, user, _unblocked} = TwitterAPI.block(user, %{"user_id" => unblocked.id}) - - {:ok, user, _unblocked} = TwitterAPI.unblock(user, %{"user_id" => unblocked.id}) - assert user.info.blocks == [] - end - - test "Unblock another user using screen_name" do - unblocked = insert(:user) - user = insert(:user) - {:ok, user, _unblocked} = TwitterAPI.block(user, %{"screen_name" => unblocked.nickname}) - - {:ok, user, _unblocked} = TwitterAPI.unblock(user, %{"screen_name" => unblocked.nickname}) - assert user.info.blocks == [] - end - - test "upload a file" do - user = insert(:user) - - file = %Plug.Upload{ - content_type: "image/jpg", - path: Path.absname("test/fixtures/image.jpg"), - filename: "an_image.jpg" - } - - response = TwitterAPI.upload(file, user) - - assert is_binary(response) - end - - test "it favorites a status, returns the updated activity" do - user = insert(:user) - other_user = insert(:user) - note_activity = insert(:note_activity) - - {:ok, status} = TwitterAPI.fav(user, note_activity.id) - updated_activity = Activity.get_by_ap_id(note_activity.data["id"]) - assert ActivityView.render("activity.json", %{activity: updated_activity})["fave_num"] == 1 - - object = Object.normalize(note_activity) - - assert object.data["like_count"] == 1 - - assert status == updated_activity - - {:ok, _status} = TwitterAPI.fav(other_user, note_activity.id) - - object = Object.normalize(note_activity) - - assert object.data["like_count"] == 2 - - updated_activity = Activity.get_by_ap_id(note_activity.data["id"]) - assert ActivityView.render("activity.json", %{activity: updated_activity})["fave_num"] == 2 - end - - test "it unfavorites a status, returns the updated activity" do - user = insert(:user) - note_activity = insert(:note_activity) - object = Object.normalize(note_activity) - - {:ok, _like_activity, _object} = ActivityPub.like(user, object) - updated_activity = Activity.get_by_ap_id(note_activity.data["id"]) - - assert ActivityView.render("activity.json", activity: updated_activity)["fave_num"] == 1 - - {:ok, activity} = TwitterAPI.unfav(user, note_activity.id) - - assert ActivityView.render("activity.json", activity: activity)["fave_num"] == 0 - end - - test "it retweets a status and returns the retweet" do - user = insert(:user) - note_activity = insert(:note_activity) - - {:ok, status} = TwitterAPI.repeat(user, note_activity.id) - updated_activity = Activity.get_by_ap_id(note_activity.data["id"]) - - assert status == updated_activity - end - - test "it unretweets an already retweeted status" do - user = insert(:user) - note_activity = insert(:note_activity) - - {:ok, _status} = TwitterAPI.repeat(user, note_activity.id) - {:ok, status} = TwitterAPI.unrepeat(user, note_activity.id) - updated_activity = Activity.get_by_ap_id(note_activity.data["id"]) - - assert status == updated_activity - end - test "it registers a new user and returns the user." do data = %{ "nickname" => "lain", @@ -701,19 +451,4 @@ test "it assigns an integer conversation_id" do Supervisor.restart_child(Pleroma.Supervisor, Cachex) :ok end - - describe "fetching a user by uri" do - test "fetches a user by uri" do - id = "https://mastodon.social/users/lambadalambda" - user = insert(:user) - {:ok, represented} = TwitterAPI.get_external_profile(user, id) - remote = User.get_cached_by_ap_id(id) - - assert represented["id"] == UserView.render("show.json", %{user: remote, for: user})["id"] - - # Also fetches the feed. - # assert Activity.get_create_by_object_ap_id("tag:mastodon.social,2017-04-05:objectId=1641750:objectType=Status") - # credo:disable-for-previous-line Credo.Check.Readability.MaxLineLength - end - end end diff --git a/test/web/twitter_api/views/activity_view_test.exs b/test/web/twitter_api/views/activity_view_test.exs deleted file mode 100644 index 56d861efb..000000000 --- a/test/web/twitter_api/views/activity_view_test.exs +++ /dev/null @@ -1,384 +0,0 @@ -# Pleroma: A lightweight social networking server -# Copyright © 2017-2019 Pleroma Authors -# SPDX-License-Identifier: AGPL-3.0-only - -defmodule Pleroma.Web.TwitterAPI.ActivityViewTest do - use Pleroma.DataCase - - alias Pleroma.Activity - alias Pleroma.Object - alias Pleroma.Repo - alias Pleroma.User - alias Pleroma.Web.ActivityPub.ActivityPub - alias Pleroma.Web.CommonAPI - alias Pleroma.Web.CommonAPI.Utils - alias Pleroma.Web.TwitterAPI.ActivityView - alias Pleroma.Web.TwitterAPI.UserView - - import Pleroma.Factory - import Tesla.Mock - - setup do - mock(fn env -> apply(HttpRequestMock, :request, [env]) end) - :ok - end - - import Mock - - test "returns a temporary ap_id based user for activities missing db users" do - user = insert(:user) - - {:ok, activity} = CommonAPI.post(user, %{"status" => "Hey @shp!", "visibility" => "direct"}) - - Repo.delete(user) - Cachex.clear(:user_cache) - - %{"user" => tw_user} = ActivityView.render("activity.json", activity: activity) - - assert tw_user["screen_name"] == "erroruser@example.com" - assert tw_user["name"] == user.ap_id - assert tw_user["statusnet_profile_url"] == user.ap_id - end - - test "tries to get a user by nickname if fetching by ap_id doesn't work" do - user = insert(:user) - - {:ok, activity} = CommonAPI.post(user, %{"status" => "Hey @shp!", "visibility" => "direct"}) - - {:ok, user} = - user - |> Ecto.Changeset.change(%{ap_id: "#{user.ap_id}/extension/#{user.nickname}"}) - |> Repo.update() - - Cachex.clear(:user_cache) - - result = ActivityView.render("activity.json", activity: activity) - assert result["user"]["id"] == user.id - end - - test "tells if the message is muted for some reason" do - user = insert(:user) - other_user = insert(:user) - - {:ok, user} = User.mute(user, other_user) - - {:ok, activity} = CommonAPI.post(other_user, %{"status" => "test"}) - status = ActivityView.render("activity.json", %{activity: activity}) - - assert status["muted"] == false - - status = ActivityView.render("activity.json", %{activity: activity, for: user}) - - assert status["muted"] == true - end - - test "a create activity with a html status" do - text = """ - #Bike log - Commute Tuesday\nhttps://pla.bike/posts/20181211/\n#cycling #CHScycling #commute\nMVIMG_20181211_054020.jpg - """ - - {:ok, activity} = CommonAPI.post(insert(:user), %{"status" => text}) - - result = ActivityView.render("activity.json", activity: activity) - - assert result["statusnet_html"] == - "#Bike log - Commute Tuesday
https://pla.bike/posts/20181211/
#cycling #CHScycling #commute
MVIMG_20181211_054020.jpg" - - assert result["text"] == - "#Bike log - Commute Tuesday\nhttps://pla.bike/posts/20181211/\n#cycling #CHScycling #commute\nMVIMG_20181211_054020.jpg" - end - - test "a create activity with a summary containing emoji" do - {:ok, activity} = - CommonAPI.post(insert(:user), %{ - "spoiler_text" => ":firefox: meow", - "status" => "." - }) - - result = ActivityView.render("activity.json", activity: activity) - - expected = ":firefox: meow" - - expected_html = - "\"firefox\" meow" - - assert result["summary"] == expected - assert result["summary_html"] == expected_html - end - - test "a create activity with a summary containing invalid HTML" do - {:ok, activity} = - CommonAPI.post(insert(:user), %{ - "spoiler_text" => "meow", - "status" => "." - }) - - result = ActivityView.render("activity.json", activity: activity) - - expected = "meow" - - assert result["summary"] == expected - assert result["summary_html"] == expected - end - - test "a create activity with a note" do - user = insert(:user) - other_user = insert(:user, %{nickname: "shp"}) - - {:ok, activity} = CommonAPI.post(user, %{"status" => "Hey @shp!", "visibility" => "direct"}) - object = Object.normalize(activity) - - result = ActivityView.render("activity.json", activity: activity) - - convo_id = Utils.context_to_conversation_id(object.data["context"]) - - expected = %{ - "activity_type" => "post", - "attachments" => [], - "attentions" => [ - UserView.render("show.json", %{user: other_user}) - ], - "created_at" => object.data["published"] |> Utils.date_to_asctime(), - "external_url" => object.data["id"], - "fave_num" => 0, - "favorited" => false, - "id" => activity.id, - "in_reply_to_status_id" => nil, - "in_reply_to_screen_name" => nil, - "in_reply_to_user_id" => nil, - "in_reply_to_profileurl" => nil, - "in_reply_to_ostatus_uri" => nil, - "is_local" => true, - "is_post_verb" => true, - "possibly_sensitive" => false, - "repeat_num" => 0, - "repeated" => false, - "pinned" => false, - "statusnet_conversation_id" => convo_id, - "summary" => "", - "summary_html" => "", - "statusnet_html" => - "Hey @shp!", - "tags" => [], - "text" => "Hey @shp!", - "uri" => object.data["id"], - "user" => UserView.render("show.json", %{user: user}), - "visibility" => "direct", - "card" => nil, - "muted" => false - } - - assert result == expected - end - - test "a list of activities" do - user = insert(:user) - other_user = insert(:user, %{nickname: "shp"}) - {:ok, activity} = CommonAPI.post(user, %{"status" => "Hey @shp!"}) - object = Object.normalize(activity) - - convo_id = Utils.context_to_conversation_id(object.data["context"]) - - mocks = [ - { - Utils, - [:passthrough], - [context_to_conversation_id: fn _ -> false end] - }, - { - User, - [:passthrough], - [get_cached_by_ap_id: fn _ -> nil end] - } - ] - - with_mocks mocks do - [result] = ActivityView.render("index.json", activities: [activity]) - - assert result["statusnet_conversation_id"] == convo_id - assert result["user"] - refute called(Utils.context_to_conversation_id(:_)) - refute called(User.get_cached_by_ap_id(user.ap_id)) - refute called(User.get_cached_by_ap_id(other_user.ap_id)) - end - end - - test "an activity that is a reply" do - user = insert(:user) - other_user = insert(:user, %{nickname: "shp"}) - - {:ok, activity} = CommonAPI.post(user, %{"status" => "Hey @shp!"}) - - {:ok, answer} = - CommonAPI.post(other_user, %{"status" => "Hi!", "in_reply_to_status_id" => activity.id}) - - result = ActivityView.render("activity.json", %{activity: answer}) - - assert result["in_reply_to_status_id"] == activity.id - end - - test "a like activity" do - user = insert(:user) - other_user = insert(:user, %{nickname: "shp"}) - - {:ok, activity} = CommonAPI.post(user, %{"status" => "Hey @shp!"}) - {:ok, like, _object} = CommonAPI.favorite(activity.id, other_user) - - result = ActivityView.render("activity.json", activity: like) - activity = Pleroma.Activity.get_by_ap_id(activity.data["id"]) - - expected = %{ - "activity_type" => "like", - "created_at" => like.data["published"] |> Utils.date_to_asctime(), - "external_url" => like.data["id"], - "id" => like.id, - "in_reply_to_status_id" => activity.id, - "is_local" => true, - "is_post_verb" => false, - "favorited_status" => ActivityView.render("activity.json", activity: activity), - "statusnet_html" => "shp favorited a status.", - "text" => "shp favorited a status.", - "uri" => "tag:#{like.data["id"]}:objectType=Favourite", - "user" => UserView.render("show.json", user: other_user) - } - - assert result == expected - end - - test "a like activity for deleted post" do - user = insert(:user) - other_user = insert(:user, %{nickname: "shp"}) - - {:ok, activity} = CommonAPI.post(user, %{"status" => "Hey @shp!"}) - {:ok, like, _object} = CommonAPI.favorite(activity.id, other_user) - CommonAPI.delete(activity.id, user) - - result = ActivityView.render("activity.json", activity: like) - - expected = %{ - "activity_type" => "like", - "created_at" => like.data["published"] |> Utils.date_to_asctime(), - "external_url" => like.data["id"], - "id" => like.id, - "in_reply_to_status_id" => nil, - "is_local" => true, - "is_post_verb" => false, - "favorited_status" => nil, - "statusnet_html" => "shp favorited a status.", - "text" => "shp favorited a status.", - "uri" => "tag:#{like.data["id"]}:objectType=Favourite", - "user" => UserView.render("show.json", user: other_user) - } - - assert result == expected - end - - test "an announce activity" do - user = insert(:user) - other_user = insert(:user, %{nickname: "shp"}) - - {:ok, activity} = CommonAPI.post(user, %{"status" => "Hey @shp!"}) - {:ok, announce, object} = CommonAPI.repeat(activity.id, other_user) - - convo_id = Utils.context_to_conversation_id(object.data["context"]) - - activity = Activity.get_by_id(activity.id) - - result = ActivityView.render("activity.json", activity: announce) - - expected = %{ - "activity_type" => "repeat", - "created_at" => announce.data["published"] |> Utils.date_to_asctime(), - "external_url" => announce.data["id"], - "id" => announce.id, - "is_local" => true, - "is_post_verb" => false, - "statusnet_html" => "shp repeated a status.", - "text" => "shp repeated a status.", - "uri" => "tag:#{announce.data["id"]}:objectType=note", - "user" => UserView.render("show.json", user: other_user), - "retweeted_status" => ActivityView.render("activity.json", activity: activity), - "statusnet_conversation_id" => convo_id - } - - assert result == expected - end - - test "A follow activity" do - user = insert(:user) - other_user = insert(:user, %{nickname: "shp"}) - - {:ok, follower} = User.follow(user, other_user) - {:ok, follow} = ActivityPub.follow(follower, other_user) - - result = ActivityView.render("activity.json", activity: follow) - - expected = %{ - "activity_type" => "follow", - "attentions" => [], - "created_at" => follow.data["published"] |> Utils.date_to_asctime(), - "external_url" => follow.data["id"], - "id" => follow.id, - "in_reply_to_status_id" => nil, - "is_local" => true, - "is_post_verb" => false, - "statusnet_html" => "#{user.nickname} started following shp", - "text" => "#{user.nickname} started following shp", - "user" => UserView.render("show.json", user: user) - } - - assert result == expected - end - - test "a delete activity" do - user = insert(:user) - - {:ok, activity} = CommonAPI.post(user, %{"status" => "Hey @shp!"}) - {:ok, delete} = CommonAPI.delete(activity.id, user) - - result = ActivityView.render("activity.json", activity: delete) - - expected = %{ - "activity_type" => "delete", - "attentions" => [], - "created_at" => delete.data["published"] |> Utils.date_to_asctime(), - "external_url" => delete.data["id"], - "id" => delete.id, - "in_reply_to_status_id" => nil, - "is_local" => true, - "is_post_verb" => false, - "statusnet_html" => "deleted notice {{tag", - "text" => "deleted notice {{tag", - "uri" => Object.normalize(delete).data["id"], - "user" => UserView.render("show.json", user: user) - } - - assert result == expected - end - - test "a peertube video" do - {:ok, object} = - Pleroma.Object.Fetcher.fetch_object_from_id( - "https://peertube.moe/videos/watch/df5f464b-be8d-46fb-ad81-2d4c2d1630e3" - ) - - %Activity{} = activity = Activity.get_create_by_object_ap_id(object.data["id"]) - - result = ActivityView.render("activity.json", activity: activity) - - assert length(result["attachments"]) == 1 - assert result["summary"] == "Friday Night" - end - - test "special characters are not escaped in text field for status created" do - text = "<3 is on the way" - - {:ok, activity} = CommonAPI.post(insert(:user), %{"status" => text}) - - result = ActivityView.render("activity.json", activity: activity) - - assert result["text"] == text - end -end diff --git a/test/web/twitter_api/views/notification_view_test.exs b/test/web/twitter_api/views/notification_view_test.exs deleted file mode 100644 index 6baeeaf63..000000000 --- a/test/web/twitter_api/views/notification_view_test.exs +++ /dev/null @@ -1,112 +0,0 @@ -# Pleroma: A lightweight social networking server -# Copyright © 2017-2018 Pleroma Authors -# SPDX-License-Identifier: AGPL-3.0-only - -defmodule Pleroma.Web.TwitterAPI.NotificationViewTest do - use Pleroma.DataCase - - alias Pleroma.Notification - alias Pleroma.User - alias Pleroma.Web.ActivityPub.ActivityPub - alias Pleroma.Web.CommonAPI.Utils - alias Pleroma.Web.TwitterAPI.ActivityView - alias Pleroma.Web.TwitterAPI.NotificationView - alias Pleroma.Web.TwitterAPI.TwitterAPI - alias Pleroma.Web.TwitterAPI.UserView - - import Pleroma.Factory - - setup do - user = insert(:user, bio: "Here's some html") - [user: user] - end - - test "A follow notification" do - note_activity = insert(:note_activity) - user = User.get_cached_by_ap_id(note_activity.data["actor"]) - follower = insert(:user) - - {:ok, follower} = User.follow(follower, user) - {:ok, activity} = ActivityPub.follow(follower, user) - Cachex.put(:user_cache, "user_info:#{user.id}", User.user_info(Repo.get!(User, user.id))) - [follow_notif] = Notification.for_user(user) - - represented = %{ - "created_at" => follow_notif.inserted_at |> Utils.format_naive_asctime(), - "from_profile" => UserView.render("show.json", %{user: follower, for: user}), - "id" => follow_notif.id, - "is_seen" => 0, - "notice" => ActivityView.render("activity.json", %{activity: activity, for: user}), - "ntype" => "follow" - } - - assert represented == - NotificationView.render("notification.json", %{notification: follow_notif, for: user}) - end - - test "A mention notification" do - user = insert(:user) - other_user = insert(:user) - - {:ok, activity} = - TwitterAPI.create_status(other_user, %{"status" => "Päivää, @#{user.nickname}"}) - - [notification] = Notification.for_user(user) - - represented = %{ - "created_at" => notification.inserted_at |> Utils.format_naive_asctime(), - "from_profile" => UserView.render("show.json", %{user: other_user, for: user}), - "id" => notification.id, - "is_seen" => 0, - "notice" => ActivityView.render("activity.json", %{activity: activity, for: user}), - "ntype" => "mention" - } - - assert represented == - NotificationView.render("notification.json", %{notification: notification, for: user}) - end - - test "A retweet notification" do - note_activity = insert(:note_activity) - user = User.get_cached_by_ap_id(note_activity.data["actor"]) - repeater = insert(:user) - - {:ok, _activity} = TwitterAPI.repeat(repeater, note_activity.id) - [notification] = Notification.for_user(user) - - represented = %{ - "created_at" => notification.inserted_at |> Utils.format_naive_asctime(), - "from_profile" => UserView.render("show.json", %{user: repeater, for: user}), - "id" => notification.id, - "is_seen" => 0, - "notice" => - ActivityView.render("activity.json", %{activity: notification.activity, for: user}), - "ntype" => "repeat" - } - - assert represented == - NotificationView.render("notification.json", %{notification: notification, for: user}) - end - - test "A like notification" do - note_activity = insert(:note_activity) - user = User.get_cached_by_ap_id(note_activity.data["actor"]) - liker = insert(:user) - - {:ok, _activity} = TwitterAPI.fav(liker, note_activity.id) - [notification] = Notification.for_user(user) - - represented = %{ - "created_at" => notification.inserted_at |> Utils.format_naive_asctime(), - "from_profile" => UserView.render("show.json", %{user: liker, for: user}), - "id" => notification.id, - "is_seen" => 0, - "notice" => - ActivityView.render("activity.json", %{activity: notification.activity, for: user}), - "ntype" => "like" - } - - assert represented == - NotificationView.render("notification.json", %{notification: notification, for: user}) - end -end diff --git a/test/web/twitter_api/views/user_view_test.exs b/test/web/twitter_api/views/user_view_test.exs deleted file mode 100644 index 70c5a0b7f..000000000 --- a/test/web/twitter_api/views/user_view_test.exs +++ /dev/null @@ -1,323 +0,0 @@ -# Pleroma: A lightweight social networking server -# Copyright © 2017-2018 Pleroma Authors -# SPDX-License-Identifier: AGPL-3.0-only - -defmodule Pleroma.Web.TwitterAPI.UserViewTest do - use Pleroma.DataCase - - alias Pleroma.User - alias Pleroma.Web.CommonAPI.Utils - alias Pleroma.Web.TwitterAPI.UserView - - import Pleroma.Factory - - setup do - user = insert(:user, bio: "Here's some html") - [user: user] - end - - test "A user with only a nickname", %{user: user} do - user = %{user | name: nil, nickname: "scarlett@catgirl.science"} - represented = UserView.render("show.json", %{user: user}) - assert represented["name"] == user.nickname - assert represented["name_html"] == user.nickname - end - - test "A user with an avatar object", %{user: user} do - image = "image" - user = %{user | avatar: %{"url" => [%{"href" => image}]}} - represented = UserView.render("show.json", %{user: user}) - assert represented["profile_image_url"] == image - end - - test "A user with emoji in username" do - expected = - "\"karjalanpiirakka\" man" - - user = - insert(:user, %{ - info: %{ - source_data: %{ - "tag" => [ - %{ - "type" => "Emoji", - "icon" => %{"url" => "/file.png"}, - "name" => ":karjalanpiirakka:" - } - ] - } - }, - name: ":karjalanpiirakka: man" - }) - - represented = UserView.render("show.json", %{user: user}) - assert represented["name_html"] == expected - end - - test "A user" do - note_activity = insert(:note_activity) - user = User.get_cached_by_ap_id(note_activity.data["actor"]) - {:ok, user} = User.update_note_count(user) - follower = insert(:user) - second_follower = insert(:user) - - User.follow(follower, user) - User.follow(second_follower, user) - User.follow(user, follower) - {:ok, user} = User.update_follower_count(user) - Cachex.put(:user_cache, "user_info:#{user.id}", User.user_info(Repo.get!(User, user.id))) - - image = "http://localhost:4001/images/avi.png" - banner = "http://localhost:4001/images/banner.png" - - represented = %{ - "id" => user.id, - "name" => user.name, - "screen_name" => user.nickname, - "name_html" => user.name, - "description" => HtmlSanitizeEx.strip_tags(user.bio |> String.replace("
", "\n")), - "description_html" => HtmlSanitizeEx.basic_html(user.bio), - "created_at" => user.inserted_at |> Utils.format_naive_asctime(), - "favourites_count" => 0, - "statuses_count" => 1, - "friends_count" => 1, - "followers_count" => 2, - "profile_image_url" => image, - "profile_image_url_https" => image, - "profile_image_url_profile_size" => image, - "profile_image_url_original" => image, - "following" => false, - "follows_you" => false, - "statusnet_blocking" => false, - "statusnet_profile_url" => user.ap_id, - "cover_photo" => banner, - "background_image" => nil, - "is_local" => true, - "locked" => false, - "hide_follows" => false, - "hide_followers" => false, - "fields" => [], - "pleroma" => %{ - "confirmation_pending" => false, - "tags" => [], - "skip_thread_containment" => false - }, - "rights" => %{"admin" => false, "delete_others_notice" => false}, - "role" => "member" - } - - assert represented == UserView.render("show.json", %{user: user}) - end - - test "User exposes settings for themselves and only for themselves", %{user: user} do - as_user = UserView.render("show.json", %{user: user, for: user}) - assert as_user["default_scope"] == user.info.default_scope - assert as_user["no_rich_text"] == user.info.no_rich_text - assert as_user["pleroma"]["notification_settings"] == user.info.notification_settings - as_stranger = UserView.render("show.json", %{user: user}) - refute as_stranger["default_scope"] - refute as_stranger["no_rich_text"] - refute as_stranger["pleroma"]["notification_settings"] - end - - test "A user for a given other follower", %{user: user} do - follower = insert(:user, %{following: [User.ap_followers(user)]}) - {:ok, user} = User.update_follower_count(user) - image = "http://localhost:4001/images/avi.png" - banner = "http://localhost:4001/images/banner.png" - - represented = %{ - "id" => user.id, - "name" => user.name, - "screen_name" => user.nickname, - "name_html" => user.name, - "description" => HtmlSanitizeEx.strip_tags(user.bio |> String.replace("
", "\n")), - "description_html" => HtmlSanitizeEx.basic_html(user.bio), - "created_at" => user.inserted_at |> Utils.format_naive_asctime(), - "favourites_count" => 0, - "statuses_count" => 0, - "friends_count" => 0, - "followers_count" => 1, - "profile_image_url" => image, - "profile_image_url_https" => image, - "profile_image_url_profile_size" => image, - "profile_image_url_original" => image, - "following" => true, - "follows_you" => false, - "statusnet_blocking" => false, - "statusnet_profile_url" => user.ap_id, - "cover_photo" => banner, - "background_image" => nil, - "is_local" => true, - "locked" => false, - "hide_follows" => false, - "hide_followers" => false, - "fields" => [], - "pleroma" => %{ - "confirmation_pending" => false, - "tags" => [], - "skip_thread_containment" => false - }, - "rights" => %{"admin" => false, "delete_others_notice" => false}, - "role" => "member" - } - - assert represented == UserView.render("show.json", %{user: user, for: follower}) - end - - test "A user that follows you", %{user: user} do - follower = insert(:user) - {:ok, follower} = User.follow(follower, user) - {:ok, user} = User.update_follower_count(user) - image = "http://localhost:4001/images/avi.png" - banner = "http://localhost:4001/images/banner.png" - - represented = %{ - "id" => follower.id, - "name" => follower.name, - "screen_name" => follower.nickname, - "name_html" => follower.name, - "description" => HtmlSanitizeEx.strip_tags(follower.bio |> String.replace("
", "\n")), - "description_html" => HtmlSanitizeEx.basic_html(follower.bio), - "created_at" => follower.inserted_at |> Utils.format_naive_asctime(), - "favourites_count" => 0, - "statuses_count" => 0, - "friends_count" => 1, - "followers_count" => 0, - "profile_image_url" => image, - "profile_image_url_https" => image, - "profile_image_url_profile_size" => image, - "profile_image_url_original" => image, - "following" => false, - "follows_you" => true, - "statusnet_blocking" => false, - "statusnet_profile_url" => follower.ap_id, - "cover_photo" => banner, - "background_image" => nil, - "is_local" => true, - "locked" => false, - "hide_follows" => false, - "hide_followers" => false, - "fields" => [], - "pleroma" => %{ - "confirmation_pending" => false, - "tags" => [], - "skip_thread_containment" => false - }, - "rights" => %{"admin" => false, "delete_others_notice" => false}, - "role" => "member" - } - - assert represented == UserView.render("show.json", %{user: follower, for: user}) - end - - test "a user that is a moderator" do - user = insert(:user, %{info: %{is_moderator: true}}) - represented = UserView.render("show.json", %{user: user, for: user}) - - assert represented["rights"]["delete_others_notice"] - assert represented["role"] == "moderator" - end - - test "a user that is a admin" do - user = insert(:user, %{info: %{is_admin: true}}) - represented = UserView.render("show.json", %{user: user, for: user}) - - assert represented["rights"]["admin"] - assert represented["role"] == "admin" - end - - test "A moderator with hidden role for another user", %{user: user} do - admin = insert(:user, %{info: %{is_moderator: true, show_role: false}}) - represented = UserView.render("show.json", %{user: admin, for: user}) - - assert represented["role"] == nil - end - - test "An admin with hidden role for another user", %{user: user} do - admin = insert(:user, %{info: %{is_admin: true, show_role: false}}) - represented = UserView.render("show.json", %{user: admin, for: user}) - - assert represented["role"] == nil - end - - test "A regular user for the admin", %{user: user} do - admin = insert(:user, %{info: %{is_admin: true}}) - represented = UserView.render("show.json", %{user: user, for: admin}) - - assert represented["pleroma"]["deactivated"] == false - end - - test "A blocked user for the blocker" do - user = insert(:user) - blocker = insert(:user) - User.block(blocker, user) - image = "http://localhost:4001/images/avi.png" - banner = "http://localhost:4001/images/banner.png" - - represented = %{ - "id" => user.id, - "name" => user.name, - "screen_name" => user.nickname, - "name_html" => user.name, - "description" => HtmlSanitizeEx.strip_tags(user.bio |> String.replace("
", "\n")), - "description_html" => HtmlSanitizeEx.basic_html(user.bio), - "created_at" => user.inserted_at |> Utils.format_naive_asctime(), - "favourites_count" => 0, - "statuses_count" => 0, - "friends_count" => 0, - "followers_count" => 0, - "profile_image_url" => image, - "profile_image_url_https" => image, - "profile_image_url_profile_size" => image, - "profile_image_url_original" => image, - "following" => false, - "follows_you" => false, - "statusnet_blocking" => true, - "statusnet_profile_url" => user.ap_id, - "cover_photo" => banner, - "background_image" => nil, - "is_local" => true, - "locked" => false, - "hide_follows" => false, - "hide_followers" => false, - "fields" => [], - "pleroma" => %{ - "confirmation_pending" => false, - "tags" => [], - "skip_thread_containment" => false - }, - "rights" => %{"admin" => false, "delete_others_notice" => false}, - "role" => "member" - } - - blocker = User.get_cached_by_id(blocker.id) - assert represented == UserView.render("show.json", %{user: user, for: blocker}) - end - - test "a user with mastodon fields" do - fields = [ - %{ - "name" => "Pronouns", - "value" => "she/her" - }, - %{ - "name" => "Website", - "value" => "https://example.org/" - } - ] - - user = - insert(:user, %{ - info: %{ - source_data: %{ - "attachment" => - Enum.map(fields, fn field -> Map.put(field, "type", "PropertyValue") end) - } - } - }) - - userview = UserView.render("show.json", %{user: user}) - assert userview["fields"] == fields - end -end From 7808eee9aa4a02c289173a45e0b02def3bf51773 Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Sat, 31 Aug 2019 16:23:15 +0900 Subject: [PATCH 071/400] Update Japanese document to follow English document --- docs/installation/debian_based_jp.md | 141 +++++++++++++-------------- 1 file changed, 70 insertions(+), 71 deletions(-) diff --git a/docs/installation/debian_based_jp.md b/docs/installation/debian_based_jp.md index caf72363b..5ca6b3634 100644 --- a/docs/installation/debian_based_jp.md +++ b/docs/installation/debian_based_jp.md @@ -5,180 +5,179 @@ ## インストール -このガイドはDebian Stretchを仮定しています。Ubuntu 16.04でも可能です。 +このガイドはDebian Stretchを利用することを想定しています。Ubuntu 16.04や18.04でもおそらく動作します。また、ユーザはrootもしくはsudoにより管理者権限を持っていることを前提とします。もし、以下の操作をrootユーザで行う場合は、 `sudo` を無視してください。ただし、`sudo -Hu pleroma` のようにユーザを指定している場合には `su -s $SHELL -c 'command'` を代わりに使ってください。 ### 必要なソフトウェア -- PostgreSQL 9.6+ (postgresql-contrib-9.6 または他のバージョンの PSQL をインストールしてください) -- Elixir 1.5 以上 ([Debianのリポジトリからインストールしないこと!!! ここからインストールすること!](https://elixir-lang.org/install.html#unix-and-unix-like))。または [asdf](https://github.com/asdf-vm/asdf) を pleroma ユーザーでインストール。 -- erlang-dev +- PostgreSQL 9.6以上 (Ubuntu16.04では9.5しか提供されていないので,[](https://www.postgresql.org/download/linux/ubuntu/)こちらから新しいバージョンを入手してください) +- postgresql-contrib 9.6以上 (同上) +- Elixir 1.5 以上 ([Debianのリポジトリからインストールしないこと!!! ここからインストールすること!](https://elixir-lang.org/install.html#unix-and-unix-like)。または [asdf](https://github.com/asdf-vm/asdf) をpleromaユーザーでインストールしてください) + - erlang-dev - erlang-tools - erlang-parsetools +- erlang-eldap (LDAP認証を有効化するときのみ必要) - erlang-ssh -- erlang-xmerl (Jessieではバックポートからインストールすること!) +- erlang-xmerl - git - build-essential -- openssh -- openssl -- nginx prefered (Apacheも動くかもしれませんが、誰もテストしていません!) -- certbot (または何らかのACME Let's encryptクライアント) + +#### このガイドで利用している追加パッケージ + +- nginx (おすすめです。他のリバースプロキシを使う場合は、参考となる設定をこのリポジトリから探してください) +- certbot (または何らかのLet's Encrypt向けACMEクライアント) ### システムを準備する * まずシステムをアップデートしてください。 ``` -apt update && apt dist-upgrade +sudo apt update +sudo apt full-upgrade ``` -* 複数のツールとpostgresqlをインストールします。あとで必要になるので。 +* 上記に挙げたパッケージをインストールしておきます。 ``` -apt install git build-essential openssl ssh sudo postgresql-9.6 postgresql-contrib-9.6 +sudo apt install git build-essential postgresql postgresql-contrib ``` -(postgresqlのバージョンは、あなたのディストロにあわせて変えてください。または、バージョン番号がいらないかもしれません。) + ### ElixirとErlangをインストールします * Erlangのリポジトリをダウンロードおよびインストールします。 ``` -wget -P /tmp/ https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i /tmp/erlang-solutions_1.0_all.deb +wget -P /tmp/ https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb +sudo dpkg -i /tmp/erlang-solutions_1.0_all.deb ``` * ElixirとErlangをインストールします、 ``` -apt update && apt install elixir erlang-dev erlang-parsetools erlang-xmerl erlang-tools erlang-ssh +sudo apt update +sudo apt install elixir erlang-dev erlang-parsetools erlang-xmerl erlang-tools erlang-ssh ``` ### Pleroma BE (バックエンド) をインストールします -* 新しいユーザーを作ります。 -``` -adduser pleroma -``` -(Give it any password you want, make it STRONG) +* Pleroma用に新しいユーザーを作ります。 -* 新しいユーザーをsudoグループに入れます。 ``` -usermod -aG sudo pleroma +sudo useradd -r -s /bin/false -m -d /var/lib/pleroma -U pleroma ``` -* 新しいユーザーに変身し、ホームディレクトリに移動します。 -``` -su pleroma -cd ~ -``` +**注意**: Pleromaユーザとして単発のコマンドを実行したい場合はは、`sudo -Hu pleroma command` を使ってください。シェルを使いたい場合は `sudo -Hu pleroma $SHELL`です。もし `sudo` を使わない場合は、rootユーザで `su -l pleroma -s $SHELL -c 'command'` とすることでコマンドを、`su -l pleroma -s $SHELL` とすることでシェルを開始できます。 * Gitリポジトリをクローンします。 ``` -git clone -b master https://git.pleroma.social/pleroma/pleroma +sudo mkdir -p /opt/pleroma +sudo chown -R pleroma:pleroma /opt/pleroma +sudo -Hu pleroma git clone -b master https://git.pleroma.social/pleroma/pleroma /opt/pleroma ``` * 新しいディレクトリに移動します。 ``` -cd pleroma/ +cd /opt/pleroma ``` * Pleromaが依存するパッケージをインストールします。Hexをインストールしてもよいか聞かれたら、yesを入力してください。 ``` -mix deps.get +sudo -Hu pleroma mix deps.get ``` * コンフィギュレーションを生成します。 ``` -mix pleroma.instance gen +sudo -Hu pleroma mix pleroma.instance gen ``` * rebar3をインストールしてもよいか聞かれたら、yesを入力してください。 - * この処理には時間がかかります。私もよく分かりませんが、何らかのコンパイルが行われているようです。 - * あなたのインスタンスについて、いくつかの質問があります。その回答は `config/generated_config.exs` というコンフィギュレーションファイルに保存されます。 + * このときにpleromaの一部がコンパイルされるため、この処理には時間がかかります。 + * あなたのインスタンスについて、いくつかの質問されます。この質問により `config/generated_config.exs` という設定ファイルが生成されます。 -**注意**: メディアプロクシを有効にすると回答して、なおかつ、キャッシュのURLは空欄のままにしている場合は、`generated_config.exs` を編集して、`base_url` で始まる行をコメントアウトまたは削除してください。そして、上にある行の `true` の後にあるコンマを消してください。 * コンフィギュレーションを確認して、もし問題なければ、ファイル名を変更してください。 ``` mv config/{generated_config.exs,prod.secret.exs} ``` -* これまでのコマンドで、すでに `config/setup_db.psql` というファイルが作られています。このファイルをもとに、データベースを作成します。 +* 先程のコマンドで、すでに `config/setup_db.psql` というファイルが作られています。このファイルをもとに、データベースを作成します。 ``` -sudo su postgres -c 'psql -f config/setup_db.psql' +sudo -Hu pleroma mix pleroma.instance gen ``` -* そして、データベースのミグレーションを実行します。 +* そして、データベースのマイグレーションを実行します。 ``` -MIX_ENV=prod mix ecto.migrate +sudo -Hu pleroma MIX_ENV=prod mix ecto.migrate ``` -* Pleromaを起動できるようになりました。 +* これでPleromaを起動できるようになりました。 ``` -MIX_ENV=prod mix phx.server +sudo -Hu pleroma MIX_ENV=prod mix phx.server ``` -### インストールを終わらせる +### インストールの最終段階 -あなたの新しいインスタンスを世界に向けて公開するには、nginxまたは何らかのウェブサーバー (プロクシ) を使用する必要があります。また、Pleroma のためにシステムサービスファイルを作成する必要があります。 +あなたの新しいインスタンスを世界に向けて公開するには、nginx等のWebサーバやプロキシサーバをPleromaの前段に使用する必要があります。また、Pleroma のためにシステムサービスファイルを作成する必要があります。 #### Nginx * まだインストールしていないなら、nginxをインストールします。 ``` -apt install nginx +sudo apt install nginx ``` * SSLをセットアップします。他の方法でもよいですが、ここではcertbotを説明します。 certbotを使うならば、まずそれをインストールします。 ``` -apt install certbot +sudo apt install certbot ``` そしてセットアップします。 ``` -mkdir -p /var/lib/letsencrypt/.well-known -% certbot certonly --email your@emailaddress --webroot -w /var/lib/letsencrypt/ -d yourdomain +sudo mkdir -p /var/lib/letsencrypt/ +sudo certbot certonly --email -d --standalone ``` -もしうまくいかないときは、先にnginxを設定してください。ssl "on" を "off" に変えてから再試行してください。 +もしうまくいかないときは、nginxが正しく動いていない可能性があります。先にnginxを設定してください。ssl "on" を "off" に変えてから再試行してください。 --- -* nginxコンフィギュレーションの例をnginxフォルダーにコピーします。 +* nginxの設定ファイルサンプルをnginxフォルダーにコピーします。 ``` -cp /home/pleroma/pleroma/installation/pleroma.nginx /etc/nginx/sites-enabled/pleroma.nginx +sudo cp /opt/pleroma/installation/pleroma.nginx /etc/nginx/sites-available/pleroma.nginx +sudo ln -s /etc/nginx/sites-available/pleroma.nginx /etc/nginx/sites-enabled/pleroma.nginx ``` -* nginxを起動する前に、コンフィギュレーションを編集してください。例えば、サーバー名、証明書のパスなどを変更する必要があります。 +* nginxを起動する前に、設定ファイルを編集してください。例えば、サーバー名、証明書のパスなどを変更する必要があります。 * nginxを再起動します。 ``` -systemctl reload nginx.service +sudo systemctl enable --now nginx.service ``` +もし証明書を更新する必要が出てきた場合には、nginxの関連するlocationブロックのコメントアウトを外し、以下のコマンドを動かします。 + +``` +sudo certbot certonly --email -d --webroot -w /var/lib/letsencrypt/ +``` + +#### 他のWebサーバやプロキシ +これに関してはサンプルが `/opt/pleroma/installation/` にあるので、探してみてください。 + #### Systemd サービス -* サービスファイルの例をコピーします。 +* サービスファイルのサンプルをコピーします。 ``` -cp /home/pleroma/pleroma/installation/pleroma.service /usr/lib/systemd/system/pleroma.service +sudo cp /opt/pleroma/installation/pleroma.service /etc/systemd/system/pleroma.service ``` -* サービスファイルを変更します。すべてのパスが正しいことを確認してください。また、`[Service]` セクションに以下の行があることを確認してください。 +* サービスファイルを変更します。すべてのパスが正しいことを確認してください +* サービスを有効化し `pleroma.service` を開始してください ``` -Environment="MIX_ENV=prod" +sudo systemctl enable --now pleroma.service ``` -* `pleroma.service` を enable および start してください。 +#### 初期ユーザの作成 + +新たにインスタンスを作成したら、以下のコマンドにより管理者権限を持った初期ユーザを作成できます。 + ``` -systemctl enable --now pleroma.service +sudo -Hu pleroma MIX_ENV=prod mix pleroma.user new --admin ``` -#### モデレーターを作る - -新たにユーザーを作ったら、モデレーター権限を与えたいかもしれません。以下のタスクで可能です。 -``` -mix set_moderator username [true|false] -``` - -モデレーターはすべてのポストを消すことができます。将来的には他のことも可能になるかもしれません。 - -#### メディアプロクシを有効にする - -`generate_config` でメディアプロクシを有効にしているなら、すでにメディアプロクシが動作しています。あとから設定を変更したいなら、[How to activate mediaproxy](How-to-activate-mediaproxy) を見てください。 - -#### コンフィギュレーションとカスタマイズ +#### その他の設定とカスタマイズ * [Backup your instance](backup.html) * [Configuration tips](general-tips-for-customizing-pleroma-fe.html) From 985122cc03380b8e3decd4ac7180ea5b0f7ab30d Mon Sep 17 00:00:00 2001 From: rinpatch Date: Sat, 31 Aug 2019 10:31:15 +0300 Subject: [PATCH 072/400] Remove Activity, User and Notification views from TwitterAPI --- .../web/twitter_api/views/activity_view.ex | 366 ------------------ .../twitter_api/views/notification_view.ex | 71 ---- .../web/twitter_api/views/user_view.ex | 191 --------- test/web/twitter_api/twitter_api_test.exs | 38 +- 4 files changed, 15 insertions(+), 651 deletions(-) delete mode 100644 lib/pleroma/web/twitter_api/views/activity_view.ex delete mode 100644 lib/pleroma/web/twitter_api/views/notification_view.ex delete mode 100644 lib/pleroma/web/twitter_api/views/user_view.ex diff --git a/lib/pleroma/web/twitter_api/views/activity_view.ex b/lib/pleroma/web/twitter_api/views/activity_view.ex deleted file mode 100644 index abae63877..000000000 --- a/lib/pleroma/web/twitter_api/views/activity_view.ex +++ /dev/null @@ -1,366 +0,0 @@ -# Pleroma: A lightweight social networking server -# Copyright © 2017-2019 Pleroma Authors -# SPDX-License-Identifier: AGPL-3.0-only - -defmodule Pleroma.Web.TwitterAPI.ActivityView do - use Pleroma.Web, :view - alias Pleroma.Activity - alias Pleroma.Formatter - alias Pleroma.HTML - alias Pleroma.Object - alias Pleroma.Repo - alias Pleroma.User - alias Pleroma.Web.CommonAPI - alias Pleroma.Web.CommonAPI.Utils - alias Pleroma.Web.MastodonAPI.StatusView - alias Pleroma.Web.TwitterAPI.ActivityView - alias Pleroma.Web.TwitterAPI.Representers.ObjectRepresenter - alias Pleroma.Web.TwitterAPI.UserView - - import Ecto.Query - require Logger - require Pleroma.Constants - - defp query_context_ids([]), do: [] - - defp query_context_ids(contexts) do - query = from(o in Object, where: fragment("(?)->>'id' = ANY(?)", o.data, ^contexts)) - - Repo.all(query) - end - - defp query_users([]), do: [] - - defp query_users(user_ids) do - query = from(user in User, where: user.ap_id in ^user_ids) - - Repo.all(query) - end - - defp collect_context_ids(activities) do - _contexts = - activities - |> Enum.reject(& &1.data["context_id"]) - |> Enum.map(fn %{data: data} -> - data["context"] - end) - |> Enum.filter(& &1) - |> query_context_ids() - |> Enum.reduce(%{}, fn %{data: %{"id" => ap_id}, id: id}, acc -> - Map.put(acc, ap_id, id) - end) - end - - defp collect_users(activities) do - activities - |> Enum.map(fn activity -> - case activity.data do - data = %{"type" => "Follow"} -> - [data["actor"], data["object"]] - - data -> - [data["actor"]] - end ++ activity.recipients - end) - |> List.flatten() - |> Enum.uniq() - |> query_users() - |> Enum.reduce(%{}, fn user, acc -> - Map.put(acc, user.ap_id, user) - end) - end - - defp get_context_id(%{data: %{"context_id" => context_id}}, _) when not is_nil(context_id), - do: context_id - - defp get_context_id(%{data: %{"context" => nil}}, _), do: nil - - defp get_context_id(%{data: %{"context" => context}}, options) do - cond do - id = options[:context_ids][context] -> id - true -> Utils.context_to_conversation_id(context) - end - end - - defp get_context_id(_, _), do: nil - - defp get_user(ap_id, opts) do - cond do - user = opts[:users][ap_id] -> - user - - String.ends_with?(ap_id, "/followers") -> - nil - - ap_id == Pleroma.Constants.as_public() -> - nil - - user = User.get_cached_by_ap_id(ap_id) -> - user - - user = User.get_by_guessed_nickname(ap_id) -> - user - - true -> - User.error_user(ap_id) - end - end - - def render("index.json", opts) do - context_ids = collect_context_ids(opts.activities) - users = collect_users(opts.activities) - - opts = - opts - |> Map.put(:context_ids, context_ids) - |> Map.put(:users, users) - - safe_render_many( - opts.activities, - ActivityView, - "activity.json", - opts - ) - end - - def render("activity.json", %{activity: %{data: %{"type" => "Delete"}} = activity} = opts) do - user = get_user(activity.data["actor"], opts) - created_at = activity.data["published"] |> Utils.date_to_asctime() - - %{ - "id" => activity.id, - "uri" => activity.data["object"], - "user" => UserView.render("show.json", %{user: user, for: opts[:for]}), - "attentions" => [], - "statusnet_html" => "deleted notice {{tag", - "text" => "deleted notice {{tag", - "is_local" => activity.local, - "is_post_verb" => false, - "created_at" => created_at, - "in_reply_to_status_id" => nil, - "external_url" => activity.data["id"], - "activity_type" => "delete" - } - end - - def render("activity.json", %{activity: %{data: %{"type" => "Follow"}} = activity} = opts) do - user = get_user(activity.data["actor"], opts) - created_at = activity.data["published"] || DateTime.to_iso8601(activity.inserted_at) - created_at = created_at |> Utils.date_to_asctime() - - followed = get_user(activity.data["object"], opts) - text = "#{user.nickname} started following #{followed.nickname}" - - %{ - "id" => activity.id, - "user" => UserView.render("show.json", %{user: user, for: opts[:for]}), - "attentions" => [], - "statusnet_html" => text, - "text" => text, - "is_local" => activity.local, - "is_post_verb" => false, - "created_at" => created_at, - "in_reply_to_status_id" => nil, - "external_url" => activity.data["id"], - "activity_type" => "follow" - } - end - - def render("activity.json", %{activity: %{data: %{"type" => "Announce"}} = activity} = opts) do - user = get_user(activity.data["actor"], opts) - created_at = activity.data["published"] |> Utils.date_to_asctime() - announced_activity = Activity.get_create_by_object_ap_id(activity.data["object"]) - - text = "#{user.nickname} repeated a status." - - retweeted_status = render("activity.json", Map.merge(opts, %{activity: announced_activity})) - - %{ - "id" => activity.id, - "user" => UserView.render("show.json", %{user: user, for: opts[:for]}), - "statusnet_html" => text, - "text" => text, - "is_local" => activity.local, - "is_post_verb" => false, - "uri" => "tag:#{activity.data["id"]}:objectType=note", - "created_at" => created_at, - "retweeted_status" => retweeted_status, - "statusnet_conversation_id" => get_context_id(announced_activity, opts), - "external_url" => activity.data["id"], - "activity_type" => "repeat" - } - end - - def render("activity.json", %{activity: %{data: %{"type" => "Like"}} = activity} = opts) do - user = get_user(activity.data["actor"], opts) - liked_activity = Activity.get_create_by_object_ap_id(activity.data["object"]) - liked_activity_id = if liked_activity, do: liked_activity.id, else: nil - - created_at = - activity.data["published"] - |> Utils.date_to_asctime() - - text = "#{user.nickname} favorited a status." - - favorited_status = - if liked_activity, - do: render("activity.json", Map.merge(opts, %{activity: liked_activity})), - else: nil - - %{ - "id" => activity.id, - "user" => UserView.render("show.json", %{user: user, for: opts[:for]}), - "statusnet_html" => text, - "text" => text, - "is_local" => activity.local, - "is_post_verb" => false, - "uri" => "tag:#{activity.data["id"]}:objectType=Favourite", - "created_at" => created_at, - "favorited_status" => favorited_status, - "in_reply_to_status_id" => liked_activity_id, - "external_url" => activity.data["id"], - "activity_type" => "like" - } - end - - def render( - "activity.json", - %{activity: %{data: %{"type" => "Create", "object" => object_id}} = activity} = opts - ) do - user = get_user(activity.data["actor"], opts) - - object = Object.normalize(object_id) - - created_at = object.data["published"] |> Utils.date_to_asctime() - like_count = object.data["like_count"] || 0 - announcement_count = object.data["announcement_count"] || 0 - favorited = opts[:for] && opts[:for].ap_id in (object.data["likes"] || []) - repeated = opts[:for] && opts[:for].ap_id in (object.data["announcements"] || []) - pinned = activity.id in user.info.pinned_activities - - attentions = - [] - |> Utils.maybe_notify_to_recipients(activity) - |> Utils.maybe_notify_mentioned_recipients(activity) - |> Enum.map(fn ap_id -> get_user(ap_id, opts) end) - |> Enum.filter(& &1) - |> Enum.map(fn user -> UserView.render("show.json", %{user: user, for: opts[:for]}) end) - - conversation_id = get_context_id(activity, opts) - - tags = object.data["tag"] || [] - possibly_sensitive = object.data["sensitive"] || Enum.member?(tags, "nsfw") - - tags = if possibly_sensitive, do: Enum.uniq(["nsfw" | tags]), else: tags - - {summary, content} = render_content(object.data) - - html = - content - |> HTML.get_cached_scrubbed_html_for_activity( - User.html_filter_policy(opts[:for]), - activity, - "twitterapi:content" - ) - |> Formatter.emojify(object.data["emoji"]) - - text = - if content do - content - |> String.replace(~r//, "\n") - |> HTML.get_cached_stripped_html_for_activity(activity, "twitterapi:content") - else - "" - end - - reply_parent = Activity.get_in_reply_to_activity(activity) - - reply_user = reply_parent && User.get_cached_by_ap_id(reply_parent.actor) - - summary = HTML.strip_tags(summary) - - card = - StatusView.render( - "card.json", - Pleroma.Web.RichMedia.Helpers.fetch_data_for_activity(activity) - ) - - thread_muted? = - case activity.thread_muted? do - thread_muted? when is_boolean(thread_muted?) -> thread_muted? - nil -> CommonAPI.thread_muted?(user, activity) - end - - %{ - "id" => activity.id, - "uri" => object.data["id"], - "user" => UserView.render("show.json", %{user: user, for: opts[:for]}), - "statusnet_html" => html, - "text" => text, - "is_local" => activity.local, - "is_post_verb" => true, - "created_at" => created_at, - "in_reply_to_status_id" => reply_parent && reply_parent.id, - "in_reply_to_screen_name" => reply_user && reply_user.nickname, - "in_reply_to_profileurl" => User.profile_url(reply_user), - "in_reply_to_ostatus_uri" => reply_user && reply_user.ap_id, - "in_reply_to_user_id" => reply_user && reply_user.id, - "statusnet_conversation_id" => conversation_id, - "attachments" => (object.data["attachment"] || []) |> ObjectRepresenter.enum_to_list(opts), - "attentions" => attentions, - "fave_num" => like_count, - "repeat_num" => announcement_count, - "favorited" => !!favorited, - "repeated" => !!repeated, - "pinned" => pinned, - "external_url" => object.data["external_url"] || object.data["id"], - "tags" => tags, - "activity_type" => "post", - "possibly_sensitive" => possibly_sensitive, - "visibility" => Pleroma.Web.ActivityPub.Visibility.get_visibility(object), - "summary" => summary, - "summary_html" => summary |> Formatter.emojify(object.data["emoji"]), - "card" => card, - "muted" => thread_muted? || User.mutes?(opts[:for], user) - } - end - - def render("activity.json", %{activity: unhandled_activity}) do - Logger.warn("#{__MODULE__} unhandled activity: #{inspect(unhandled_activity)}") - nil - end - - def render_content(%{"type" => "Note"} = object) do - summary = object["summary"] - - content = - if !!summary and summary != "" do - "

#{summary}

#{object["content"]}" - else - object["content"] - end - - {summary, content} - end - - def render_content(%{"type" => object_type} = object) - when object_type in ["Article", "Page", "Video"] do - summary = object["name"] || object["summary"] - - content = - if !!summary and summary != "" and is_bitstring(object["url"]) do - "

#{summary}

#{object["content"]}" - else - object["content"] - end - - {summary, content} - end - - def render_content(object) do - summary = object["summary"] || "Unhandled activity type: #{object["type"]}" - content = "

#{summary}

#{object["content"]}" - - {summary, content} - end -end diff --git a/lib/pleroma/web/twitter_api/views/notification_view.ex b/lib/pleroma/web/twitter_api/views/notification_view.ex deleted file mode 100644 index 085cd5aa3..000000000 --- a/lib/pleroma/web/twitter_api/views/notification_view.ex +++ /dev/null @@ -1,71 +0,0 @@ -# Pleroma: A lightweight social networking server -# Copyright © 2017-2019 Pleroma Authors -# SPDX-License-Identifier: AGPL-3.0-only - -defmodule Pleroma.Web.TwitterAPI.NotificationView do - use Pleroma.Web, :view - alias Pleroma.Notification - alias Pleroma.User - alias Pleroma.Web.CommonAPI.Utils - alias Pleroma.Web.TwitterAPI.ActivityView - alias Pleroma.Web.TwitterAPI.UserView - - require Pleroma.Constants - - defp get_user(ap_id, opts) do - cond do - user = opts[:users][ap_id] -> - user - - String.ends_with?(ap_id, "/followers") -> - nil - - ap_id == Pleroma.Constants.as_public() -> - nil - - true -> - User.get_cached_by_ap_id(ap_id) - end - end - - def render("notification.json", %{notifications: notifications, for: user}) do - render_many( - notifications, - Pleroma.Web.TwitterAPI.NotificationView, - "notification.json", - for: user - ) - end - - def render( - "notification.json", - %{ - notification: %Notification{ - id: id, - seen: seen, - activity: activity, - inserted_at: created_at - }, - for: user - } = opts - ) do - ntype = - case activity.data["type"] do - "Create" -> "mention" - "Like" -> "like" - "Announce" -> "repeat" - "Follow" -> "follow" - end - - from = get_user(activity.data["actor"], opts) - - %{ - "id" => id, - "ntype" => ntype, - "notice" => ActivityView.render("activity.json", %{activity: activity, for: user}), - "from_profile" => UserView.render("show.json", %{user: from, for: user}), - "is_seen" => if(seen, do: 1, else: 0), - "created_at" => created_at |> Utils.format_naive_asctime() - } - end -end diff --git a/lib/pleroma/web/twitter_api/views/user_view.ex b/lib/pleroma/web/twitter_api/views/user_view.ex deleted file mode 100644 index 8a7d2fc72..000000000 --- a/lib/pleroma/web/twitter_api/views/user_view.ex +++ /dev/null @@ -1,191 +0,0 @@ -# Pleroma: A lightweight social networking server -# Copyright © 2017-2019 Pleroma Authors -# SPDX-License-Identifier: AGPL-3.0-only - -defmodule Pleroma.Web.TwitterAPI.UserView do - use Pleroma.Web, :view - alias Pleroma.Formatter - alias Pleroma.HTML - alias Pleroma.User - alias Pleroma.Web.CommonAPI.Utils - alias Pleroma.Web.MediaProxy - - def render("show.json", %{user: user = %User{}} = assigns) do - render_one(user, Pleroma.Web.TwitterAPI.UserView, "user.json", assigns) - end - - def render("index.json", %{users: users, for: user}) do - users - |> render_many(Pleroma.Web.TwitterAPI.UserView, "user.json", for: user) - |> Enum.filter(&Enum.any?/1) - end - - def render("user.json", %{user: user = %User{}} = assigns) do - if User.visible_for?(user, assigns[:for]), - do: do_render("user.json", assigns), - else: %{} - end - - def render("short.json", %{ - user: %User{ - nickname: nickname, - id: id, - ap_id: ap_id, - name: name - } - }) do - %{ - "fullname" => name, - "id" => id, - "ostatus_uri" => ap_id, - "profile_url" => ap_id, - "screen_name" => nickname - } - end - - defp do_render("user.json", %{user: user = %User{}} = assigns) do - for_user = assigns[:for] - image = User.avatar_url(user) |> MediaProxy.url() - - {following, follows_you, statusnet_blocking} = - if for_user do - { - User.following?(for_user, user), - User.following?(user, for_user), - User.blocks?(for_user, user) - } - else - {false, false, false} - end - - user_info = User.get_cached_user_info(user) - - emoji = - (user.info.source_data["tag"] || []) - |> Enum.filter(fn %{"type" => t} -> t == "Emoji" end) - |> Enum.map(fn %{"icon" => %{"url" => url}, "name" => name} -> - {String.trim(name, ":"), url} - end) - - emoji = Enum.dedup(emoji ++ user.info.emoji) - - description_html = - (user.bio || "") - |> HTML.filter_tags(User.html_filter_policy(for_user)) - |> Formatter.emojify(emoji) - - fields = - user.info - |> User.Info.fields() - |> Enum.map(fn %{"name" => name, "value" => value} -> - %{ - "name" => Pleroma.HTML.strip_tags(name), - "value" => Pleroma.HTML.filter_tags(value, Pleroma.HTML.Scrubber.LinksOnly) - } - end) - - data = - %{ - "created_at" => user.inserted_at |> Utils.format_naive_asctime(), - "description" => HTML.strip_tags((user.bio || "") |> String.replace("
", "\n")), - "description_html" => description_html, - "favourites_count" => 0, - "followers_count" => user_info[:follower_count], - "following" => following, - "follows_you" => follows_you, - "statusnet_blocking" => statusnet_blocking, - "friends_count" => user_info[:following_count], - "id" => user.id, - "name" => user.name || user.nickname, - "name_html" => - if(user.name, - do: HTML.strip_tags(user.name) |> Formatter.emojify(emoji), - else: user.nickname - ), - "profile_image_url" => image, - "profile_image_url_https" => image, - "profile_image_url_profile_size" => image, - "profile_image_url_original" => image, - "screen_name" => user.nickname, - "statuses_count" => user_info[:note_count], - "statusnet_profile_url" => user.ap_id, - "cover_photo" => User.banner_url(user) |> MediaProxy.url(), - "background_image" => image_url(user.info.background) |> MediaProxy.url(), - "is_local" => user.local, - "locked" => user.info.locked, - "hide_followers" => user.info.hide_followers, - "hide_follows" => user.info.hide_follows, - "fields" => fields, - - # Pleroma extension - "pleroma" => - %{ - "confirmation_pending" => user_info.confirmation_pending, - "tags" => user.tags, - "skip_thread_containment" => user.info.skip_thread_containment - } - |> maybe_with_activation_status(user, for_user) - |> with_notification_settings(user, for_user) - } - |> maybe_with_user_settings(user, for_user) - |> maybe_with_role(user, for_user) - - if assigns[:token] do - Map.put(data, "token", token_string(assigns[:token])) - else - data - end - end - - defp with_notification_settings(data, %User{id: user_id} = user, %User{id: user_id}) do - Map.put(data, "notification_settings", user.info.notification_settings) - end - - defp with_notification_settings(data, _, _), do: data - - defp maybe_with_activation_status(data, user, %User{info: %{is_admin: true}}) do - Map.put(data, "deactivated", user.info.deactivated) - end - - defp maybe_with_activation_status(data, _, _), do: data - - defp maybe_with_role(data, %User{id: id} = user, %User{id: id}) do - Map.merge(data, %{ - "role" => role(user), - "show_role" => user.info.show_role, - "rights" => %{ - "delete_others_notice" => !!user.info.is_moderator, - "admin" => !!user.info.is_admin - } - }) - end - - defp maybe_with_role(data, %User{info: %{show_role: true}} = user, _user) do - Map.merge(data, %{ - "role" => role(user), - "rights" => %{ - "delete_others_notice" => !!user.info.is_moderator, - "admin" => !!user.info.is_admin - } - }) - end - - defp maybe_with_role(data, _, _), do: data - - defp maybe_with_user_settings(data, %User{info: info, id: id} = _user, %User{id: id}) do - data - |> Kernel.put_in(["default_scope"], info.default_scope) - |> Kernel.put_in(["no_rich_text"], info.no_rich_text) - end - - defp maybe_with_user_settings(data, _, _), do: data - defp role(%User{info: %{:is_admin => true}}), do: "admin" - defp role(%User{info: %{:is_moderator => true}}), do: "moderator" - defp role(_), do: "member" - - defp image_url(%{"url" => [%{"href" => href} | _]}), do: href - defp image_url(_), do: nil - - defp token_string(%Pleroma.Web.OAuth.Token{token: token_str}), do: token_str - defp token_string(token), do: token -end diff --git a/test/web/twitter_api/twitter_api_test.exs b/test/web/twitter_api/twitter_api_test.exs index ac9c0c27e..50ed43c15 100644 --- a/test/web/twitter_api/twitter_api_test.exs +++ b/test/web/twitter_api/twitter_api_test.exs @@ -7,9 +7,8 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do alias Pleroma.Repo alias Pleroma.User alias Pleroma.UserInviteToken - alias Pleroma.Web.TwitterAPI.ActivityView alias Pleroma.Web.TwitterAPI.TwitterAPI - alias Pleroma.Web.TwitterAPI.UserView + alias Pleroma.Web.MastodonAPI.AccountView import Pleroma.Factory @@ -31,8 +30,8 @@ test "it registers a new user and returns the user." do fetched_user = User.get_cached_by_nickname("lain") - assert UserView.render("show.json", %{user: user}) == - UserView.render("show.json", %{user: fetched_user}) + assert AccountView.render("account.json", %{user: user}) == + AccountView.render("account.json", %{user: fetched_user}) end test "it registers a new user with empty string in bio and returns the user." do @@ -49,8 +48,8 @@ test "it registers a new user with empty string in bio and returns the user." do fetched_user = User.get_cached_by_nickname("lain") - assert UserView.render("show.json", %{user: user}) == - UserView.render("show.json", %{user: fetched_user}) + assert AccountView.render("account.json", %{user: user}) == + AccountView.render("account.json", %{user: fetched_user}) end test "it sends confirmation email if :account_activation_required is specified in instance config" do @@ -147,8 +146,8 @@ test "returns user on success" do assert invite.used == true - assert UserView.render("show.json", %{user: user}) == - UserView.render("show.json", %{user: fetched_user}) + assert AccountView.render("account.json", %{user: user}) == + AccountView.render("account.json", %{user: fetched_user}) end test "returns error on invalid token" do @@ -212,8 +211,8 @@ test "returns error on expired token" do {:ok, user} = TwitterAPI.register_user(data) fetched_user = User.get_cached_by_nickname("vinny") - assert UserView.render("show.json", %{user: user}) == - UserView.render("show.json", %{user: fetched_user}) + assert AccountView.render("account.json", %{user: user}) == + AccountView.render("account.json", %{user: fetched_user}) end {:ok, data: data, check_fn: check_fn} @@ -287,8 +286,8 @@ test "returns user on success, after him registration fails" do assert invite.used == true - assert UserView.render("show.json", %{user: user}) == - UserView.render("show.json", %{user: fetched_user}) + assert AccountView.render("account.json", %{user: user}) == + AccountView.render("account.json", %{user: fetched_user}) data = %{ "nickname" => "GrimReaper", @@ -338,8 +337,8 @@ test "returns user on success" do refute invite.used - assert UserView.render("show.json", %{user: user}) == - UserView.render("show.json", %{user: fetched_user}) + assert AccountView.render("account.json", %{user: user}) == + AccountView.render("account.json", %{user: fetched_user}) end test "error after max uses" do @@ -362,8 +361,8 @@ test "error after max uses" do invite = Repo.get_by(UserInviteToken, token: invite.token) assert invite.used == true - assert UserView.render("show.json", %{user: user}) == - UserView.render("show.json", %{user: fetched_user}) + assert AccountView.render("account.json", %{user: user}) == + AccountView.render("account.json", %{user: fetched_user}) data = %{ "nickname" => "GrimReaper", @@ -439,13 +438,6 @@ test "it returns the error on registration problems" do refute User.get_cached_by_nickname("lain") end - test "it assigns an integer conversation_id" do - note_activity = insert(:note_activity) - status = ActivityView.render("activity.json", activity: note_activity) - - assert is_number(status["statusnet_conversation_id"]) - end - setup do Supervisor.terminate_child(Pleroma.Supervisor, Cachex) Supervisor.restart_child(Pleroma.Supervisor, Cachex) From 2e7bb107e0267d0e50aebaa3e6db1312e1557b18 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Sat, 31 Aug 2019 10:34:29 +0300 Subject: [PATCH 073/400] Remove Mention of TwitterAPI in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5aad34ccc..846442346 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Pleroma is a microblogging server software that can federate (= exchange message Pleroma is written in Elixir, high-performance and can run on small devices like a Raspberry Pi. -For clients it supports both the [GNU Social API with Qvitter extensions](https://twitter-api.readthedocs.io/en/latest/index.html) and the [Mastodon client API](https://docs.joinmastodon.org/api/guidelines/). +For clients it supports the [Mastodon client API](https://docs.joinmastodon.org/api/guidelines/) with Pleroma extensions (see "Pleroma's APIs and Mastodon API extensions" section on ). - [Client Applications for Pleroma](https://docs-develop.pleroma.social/clients.html) From 64410497d20869f9b6c1c92a48761157048b0cb9 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Sat, 31 Aug 2019 10:41:15 +0300 Subject: [PATCH 074/400] Remove TwitterAPI representers --- .../representers/base_representer.ex | 38 ------------ .../representers/object_representer.ex | 39 ------------ .../representers/object_representer_test.exs | 60 ------------------- 3 files changed, 137 deletions(-) delete mode 100644 lib/pleroma/web/twitter_api/representers/base_representer.ex delete mode 100644 lib/pleroma/web/twitter_api/representers/object_representer.ex delete mode 100644 test/web/twitter_api/representers/object_representer_test.exs diff --git a/lib/pleroma/web/twitter_api/representers/base_representer.ex b/lib/pleroma/web/twitter_api/representers/base_representer.ex deleted file mode 100644 index 3d31e6079..000000000 --- a/lib/pleroma/web/twitter_api/representers/base_representer.ex +++ /dev/null @@ -1,38 +0,0 @@ -# Pleroma: A lightweight social networking server -# Copyright © 2017-2019 Pleroma Authors -# SPDX-License-Identifier: AGPL-3.0-only - -defmodule Pleroma.Web.TwitterAPI.Representers.BaseRepresenter do - defmacro __using__(_opts) do - quote do - def to_json(object) do - to_json(object, %{}) - end - - def to_json(object, options) do - object - |> to_map(options) - |> Jason.encode!() - end - - def enum_to_list(enum, options) do - mapping = fn el -> to_map(el, options) end - Enum.map(enum, mapping) - end - - def to_map(object) do - to_map(object, %{}) - end - - def enum_to_json(enum) do - enum_to_json(enum, %{}) - end - - def enum_to_json(enum, options) do - enum - |> enum_to_list(options) - |> Jason.encode!() - end - end - end -end diff --git a/lib/pleroma/web/twitter_api/representers/object_representer.ex b/lib/pleroma/web/twitter_api/representers/object_representer.ex deleted file mode 100644 index 47130ba06..000000000 --- a/lib/pleroma/web/twitter_api/representers/object_representer.ex +++ /dev/null @@ -1,39 +0,0 @@ -# Pleroma: A lightweight social networking server -# Copyright © 2017-2019 Pleroma Authors -# SPDX-License-Identifier: AGPL-3.0-only - -defmodule Pleroma.Web.TwitterAPI.Representers.ObjectRepresenter do - use Pleroma.Web.TwitterAPI.Representers.BaseRepresenter - alias Pleroma.Object - - def to_map(%Object{data: %{"url" => [url | _]}} = object, _opts) do - data = object.data - - %{ - url: url["href"] |> Pleroma.Web.MediaProxy.url(), - mimetype: url["mediaType"] || url["mimeType"], - id: data["uuid"], - oembed: false, - description: data["name"] - } - end - - def to_map(%Object{data: %{"url" => url} = data}, _opts) when is_binary(url) do - %{ - url: url |> Pleroma.Web.MediaProxy.url(), - mimetype: data["mediaType"] || data["mimeType"], - id: data["uuid"], - oembed: false, - description: data["name"] - } - end - - def to_map(%Object{}, _opts) do - %{} - end - - # If we only get the naked data, wrap in an object - def to_map(%{} = data, opts) do - to_map(%Object{data: data}, opts) - end -end diff --git a/test/web/twitter_api/representers/object_representer_test.exs b/test/web/twitter_api/representers/object_representer_test.exs deleted file mode 100644 index c3cf330f1..000000000 --- a/test/web/twitter_api/representers/object_representer_test.exs +++ /dev/null @@ -1,60 +0,0 @@ -# Pleroma: A lightweight social networking server -# Copyright © 2017-2018 Pleroma Authors -# SPDX-License-Identifier: AGPL-3.0-only - -defmodule Pleroma.Web.TwitterAPI.Representers.ObjectReprenterTest do - use Pleroma.DataCase - - alias Pleroma.Object - alias Pleroma.Web.TwitterAPI.Representers.ObjectRepresenter - - test "represent an image attachment" do - object = %Object{ - id: 5, - data: %{ - "type" => "Image", - "url" => [ - %{ - "mediaType" => "sometype", - "href" => "someurl" - } - ], - "uuid" => 6 - } - } - - expected_object = %{ - id: 6, - url: "someurl", - mimetype: "sometype", - oembed: false, - description: nil - } - - assert expected_object == ObjectRepresenter.to_map(object) - end - - test "represents mastodon-style attachments" do - object = %Object{ - id: nil, - data: %{ - "mediaType" => "image/png", - "name" => "blabla", - "type" => "Document", - "url" => - "http://mastodon.example.org/system/media_attachments/files/000/000/001/original/8619f31c6edec470.png" - } - } - - expected_object = %{ - url: - "http://mastodon.example.org/system/media_attachments/files/000/000/001/original/8619f31c6edec470.png", - mimetype: "image/png", - oembed: false, - id: nil, - description: "blabla" - } - - assert expected_object == ObjectRepresenter.to_map(object) - end -end From dbfcba85ec2d3336219c75a32adbcff93a684309 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Sat, 31 Aug 2019 10:45:37 +0300 Subject: [PATCH 075/400] Add a changelog entry for twitterapi removal and fix credo issues --- CHANGELOG.md | 1 + test/web/twitter_api/twitter_api_test.exs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fdcb014a..e8ea83005 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -103,6 +103,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - RichMedia: add the rich media ttl based on image expiration time. ### Removed +- GNU Social API with Qvitter extensions support - Emoji: Remove longfox emojis. - Remove `Reply-To` header from report emails for admins. - ActivityPub: The `accept_blocks` configuration setting. diff --git a/test/web/twitter_api/twitter_api_test.exs b/test/web/twitter_api/twitter_api_test.exs index 50ed43c15..0a57e174f 100644 --- a/test/web/twitter_api/twitter_api_test.exs +++ b/test/web/twitter_api/twitter_api_test.exs @@ -7,8 +7,8 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do alias Pleroma.Repo alias Pleroma.User alias Pleroma.UserInviteToken - alias Pleroma.Web.TwitterAPI.TwitterAPI alias Pleroma.Web.MastodonAPI.AccountView + alias Pleroma.Web.TwitterAPI.TwitterAPI import Pleroma.Factory From 9cabc02864ff33b76f424a342732ef8039dfd73d Mon Sep 17 00:00:00 2001 From: rinpatch Date: Sat, 31 Aug 2019 10:57:35 +0300 Subject: [PATCH 076/400] Remove a useless import --- test/web/twitter_api/twitter_api_test.exs | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/web/twitter_api/twitter_api_test.exs b/test/web/twitter_api/twitter_api_test.exs index 0a57e174f..c5b18234e 100644 --- a/test/web/twitter_api/twitter_api_test.exs +++ b/test/web/twitter_api/twitter_api_test.exs @@ -10,8 +10,6 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do alias Pleroma.Web.MastodonAPI.AccountView alias Pleroma.Web.TwitterAPI.TwitterAPI - import Pleroma.Factory - setup_all do Tesla.Mock.mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end) :ok From bd3ed3a62299bad5d717aaff0a0bd088ff1c1ef7 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Sat, 31 Aug 2019 11:40:04 +0300 Subject: [PATCH 077/400] Add back /api/qvitter/statuses/notifications/read.json --- lib/pleroma/web/router.ex | 6 +++++ .../web/twitter_api/twitter_api_controller.ex | 25 +++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 53728e298..eb7cbbc96 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -495,6 +495,12 @@ defmodule Pleroma.Web.Router do get("/oauth_tokens", TwitterAPI.Controller, :oauth_tokens) delete("/oauth_tokens/:id", TwitterAPI.Controller, :revoke_token) + + scope [] do + pipe_through(:oauth_read) + + post("/qvitter/statuses/notifications/read", TwitterAPI.Controller, :notifications_read) + end end pipeline :ap_service_actor do diff --git a/lib/pleroma/web/twitter_api/twitter_api_controller.ex b/lib/pleroma/web/twitter_api/twitter_api_controller.ex index 1c3b11a57..8ca754b51 100644 --- a/lib/pleroma/web/twitter_api/twitter_api_controller.ex +++ b/lib/pleroma/web/twitter_api/twitter_api_controller.ex @@ -7,6 +7,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do alias Ecto.Changeset alias Pleroma.User + alias Pleroma.Notification alias Pleroma.Web.OAuth.Token alias Pleroma.Web.TwitterAPI.TokenView @@ -58,4 +59,28 @@ defp json_reply(conn, status, json) do |> put_resp_content_type("application/json") |> send_resp(status, json) end + + def notifications_read(%{assigns: %{user: user}} = conn, %{"latest_id" => latest_id} = params) do + Notification.set_read_up_to(user, latest_id) + + notifications = Notification.for_user(user, params) + + conn + # XXX: This is a hack because pleroma-fe still uses that API. + |> put_view(Pleroma.Web.MastodonAPI.NotificationView) + |> render("index.json", %{notifications: notifications, for: user}) + end + + def notifications_read(%{assigns: %{user: _user}} = conn, _) do + bad_request_reply(conn, "You need to specify latest_id") + end + + defp bad_request_reply(conn, error_message) do + json = error_json(conn, error_message) + json_reply(conn, 400, json) + end + + defp error_json(conn, error_message) do + %{"error" => error_message, "request" => conn.request_path} |> Jason.encode!() + end end From 70eed0594ce4fe2ec668c5ee3ad42c941b29888e Mon Sep 17 00:00:00 2001 From: rinpatch Date: Sat, 31 Aug 2019 13:08:43 +0300 Subject: [PATCH 078/400] credo fixes --- lib/pleroma/web/twitter_api/twitter_api_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pleroma/web/twitter_api/twitter_api_controller.ex b/lib/pleroma/web/twitter_api/twitter_api_controller.ex index 8ca754b51..42234ae09 100644 --- a/lib/pleroma/web/twitter_api/twitter_api_controller.ex +++ b/lib/pleroma/web/twitter_api/twitter_api_controller.ex @@ -6,8 +6,8 @@ defmodule Pleroma.Web.TwitterAPI.Controller do use Pleroma.Web, :controller alias Ecto.Changeset - alias Pleroma.User alias Pleroma.Notification + alias Pleroma.User alias Pleroma.Web.OAuth.Token alias Pleroma.Web.TwitterAPI.TokenView From a90ea8ba1562818b025f677ffeea35f7ca08ddf2 Mon Sep 17 00:00:00 2001 From: Ivan Tashkinov Date: Sat, 31 Aug 2019 19:08:56 +0300 Subject: [PATCH 079/400] [#1149] Addressed code review comments (code style, jobs pruning etc.). --- CHANGELOG.md | 2 +- config/config.exs | 2 +- config/test.exs | 2 + docs/config.md | 56 ++++++++++++++++++- lib/pleroma/activity_expiration_worker.ex | 6 +- lib/pleroma/application.ex | 2 +- lib/pleroma/digest_email_worker.ex | 4 +- lib/pleroma/emails/mailer.ex | 4 +- lib/pleroma/scheduled_activity_worker.ex | 2 +- lib/pleroma/user.ex | 2 +- lib/pleroma/web/activity_pub/activity_pub.ex | 2 +- .../mrf/mediaproxy_warming_policy.ex | 2 +- lib/pleroma/web/activity_pub/publisher.ex | 2 +- .../web/activity_pub/transmogrifier.ex | 4 +- lib/pleroma/web/federator/federator.ex | 8 +-- lib/pleroma/web/federator/publisher.ex | 9 +-- lib/pleroma/web/oauth/token/clean_worker.ex | 2 +- lib/pleroma/web/push/push.ex | 6 +- lib/pleroma/web/salmon/salmon.ex | 2 +- .../workers/activity_expiration_worker.ex | 21 +++++++ lib/pleroma/workers/background_worker.ex | 19 ++----- lib/pleroma/workers/helper.ex | 13 ----- .../workers/{mailer.ex => mailer_worker.ex} | 19 +++---- .../{publisher.ex => publisher_worker.ex} | 8 ++- .../{receiver.ex => receiver_worker.ex} | 4 +- .../workers/scheduled_activity_worker.ex | 2 +- .../{subscriber.ex => subscriber_worker.ex} | 4 +- ...smogrifier.ex => transmogrifier_worker.ex} | 6 +- .../{web_pusher.ex => web_pusher_worker.ex} | 4 +- lib/pleroma/workers/worker_helper.ex | 23 ++++++++ test/user_test.exs | 2 +- .../activity_pub_controller_test.exs | 2 +- test/web/federator_test.exs | 2 +- test/web/websub/websub_test.exs | 2 +- 34 files changed, 163 insertions(+), 87 deletions(-) create mode 100644 lib/pleroma/workers/activity_expiration_worker.ex delete mode 100644 lib/pleroma/workers/helper.ex rename lib/pleroma/workers/{mailer.ex => mailer_worker.ex} (58%) rename lib/pleroma/workers/{publisher.ex => publisher_worker.ex} (76%) rename lib/pleroma/workers/{receiver.ex => receiver_worker.ex} (83%) rename lib/pleroma/workers/{subscriber.ex => subscriber_worker.ex} (88%) rename lib/pleroma/workers/{transmogrifier.ex => transmogrifier_worker.ex} (73%) rename lib/pleroma/workers/{web_pusher.ex => web_pusher_worker.ex} (82%) create mode 100644 lib/pleroma/workers/worker_helper.ex diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b73c783f..c9d6fef17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,7 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Mastodon API: Unsubscribe followers when they unfollow a user - AdminAPI: Add "godmode" while fetching user statuses (i.e. admin can see private statuses) - Improve digest email template -- Replaced [pleroma_job_queue](https://git.pleroma.social/pleroma/pleroma_job_queue) with [Oban](https://github.com/sorentwo/oban) +- Replaced [pleroma_job_queue](https://git.pleroma.social/pleroma/pleroma_job_queue) and `Pleroma.Web.Federator.RetryQueue` with [Oban](https://github.com/sorentwo/oban) (see [`docs/config.md`](docs/config.md) on migrating customized worker / retry settings). - Introduced [quantum](https://github.com/quantum-elixir/quantum-core) job scheduler ### Fixed diff --git a/config/config.exs b/config/config.exs index da89aa3e9..6fb4a0969 100644 --- a/config/config.exs +++ b/config/config.exs @@ -470,7 +470,7 @@ config :pleroma, Oban, repo: Pleroma.Repo, verbose: false, - prune: {:maxage, 60 * 60 * 24 * 7}, + prune: {:maxlen, 1500}, queues: [ activity_expiration: 10, federator_incoming: 50, diff --git a/config/test.exs b/config/test.exs index 0ef809ac1..df512b5d7 100644 --- a/config/test.exs +++ b/config/test.exs @@ -65,6 +65,8 @@ queues: false, prune: :disabled +config :pleroma, Pleroma.Scheduler, jobs: [] + config :pleroma, Pleroma.ScheduledActivity, daily_user_limit: 2, total_user_limit: 3, diff --git a/docs/config.md b/docs/config.md index 2e351e272..29a4d4c97 100644 --- a/docs/config.md +++ b/docs/config.md @@ -404,20 +404,29 @@ curl "http://localhost:4000/api/pleroma/admin/invite_token?admin_token=somerando [Oban](https://github.com/sorentwo/oban) asynchronous job processor configuration. +Configuration options described in [Oban readme](https://github.com/sorentwo/oban#usage): +* `repo` - app's Ecto repo (`Pleroma.Repo`) +* `verbose` - logs verbosity +* `prune` - non-retryable jobs [pruning settings](https://github.com/sorentwo/oban#pruning) (`:disabled` / `{:maxlen, value}` / `{:maxage, value}`) +* `queues` - job queues (see below) + Pleroma has the following queues: +* `activity_expiration` - Activity expiration * `federator_outgoing` - Outgoing federation * `federator_incoming` - Incoming federation -* `mailer` - Email sender, see [`Pleroma.Emails.Mailer`](#pleroma-emails-mailer) +* `mailer` - Email sender, see [`Pleroma.Emails.Mailer`](#pleromaemailsmailer) * `transmogrifier` - Transmogrifier * `web_push` - Web push notifications -* `scheduled_activities` - Scheduled activities, see [`Pleroma.ScheduledActivities`](#pleromascheduledactivity) +* `scheduled_activities` - Scheduled activities, see [`Pleroma.ScheduledActivity`](#pleromascheduledactivity) Example: ```elixir config :pleroma, Oban, repo: Pleroma.Repo, + verbose: false, + prune: {:maxlen, 1500}, queues: [ federator_incoming: 50, federator_outgoing: 50 @@ -426,12 +435,37 @@ config :pleroma, Oban, This config contains two queues: `federator_incoming` and `federator_outgoing`. Both have the number of max concurrent jobs set to `50`. +### Migrating `pleroma_job_queue` settings + +`config :pleroma_job_queue, :queues` is replaced by `config :pleroma, Oban, :queues` and uses the same format (keys are queues' names, values are max concurrent jobs numbers). + +### Note on running with PostgreSQL in silent mode + +If you are running PostgreSQL in [`silent_mode`](https://postgresqlco.nf/en/doc/param/silent_mode?version=9.1), it's advised to set [`log_destination`](https://postgresqlco.nf/en/doc/param/log_destination?version=9.1) to `syslog`, +otherwise `postmaster.log` file may grow because of "you don't own a lock of type ShareLock" warnings (see https://github.com/sorentwo/oban/issues/52). + ## :workers Includes custom worker options not interpretable directly by `Oban`. * `retries` — keyword lists where keys are `Oban` queues (see above) and values are numbers of max attempts for failed jobs. +Example: + +```elixir +config :pleroma, :workers, + retries: [ + federator_incoming: 5, + federator_outgoing: 5 + ] +``` + +### Migrating `Pleroma.Web.Federator.RetryQueue` settings + +* `max_retries` is replaced with `config :pleroma, :workers, retries: [federator_outgoing: 5]` +* `enabled: false` corresponds to `config :pleroma, :workers, retries: [federator_outgoing: 1]` +* deprecated options: `max_jobs`, `initial_timeout` + ## Pleroma.Web.Metadata * `providers`: a list of metadata providers to enable. Providers available: * Pleroma.Web.Metadata.Providers.OpenGraph @@ -491,6 +525,24 @@ config :auto_linker, ] ``` +## Pleroma.Scheduler + +Configuration for [Quantum](https://github.com/quantum-elixir/quantum-core) jobs scheduler. + +See [Quantum readme](https://github.com/quantum-elixir/quantum-core#usage) for the list of supported options. + +Example: + +```elixir +config :pleroma, Pleroma.Scheduler, + global: true, + overlap: true, + timezone: :utc, + jobs: [{"0 */6 * * * *", {Pleroma.Web.Websub, :refresh_subscriptions, []}}] +``` + +The above example defines a single job which invokes `Pleroma.Web.Websub.refresh_subscriptions()` every 6 hours ("0 */6 * * * *", [crontab format](https://en.wikipedia.org/wiki/Cron)). + ## Pleroma.ScheduledActivity * `daily_user_limit`: the number of scheduled activities a user is allowed to create in a single day (Default: `25`) diff --git a/lib/pleroma/activity_expiration_worker.ex b/lib/pleroma/activity_expiration_worker.ex index 5c0c53232..7aba7eece 100644 --- a/lib/pleroma/activity_expiration_worker.ex +++ b/lib/pleroma/activity_expiration_worker.ex @@ -9,13 +9,13 @@ defmodule Pleroma.ActivityExpirationWorker do alias Pleroma.Repo alias Pleroma.User alias Pleroma.Web.CommonAPI - alias Pleroma.Workers.BackgroundWorker + alias Pleroma.Workers.ActivityExpirationWorker require Logger use GenServer import Ecto.Query - defdelegate worker_args(queue), to: Pleroma.Workers.Helper + import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] @schedule_interval :timer.minutes(1) @@ -57,7 +57,7 @@ def handle_info(:perform, state) do "op" => "activity_expiration", "activity_expiration_id" => expiration.id } - |> BackgroundWorker.new(worker_args(:activity_expiration)) + |> ActivityExpirationWorker.new(worker_args(:activity_expiration)) |> Repo.insert() end) diff --git a/lib/pleroma/application.ex b/lib/pleroma/application.ex index 7d38ed5c4..f8f866dbd 100644 --- a/lib/pleroma/application.ex +++ b/lib/pleroma/application.ex @@ -43,7 +43,7 @@ def start(_type, _args) do hackney_pool_children() ++ [ Pleroma.Stats, - {Oban, Application.get_env(:pleroma, Oban)}, + {Oban, Pleroma.Config.get(Oban)}, %{ id: :web_push_init, start: {Task, :start_link, [&Pleroma.Web.Push.init/0]}, diff --git a/lib/pleroma/digest_email_worker.ex b/lib/pleroma/digest_email_worker.ex index ffc48bfab..4ab2a4ef4 100644 --- a/lib/pleroma/digest_email_worker.ex +++ b/lib/pleroma/digest_email_worker.ex @@ -4,11 +4,11 @@ defmodule Pleroma.DigestEmailWorker do alias Pleroma.Repo - alias Pleroma.Workers.Mailer, as: MailerWorker + alias Pleroma.Workers.MailerWorker import Ecto.Query - defdelegate worker_args(queue), to: Pleroma.Workers.Helper + import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] def perform do config = Pleroma.Config.get([:email_notifications, :digest]) diff --git a/lib/pleroma/emails/mailer.ex b/lib/pleroma/emails/mailer.ex index bb534f602..9cbe7313c 100644 --- a/lib/pleroma/emails/mailer.ex +++ b/lib/pleroma/emails/mailer.ex @@ -10,7 +10,7 @@ defmodule Pleroma.Emails.Mailer do """ alias Pleroma.Repo - alias Pleroma.Workers.Mailer, as: MailerWorker + alias Pleroma.Workers.MailerWorker alias Swoosh.DeliveryError @otp_app :pleroma @@ -19,7 +19,7 @@ defmodule Pleroma.Emails.Mailer do @spec enabled?() :: boolean() def enabled?, do: Pleroma.Config.get([__MODULE__, :enabled]) - defdelegate worker_args(queue), to: Pleroma.Workers.Helper + import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] @doc "add email to queue" def deliver_async(email, config \\ []) do diff --git a/lib/pleroma/scheduled_activity_worker.ex b/lib/pleroma/scheduled_activity_worker.ex index a01fb4fcb..8bf534f42 100644 --- a/lib/pleroma/scheduled_activity_worker.ex +++ b/lib/pleroma/scheduled_activity_worker.ex @@ -18,7 +18,7 @@ defmodule Pleroma.ScheduledActivityWorker do @schedule_interval :timer.minutes(1) - defdelegate worker_args(queue), to: Pleroma.Workers.Helper + import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] def start_link(_) do GenServer.start_link(__MODULE__, nil) diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 18bba0fbb..abfa063fb 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -41,7 +41,7 @@ defmodule Pleroma.User do @strict_local_nickname_regex ~r/^[a-zA-Z\d]+$/ @extended_local_nickname_regex ~r/^[a-zA-Z\d_-]+$/ - defdelegate worker_args(queue), to: Pleroma.Workers.Helper + import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] schema "users" do field(:bio, :string) diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 50279cca5..74c5eb91c 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -26,7 +26,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do require Logger require Pleroma.Constants - defdelegate worker_args(queue), to: Pleroma.Workers.Helper + import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] # For Announce activities, we filter the recipients based on following status for any actors # that match actual users. See issue #164 for more information about why this is necessary. diff --git a/lib/pleroma/web/activity_pub/mrf/mediaproxy_warming_policy.ex b/lib/pleroma/web/activity_pub/mrf/mediaproxy_warming_policy.ex index b188164ee..178321558 100644 --- a/lib/pleroma/web/activity_pub/mrf/mediaproxy_warming_policy.ex +++ b/lib/pleroma/web/activity_pub/mrf/mediaproxy_warming_policy.ex @@ -18,7 +18,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy do recv_timeout: 10_000 ] - defdelegate worker_args(queue), to: Pleroma.Workers.Helper + import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] def perform(:prefetch, url) do Logger.info("Prefetching #{inspect(url)}") diff --git a/lib/pleroma/web/activity_pub/publisher.ex b/lib/pleroma/web/activity_pub/publisher.ex index 24d101dc8..a6322e25a 100644 --- a/lib/pleroma/web/activity_pub/publisher.ex +++ b/lib/pleroma/web/activity_pub/publisher.ex @@ -85,7 +85,7 @@ def publish_one(%{inbox: inbox, json: json, actor: %User{} = actor, id: id} = pa end def publish_one(%{actor_id: actor_id} = params) do - actor = User.get_by_id(actor_id) + actor = User.get_cached_by_id(actor_id) params |> Map.delete(:actor_id) diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index b068d28a7..9437f9a16 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -15,14 +15,14 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do alias Pleroma.Web.ActivityPub.Utils alias Pleroma.Web.ActivityPub.Visibility alias Pleroma.Web.Federator - alias Pleroma.Workers.Transmogrifier, as: TransmogrifierWorker + alias Pleroma.Workers.TransmogrifierWorker import Ecto.Query require Logger require Pleroma.Constants - defdelegate worker_args(queue), to: Pleroma.Workers.Helper + import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] @doc """ Modifies an incoming AP object (mastodon format) to our internal format. diff --git a/lib/pleroma/web/federator/federator.ex b/lib/pleroma/web/federator/federator.ex index cf7e50fee..8f43066e3 100644 --- a/lib/pleroma/web/federator/federator.ex +++ b/lib/pleroma/web/federator/federator.ex @@ -12,13 +12,13 @@ defmodule Pleroma.Web.Federator do alias Pleroma.Web.Federator.Publisher alias Pleroma.Web.OStatus alias Pleroma.Web.Websub - alias Pleroma.Workers.Publisher, as: PublisherWorker - alias Pleroma.Workers.Receiver, as: ReceiverWorker - alias Pleroma.Workers.Subscriber, as: SubscriberWorker + alias Pleroma.Workers.PublisherWorker + alias Pleroma.Workers.ReceiverWorker + alias Pleroma.Workers.SubscriberWorker require Logger - defdelegate worker_args(queue), to: Pleroma.Workers.Helper + import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] def init do # To do: consider removing this call in favor of scheduled execution (`quantum`-based) diff --git a/lib/pleroma/web/federator/publisher.ex b/lib/pleroma/web/federator/publisher.ex index 05d2be615..42be109ab 100644 --- a/lib/pleroma/web/federator/publisher.ex +++ b/lib/pleroma/web/federator/publisher.ex @@ -6,7 +6,7 @@ defmodule Pleroma.Web.Federator.Publisher do alias Pleroma.Activity alias Pleroma.Config alias Pleroma.User - alias Pleroma.Workers.Publisher, as: PublisherWorker + alias Pleroma.Workers.PublisherWorker require Logger @@ -31,12 +31,7 @@ defmodule Pleroma.Web.Federator.Publisher do """ @spec enqueue_one(module(), Map.t()) :: :ok def enqueue_one(module, %{} = params) do - worker_args = - if max_attempts = Pleroma.Config.get([:workers, :retries, :federator_outgoing]) do - [max_attempts: max_attempts] - else - [] - end + worker_args = Pleroma.Workers.WorkerHelper.worker_args(:federator_outgoing) %{"op" => "publish_one", "module" => to_string(module), "params" => params} |> PublisherWorker.new(worker_args) diff --git a/lib/pleroma/web/oauth/token/clean_worker.ex b/lib/pleroma/web/oauth/token/clean_worker.ex index 943e73289..b150a68a7 100644 --- a/lib/pleroma/web/oauth/token/clean_worker.ex +++ b/lib/pleroma/web/oauth/token/clean_worker.ex @@ -20,7 +20,7 @@ defmodule Pleroma.Web.OAuth.Token.CleanWorker do alias Pleroma.Web.OAuth.Token alias Pleroma.Workers.BackgroundWorker - defdelegate worker_args(queue), to: Pleroma.Workers.Helper + import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] def start_link(_), do: GenServer.start_link(__MODULE__, %{}) diff --git a/lib/pleroma/web/push/push.ex b/lib/pleroma/web/push/push.ex index b4f0e5127..4973b529c 100644 --- a/lib/pleroma/web/push/push.ex +++ b/lib/pleroma/web/push/push.ex @@ -4,11 +4,11 @@ defmodule Pleroma.Web.Push do alias Pleroma.Repo - alias Pleroma.Workers.WebPusher + alias Pleroma.Workers.WebPusherWorker require Logger - defdelegate worker_args(queue), to: Pleroma.Workers.Helper + import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] def init do unless enabled() do @@ -36,7 +36,7 @@ def enabled do def send(notification) do %{"op" => "web_push", "notification_id" => notification.id} - |> WebPusher.new(worker_args(:web_push)) + |> WebPusherWorker.new(worker_args(:web_push)) |> Repo.insert() end end diff --git a/lib/pleroma/web/salmon/salmon.ex b/lib/pleroma/web/salmon/salmon.ex index bbaa293fd..8ba7380c0 100644 --- a/lib/pleroma/web/salmon/salmon.ex +++ b/lib/pleroma/web/salmon/salmon.ex @@ -171,7 +171,7 @@ def publish_one(%{recipient: url, feed: feed} = params) when is_binary(url) do end def publish_one(%{recipient_id: recipient_id} = params) do - recipient = User.get_by_id(recipient_id) + recipient = User.get_cached_by_id(recipient_id) params |> Map.delete(:recipient_id) diff --git a/lib/pleroma/workers/activity_expiration_worker.ex b/lib/pleroma/workers/activity_expiration_worker.ex new file mode 100644 index 000000000..0b491eabb --- /dev/null +++ b/lib/pleroma/workers/activity_expiration_worker.ex @@ -0,0 +1,21 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Workers.ActivityExpirationWorker do + # Note: `max_attempts` is intended to be overridden in `new/2` call + use Oban.Worker, + queue: "activity_expiration", + max_attempts: 1 + + @impl Oban.Worker + def perform( + %{ + "op" => "activity_expiration", + "activity_expiration_id" => activity_expiration_id + }, + _job + ) do + Pleroma.ActivityExpirationWorker.perform(:execute, activity_expiration_id) + end +end diff --git a/lib/pleroma/workers/background_worker.ex b/lib/pleroma/workers/background_worker.ex index fbce7d789..7b5575a5f 100644 --- a/lib/pleroma/workers/background_worker.ex +++ b/lib/pleroma/workers/background_worker.ex @@ -8,24 +8,24 @@ defmodule Pleroma.Workers.BackgroundWorker do alias Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy alias Pleroma.Web.OAuth.Token.CleanWorker - # Note: `max_attempts` is intended to be overridden in `new/1` call + # Note: `max_attempts` is intended to be overridden in `new/2` call use Oban.Worker, queue: "background", max_attempts: 1 @impl Oban.Worker def perform(%{"op" => "fetch_initial_posts", "user_id" => user_id}, _job) do - user = User.get_by_id(user_id) + user = User.get_cached_by_id(user_id) User.perform(:fetch_initial_posts, user) end def perform(%{"op" => "deactivate_user", "user_id" => user_id, "status" => status}, _job) do - user = User.get_by_id(user_id) + user = User.get_cached_by_id(user_id) User.perform(:deactivate_async, user, status) end def perform(%{"op" => "delete_user", "user_id" => user_id}, _job) do - user = User.get_by_id(user_id) + user = User.get_cached_by_id(user_id) User.perform(:delete, user) end @@ -37,7 +37,7 @@ def perform( }, _job ) do - blocker = User.get_by_id(blocker_id) + blocker = User.get_cached_by_id(blocker_id) User.perform(:blocks_import, blocker, blocked_identifiers) end @@ -49,7 +49,7 @@ def perform( }, _job ) do - follower = User.get_by_id(follower_id) + follower = User.get_cached_by_id(follower_id) User.perform(:follow_import, follower, followed_identifiers) end @@ -69,11 +69,4 @@ def perform(%{"op" => "fetch_data_for_activity", "activity_id" => activity_id}, activity = Activity.get_by_id(activity_id) Pleroma.Web.RichMedia.Helpers.perform(:fetch, activity) end - - def perform( - %{"op" => "activity_expiration", "activity_expiration_id" => activity_expiration_id}, - _job - ) do - Pleroma.ActivityExpirationWorker.perform(:execute, activity_expiration_id) - end end diff --git a/lib/pleroma/workers/helper.ex b/lib/pleroma/workers/helper.ex deleted file mode 100644 index 3286ce0e8..000000000 --- a/lib/pleroma/workers/helper.ex +++ /dev/null @@ -1,13 +0,0 @@ -# Pleroma: A lightweight social networking server -# Copyright © 2017-2019 Pleroma Authors -# SPDX-License-Identifier: AGPL-3.0-only - -defmodule Pleroma.Workers.Helper do - def worker_args(queue) do - if max_attempts = Pleroma.Config.get([:workers, :retries, queue]) do - [max_attempts: max_attempts] - else - [] - end - end -end diff --git a/lib/pleroma/workers/mailer.ex b/lib/pleroma/workers/mailer_worker.ex similarity index 58% rename from lib/pleroma/workers/mailer.ex rename to lib/pleroma/workers/mailer_worker.ex index 1cce2ea03..4f73d61bc 100644 --- a/lib/pleroma/workers/mailer.ex +++ b/lib/pleroma/workers/mailer_worker.ex @@ -2,26 +2,25 @@ # Copyright © 2017-2019 Pleroma Authors # SPDX-License-Identifier: AGPL-3.0-only -defmodule Pleroma.Workers.Mailer do +defmodule Pleroma.Workers.MailerWorker do alias Pleroma.User - # Note: `max_attempts` is intended to be overridden in `new/1` call + # Note: `max_attempts` is intended to be overridden in `new/2` call use Oban.Worker, queue: "mailer", max_attempts: 1 @impl Oban.Worker def perform(%{"op" => "email", "encoded_email" => encoded_email, "config" => config}, _job) do - email = - encoded_email - |> Base.decode64!() - |> :erlang.binary_to_term() - - Pleroma.Emails.Mailer.deliver(email, config) + encoded_email + |> Base.decode64!() + |> :erlang.binary_to_term() + |> Pleroma.Emails.Mailer.deliver(config) end def perform(%{"op" => "digest_email", "user_id" => user_id}, _job) do - user = User.get_by_id(user_id) - Pleroma.DigestEmailWorker.perform(user) + user_id + |> User.get_cached_by_id() + |> Pleroma.DigestEmailWorker.perform() end end diff --git a/lib/pleroma/workers/publisher.ex b/lib/pleroma/workers/publisher_worker.ex similarity index 76% rename from lib/pleroma/workers/publisher.ex rename to lib/pleroma/workers/publisher_worker.ex index 00fae99c7..5671d2a29 100644 --- a/lib/pleroma/workers/publisher.ex +++ b/lib/pleroma/workers/publisher_worker.ex @@ -2,15 +2,19 @@ # Copyright © 2017-2019 Pleroma Authors # SPDX-License-Identifier: AGPL-3.0-only -defmodule Pleroma.Workers.Publisher do +defmodule Pleroma.Workers.PublisherWorker do alias Pleroma.Activity alias Pleroma.Web.Federator - # Note: `max_attempts` is intended to be overridden in `new/1` call + # Note: `max_attempts` is intended to be overridden in `new/2` call use Oban.Worker, queue: "federator_outgoing", max_attempts: 1 + def backoff(attempt) when is_integer(attempt) do + Pleroma.Workers.WorkerHelper.sidekiq_backoff(attempt, 5) + end + @impl Oban.Worker def perform(%{"op" => "publish", "activity_id" => activity_id}, _job) do activity = Activity.get_by_id(activity_id) diff --git a/lib/pleroma/workers/receiver.ex b/lib/pleroma/workers/receiver_worker.ex similarity index 83% rename from lib/pleroma/workers/receiver.ex rename to lib/pleroma/workers/receiver_worker.ex index 4ee270d74..cdce630f2 100644 --- a/lib/pleroma/workers/receiver.ex +++ b/lib/pleroma/workers/receiver_worker.ex @@ -2,10 +2,10 @@ # Copyright © 2017-2019 Pleroma Authors # SPDX-License-Identifier: AGPL-3.0-only -defmodule Pleroma.Workers.Receiver do +defmodule Pleroma.Workers.ReceiverWorker do alias Pleroma.Web.Federator - # Note: `max_attempts` is intended to be overridden in `new/1` call + # Note: `max_attempts` is intended to be overridden in `new/2` call use Oban.Worker, queue: "federator_incoming", max_attempts: 1 diff --git a/lib/pleroma/workers/scheduled_activity_worker.ex b/lib/pleroma/workers/scheduled_activity_worker.ex index d9724c78a..4094411ae 100644 --- a/lib/pleroma/workers/scheduled_activity_worker.ex +++ b/lib/pleroma/workers/scheduled_activity_worker.ex @@ -3,7 +3,7 @@ # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Workers.ScheduledActivityWorker do - # Note: `max_attempts` is intended to be overridden in `new/1` call + # Note: `max_attempts` is intended to be overridden in `new/2` call use Oban.Worker, queue: "scheduled_activities", max_attempts: 1 diff --git a/lib/pleroma/workers/subscriber.ex b/lib/pleroma/workers/subscriber_worker.ex similarity index 88% rename from lib/pleroma/workers/subscriber.ex rename to lib/pleroma/workers/subscriber_worker.ex index e960b35bf..22d1dc956 100644 --- a/lib/pleroma/workers/subscriber.ex +++ b/lib/pleroma/workers/subscriber_worker.ex @@ -2,12 +2,12 @@ # Copyright © 2017-2019 Pleroma Authors # SPDX-License-Identifier: AGPL-3.0-only -defmodule Pleroma.Workers.Subscriber do +defmodule Pleroma.Workers.SubscriberWorker do alias Pleroma.Repo alias Pleroma.Web.Federator alias Pleroma.Web.Websub - # Note: `max_attempts` is intended to be overridden in `new/1` call + # Note: `max_attempts` is intended to be overridden in `new/2` call use Oban.Worker, queue: "federator_outgoing", max_attempts: 1 diff --git a/lib/pleroma/workers/transmogrifier.ex b/lib/pleroma/workers/transmogrifier_worker.ex similarity index 73% rename from lib/pleroma/workers/transmogrifier.ex rename to lib/pleroma/workers/transmogrifier_worker.ex index e13202c06..6f5c1a2f2 100644 --- a/lib/pleroma/workers/transmogrifier.ex +++ b/lib/pleroma/workers/transmogrifier_worker.ex @@ -2,17 +2,17 @@ # Copyright © 2017-2019 Pleroma Authors # SPDX-License-Identifier: AGPL-3.0-only -defmodule Pleroma.Workers.Transmogrifier do +defmodule Pleroma.Workers.TransmogrifierWorker do alias Pleroma.User - # Note: `max_attempts` is intended to be overridden in `new/1` call + # Note: `max_attempts` is intended to be overridden in `new/2` call use Oban.Worker, queue: "transmogrifier", max_attempts: 1 @impl Oban.Worker def perform(%{"op" => "user_upgrade", "user_id" => user_id}, _job) do - user = User.get_by_id(user_id) + user = User.get_cached_by_id(user_id) Pleroma.Web.ActivityPub.Transmogrifier.perform(:user_upgrade, user) end end diff --git a/lib/pleroma/workers/web_pusher.ex b/lib/pleroma/workers/web_pusher_worker.ex similarity index 82% rename from lib/pleroma/workers/web_pusher.ex rename to lib/pleroma/workers/web_pusher_worker.ex index 7b78bb3ea..2b1d3b99a 100644 --- a/lib/pleroma/workers/web_pusher.ex +++ b/lib/pleroma/workers/web_pusher_worker.ex @@ -2,11 +2,11 @@ # Copyright © 2017-2019 Pleroma Authors # SPDX-License-Identifier: AGPL-3.0-only -defmodule Pleroma.Workers.WebPusher do +defmodule Pleroma.Workers.WebPusherWorker do alias Pleroma.Notification alias Pleroma.Repo - # Note: `max_attempts` is intended to be overridden in `new/1` call + # Note: `max_attempts` is intended to be overridden in `new/2` call use Oban.Worker, queue: "web_push", max_attempts: 1 diff --git a/lib/pleroma/workers/worker_helper.ex b/lib/pleroma/workers/worker_helper.ex new file mode 100644 index 000000000..f9ed2e64d --- /dev/null +++ b/lib/pleroma/workers/worker_helper.ex @@ -0,0 +1,23 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Workers.WorkerHelper do + alias Pleroma.Config + + def worker_args(queue) do + case Config.get([:workers, :retries, queue]) do + nil -> [] + max_attempts -> [max_attempts: max_attempts] + end + end + + def sidekiq_backoff(attempt, pow \\ 4, base_backoff \\ 15) do + backoff = + :math.pow(attempt, pow) + + base_backoff + + :rand.uniform(2 * base_backoff) * attempt + + trunc(backoff) + end +end diff --git a/test/user_test.exs b/test/user_test.exs index 86232de99..0acd0db4e 100644 --- a/test/user_test.exs +++ b/test/user_test.exs @@ -1123,7 +1123,7 @@ test "it deletes a user, all follow relationships and all activities", %{user: u "id" => "pleroma:fakeid" } }, - all_enqueued(worker: Pleroma.Workers.Publisher) + all_enqueued(worker: Pleroma.Workers.PublisherWorker) ) end end diff --git a/test/web/activity_pub/activity_pub_controller_test.exs b/test/web/activity_pub/activity_pub_controller_test.exs index a1b567a46..f1c1bb503 100644 --- a/test/web/activity_pub/activity_pub_controller_test.exs +++ b/test/web/activity_pub/activity_pub_controller_test.exs @@ -17,7 +17,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do alias Pleroma.Web.ActivityPub.UserView alias Pleroma.Web.ActivityPub.Utils alias Pleroma.Web.CommonAPI - alias Pleroma.Workers.Receiver, as: ReceiverWorker + alias Pleroma.Workers.ReceiverWorker setup_all do Tesla.Mock.mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end) diff --git a/test/web/federator_test.exs b/test/web/federator_test.exs index 5724672fd..4096d4690 100644 --- a/test/web/federator_test.exs +++ b/test/web/federator_test.exs @@ -7,7 +7,7 @@ defmodule Pleroma.Web.FederatorTest do alias Pleroma.Tests.ObanHelpers alias Pleroma.Web.CommonAPI alias Pleroma.Web.Federator - alias Pleroma.Workers.Publisher, as: PublisherWorker + alias Pleroma.Workers.PublisherWorker use Pleroma.DataCase use Oban.Testing, repo: Pleroma.Repo diff --git a/test/web/websub/websub_test.exs b/test/web/websub/websub_test.exs index 414610879..929acf5a2 100644 --- a/test/web/websub/websub_test.exs +++ b/test/web/websub/websub_test.exs @@ -11,7 +11,7 @@ defmodule Pleroma.Web.WebsubTest do alias Pleroma.Web.Websub alias Pleroma.Web.Websub.WebsubClientSubscription alias Pleroma.Web.Websub.WebsubServerSubscription - alias Pleroma.Workers.Subscriber, as: SubscriberWorker + alias Pleroma.Workers.SubscriberWorker import Pleroma.Factory import Tesla.Mock From dd017c65a4b86501c435f5cb01804300e6b7c6dd Mon Sep 17 00:00:00 2001 From: Ivan Tashkinov Date: Sat, 31 Aug 2019 21:58:42 +0300 Subject: [PATCH 080/400] [#1149] Refactored Oban workers API (introduced `enqueue/3`). --- lib/pleroma/activity_expiration_worker.ex | 13 +++------ lib/pleroma/digest_email_worker.ex | 10 ++----- lib/pleroma/emails/mailer.ex | 7 +---- lib/pleroma/scheduled_activity_worker.ex | 10 +++---- lib/pleroma/user.ex | 28 +++++-------------- lib/pleroma/web/activity_pub/activity_pub.ex | 6 +--- .../mrf/mediaproxy_warming_policy.ex | 11 ++------ .../web/activity_pub/transmogrifier.ex | 6 +--- lib/pleroma/web/federator/federator.ex | 26 ++++------------- lib/pleroma/web/federator/publisher.ex | 9 +++--- lib/pleroma/web/oauth/token/clean_worker.ex | 7 +---- lib/pleroma/web/push/push.ex | 7 +---- .../workers/activity_expiration_worker.ex | 2 ++ lib/pleroma/workers/background_worker.ex | 2 ++ lib/pleroma/workers/digest_emails_worker.ex | 21 ++++++++++++++ lib/pleroma/workers/mailer_worker.ex | 10 ++----- lib/pleroma/workers/publisher_worker.ex | 2 ++ lib/pleroma/workers/receiver_worker.ex | 2 ++ .../workers/scheduled_activity_worker.ex | 2 ++ lib/pleroma/workers/subscriber_worker.ex | 2 ++ lib/pleroma/workers/transmogrifier_worker.ex | 2 ++ lib/pleroma/workers/web_pusher_worker.ex | 2 ++ lib/pleroma/workers/worker_helper.ex | 18 ++++++++++++ 23 files changed, 92 insertions(+), 113 deletions(-) create mode 100644 lib/pleroma/workers/digest_emails_worker.ex diff --git a/lib/pleroma/activity_expiration_worker.ex b/lib/pleroma/activity_expiration_worker.ex index 7aba7eece..c0820c202 100644 --- a/lib/pleroma/activity_expiration_worker.ex +++ b/lib/pleroma/activity_expiration_worker.ex @@ -9,14 +9,11 @@ defmodule Pleroma.ActivityExpirationWorker do alias Pleroma.Repo alias Pleroma.User alias Pleroma.Web.CommonAPI - alias Pleroma.Workers.ActivityExpirationWorker require Logger use GenServer import Ecto.Query - import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] - @schedule_interval :timer.minutes(1) def start_link(_) do @@ -53,12 +50,10 @@ def perform(:execute, expiration_id) do def handle_info(:perform, state) do ActivityExpiration.due_expirations(@schedule_interval) |> Enum.each(fn expiration -> - %{ - "op" => "activity_expiration", - "activity_expiration_id" => expiration.id - } - |> ActivityExpirationWorker.new(worker_args(:activity_expiration)) - |> Repo.insert() + Pleroma.Workers.ActivityExpirationWorker.enqueue( + "activity_expiration", + %{"activity_expiration_id" => expiration.id} + ) end) schedule_next() diff --git a/lib/pleroma/digest_email_worker.ex b/lib/pleroma/digest_email_worker.ex index 4ab2a4ef4..5be7cf26b 100644 --- a/lib/pleroma/digest_email_worker.ex +++ b/lib/pleroma/digest_email_worker.ex @@ -4,12 +4,10 @@ defmodule Pleroma.DigestEmailWorker do alias Pleroma.Repo - alias Pleroma.Workers.MailerWorker + alias Pleroma.Workers.DigestEmailsWorker import Ecto.Query - import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] - def perform do config = Pleroma.Config.get([:email_notifications, :digest]) negative_interval = -Map.fetch!(config, :interval) @@ -23,11 +21,9 @@ def perform do where: u.last_digest_emailed_at < datetime_add(^now, ^negative_interval, "day"), select: u ) - |> Pleroma.Repo.all() + |> Repo.all() |> Enum.each(fn user -> - %{"op" => "digest_email", "user_id" => user.id} - |> MailerWorker.new([queue: "digest_emails"] ++ worker_args(:digest_emails)) - |> Repo.insert() + DigestEmailsWorker.enqueue("digest_email", %{"user_id" => user.id}) end) end diff --git a/lib/pleroma/emails/mailer.ex b/lib/pleroma/emails/mailer.ex index 9cbe7313c..eb96f2e8b 100644 --- a/lib/pleroma/emails/mailer.ex +++ b/lib/pleroma/emails/mailer.ex @@ -9,7 +9,6 @@ defmodule Pleroma.Emails.Mailer do The module contains functions to delivery email using Swoosh.Mailer. """ - alias Pleroma.Repo alias Pleroma.Workers.MailerWorker alias Swoosh.DeliveryError @@ -19,8 +18,6 @@ defmodule Pleroma.Emails.Mailer do @spec enabled?() :: boolean() def enabled?, do: Pleroma.Config.get([__MODULE__, :enabled]) - import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] - @doc "add email to queue" def deliver_async(email, config \\ []) do encoded_email = @@ -28,9 +25,7 @@ def deliver_async(email, config \\ []) do |> :erlang.term_to_binary() |> Base.encode64() - %{"op" => "email", "encoded_email" => encoded_email, "config" => config} - |> MailerWorker.new(worker_args(:mailer)) - |> Repo.insert() + MailerWorker.enqueue("email", %{"encoded_email" => encoded_email, "config" => config}) end @doc "callback to perform send email from queue" diff --git a/lib/pleroma/scheduled_activity_worker.ex b/lib/pleroma/scheduled_activity_worker.ex index 8bf534f42..c41a542de 100644 --- a/lib/pleroma/scheduled_activity_worker.ex +++ b/lib/pleroma/scheduled_activity_worker.ex @@ -8,7 +8,6 @@ defmodule Pleroma.ScheduledActivityWorker do """ alias Pleroma.Config - alias Pleroma.Repo alias Pleroma.ScheduledActivity alias Pleroma.User alias Pleroma.Web.CommonAPI @@ -18,8 +17,6 @@ defmodule Pleroma.ScheduledActivityWorker do @schedule_interval :timer.minutes(1) - import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] - def start_link(_) do GenServer.start_link(__MODULE__, nil) end @@ -49,9 +46,10 @@ def perform(:execute, scheduled_activity_id) do def handle_info(:perform, state) do ScheduledActivity.due_activities(@schedule_interval) |> Enum.each(fn scheduled_activity -> - %{"op" => "execute", "activity_id" => scheduled_activity.id} - |> Pleroma.Workers.ScheduledActivityWorker.new(worker_args(:scheduled_activities)) - |> Repo.insert() + Pleroma.Workers.ScheduledActivityWorker.enqueue( + "execute", + %{"activity_id" => scheduled_activity.id} + ) end) schedule_next() diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index abfa063fb..2fe7e1748 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -41,8 +41,6 @@ defmodule Pleroma.User do @strict_local_nickname_regex ~r/^[a-zA-Z\d]+$/ @extended_local_nickname_regex ~r/^[a-zA-Z\d_-]+$/ - import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] - schema "users" do field(:bio, :string) field(:email, :string) @@ -623,9 +621,7 @@ def get_or_fetch_by_nickname(nickname) do @doc "Fetch some posts when the user has just been federated with" def fetch_initial_posts(user) do - %{"op" => "fetch_initial_posts", "user_id" => user.id} - |> BackgroundWorker.new(worker_args(:background)) - |> Repo.insert() + BackgroundWorker.enqueue("fetch_initial_posts", %{"user_id" => user.id}) end @spec get_followers_query(User.t(), pos_integer() | nil) :: Ecto.Query.t() @@ -1056,9 +1052,7 @@ def unblock_domain(user, domain) do end def deactivate_async(user, status \\ true) do - %{"op" => "deactivate_user", "user_id" => user.id, "status" => status} - |> BackgroundWorker.new(worker_args(:background)) - |> Repo.insert() + BackgroundWorker.enqueue("deactivate_user", %{"user_id" => user.id, "status" => status}) end def deactivate(%User{} = user, status \\ true) do @@ -1087,9 +1081,7 @@ def update_notification_settings(%User{} = user, settings \\ %{}) do end def delete(%User{} = user) do - %{"op" => "delete_user", "user_id" => user.id} - |> BackgroundWorker.new(worker_args(:background)) - |> Repo.insert() + BackgroundWorker.enqueue("delete_user", %{"user_id" => user.id}) end @spec perform(atom(), User.t()) :: {:ok, User.t()} @@ -1198,24 +1190,18 @@ def external_users(opts \\ []) do end def blocks_import(%User{} = blocker, blocked_identifiers) when is_list(blocked_identifiers) do - %{ - "op" => "blocks_import", + BackgroundWorker.enqueue("blocks_import", %{ "blocker_id" => blocker.id, "blocked_identifiers" => blocked_identifiers - } - |> BackgroundWorker.new(worker_args(:background)) - |> Repo.insert() + }) end def follow_import(%User{} = follower, followed_identifiers) when is_list(followed_identifiers) do - %{ - "op" => "follow_import", + BackgroundWorker.enqueue("follow_import", %{ "follower_id" => follower.id, "followed_identifiers" => followed_identifiers - } - |> BackgroundWorker.new(worker_args(:background)) - |> Repo.insert() + }) end def delete_user_activities(%User{ap_id: ap_id} = user) do diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 74c5eb91c..90b409606 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -26,8 +26,6 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do require Logger require Pleroma.Constants - import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] - # For Announce activities, we filter the recipients based on following status for any actors # that match actual users. See issue #164 for more information about why this is necessary. defp get_recipients(%{"type" => "Announce"} = data) do @@ -148,9 +146,7 @@ def insert(map, local \\ true, fake \\ false, bypass_actor_check \\ false) when activity end - %{"op" => "fetch_data_for_activity", "activity_id" => activity.id} - |> BackgroundWorker.new(worker_args(:background)) - |> Repo.insert() + BackgroundWorker.enqueue("fetch_data_for_activity", %{"activity_id" => activity.id}) Notification.create_notifications(activity) diff --git a/lib/pleroma/web/activity_pub/mrf/mediaproxy_warming_policy.ex b/lib/pleroma/web/activity_pub/mrf/mediaproxy_warming_policy.ex index 178321558..26b8539fe 100644 --- a/lib/pleroma/web/activity_pub/mrf/mediaproxy_warming_policy.ex +++ b/lib/pleroma/web/activity_pub/mrf/mediaproxy_warming_policy.ex @@ -7,7 +7,6 @@ defmodule Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy do @behaviour Pleroma.Web.ActivityPub.MRF alias Pleroma.HTTP - alias Pleroma.Repo alias Pleroma.Web.MediaProxy alias Pleroma.Workers.BackgroundWorker @@ -18,8 +17,6 @@ defmodule Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy do recv_timeout: 10_000 ] - import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] - def perform(:prefetch, url) do Logger.info("Prefetching #{inspect(url)}") @@ -34,9 +31,7 @@ def perform(:preload, %{"object" => %{"attachment" => attachments}} = _message) url |> Enum.each(fn %{"href" => href} -> - %{"op" => "media_proxy_prefetch", "url" => href} - |> BackgroundWorker.new(worker_args(:background)) - |> Repo.insert() + BackgroundWorker.enqueue("media_proxy_prefetch", %{"url" => href}) x -> Logger.debug("Unhandled attachment URL object #{inspect(x)}") @@ -52,9 +47,7 @@ def filter( %{"type" => "Create", "object" => %{"attachment" => attachments} = _object} = message ) when is_list(attachments) and length(attachments) > 0 do - %{"op" => "media_proxy_preload", "message" => message} - |> BackgroundWorker.new(worker_args(:background)) - |> Repo.insert() + BackgroundWorker.enqueue("media_proxy_preload", %{"message" => message}) {:ok, message} end diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 9437f9a16..f27455e8b 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -22,8 +22,6 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do require Logger require Pleroma.Constants - import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] - @doc """ Modifies an incoming AP object (mastodon format) to our internal format. """ @@ -1054,9 +1052,7 @@ def upgrade_user_from_ap_id(ap_id) do already_ap <- User.ap_enabled?(user), {:ok, user} <- user |> User.upgrade_changeset(data) |> User.update_and_set_cache() do unless already_ap do - %{"op" => "user_upgrade", "user_id" => user.id} - |> TransmogrifierWorker.new(worker_args(:transmogrifier)) - |> Repo.insert() + TransmogrifierWorker.enqueue("user_upgrade", %{"user_id" => user.id}) end {:ok, user} diff --git a/lib/pleroma/web/federator/federator.ex b/lib/pleroma/web/federator/federator.ex index 8f43066e3..1a2da014a 100644 --- a/lib/pleroma/web/federator/federator.ex +++ b/lib/pleroma/web/federator/federator.ex @@ -18,8 +18,6 @@ defmodule Pleroma.Web.Federator do require Logger - import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] - def init do # To do: consider removing this call in favor of scheduled execution (`quantum`-based) refresh_subscriptions(schedule_in: 60) @@ -40,15 +38,11 @@ def allowed_incoming_reply_depth?(depth) do # Client API def incoming_doc(doc) do - %{"op" => "incoming_doc", "body" => doc} - |> ReceiverWorker.new(worker_args(:federator_incoming)) - |> Pleroma.Repo.insert() + ReceiverWorker.enqueue("incoming_doc", %{"body" => doc}) end def incoming_ap_doc(params) do - %{"op" => "incoming_ap_doc", "params" => params} - |> ReceiverWorker.new(worker_args(:federator_incoming)) - |> Pleroma.Repo.insert() + ReceiverWorker.enqueue("incoming_ap_doc", %{"params" => params}) end def publish(%{id: "pleroma:fakeid"} = activity) do @@ -56,27 +50,19 @@ def publish(%{id: "pleroma:fakeid"} = activity) do end def publish(activity) do - %{"op" => "publish", "activity_id" => activity.id} - |> PublisherWorker.new(worker_args(:federator_outgoing)) - |> Pleroma.Repo.insert() + PublisherWorker.enqueue("publish", %{"activity_id" => activity.id}) end def verify_websub(websub) do - %{"op" => "verify_websub", "websub_id" => websub.id} - |> SubscriberWorker.new(worker_args(:federator_outgoing)) - |> Pleroma.Repo.insert() + SubscriberWorker.enqueue("verify_websub", %{"websub_id" => websub.id}) end def request_subscription(websub) do - %{"op" => "request_subscription", "websub_id" => websub.id} - |> SubscriberWorker.new(worker_args(:federator_outgoing)) - |> Pleroma.Repo.insert() + SubscriberWorker.enqueue("request_subscription", %{"websub_id" => websub.id}) end def refresh_subscriptions(worker_args \\ []) do - %{"op" => "refresh_subscriptions"} - |> SubscriberWorker.new(worker_args ++ [max_attempts: 1] ++ worker_args(:federator_outgoing)) - |> Pleroma.Repo.insert() + SubscriberWorker.enqueue("refresh_subscriptions", %{}, worker_args ++ [max_attempts: 1]) end # Job Worker Callbacks diff --git a/lib/pleroma/web/federator/publisher.ex b/lib/pleroma/web/federator/publisher.ex index 42be109ab..937064638 100644 --- a/lib/pleroma/web/federator/publisher.ex +++ b/lib/pleroma/web/federator/publisher.ex @@ -31,11 +31,10 @@ defmodule Pleroma.Web.Federator.Publisher do """ @spec enqueue_one(module(), Map.t()) :: :ok def enqueue_one(module, %{} = params) do - worker_args = Pleroma.Workers.WorkerHelper.worker_args(:federator_outgoing) - - %{"op" => "publish_one", "module" => to_string(module), "params" => params} - |> PublisherWorker.new(worker_args) - |> Pleroma.Repo.insert() + PublisherWorker.enqueue( + "publish_one", + %{"module" => to_string(module), "params" => params} + ) end @doc """ diff --git a/lib/pleroma/web/oauth/token/clean_worker.ex b/lib/pleroma/web/oauth/token/clean_worker.ex index b150a68a7..eb94bf86f 100644 --- a/lib/pleroma/web/oauth/token/clean_worker.ex +++ b/lib/pleroma/web/oauth/token/clean_worker.ex @@ -16,12 +16,9 @@ defmodule Pleroma.Web.OAuth.Token.CleanWorker do @one_day ) - alias Pleroma.Repo alias Pleroma.Web.OAuth.Token alias Pleroma.Workers.BackgroundWorker - import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] - def start_link(_), do: GenServer.start_link(__MODULE__, %{}) def init(_) do @@ -31,9 +28,7 @@ def init(_) do @doc false def handle_info(:perform, state) do - %{"op" => "clean_expired_tokens"} - |> BackgroundWorker.new(worker_args(:background)) - |> Repo.insert() + BackgroundWorker.enqueue("clean_expired_tokens", %{}) Process.send_after(self(), :perform, @interval) {:noreply, state} diff --git a/lib/pleroma/web/push/push.ex b/lib/pleroma/web/push/push.ex index 4973b529c..7ef1532ac 100644 --- a/lib/pleroma/web/push/push.ex +++ b/lib/pleroma/web/push/push.ex @@ -3,13 +3,10 @@ # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Web.Push do - alias Pleroma.Repo alias Pleroma.Workers.WebPusherWorker require Logger - import Pleroma.Workers.WorkerHelper, only: [worker_args: 1] - def init do unless enabled() do Logger.warn(""" @@ -35,8 +32,6 @@ def enabled do end def send(notification) do - %{"op" => "web_push", "notification_id" => notification.id} - |> WebPusherWorker.new(worker_args(:web_push)) - |> Repo.insert() + WebPusherWorker.enqueue("web_push", %{"notification_id" => notification.id}) end end diff --git a/lib/pleroma/workers/activity_expiration_worker.ex b/lib/pleroma/workers/activity_expiration_worker.ex index 0b491eabb..60dd3feba 100644 --- a/lib/pleroma/workers/activity_expiration_worker.ex +++ b/lib/pleroma/workers/activity_expiration_worker.ex @@ -8,6 +8,8 @@ defmodule Pleroma.Workers.ActivityExpirationWorker do queue: "activity_expiration", max_attempts: 1 + use Pleroma.Workers.WorkerHelper, queue: "activity_expiration" + @impl Oban.Worker def perform( %{ diff --git a/lib/pleroma/workers/background_worker.ex b/lib/pleroma/workers/background_worker.ex index 7b5575a5f..b9aef3a92 100644 --- a/lib/pleroma/workers/background_worker.ex +++ b/lib/pleroma/workers/background_worker.ex @@ -13,6 +13,8 @@ defmodule Pleroma.Workers.BackgroundWorker do queue: "background", max_attempts: 1 + use Pleroma.Workers.WorkerHelper, queue: "background" + @impl Oban.Worker def perform(%{"op" => "fetch_initial_posts", "user_id" => user_id}, _job) do user = User.get_cached_by_id(user_id) diff --git a/lib/pleroma/workers/digest_emails_worker.ex b/lib/pleroma/workers/digest_emails_worker.ex new file mode 100644 index 000000000..ca073ce67 --- /dev/null +++ b/lib/pleroma/workers/digest_emails_worker.ex @@ -0,0 +1,21 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Workers.DigestEmailsWorker do + alias Pleroma.User + + # Note: `max_attempts` is intended to be overridden in `new/2` call + use Oban.Worker, + queue: "digest_emails", + max_attempts: 1 + + use Pleroma.Workers.WorkerHelper, queue: "digest_emails" + + @impl Oban.Worker + def perform(%{"op" => "digest_email", "user_id" => user_id}, _job) do + user_id + |> User.get_cached_by_id() + |> Pleroma.DigestEmailWorker.perform() + end +end diff --git a/lib/pleroma/workers/mailer_worker.ex b/lib/pleroma/workers/mailer_worker.ex index 4f73d61bc..a4bd54a6c 100644 --- a/lib/pleroma/workers/mailer_worker.ex +++ b/lib/pleroma/workers/mailer_worker.ex @@ -3,13 +3,13 @@ # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Workers.MailerWorker do - alias Pleroma.User - # Note: `max_attempts` is intended to be overridden in `new/2` call use Oban.Worker, queue: "mailer", max_attempts: 1 + use Pleroma.Workers.WorkerHelper, queue: "mailer" + @impl Oban.Worker def perform(%{"op" => "email", "encoded_email" => encoded_email, "config" => config}, _job) do encoded_email @@ -17,10 +17,4 @@ def perform(%{"op" => "email", "encoded_email" => encoded_email, "config" => con |> :erlang.binary_to_term() |> Pleroma.Emails.Mailer.deliver(config) end - - def perform(%{"op" => "digest_email", "user_id" => user_id}, _job) do - user_id - |> User.get_cached_by_id() - |> Pleroma.DigestEmailWorker.perform() - end end diff --git a/lib/pleroma/workers/publisher_worker.ex b/lib/pleroma/workers/publisher_worker.ex index 5671d2a29..a3ac22635 100644 --- a/lib/pleroma/workers/publisher_worker.ex +++ b/lib/pleroma/workers/publisher_worker.ex @@ -11,6 +11,8 @@ defmodule Pleroma.Workers.PublisherWorker do queue: "federator_outgoing", max_attempts: 1 + use Pleroma.Workers.WorkerHelper, queue: "federator_outgoing" + def backoff(attempt) when is_integer(attempt) do Pleroma.Workers.WorkerHelper.sidekiq_backoff(attempt, 5) end diff --git a/lib/pleroma/workers/receiver_worker.ex b/lib/pleroma/workers/receiver_worker.ex index cdce630f2..3cc415ce4 100644 --- a/lib/pleroma/workers/receiver_worker.ex +++ b/lib/pleroma/workers/receiver_worker.ex @@ -10,6 +10,8 @@ defmodule Pleroma.Workers.ReceiverWorker do queue: "federator_incoming", max_attempts: 1 + use Pleroma.Workers.WorkerHelper, queue: "federator_incoming" + @impl Oban.Worker def perform(%{"op" => "incoming_doc", "body" => doc}, _job) do Federator.perform(:incoming_doc, doc) diff --git a/lib/pleroma/workers/scheduled_activity_worker.ex b/lib/pleroma/workers/scheduled_activity_worker.ex index 4094411ae..936bb64d3 100644 --- a/lib/pleroma/workers/scheduled_activity_worker.ex +++ b/lib/pleroma/workers/scheduled_activity_worker.ex @@ -8,6 +8,8 @@ defmodule Pleroma.Workers.ScheduledActivityWorker do queue: "scheduled_activities", max_attempts: 1 + use Pleroma.Workers.WorkerHelper, queue: "scheduled_activities" + @impl Oban.Worker def perform(%{"op" => "execute", "activity_id" => activity_id}, _job) do Pleroma.ScheduledActivityWorker.perform(:execute, activity_id) diff --git a/lib/pleroma/workers/subscriber_worker.ex b/lib/pleroma/workers/subscriber_worker.ex index 22d1dc956..4fb994554 100644 --- a/lib/pleroma/workers/subscriber_worker.ex +++ b/lib/pleroma/workers/subscriber_worker.ex @@ -12,6 +12,8 @@ defmodule Pleroma.Workers.SubscriberWorker do queue: "federator_outgoing", max_attempts: 1 + use Pleroma.Workers.WorkerHelper, queue: "federator_outgoing" + @impl Oban.Worker def perform(%{"op" => "refresh_subscriptions"}, _job) do Federator.perform(:refresh_subscriptions) diff --git a/lib/pleroma/workers/transmogrifier_worker.ex b/lib/pleroma/workers/transmogrifier_worker.ex index 6f5c1a2f2..6fecc2bf9 100644 --- a/lib/pleroma/workers/transmogrifier_worker.ex +++ b/lib/pleroma/workers/transmogrifier_worker.ex @@ -10,6 +10,8 @@ defmodule Pleroma.Workers.TransmogrifierWorker do queue: "transmogrifier", max_attempts: 1 + use Pleroma.Workers.WorkerHelper, queue: "transmogrifier" + @impl Oban.Worker def perform(%{"op" => "user_upgrade", "user_id" => user_id}, _job) do user = User.get_cached_by_id(user_id) diff --git a/lib/pleroma/workers/web_pusher_worker.ex b/lib/pleroma/workers/web_pusher_worker.ex index 2b1d3b99a..4c2591a5c 100644 --- a/lib/pleroma/workers/web_pusher_worker.ex +++ b/lib/pleroma/workers/web_pusher_worker.ex @@ -11,6 +11,8 @@ defmodule Pleroma.Workers.WebPusherWorker do queue: "web_push", max_attempts: 1 + use Pleroma.Workers.WorkerHelper, queue: "web_push" + @impl Oban.Worker def perform(%{"op" => "web_push", "notification_id" => notification_id}, _job) do notification = Repo.get(Notification, notification_id) diff --git a/lib/pleroma/workers/worker_helper.ex b/lib/pleroma/workers/worker_helper.ex index f9ed2e64d..b12f198d4 100644 --- a/lib/pleroma/workers/worker_helper.ex +++ b/lib/pleroma/workers/worker_helper.ex @@ -4,6 +4,7 @@ defmodule Pleroma.Workers.WorkerHelper do alias Pleroma.Config + alias Pleroma.Workers.WorkerHelper def worker_args(queue) do case Config.get([:workers, :retries, queue]) do @@ -20,4 +21,21 @@ def sidekiq_backoff(attempt, pow \\ 4, base_backoff \\ 15) do trunc(backoff) end + + defmacro __using__(opts) do + caller_module = __CALLER__.module + queue = Keyword.fetch!(opts, :queue) + + quote do + def enqueue(op, params, worker_args \\ []) do + params = Map.merge(%{"op" => op}, params) + queue_atom = String.to_atom(unquote(queue)) + worker_args = worker_args ++ WorkerHelper.worker_args(queue_atom) + + unquote(caller_module) + |> apply(:new, [params, worker_args]) + |> Pleroma.Repo.insert() + end + end + end end From 9c96b17e16a4911d3e20149e1b54b12baaf71617 Mon Sep 17 00:00:00 2001 From: Maxim Filippov Date: Sun, 1 Sep 2019 21:23:30 +0300 Subject: [PATCH 081/400] Add pagination to logs --- lib/pleroma/moderation_log.ex | 29 +++++++++++++------ .../admin_api/views/moderation_log_view.ex | 5 +++- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/lib/pleroma/moderation_log.ex b/lib/pleroma/moderation_log.ex index 89a5e13c3..352cad433 100644 --- a/lib/pleroma/moderation_log.ex +++ b/lib/pleroma/moderation_log.ex @@ -15,12 +15,18 @@ defmodule Pleroma.ModerationLog do end def get_all(params) do - params - |> get_all_query() - |> maybe_filter_by_date(params) - |> maybe_filter_by_user(params) - |> maybe_filter_by_search(params) - |> Repo.all() + base_query = + get_all_query() + |> maybe_filter_by_date(params) + |> maybe_filter_by_user(params) + |> maybe_filter_by_search(params) + + query_with_pagination = base_query |> paginate_query(params) + + %{ + items: Repo.all(query_with_pagination), + count: Repo.aggregate(base_query, :count, :id) + } end defp maybe_filter_by_date(query, %{start_date: nil, end_date: nil}), do: query @@ -61,14 +67,19 @@ defp maybe_filter_by_search(query, %{search: search}) do ) end - defp get_all_query(%{page: page, page_size: page_size}) do - from(q in __MODULE__, - order_by: [desc: q.inserted_at], + defp paginate_query(query, %{page: page, page_size: page_size}) do + from(q in query, limit: ^page_size, offset: ^((page - 1) * page_size) ) end + defp get_all_query do + from(q in __MODULE__, + order_by: [desc: q.inserted_at] + ) + end + defp parse_datetime(datetime) do {:ok, parsed_datetime, _} = DateTime.from_iso8601(datetime) diff --git a/lib/pleroma/web/admin_api/views/moderation_log_view.ex b/lib/pleroma/web/admin_api/views/moderation_log_view.ex index b3fc7cfe5..e7752d1f3 100644 --- a/lib/pleroma/web/admin_api/views/moderation_log_view.ex +++ b/lib/pleroma/web/admin_api/views/moderation_log_view.ex @@ -8,7 +8,10 @@ defmodule Pleroma.Web.AdminAPI.ModerationLogView do alias Pleroma.ModerationLog def render("index.json", %{log: log}) do - render_many(log, __MODULE__, "show.json", as: :log_entry) + %{ + items: render_many(log.items, __MODULE__, "show.json", as: :log_entry), + total: log.count + } end def render("show.json", %{log_entry: log_entry}) do From c5ffbfb8d547199f2345e28f085dd12e8b443f21 Mon Sep 17 00:00:00 2001 From: Maxim Filippov Date: Sun, 1 Sep 2019 21:25:55 +0300 Subject: [PATCH 082/400] Changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fdcb014a..0d44944eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -95,6 +95,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Mix Tasks: `mix pleroma.database fix_likes_collections` - Federation: Remove `likes` from objects. - Admin API: Added moderation log +- Admin API: Added moderation log filters (user/start date/end date/search/pagination) ### Changed - Configuration: Filter.AnonymizeFilename added ability to retain file extension with custom text From 6c2fd1b78bbbb4486a5dddeffa053199ba8cc015 Mon Sep 17 00:00:00 2001 From: Maxim Filippov Date: Sun, 1 Sep 2019 21:38:15 +0300 Subject: [PATCH 083/400] Fix tests --- .../admin_api/admin_api_controller_test.exs | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/test/web/admin_api/admin_api_controller_test.exs b/test/web/admin_api/admin_api_controller_test.exs index eaf847b25..b87fffc34 100644 --- a/test/web/admin_api/admin_api_controller_test.exs +++ b/test/web/admin_api/admin_api_controller_test.exs @@ -2286,9 +2286,9 @@ test "returns the log", %{conn: conn, admin: admin} do conn = get(conn, "/api/pleroma/admin/moderation_log") response = json_response(conn, 200) - [first_entry, second_entry] = response + [first_entry, second_entry] = response["items"] - assert response |> length() == 2 + assert response["total"] == 2 assert first_entry["data"]["action"] == "relay_unfollow" assert first_entry["message"] == @@ -2330,9 +2330,10 @@ test "returns the log with pagination", %{conn: conn, admin: admin} do conn1 = get(conn, "/api/pleroma/admin/moderation_log?page_size=1&page=1") response1 = json_response(conn1, 200) - [first_entry] = response1 + [first_entry] = response1["items"] - assert response1 |> length() == 1 + assert response1["total"] == 2 + assert response1["items"] |> length() == 1 assert first_entry["data"]["action"] == "relay_unfollow" assert first_entry["message"] == @@ -2341,9 +2342,10 @@ test "returns the log with pagination", %{conn: conn, admin: admin} do conn2 = get(conn, "/api/pleroma/admin/moderation_log?page_size=1&page=2") response2 = json_response(conn2, 200) - [second_entry] = response2 + [second_entry] = response2["items"] - assert response2 |> length() == 1 + assert response2["total"] == 2 + assert response2["items"] |> length() == 1 assert second_entry["data"]["action"] == "relay_follow" assert second_entry["message"] == @@ -2387,9 +2389,9 @@ test "filters log by date", %{conn: conn, admin: admin} do ) response1 = json_response(conn1, 200) - [first_entry] = response1 + [first_entry] = response1["items"] - assert response1 |> length() == 1 + assert response1["total"] == 1 assert first_entry["data"]["action"] == "relay_unfollow" assert first_entry["message"] == @@ -2424,9 +2426,9 @@ test "returns log filtered by user", %{conn: conn, admin: admin, moderator: mode conn1 = get(conn, "/api/pleroma/admin/moderation_log?user_id=#{moderator.id}") response1 = json_response(conn1, 200) - [first_entry] = response1 + [first_entry] = response1["items"] - assert response1 |> length() == 1 + assert response1["total"] == 1 assert get_in(first_entry, ["data", "actor", "id"]) == moderator.id end @@ -2446,9 +2448,9 @@ test "returns log filtered by search", %{conn: conn, moderator: moderator} do conn1 = get(conn, "/api/pleroma/admin/moderation_log?search=unfo") response1 = json_response(conn1, 200) - [first_entry] = response1 + [first_entry] = response1["items"] - assert response1 |> length() == 1 + assert response1["total"] == 1 assert get_in(first_entry, ["data", "message"]) == "@#{moderator.nickname} unfollowed relay: https://example.org/relay" From 35ef470d000c53e21c6f867d53ca3a83260d93b8 Mon Sep 17 00:00:00 2001 From: Sadposter Date: Mon, 2 Sep 2019 12:15:21 +0100 Subject: [PATCH 084/400] truncate fields for remote users instead --- lib/pleroma/user/info.ex | 7 +++++++ test/user_test.exs | 17 +++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/lib/pleroma/user/info.ex b/lib/pleroma/user/info.ex index 779bfbc18..0beb2f721 100644 --- a/lib/pleroma/user/info.ex +++ b/lib/pleroma/user/info.ex @@ -242,6 +242,7 @@ def set_keys(info, keys) do end def remote_user_creation(info, params) do + params = Map.put(params, "fields", Enum.map(params["fields"], &truncate_field/1)) info |> cast(params, [ :ap_enabled, @@ -326,6 +327,12 @@ defp valid_field?(%{"name" => name, "value" => value}) do defp valid_field?(_), do: false + defp truncate_field(%{"name" => name, "value" => value}) do + {name, _chopped} = String.split_at(name, Pleroma.Config.get([:instance, :account_field_name_length], 255)) + {value, _chopped} = String.split_at(value, Pleroma.Config.get([:instance, :account_field_value_length], 255)) + %{"name" => name, "value" => value} + end + @spec confirmation_changeset(Info.t(), keyword()) :: Changeset.t() def confirmation_changeset(info, opts) do need_confirmation? = Keyword.get(opts, :need_confirmation) diff --git a/test/user_test.exs b/test/user_test.exs index 2cbc1f525..68a469fe3 100644 --- a/test/user_test.exs +++ b/test/user_test.exs @@ -1117,11 +1117,20 @@ test "get_public_key_for_ap_id fetches a user that's not in the db" do assert {:ok, _key} = User.get_public_key_for_ap_id("http://mastodon.example.org/users/admin") end - test "insert or update a user from given data" do - user = insert(:user, %{nickname: "nick@name.de"}) - data = %{ap_id: user.ap_id <> "xxx", name: user.name, nickname: user.nickname} + describe "insert or update a user from given data" do + test "with normal data" do + user = insert(:user, %{nickname: "nick@name.de"}) + data = %{ap_id: user.ap_id <> "xxx", name: user.name, nickname: user.nickname} - assert {:ok, %User{}} = User.insert_or_update_user(data) + assert {:ok, %User{}} = User.insert_or_update_user(data) + end + + test "with overly long fields" do + current_max_length = Pleroma.Config.get([:instance, :account_field_value_length], 255) + user = insert(:user, nickname: "nickname@supergood.domain") + data = %{ap_id: user.ap_id, info: %{ fields: [%{"name" => "myfield", "value" => String.duplicate("h", current_max_length + 1)}] }} + assert {:ok, %User{}} = User.insert_or_update_user(data) + end end describe "per-user rich-text filtering" do From 05c935c3961e4c1a20c7713611920318d45d4b57 Mon Sep 17 00:00:00 2001 From: Sadposter Date: Mon, 2 Sep 2019 12:15:40 +0100 Subject: [PATCH 085/400] mix format --- lib/pleroma/user/info.ex | 9 +++++++-- test/user_test.exs | 23 ++++++++++++++++------- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/lib/pleroma/user/info.ex b/lib/pleroma/user/info.ex index 0beb2f721..ca1282d02 100644 --- a/lib/pleroma/user/info.ex +++ b/lib/pleroma/user/info.ex @@ -243,6 +243,7 @@ def set_keys(info, keys) do def remote_user_creation(info, params) do params = Map.put(params, "fields", Enum.map(params["fields"], &truncate_field/1)) + info |> cast(params, [ :ap_enabled, @@ -328,8 +329,12 @@ defp valid_field?(%{"name" => name, "value" => value}) do defp valid_field?(_), do: false defp truncate_field(%{"name" => name, "value" => value}) do - {name, _chopped} = String.split_at(name, Pleroma.Config.get([:instance, :account_field_name_length], 255)) - {value, _chopped} = String.split_at(value, Pleroma.Config.get([:instance, :account_field_value_length], 255)) + {name, _chopped} = + String.split_at(name, Pleroma.Config.get([:instance, :account_field_name_length], 255)) + + {value, _chopped} = + String.split_at(value, Pleroma.Config.get([:instance, :account_field_value_length], 255)) + %{"name" => name, "value" => value} end diff --git a/test/user_test.exs b/test/user_test.exs index 68a469fe3..0ca310331 100644 --- a/test/user_test.exs +++ b/test/user_test.exs @@ -1119,17 +1119,26 @@ test "get_public_key_for_ap_id fetches a user that's not in the db" do describe "insert or update a user from given data" do test "with normal data" do - user = insert(:user, %{nickname: "nick@name.de"}) - data = %{ap_id: user.ap_id <> "xxx", name: user.name, nickname: user.nickname} + user = insert(:user, %{nickname: "nick@name.de"}) + data = %{ap_id: user.ap_id <> "xxx", name: user.name, nickname: user.nickname} - assert {:ok, %User{}} = User.insert_or_update_user(data) + assert {:ok, %User{}} = User.insert_or_update_user(data) end test "with overly long fields" do - current_max_length = Pleroma.Config.get([:instance, :account_field_value_length], 255) - user = insert(:user, nickname: "nickname@supergood.domain") - data = %{ap_id: user.ap_id, info: %{ fields: [%{"name" => "myfield", "value" => String.duplicate("h", current_max_length + 1)}] }} - assert {:ok, %User{}} = User.insert_or_update_user(data) + current_max_length = Pleroma.Config.get([:instance, :account_field_value_length], 255) + user = insert(:user, nickname: "nickname@supergood.domain") + + data = %{ + ap_id: user.ap_id, + info: %{ + fields: [ + %{"name" => "myfield", "value" => String.duplicate("h", current_max_length + 1)} + ] + } + } + + assert {:ok, %User{}} = User.insert_or_update_user(data) end end From d0f07e55d28d25684130cb1090d0bdbb48807548 Mon Sep 17 00:00:00 2001 From: Sadposter Date: Mon, 2 Sep 2019 12:31:23 +0100 Subject: [PATCH 086/400] use atom key for fields --- lib/pleroma/user/info.ex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/user/info.ex b/lib/pleroma/user/info.ex index ca1282d02..151e025de 100644 --- a/lib/pleroma/user/info.ex +++ b/lib/pleroma/user/info.ex @@ -242,7 +242,12 @@ def set_keys(info, keys) do end def remote_user_creation(info, params) do - params = Map.put(params, "fields", Enum.map(params["fields"], &truncate_field/1)) + params = + if Map.has_key?(params, :fields) do + Map.put(params, :fields, Enum.map(params[:fields], &truncate_field/1)) + else + params + end info |> cast(params, [ From e73685834c1797404c943f66417ffa30add87e04 Mon Sep 17 00:00:00 2001 From: Sadposter Date: Mon, 2 Sep 2019 12:35:55 +0100 Subject: [PATCH 087/400] add mandatory fields for user update --- test/user_test.exs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/user_test.exs b/test/user_test.exs index 0ca310331..92a48f630 100644 --- a/test/user_test.exs +++ b/test/user_test.exs @@ -1131,6 +1131,8 @@ test "with overly long fields" do data = %{ ap_id: user.ap_id, + name: user.name, + nickname: user.nickname, info: %{ fields: [ %{"name" => "myfield", "value" => String.duplicate("h", current_max_length + 1)} From b49085c156a6a4449c95c2c315f6250317122735 Mon Sep 17 00:00:00 2001 From: Ivan Tashkinov Date: Mon, 2 Sep 2019 14:57:40 +0300 Subject: [PATCH 088/400] [#1149] Refactoring: GenServer workers renamed to daemons, `use Oban.Worker` moved to helper. --- config/config.exs | 2 +- lib/pleroma/application.ex | 4 ++-- .../activity_expiration_daemon.ex} | 2 +- .../digest_email_daemon.ex} | 2 +- .../scheduled_activity_daemon.ex} | 2 +- lib/pleroma/workers/activity_expiration_worker.ex | 7 +------ lib/pleroma/workers/background_worker.ex | 5 ----- lib/pleroma/workers/digest_emails_worker.ex | 7 +------ lib/pleroma/workers/mailer_worker.ex | 5 ----- lib/pleroma/workers/publisher_worker.ex | 5 ----- lib/pleroma/workers/receiver_worker.ex | 5 ----- lib/pleroma/workers/scheduled_activity_worker.ex | 7 +------ lib/pleroma/workers/subscriber_worker.ex | 5 ----- lib/pleroma/workers/transmogrifier_worker.ex | 5 ----- lib/pleroma/workers/web_pusher_worker.ex | 5 ----- lib/pleroma/workers/worker_helper.ex | 5 +++++ .../activity_expiration_daemon_test.exs} | 2 +- .../digest_email_daemon_test.exs} | 6 +++--- .../scheduled_activity_daemon_test.exs} | 4 ++-- 19 files changed, 20 insertions(+), 65 deletions(-) rename lib/pleroma/{activity_expiration_worker.ex => daemons/activity_expiration_daemon.ex} (96%) rename lib/pleroma/{digest_email_worker.ex => daemons/digest_email_daemon.ex} (96%) rename lib/pleroma/{scheduled_activity_worker.ex => daemons/scheduled_activity_daemon.ex} (96%) rename test/{activity_expiration_worker_test.exs => daemons/activity_expiration_daemon_test.exs} (86%) rename test/{web/digest_email_worker_test.exs => daemons/digest_email_daemon_test.exs} (88%) rename test/{scheduled_activity_worker_test.exs => daemons/scheduled_activity_daemon_test.exs} (82%) diff --git a/config/config.exs b/config/config.exs index 6fb4a0969..b742a650d 100644 --- a/config/config.exs +++ b/config/config.exs @@ -54,7 +54,7 @@ scheduled_jobs = with digest_config <- Application.get_env(:pleroma, :email_notifications)[:digest], true <- digest_config[:active] do - [{digest_config[:schedule], {Pleroma.DigestEmailWorker, :perform, []}}] + [{digest_config[:schedule], {Pleroma.Daemons.DigestEmailDaemon, :perform, []}}] else _ -> [] end diff --git a/lib/pleroma/application.ex b/lib/pleroma/application.ex index f8f866dbd..0c27027a0 100644 --- a/lib/pleroma/application.ex +++ b/lib/pleroma/application.ex @@ -36,8 +36,8 @@ def start(_type, _args) do Pleroma.Emoji, Pleroma.Captcha, Pleroma.FlakeId, - Pleroma.ScheduledActivityWorker, - Pleroma.ActivityExpirationWorker + Pleroma.Daemons.ScheduledActivityDaemon, + Pleroma.Daemons.ActivityExpirationDaemon ] ++ cachex_children() ++ hackney_pool_children() ++ diff --git a/lib/pleroma/activity_expiration_worker.ex b/lib/pleroma/daemons/activity_expiration_daemon.ex similarity index 96% rename from lib/pleroma/activity_expiration_worker.ex rename to lib/pleroma/daemons/activity_expiration_daemon.ex index c0820c202..cab7628c4 100644 --- a/lib/pleroma/activity_expiration_worker.ex +++ b/lib/pleroma/daemons/activity_expiration_daemon.ex @@ -2,7 +2,7 @@ # Copyright © 2019 Pleroma Authors # SPDX-License-Identifier: AGPL-3.0-only -defmodule Pleroma.ActivityExpirationWorker do +defmodule Pleroma.Daemons.ActivityExpirationDaemon do alias Pleroma.Activity alias Pleroma.ActivityExpiration alias Pleroma.Config diff --git a/lib/pleroma/digest_email_worker.ex b/lib/pleroma/daemons/digest_email_daemon.ex similarity index 96% rename from lib/pleroma/digest_email_worker.ex rename to lib/pleroma/daemons/digest_email_daemon.ex index 5be7cf26b..462ad2c55 100644 --- a/lib/pleroma/digest_email_worker.ex +++ b/lib/pleroma/daemons/digest_email_daemon.ex @@ -2,7 +2,7 @@ # Copyright © 2017-2019 Pleroma Authors # SPDX-License-Identifier: AGPL-3.0-only -defmodule Pleroma.DigestEmailWorker do +defmodule Pleroma.Daemons.DigestEmailDaemon do alias Pleroma.Repo alias Pleroma.Workers.DigestEmailsWorker diff --git a/lib/pleroma/scheduled_activity_worker.ex b/lib/pleroma/daemons/scheduled_activity_daemon.ex similarity index 96% rename from lib/pleroma/scheduled_activity_worker.ex rename to lib/pleroma/daemons/scheduled_activity_daemon.ex index c41a542de..aee5f723a 100644 --- a/lib/pleroma/scheduled_activity_worker.ex +++ b/lib/pleroma/daemons/scheduled_activity_daemon.ex @@ -2,7 +2,7 @@ # Copyright © 2017-2019 Pleroma Authors # SPDX-License-Identifier: AGPL-3.0-only -defmodule Pleroma.ScheduledActivityWorker do +defmodule Pleroma.Daemons.ScheduledActivityDaemon do @moduledoc """ Sends scheduled activities to the job queue. """ diff --git a/lib/pleroma/workers/activity_expiration_worker.ex b/lib/pleroma/workers/activity_expiration_worker.ex index 60dd3feba..4e3e4195f 100644 --- a/lib/pleroma/workers/activity_expiration_worker.ex +++ b/lib/pleroma/workers/activity_expiration_worker.ex @@ -3,11 +3,6 @@ # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Workers.ActivityExpirationWorker do - # Note: `max_attempts` is intended to be overridden in `new/2` call - use Oban.Worker, - queue: "activity_expiration", - max_attempts: 1 - use Pleroma.Workers.WorkerHelper, queue: "activity_expiration" @impl Oban.Worker @@ -18,6 +13,6 @@ def perform( }, _job ) do - Pleroma.ActivityExpirationWorker.perform(:execute, activity_expiration_id) + Pleroma.Daemons.ActivityExpirationDaemon.perform(:execute, activity_expiration_id) end end diff --git a/lib/pleroma/workers/background_worker.ex b/lib/pleroma/workers/background_worker.ex index b9aef3a92..082f20ab7 100644 --- a/lib/pleroma/workers/background_worker.ex +++ b/lib/pleroma/workers/background_worker.ex @@ -8,11 +8,6 @@ defmodule Pleroma.Workers.BackgroundWorker do alias Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy alias Pleroma.Web.OAuth.Token.CleanWorker - # Note: `max_attempts` is intended to be overridden in `new/2` call - use Oban.Worker, - queue: "background", - max_attempts: 1 - use Pleroma.Workers.WorkerHelper, queue: "background" @impl Oban.Worker diff --git a/lib/pleroma/workers/digest_emails_worker.ex b/lib/pleroma/workers/digest_emails_worker.ex index ca073ce67..3e5a836d0 100644 --- a/lib/pleroma/workers/digest_emails_worker.ex +++ b/lib/pleroma/workers/digest_emails_worker.ex @@ -5,17 +5,12 @@ defmodule Pleroma.Workers.DigestEmailsWorker do alias Pleroma.User - # Note: `max_attempts` is intended to be overridden in `new/2` call - use Oban.Worker, - queue: "digest_emails", - max_attempts: 1 - use Pleroma.Workers.WorkerHelper, queue: "digest_emails" @impl Oban.Worker def perform(%{"op" => "digest_email", "user_id" => user_id}, _job) do user_id |> User.get_cached_by_id() - |> Pleroma.DigestEmailWorker.perform() + |> Pleroma.Daemons.DigestEmailDaemon.perform() end end diff --git a/lib/pleroma/workers/mailer_worker.ex b/lib/pleroma/workers/mailer_worker.ex index a4bd54a6c..1b7a0eb3e 100644 --- a/lib/pleroma/workers/mailer_worker.ex +++ b/lib/pleroma/workers/mailer_worker.ex @@ -3,11 +3,6 @@ # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Workers.MailerWorker do - # Note: `max_attempts` is intended to be overridden in `new/2` call - use Oban.Worker, - queue: "mailer", - max_attempts: 1 - use Pleroma.Workers.WorkerHelper, queue: "mailer" @impl Oban.Worker diff --git a/lib/pleroma/workers/publisher_worker.ex b/lib/pleroma/workers/publisher_worker.ex index a3ac22635..455f7fc7e 100644 --- a/lib/pleroma/workers/publisher_worker.ex +++ b/lib/pleroma/workers/publisher_worker.ex @@ -6,11 +6,6 @@ defmodule Pleroma.Workers.PublisherWorker do alias Pleroma.Activity alias Pleroma.Web.Federator - # Note: `max_attempts` is intended to be overridden in `new/2` call - use Oban.Worker, - queue: "federator_outgoing", - max_attempts: 1 - use Pleroma.Workers.WorkerHelper, queue: "federator_outgoing" def backoff(attempt) when is_integer(attempt) do diff --git a/lib/pleroma/workers/receiver_worker.ex b/lib/pleroma/workers/receiver_worker.ex index 3cc415ce4..83d528a66 100644 --- a/lib/pleroma/workers/receiver_worker.ex +++ b/lib/pleroma/workers/receiver_worker.ex @@ -5,11 +5,6 @@ defmodule Pleroma.Workers.ReceiverWorker do alias Pleroma.Web.Federator - # Note: `max_attempts` is intended to be overridden in `new/2` call - use Oban.Worker, - queue: "federator_incoming", - max_attempts: 1 - use Pleroma.Workers.WorkerHelper, queue: "federator_incoming" @impl Oban.Worker diff --git a/lib/pleroma/workers/scheduled_activity_worker.ex b/lib/pleroma/workers/scheduled_activity_worker.ex index 936bb64d3..ca7d53af1 100644 --- a/lib/pleroma/workers/scheduled_activity_worker.ex +++ b/lib/pleroma/workers/scheduled_activity_worker.ex @@ -3,15 +3,10 @@ # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Workers.ScheduledActivityWorker do - # Note: `max_attempts` is intended to be overridden in `new/2` call - use Oban.Worker, - queue: "scheduled_activities", - max_attempts: 1 - use Pleroma.Workers.WorkerHelper, queue: "scheduled_activities" @impl Oban.Worker def perform(%{"op" => "execute", "activity_id" => activity_id}, _job) do - Pleroma.ScheduledActivityWorker.perform(:execute, activity_id) + Pleroma.Daemons.ScheduledActivityDaemon.perform(:execute, activity_id) end end diff --git a/lib/pleroma/workers/subscriber_worker.ex b/lib/pleroma/workers/subscriber_worker.ex index 4fb994554..fc490e300 100644 --- a/lib/pleroma/workers/subscriber_worker.ex +++ b/lib/pleroma/workers/subscriber_worker.ex @@ -7,11 +7,6 @@ defmodule Pleroma.Workers.SubscriberWorker do alias Pleroma.Web.Federator alias Pleroma.Web.Websub - # Note: `max_attempts` is intended to be overridden in `new/2` call - use Oban.Worker, - queue: "federator_outgoing", - max_attempts: 1 - use Pleroma.Workers.WorkerHelper, queue: "federator_outgoing" @impl Oban.Worker diff --git a/lib/pleroma/workers/transmogrifier_worker.ex b/lib/pleroma/workers/transmogrifier_worker.ex index 6fecc2bf9..b581a2f86 100644 --- a/lib/pleroma/workers/transmogrifier_worker.ex +++ b/lib/pleroma/workers/transmogrifier_worker.ex @@ -5,11 +5,6 @@ defmodule Pleroma.Workers.TransmogrifierWorker do alias Pleroma.User - # Note: `max_attempts` is intended to be overridden in `new/2` call - use Oban.Worker, - queue: "transmogrifier", - max_attempts: 1 - use Pleroma.Workers.WorkerHelper, queue: "transmogrifier" @impl Oban.Worker diff --git a/lib/pleroma/workers/web_pusher_worker.ex b/lib/pleroma/workers/web_pusher_worker.ex index 4c2591a5c..bea2baffb 100644 --- a/lib/pleroma/workers/web_pusher_worker.ex +++ b/lib/pleroma/workers/web_pusher_worker.ex @@ -6,11 +6,6 @@ defmodule Pleroma.Workers.WebPusherWorker do alias Pleroma.Notification alias Pleroma.Repo - # Note: `max_attempts` is intended to be overridden in `new/2` call - use Oban.Worker, - queue: "web_push", - max_attempts: 1 - use Pleroma.Workers.WorkerHelper, queue: "web_push" @impl Oban.Worker diff --git a/lib/pleroma/workers/worker_helper.ex b/lib/pleroma/workers/worker_helper.ex index b12f198d4..358efa14a 100644 --- a/lib/pleroma/workers/worker_helper.ex +++ b/lib/pleroma/workers/worker_helper.ex @@ -27,6 +27,11 @@ defmacro __using__(opts) do queue = Keyword.fetch!(opts, :queue) quote do + # Note: `max_attempts` is intended to be overridden in `new/2` call + use Oban.Worker, + queue: unquote(queue), + max_attempts: 1 + def enqueue(op, params, worker_args \\ []) do params = Map.merge(%{"op" => op}, params) queue_atom = String.to_atom(unquote(queue)) diff --git a/test/activity_expiration_worker_test.exs b/test/daemons/activity_expiration_daemon_test.exs similarity index 86% rename from test/activity_expiration_worker_test.exs rename to test/daemons/activity_expiration_daemon_test.exs index 939d912f1..31f4a70a6 100644 --- a/test/activity_expiration_worker_test.exs +++ b/test/daemons/activity_expiration_daemon_test.exs @@ -10,7 +10,7 @@ defmodule Pleroma.ActivityExpirationWorkerTest do test "deletes an activity" do activity = insert(:note_activity) expiration = insert(:expiration_in_the_past, %{activity_id: activity.id}) - Pleroma.ActivityExpirationWorker.perform(:execute, expiration.id) + Pleroma.Daemons.ActivityExpirationDaemon.perform(:execute, expiration.id) refute Repo.get(Activity, activity.id) end diff --git a/test/web/digest_email_worker_test.exs b/test/daemons/digest_email_daemon_test.exs similarity index 88% rename from test/web/digest_email_worker_test.exs rename to test/daemons/digest_email_daemon_test.exs index 5dfd920fa..3168f3b9a 100644 --- a/test/web/digest_email_worker_test.exs +++ b/test/daemons/digest_email_daemon_test.exs @@ -2,11 +2,11 @@ # Copyright © 2017-2019 Pleroma Authors # SPDX-License-Identifier: AGPL-3.0-only -defmodule Pleroma.DigestEmailWorkerTest do +defmodule Pleroma.DigestEmailDaemonTest do use Pleroma.DataCase import Pleroma.Factory - alias Pleroma.DigestEmailWorker + alias Pleroma.Daemons.DigestEmailDaemon alias Pleroma.Tests.ObanHelpers alias Pleroma.User alias Pleroma.Web.CommonAPI @@ -23,7 +23,7 @@ test "it sends digest emails" do User.switch_email_notifications(user2, "digest", true) CommonAPI.post(user, %{"status" => "hey @#{user2.nickname}!"}) - DigestEmailWorker.perform() + DigestEmailDaemon.perform() ObanHelpers.perform_all() # Performing job(s) enqueued at previous step ObanHelpers.perform_all() diff --git a/test/scheduled_activity_worker_test.exs b/test/daemons/scheduled_activity_daemon_test.exs similarity index 82% rename from test/scheduled_activity_worker_test.exs rename to test/daemons/scheduled_activity_daemon_test.exs index e3ad1244e..32820b2b7 100644 --- a/test/scheduled_activity_worker_test.exs +++ b/test/daemons/scheduled_activity_daemon_test.exs @@ -2,7 +2,7 @@ # Copyright © 2017-2018 Pleroma Authors # SPDX-License-Identifier: AGPL-3.0-only -defmodule Pleroma.ScheduledActivityWorkerTest do +defmodule Pleroma.ScheduledActivityDaemonTest do use Pleroma.DataCase alias Pleroma.ScheduledActivity import Pleroma.Factory @@ -10,7 +10,7 @@ defmodule Pleroma.ScheduledActivityWorkerTest do test "creates a status from the scheduled activity" do user = insert(:user) scheduled_activity = insert(:scheduled_activity, user: user, params: %{status: "hi"}) - Pleroma.ScheduledActivityWorker.perform(:execute, scheduled_activity.id) + Pleroma.Daemons.ScheduledActivityDaemon.perform(:execute, scheduled_activity.id) refute Repo.get(ScheduledActivity, scheduled_activity.id) activity = Repo.all(Pleroma.Activity) |> Enum.find(&(&1.actor == user.ap_id)) From a4c5f71e933c905433b80c90bcd626e7da703669 Mon Sep 17 00:00:00 2001 From: Maxim Filippov Date: Mon, 2 Sep 2019 22:48:52 +0300 Subject: [PATCH 089/400] Return total from pagination + tests --- CHANGELOG.md | 1 + lib/pleroma/activity/search.ex | 1 + lib/pleroma/conversation/participation.ex | 1 + lib/pleroma/notification.ex | 1 + lib/pleroma/pagination.ex | 24 ++++-- lib/pleroma/user/search.ex | 1 + lib/pleroma/web/activity_pub/activity_pub.ex | 3 + .../controllers/mastodon_api_controller.ex | 2 + lib/pleroma/web/mastodon_api/mastodon_api.ex | 4 + test/pagination_test.exs | 78 +++++++++++++++++++ 10 files changed, 109 insertions(+), 7 deletions(-) create mode 100644 test/pagination_test.exs diff --git a/CHANGELOG.md b/CHANGELOG.md index 4acb749ac..06ad303de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Mastodon API: Unsubscribe followers when they unfollow a user - AdminAPI: Add "godmode" while fetching user statuses (i.e. admin can see private statuses) - Improve digest email template +– Pagination: return `total` alongside with `items` when paginating ### Fixed - Following from Osada diff --git a/lib/pleroma/activity/search.ex b/lib/pleroma/activity/search.ex index f847ac238..f7156c81c 100644 --- a/lib/pleroma/activity/search.ex +++ b/lib/pleroma/activity/search.ex @@ -27,6 +27,7 @@ def search(user, search_query, options \\ []) do |> maybe_restrict_local(user) |> maybe_restrict_author(author) |> Pagination.fetch_paginated(%{"offset" => offset, "limit" => limit}, :offset) + |> Map.get(:items) |> maybe_fetch(user, search_query) end diff --git a/lib/pleroma/conversation/participation.ex b/lib/pleroma/conversation/participation.ex index ea5b9fe17..5fd8d3d41 100644 --- a/lib/pleroma/conversation/participation.ex +++ b/lib/pleroma/conversation/participation.ex @@ -67,6 +67,7 @@ def for_user(user, params \\ %{}) do preload: [conversation: [:users]] ) |> Pleroma.Pagination.fetch_paginated(params) + |> Map.get(:items) end def for_user_and_conversation(user, conversation) do diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index 5d29af853..3e4ddd2ba 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -75,6 +75,7 @@ def for_user(user, opts \\ %{}) do user |> for_user_query(opts) |> Pagination.fetch_paginated(opts) + |> Map.get(:items) end @doc """ diff --git a/lib/pleroma/pagination.ex b/lib/pleroma/pagination.ex index 2b869ccdc..d21ecf628 100644 --- a/lib/pleroma/pagination.ex +++ b/lib/pleroma/pagination.ex @@ -18,19 +18,29 @@ def fetch_paginated(query, params, type \\ :keyset) def fetch_paginated(query, params, :keyset) do options = cast_params(params) + total = Repo.aggregate(query, :count, :id) - query - |> paginate(options, :keyset) - |> Repo.all() - |> enforce_order(options) + %{ + total: total, + items: + query + |> paginate(options, :keyset) + |> Repo.all() + |> enforce_order(options) + } end def fetch_paginated(query, params, :offset) do options = cast_params(params) + total = Repo.aggregate(query, :count, :id) - query - |> paginate(options, :offset) - |> Repo.all() + %{ + total: total, + items: + query + |> paginate(options, :offset) + |> Repo.all() + } end def paginate(query, options, method \\ :keyset) diff --git a/lib/pleroma/user/search.ex b/lib/pleroma/user/search.ex index 6fb2c2352..bc05639b5 100644 --- a/lib/pleroma/user/search.ex +++ b/lib/pleroma/user/search.ex @@ -34,6 +34,7 @@ def search(query_string, opts \\ []) do query_string |> search_query(for_user, following) |> Pagination.fetch_paginated(%{"offset" => offset, "limit" => result_limit}, :offset) + |> Map.get(:items) end) results diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index eeb826814..8f07638cd 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -556,6 +556,7 @@ def fetch_public_activities(opts \\ %{}) do q |> restrict_unlisted() |> Pagination.fetch_paginated(opts) + |> Map.get(:items) |> Enum.reverse() end @@ -953,6 +954,7 @@ def fetch_activities(recipients, opts \\ %{}) do fetch_activities_query(recipients ++ list_memberships, opts) |> Pagination.fetch_paginated(opts) + |> Map.get(:items) |> Enum.reverse() |> maybe_update_cc(list_memberships, opts["user"]) end @@ -987,6 +989,7 @@ def fetch_activities_bounded(recipients, recipients_with_public, opts \\ %{}) do fetch_activities_query([], opts) |> fetch_activities_bounded_query(recipients, recipients_with_public) |> Pagination.fetch_paginated(opts) + |> Map.get(:items) |> Enum.reverse() end diff --git a/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex index 83e877c0e..d532ba685 100644 --- a/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex @@ -420,6 +420,7 @@ def dm_timeline(%{assigns: %{user: user}} = conn, params) do [user.ap_id] |> ActivityPub.fetch_activities_query(params) |> Pagination.fetch_paginated(params) + |> Map.get(:items) conn |> add_link_headers(:dm_timeline, activities) @@ -1194,6 +1195,7 @@ def bookmarks(%{assigns: %{user: user}} = conn, params) do bookmarks = Bookmark.for_user_query(user.id) |> Pagination.fetch_paginated(params) + |> Map.get(:items) activities = bookmarks diff --git a/lib/pleroma/web/mastodon_api/mastodon_api.ex b/lib/pleroma/web/mastodon_api/mastodon_api.ex index ac01d1ff3..cf3962944 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api.ex @@ -45,12 +45,14 @@ def get_followers(user, params \\ %{}) do user |> User.get_followers_query() |> Pagination.fetch_paginated(params) + |> Map.get(:items) end def get_friends(user, params \\ %{}) do user |> User.get_friends_query() |> Pagination.fetch_paginated(params) + |> Map.get(:items) end def get_notifications(user, params \\ %{}) do @@ -60,12 +62,14 @@ def get_notifications(user, params \\ %{}) do |> Notification.for_user_query(options) |> restrict(:exclude_types, options) |> Pagination.fetch_paginated(params) + |> Map.get(:items) end def get_scheduled_activities(user, params \\ %{}) do user |> ScheduledActivity.for_user_query() |> Pagination.fetch_paginated(params) + |> Map.get(:items) end defp cast_params(params) do diff --git a/test/pagination_test.exs b/test/pagination_test.exs new file mode 100644 index 000000000..048ab6f3c --- /dev/null +++ b/test/pagination_test.exs @@ -0,0 +1,78 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.PaginationTest do + use Pleroma.DataCase + + import Pleroma.Factory + + alias Pleroma.Object + alias Pleroma.Pagination + + describe "keyset" do + setup do + notes = insert_list(5, :note) + + %{notes: notes} + end + + test "paginates by min_id", %{notes: notes} do + id = Enum.at(notes, 2).id |> Integer.to_string() + %{total: total, items: paginated} = Pagination.fetch_paginated(Object, %{"min_id" => id}) + + assert length(paginated) == 2 + assert total == 5 + end + + test "paginates by since_id", %{notes: notes} do + id = Enum.at(notes, 2).id |> Integer.to_string() + %{total: total, items: paginated} = Pagination.fetch_paginated(Object, %{"since_id" => id}) + + assert length(paginated) == 2 + assert total == 5 + end + + test "paginates by max_id", %{notes: notes} do + id = Enum.at(notes, 1).id |> Integer.to_string() + %{total: total, items: paginated} = Pagination.fetch_paginated(Object, %{"max_id" => id}) + + assert length(paginated) == 1 + assert total == 5 + end + + test "paginates by min_id & limit", %{notes: notes} do + id = Enum.at(notes, 2).id |> Integer.to_string() + + %{total: total, items: paginated} = + Pagination.fetch_paginated(Object, %{"min_id" => id, "limit" => 1}) + + assert length(paginated) == 1 + assert total == 5 + end + end + + describe "offset" do + setup do + notes = insert_list(5, :note) + + %{notes: notes} + end + + test "paginates by limit" do + %{total: total, items: paginated} = + Pagination.fetch_paginated(Object, %{"limit" => 2}, :offset) + + assert length(paginated) == 2 + assert total == 5 + end + + test "paginates by limit & offset" do + %{total: total, items: paginated} = + Pagination.fetch_paginated(Object, %{"limit" => 2, "offset" => 4}, :offset) + + assert length(paginated) == 1 + assert total == 5 + end + end +end From b15cfd80ef5d5bc971f78a53dfa3d37dec4499a5 Mon Sep 17 00:00:00 2001 From: Maxim Filippov Date: Tue, 3 Sep 2019 13:58:27 +0300 Subject: [PATCH 090/400] Return "total" optionally --- CHANGELOG.md | 2 +- lib/pleroma/activity/search.ex | 1 - lib/pleroma/conversation/participation.ex | 1 - lib/pleroma/notification.ex | 1 - lib/pleroma/pagination.ex | 38 +++++++++++-------- lib/pleroma/user/search.ex | 1 - lib/pleroma/web/activity_pub/activity_pub.ex | 3 -- .../controllers/mastodon_api_controller.ex | 2 - lib/pleroma/web/mastodon_api/mastodon_api.ex | 4 -- test/pagination_test.exs | 24 ++++++------ 10 files changed, 36 insertions(+), 41 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06ad303de..8264688d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,7 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Mastodon API: Unsubscribe followers when they unfollow a user - AdminAPI: Add "godmode" while fetching user statuses (i.e. admin can see private statuses) - Improve digest email template -– Pagination: return `total` alongside with `items` when paginating +– Pagination: (optional) return `total` alongside with `items` when paginating ### Fixed - Following from Osada diff --git a/lib/pleroma/activity/search.ex b/lib/pleroma/activity/search.ex index f7156c81c..f847ac238 100644 --- a/lib/pleroma/activity/search.ex +++ b/lib/pleroma/activity/search.ex @@ -27,7 +27,6 @@ def search(user, search_query, options \\ []) do |> maybe_restrict_local(user) |> maybe_restrict_author(author) |> Pagination.fetch_paginated(%{"offset" => offset, "limit" => limit}, :offset) - |> Map.get(:items) |> maybe_fetch(user, search_query) end diff --git a/lib/pleroma/conversation/participation.ex b/lib/pleroma/conversation/participation.ex index 5fd8d3d41..ea5b9fe17 100644 --- a/lib/pleroma/conversation/participation.ex +++ b/lib/pleroma/conversation/participation.ex @@ -67,7 +67,6 @@ def for_user(user, params \\ %{}) do preload: [conversation: [:users]] ) |> Pleroma.Pagination.fetch_paginated(params) - |> Map.get(:items) end def for_user_and_conversation(user, conversation) do diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index 3e4ddd2ba..5d29af853 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -75,7 +75,6 @@ def for_user(user, opts \\ %{}) do user |> for_user_query(opts) |> Pagination.fetch_paginated(opts) - |> Map.get(:items) end @doc """ diff --git a/lib/pleroma/pagination.ex b/lib/pleroma/pagination.ex index d21ecf628..b55379c4a 100644 --- a/lib/pleroma/pagination.ex +++ b/lib/pleroma/pagination.ex @@ -16,31 +16,39 @@ defmodule Pleroma.Pagination do def fetch_paginated(query, params, type \\ :keyset) - def fetch_paginated(query, params, :keyset) do - options = cast_params(params) + def fetch_paginated(query, %{"total" => true} = params, :keyset) do total = Repo.aggregate(query, :count, :id) %{ total: total, - items: - query - |> paginate(options, :keyset) - |> Repo.all() - |> enforce_order(options) + items: fetch_paginated(query, Map.drop(params, ["total"]), :keyset) + } + end + + def fetch_paginated(query, params, :keyset) do + options = cast_params(params) + + query + |> paginate(options, :keyset) + |> Repo.all() + |> enforce_order(options) + end + + def fetch_paginated(query, %{"total" => true} = params, :offset) do + total = Repo.aggregate(query, :count, :id) + + %{ + total: total, + items: fetch_paginated(query, Map.drop(params, ["total"]), :offset) } end def fetch_paginated(query, params, :offset) do options = cast_params(params) - total = Repo.aggregate(query, :count, :id) - %{ - total: total, - items: - query - |> paginate(options, :offset) - |> Repo.all() - } + query + |> paginate(options, :offset) + |> Repo.all() end def paginate(query, options, method \\ :keyset) diff --git a/lib/pleroma/user/search.ex b/lib/pleroma/user/search.ex index bc05639b5..6fb2c2352 100644 --- a/lib/pleroma/user/search.ex +++ b/lib/pleroma/user/search.ex @@ -34,7 +34,6 @@ def search(query_string, opts \\ []) do query_string |> search_query(for_user, following) |> Pagination.fetch_paginated(%{"offset" => offset, "limit" => result_limit}, :offset) - |> Map.get(:items) end) results diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 8f07638cd..eeb826814 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -556,7 +556,6 @@ def fetch_public_activities(opts \\ %{}) do q |> restrict_unlisted() |> Pagination.fetch_paginated(opts) - |> Map.get(:items) |> Enum.reverse() end @@ -954,7 +953,6 @@ def fetch_activities(recipients, opts \\ %{}) do fetch_activities_query(recipients ++ list_memberships, opts) |> Pagination.fetch_paginated(opts) - |> Map.get(:items) |> Enum.reverse() |> maybe_update_cc(list_memberships, opts["user"]) end @@ -989,7 +987,6 @@ def fetch_activities_bounded(recipients, recipients_with_public, opts \\ %{}) do fetch_activities_query([], opts) |> fetch_activities_bounded_query(recipients, recipients_with_public) |> Pagination.fetch_paginated(opts) - |> Map.get(:items) |> Enum.reverse() end diff --git a/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex index d532ba685..83e877c0e 100644 --- a/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex @@ -420,7 +420,6 @@ def dm_timeline(%{assigns: %{user: user}} = conn, params) do [user.ap_id] |> ActivityPub.fetch_activities_query(params) |> Pagination.fetch_paginated(params) - |> Map.get(:items) conn |> add_link_headers(:dm_timeline, activities) @@ -1195,7 +1194,6 @@ def bookmarks(%{assigns: %{user: user}} = conn, params) do bookmarks = Bookmark.for_user_query(user.id) |> Pagination.fetch_paginated(params) - |> Map.get(:items) activities = bookmarks diff --git a/lib/pleroma/web/mastodon_api/mastodon_api.ex b/lib/pleroma/web/mastodon_api/mastodon_api.ex index cf3962944..ac01d1ff3 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api.ex @@ -45,14 +45,12 @@ def get_followers(user, params \\ %{}) do user |> User.get_followers_query() |> Pagination.fetch_paginated(params) - |> Map.get(:items) end def get_friends(user, params \\ %{}) do user |> User.get_friends_query() |> Pagination.fetch_paginated(params) - |> Map.get(:items) end def get_notifications(user, params \\ %{}) do @@ -62,14 +60,12 @@ def get_notifications(user, params \\ %{}) do |> Notification.for_user_query(options) |> restrict(:exclude_types, options) |> Pagination.fetch_paginated(params) - |> Map.get(:items) end def get_scheduled_activities(user, params \\ %{}) do user |> ScheduledActivity.for_user_query() |> Pagination.fetch_paginated(params) - |> Map.get(:items) end defp cast_params(params) do diff --git a/test/pagination_test.exs b/test/pagination_test.exs index 048ab6f3c..c0fbe7933 100644 --- a/test/pagination_test.exs +++ b/test/pagination_test.exs @@ -19,7 +19,9 @@ defmodule Pleroma.PaginationTest do test "paginates by min_id", %{notes: notes} do id = Enum.at(notes, 2).id |> Integer.to_string() - %{total: total, items: paginated} = Pagination.fetch_paginated(Object, %{"min_id" => id}) + + %{total: total, items: paginated} = + Pagination.fetch_paginated(Object, %{"min_id" => id, "total" => true}) assert length(paginated) == 2 assert total == 5 @@ -27,7 +29,9 @@ test "paginates by min_id", %{notes: notes} do test "paginates by since_id", %{notes: notes} do id = Enum.at(notes, 2).id |> Integer.to_string() - %{total: total, items: paginated} = Pagination.fetch_paginated(Object, %{"since_id" => id}) + + %{total: total, items: paginated} = + Pagination.fetch_paginated(Object, %{"since_id" => id, "total" => true}) assert length(paginated) == 2 assert total == 5 @@ -35,7 +39,9 @@ test "paginates by since_id", %{notes: notes} do test "paginates by max_id", %{notes: notes} do id = Enum.at(notes, 1).id |> Integer.to_string() - %{total: total, items: paginated} = Pagination.fetch_paginated(Object, %{"max_id" => id}) + + %{total: total, items: paginated} = + Pagination.fetch_paginated(Object, %{"max_id" => id, "total" => true}) assert length(paginated) == 1 assert total == 5 @@ -44,11 +50,9 @@ test "paginates by max_id", %{notes: notes} do test "paginates by min_id & limit", %{notes: notes} do id = Enum.at(notes, 2).id |> Integer.to_string() - %{total: total, items: paginated} = - Pagination.fetch_paginated(Object, %{"min_id" => id, "limit" => 1}) + paginated = Pagination.fetch_paginated(Object, %{"min_id" => id, "limit" => 1}) assert length(paginated) == 1 - assert total == 5 end end @@ -60,19 +64,15 @@ test "paginates by min_id & limit", %{notes: notes} do end test "paginates by limit" do - %{total: total, items: paginated} = - Pagination.fetch_paginated(Object, %{"limit" => 2}, :offset) + paginated = Pagination.fetch_paginated(Object, %{"limit" => 2}, :offset) assert length(paginated) == 2 - assert total == 5 end test "paginates by limit & offset" do - %{total: total, items: paginated} = - Pagination.fetch_paginated(Object, %{"limit" => 2, "offset" => 4}, :offset) + paginated = Pagination.fetch_paginated(Object, %{"limit" => 2, "offset" => 4}, :offset) assert length(paginated) == 1 - assert total == 5 end end end From bd8b92ea5e1bb6a97b02e2335fbcaf389ded2c1e Mon Sep 17 00:00:00 2001 From: Ashlynn Anderson Date: Mon, 5 Aug 2019 15:35:34 -0400 Subject: [PATCH 091/400] Remove dynamic config as default, add healthcheck --- config/docker.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/docker.exs b/config/docker.exs index 63ab4cdee..f9f27d141 100644 --- a/config/docker.exs +++ b/config/docker.exs @@ -10,7 +10,7 @@ notify_email: System.get_env("NOTIFY_EMAIL"), limit: 5000, registrations_open: false, - dynamic_configuration: true + healthcheck: true config :pleroma, Pleroma.Repo, adapter: Ecto.Adapters.Postgres, From 4b422b54699ac55a1bc32d2b42c0d55d0b68b4fb Mon Sep 17 00:00:00 2001 From: Ashlynn Anderson Date: Tue, 3 Sep 2019 11:44:57 -0400 Subject: [PATCH 092/400] Switch to official elixir:1.9-alpine image for build --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 268ec61dc..59a352bbc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rinpatch/elixir:1.9.0-rc.0-alpine as build +FROM elixir:1.9-alpine as build COPY . . From cc1d1ee4069c47d2e5e91347438b2a6c7bff86cf Mon Sep 17 00:00:00 2001 From: rinpatch Date: Tue, 3 Sep 2019 17:54:21 +0300 Subject: [PATCH 093/400] Mastdon API: Add ability to get a remote account by nickname to `/api/v1/accounts/:id` --- lib/pleroma/plugs/trailing_format_plug.ex | 40 ++++++++ lib/pleroma/user.ex | 8 +- lib/pleroma/web/endpoint.ex | 2 +- .../controllers/mastodon_api_controller.ex | 25 ++++- .../mastodon_api_controller_test.exs | 91 +++++++++++++++---- 5 files changed, 142 insertions(+), 24 deletions(-) create mode 100644 lib/pleroma/plugs/trailing_format_plug.ex diff --git a/lib/pleroma/plugs/trailing_format_plug.ex b/lib/pleroma/plugs/trailing_format_plug.ex new file mode 100644 index 000000000..2473e07fe --- /dev/null +++ b/lib/pleroma/plugs/trailing_format_plug.ex @@ -0,0 +1,40 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2019 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Plugs.TrailingFormatPlug do + @moduledoc "Calls TrailingFormatPlug for specific paths. Ideally we would just do this in the router, but TrailingFormatPlug needs to be called before Plug.Parsers." + + @behaviour Plug + @paths [ + "/api/statusnet", + "/api/statuses", + "/api/qvitter", + "/api/search", + "/api/account", + "/api/friends", + "/api/mutes", + "/api/media", + "/api/favorites", + "/api/blocks", + "/api/friendships", + "/api/users", + "/users", + "/nodeinfo", + "/api/help", + "/api/externalprofile", + "/notice" + ] + + def init(opts) do + TrailingFormatPlug.init(opts) + end + + for path <- @paths do + def call(%{request_path: unquote(path) <> _} = conn, opts) do + TrailingFormatPlug.call(conn, opts) + end + end + + def call(conn, _opts), do: conn +end diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 29fd6d2ea..d68015a80 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -569,8 +569,12 @@ def get_cached_by_nickname(nickname) do end) end - def get_cached_by_nickname_or_id(nickname_or_id) do - get_cached_by_id(nickname_or_id) || get_cached_by_nickname(nickname_or_id) + def get_cached_by_nickname_or_id(nickname_or_id, opts \\ []) do + if is_integer(nickname_or_id) or Pleroma.FlakeId.is_flake_id?(nickname_or_id) do + get_cached_by_id(nickname_or_id) || get_cached_by_nickname(nickname_or_id) + else + unless opts[:restrict_remote_nicknames], do: get_cached_by_nickname(nickname_or_id) + end end def get_by_nickname(nickname) do diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex index c123530dc..eb805e853 100644 --- a/lib/pleroma/web/endpoint.ex +++ b/lib/pleroma/web/endpoint.ex @@ -57,7 +57,7 @@ defmodule Pleroma.Web.Endpoint do plug(Phoenix.CodeReloader) end - plug(TrailingFormatPlug) + plug(Pleroma.Plugs.TrailingFormatPlug) plug(Plug.RequestId) plug(Plug.Logger) diff --git a/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex index 83e877c0e..c5f281976 100644 --- a/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex @@ -290,7 +290,7 @@ def verify_app_credentials(%{assigns: %{user: _user, token: token}} = conn, _) d end def user(%{assigns: %{user: for_user}} = conn, %{"id" => nickname_or_id}) do - with %User{} = user <- User.get_cached_by_nickname_or_id(nickname_or_id), + with %User{} = user <- get_user_by_nickname_or_id(for_user, nickname_or_id), true <- User.auth_active?(user) || user.id == for_user.id || User.superuser?(for_user) do account = AccountView.render("account.json", %{user: user, for: for_user}) json(conn, account) @@ -390,7 +390,7 @@ def public_timeline(%{assigns: %{user: user}} = conn, params) do end def user_statuses(%{assigns: %{user: reading_user}} = conn, params) do - with %User{} = user <- User.get_cached_by_nickname_or_id(params["id"]) do + with %User{} = user <- get_user_by_nickname_or_id(reading_user, params["id"]) do params = params |> Map.put("tag", params["tagged"]) @@ -1697,4 +1697,25 @@ def try_render(conn, _, _) do defp present?(nil), do: false defp present?(false), do: false defp present?(_), do: true + + defp get_user_by_nickname_or_id(for_user, nickname_or_id) do + restrict_to_local = Pleroma.Config.get([:instance, :limit_to_local_content]) + + opts = + cond do + restrict_to_local == :all -> + [restrict_remote_nicknames: true] + + restrict_to_local == false -> + [] + + restrict_to_local == :unauthenticated and match?(%User{}, for_user) -> + [] + + true -> + [restrict_remote_nicknames: true] + end + + User.get_cached_by_nickname_or_id(nickname_or_id, opts) + end end diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 4fd0a5aeb..427ee6f63 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -1675,32 +1675,85 @@ test "/api/v1/follow_requests/:id/reject works" do end end - test "account fetching", %{conn: conn} do - user = insert(:user) + describe "account fetching" do + test "works by id" do + user = insert(:user) - conn = - conn - |> get("/api/v1/accounts/#{user.id}") + conn = + build_conn() + |> get("/api/v1/accounts/#{user.id}") - assert %{"id" => id} = json_response(conn, 200) - assert id == to_string(user.id) + assert %{"id" => id} = json_response(conn, 200) + assert id == to_string(user.id) - conn = - build_conn() - |> get("/api/v1/accounts/-1") + conn = + build_conn() + |> get("/api/v1/accounts/-1") - assert %{"error" => "Can't find user"} = json_response(conn, 404) - end + assert %{"error" => "Can't find user"} = json_response(conn, 404) + end - test "account fetching also works nickname", %{conn: conn} do - user = insert(:user) + test "works by nickname" do + user = insert(:user) - conn = - conn - |> get("/api/v1/accounts/#{user.nickname}") + conn = + build_conn() + |> get("/api/v1/accounts/#{user.nickname}") - assert %{"id" => id} = json_response(conn, 200) - assert id == user.id + assert %{"id" => id} = json_response(conn, 200) + assert id == user.id + end + + test "works by nickname for remote users" do + limit_to_local = Pleroma.Config.get([:instance, :limit_to_local_content]) + Pleroma.Config.put([:instance, :limit_to_local_content], false) + user = insert(:user, nickname: "user@example.com", local: false) + + conn = + build_conn() + |> get("/api/v1/accounts/#{user.nickname}") + + Pleroma.Config.put([:instance, :limit_to_local_content], limit_to_local) + assert %{"id" => id} = json_response(conn, 200) + assert id == user.id + end + + test "respects limit_to_local_content == :all for remote user nicknames" do + limit_to_local = Pleroma.Config.get([:instance, :limit_to_local_content]) + Pleroma.Config.put([:instance, :limit_to_local_content], :all) + + user = insert(:user, nickname: "user@example.com", local: false) + + conn = + build_conn() + |> get("/api/v1/accounts/#{user.nickname}") + + Pleroma.Config.put([:instance, :limit_to_local_content], limit_to_local) + assert json_response(conn, 404) + end + + test "respects limit_to_local_content == :unauthenticated for remote user nicknames" do + limit_to_local = Pleroma.Config.get([:instance, :limit_to_local_content]) + Pleroma.Config.put([:instance, :limit_to_local_content], :unauthenticated) + + user = insert(:user, nickname: "user@example.com", local: false) + reading_user = insert(:user) + + conn = + build_conn() + |> get("/api/v1/accounts/#{user.nickname}") + + assert json_response(conn, 404) + + conn = + build_conn() + |> assign(:user, reading_user) + |> get("/api/v1/accounts/#{user.nickname}") + + Pleroma.Config.put([:instance, :limit_to_local_content], limit_to_local) + assert %{"id" => id} = json_response(conn, 200) + assert id == user.id + end end test "mascot upload", %{conn: conn} do From c2b6c1b089a813cf8c7cbd54c0f80bee4985522c Mon Sep 17 00:00:00 2001 From: rinpatch Date: Wed, 4 Sep 2019 11:33:08 +0300 Subject: [PATCH 094/400] Extend `/api/pleroma/notifications/read` to mark multiple notifications as read and make it respond with Mastoapi entities --- CHANGELOG.md | 1 + docs/api/pleroma_api.md | 11 ++-- lib/pleroma/notification.ex | 21 ++++++- .../web/pleroma_api/pleroma_api_controller.ex | 25 +++++++++ lib/pleroma/web/router.ex | 7 +-- .../pleroma_api_controller_test.exs | 56 +++++++++++++++++++ test/web/twitter_api/util_controller_test.exs | 32 ----------- 7 files changed, 108 insertions(+), 45 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8264688d6..40f4580f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Changed - **Breaking:** Configuration: A setting to explicitly disable the mailer was added, defaulting to true, if you are using a mailer add `config :pleroma, Pleroma.Emails.Mailer, enabled: true` to your config - **Breaking:** Configuration: `/media/` is now removed when `base_url` is configured, append `/media/` to your `base_url` config to keep the old behaviour if desired +- **Breaking:** `/api/pleroma/notifications/read` is moved to `/api/v1/pleroma/notifications/read` and now supports `max_id` and responds with Mastodon API entities. - Configuration: OpenGraph and TwitterCard providers enabled by default - Configuration: Filter.AnonymizeFilename added ability to retain file extension with custom text - Federation: Return 403 errors when trying to request pages from a user's follower/following collections if they have `hide_followers`/`hide_follows` set diff --git a/docs/api/pleroma_api.md b/docs/api/pleroma_api.md index b134b31a8..e76a35b3b 100644 --- a/docs/api/pleroma_api.md +++ b/docs/api/pleroma_api.md @@ -126,13 +126,14 @@ Request parameters can be passed via [query strings](https://en.wikipedia.org/wi ## `/api/pleroma/admin/`… See [Admin-API](Admin-API.md) -## `/api/pleroma/notifications/read` -### Mark a single notification as read +## `/api/pleroma/v1/notifications/read` +### Mark notifications as read * Method `POST` * Authentication: required -* Params: - * `id`: notification's id -* Response: JSON. Returns `{"status": "success"}` if the reading was successful, otherwise returns `{"error": "error_msg"}` +* Params (mutually exclusive): + * `id`: a single notification id to read + * `max_id`: read all notifications up to this id +* Response: Notification entity/Array of Notification entities. In case of `max_id`, only the first 80 notifications will be returned. ## `/api/v1/pleroma/accounts/:id/subscribe` ### Subscribe to receive notifications for all statuses posted by a user diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index 5d29af853..d7e232992 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -102,15 +102,32 @@ def set_read_up_to(%{id: user_id} = _user, id) do n in Notification, where: n.user_id == ^user_id, where: n.id <= ^id, + where: n.seen == false, update: [ set: [ seen: true, updated_at: ^NaiveDateTime.utc_now() ] - ] + ], + # Ideally we would preload object and activities here + # but Ecto does not support preloads in update_all + select: n.id ) - Repo.update_all(query, []) + {_, notification_ids} = Repo.update_all(query, []) + + from(n in Notification, where: n.id in ^notification_ids) + |> join(:inner, [n], activity in assoc(n, :activity)) + |> join(:left, [n, a], object in Object, + on: + fragment( + "(?->>'id') = COALESCE((? -> 'object'::text) ->> 'id'::text)", + object.data, + a.data + ) + ) + |> preload([n, a, o], activity: {a, object: o}) + |> Repo.all() end def read_one(%User{} = user, notification_id) do diff --git a/lib/pleroma/web/pleroma_api/pleroma_api_controller.ex b/lib/pleroma/web/pleroma_api/pleroma_api_controller.ex index b6d2bf86b..f4df3b024 100644 --- a/lib/pleroma/web/pleroma_api/pleroma_api_controller.ex +++ b/lib/pleroma/web/pleroma_api/pleroma_api_controller.ex @@ -8,8 +8,10 @@ defmodule Pleroma.Web.PleromaAPI.PleromaAPIController do import Pleroma.Web.ControllerHelper, only: [add_link_headers: 7] alias Pleroma.Conversation.Participation + alias Pleroma.Notification alias Pleroma.Web.ActivityPub.ActivityPub alias Pleroma.Web.MastodonAPI.ConversationView + alias Pleroma.Web.MastodonAPI.NotificationView alias Pleroma.Web.MastodonAPI.StatusView def conversation(%{assigns: %{user: user}} = conn, %{"id" => participation_id}) do @@ -70,4 +72,27 @@ def update_conversation( |> render("participation.json", %{participation: participation, for: user}) end end + + def read_notification(%{assigns: %{user: user}} = conn, %{"id" => notification_id}) do + with {:ok, notification} <- Notification.read_one(user, notification_id) do + conn + |> put_view(NotificationView) + |> render("show.json", %{notification: notification, for: user}) + else + {:error, message} -> + conn + |> put_status(:bad_request) + |> json(%{"error" => message}) + end + end + + def read_notification(%{assigns: %{user: user}} = conn, %{"max_id" => max_id}) do + with notifications <- Notification.set_read_up_to(user, max_id) do + notifications = Enum.take(notifications, 80) + + conn + |> put_view(NotificationView) + |> render("index.json", %{notifications: notifications, for: user}) + end + end end diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 969dc66fd..44a4279f7 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -236,12 +236,6 @@ defmodule Pleroma.Web.Router do post("/blocks_import", UtilController, :blocks_import) post("/follow_import", UtilController, :follow_import) end - - scope [] do - pipe_through(:oauth_read) - - post("/notifications/read", UtilController, :notifications_read) - end end scope "/oauth", Pleroma.Web.OAuth do @@ -277,6 +271,7 @@ defmodule Pleroma.Web.Router do scope [] do pipe_through(:oauth_write) patch("/conversations/:id", PleromaAPIController, :update_conversation) + post("/notifications/read", PleromaAPIController, :read_notification) end end diff --git a/test/web/pleroma_api/pleroma_api_controller_test.exs b/test/web/pleroma_api/pleroma_api_controller_test.exs index ed6b79727..7eaeda4a0 100644 --- a/test/web/pleroma_api/pleroma_api_controller_test.exs +++ b/test/web/pleroma_api/pleroma_api_controller_test.exs @@ -6,6 +6,7 @@ defmodule Pleroma.Web.PleromaAPI.PleromaAPIControllerTest do use Pleroma.Web.ConnCase alias Pleroma.Conversation.Participation + alias Pleroma.Notification alias Pleroma.Repo alias Pleroma.Web.CommonAPI @@ -91,4 +92,59 @@ test "PATCH /api/v1/pleroma/conversations/:id", %{conn: conn} do assert user in participation.recipients assert other_user in participation.recipients end + + describe "POST /api/v1/pleroma/notifications/read" do + test "it marks a single notification as read", %{conn: conn} do + user1 = insert(:user) + user2 = insert(:user) + {:ok, activity1} = CommonAPI.post(user2, %{"status" => "hi @#{user1.nickname}"}) + {:ok, activity2} = CommonAPI.post(user2, %{"status" => "hi @#{user1.nickname}"}) + {:ok, [notification1]} = Notification.create_notifications(activity1) + {:ok, [notification2]} = Notification.create_notifications(activity2) + + response = + conn + |> assign(:user, user1) + |> post("/api/v1/pleroma/notifications/read", %{"id" => "#{notification1.id}"}) + |> json_response(:ok) + + assert %{"pleroma" => %{"is_seen" => true}} = response + assert Repo.get(Notification, notification1.id).seen + refute Repo.get(Notification, notification2.id).seen + end + + test "it marks multiple notifications as read", %{conn: conn} do + user1 = insert(:user) + user2 = insert(:user) + {:ok, _activity1} = CommonAPI.post(user2, %{"status" => "hi @#{user1.nickname}"}) + {:ok, _activity2} = CommonAPI.post(user2, %{"status" => "hi @#{user1.nickname}"}) + {:ok, _activity3} = CommonAPI.post(user2, %{"status" => "HIE @#{user1.nickname}"}) + + [notification3, notification2, notification1] = Notification.for_user(user1, %{limit: 3}) + + [response1, response2] = + conn + |> assign(:user, user1) + |> post("/api/v1/pleroma/notifications/read", %{"max_id" => "#{notification2.id}"}) + |> json_response(:ok) + + assert %{"pleroma" => %{"is_seen" => true}} = response1 + assert %{"pleroma" => %{"is_seen" => true}} = response2 + assert Repo.get(Notification, notification1.id).seen + assert Repo.get(Notification, notification2.id).seen + refute Repo.get(Notification, notification3.id).seen + end + + test "it returns error when notification not found", %{conn: conn} do + user1 = insert(:user) + + response = + conn + |> assign(:user, user1) + |> post("/api/v1/pleroma/notifications/read", %{"id" => "22222222222222"}) + |> json_response(:bad_request) + + assert response == %{"error" => "Cannot get notification"} + end + end end diff --git a/test/web/twitter_api/util_controller_test.exs b/test/web/twitter_api/util_controller_test.exs index fe4ffdb59..cf8e69d2b 100644 --- a/test/web/twitter_api/util_controller_test.exs +++ b/test/web/twitter_api/util_controller_test.exs @@ -5,7 +5,6 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do use Pleroma.Web.ConnCase - alias Pleroma.Notification alias Pleroma.Repo alias Pleroma.User alias Pleroma.Web.CommonAPI @@ -141,37 +140,6 @@ test "it imports blocks users from file", %{conn: conn} do end end - describe "POST /api/pleroma/notifications/read" do - test "it marks a single notification as read", %{conn: conn} do - user1 = insert(:user) - user2 = insert(:user) - {:ok, activity1} = CommonAPI.post(user2, %{"status" => "hi @#{user1.nickname}"}) - {:ok, activity2} = CommonAPI.post(user2, %{"status" => "hi @#{user1.nickname}"}) - {:ok, [notification1]} = Notification.create_notifications(activity1) - {:ok, [notification2]} = Notification.create_notifications(activity2) - - conn - |> assign(:user, user1) - |> post("/api/pleroma/notifications/read", %{"id" => "#{notification1.id}"}) - |> json_response(:ok) - - assert Repo.get(Notification, notification1.id).seen - refute Repo.get(Notification, notification2.id).seen - end - - test "it returns error when notification not found", %{conn: conn} do - user1 = insert(:user) - - response = - conn - |> assign(:user, user1) - |> post("/api/pleroma/notifications/read", %{"id" => "22222222222222"}) - |> json_response(403) - - assert response == %{"error" => "Cannot get notification"} - end - end - describe "PUT /api/pleroma/notification_settings" do test "it updates notification settings", %{conn: conn} do user = insert(:user) From 7c3838090f86fbfdbf4e45fcfbabc21c19f26924 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Wed, 4 Sep 2019 10:14:15 +0000 Subject: [PATCH 095/400] Apply suggestion to lib/pleroma/notification.ex --- lib/pleroma/notification.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index d7e232992..b7c880c51 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -116,7 +116,8 @@ def set_read_up_to(%{id: user_id} = _user, id) do {_, notification_ids} = Repo.update_all(query, []) - from(n in Notification, where: n.id in ^notification_ids) + Notification + |> where([n], n.id in ^notification_ids) |> join(:inner, [n], activity in assoc(n, :activity)) |> join(:left, [n, a], object in Object, on: From 377aa9fb90ff1c8537112f23bfc329f1ac0696b4 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Wed, 4 Sep 2019 10:37:43 +0000 Subject: [PATCH 096/400] Apply suggestion to docs/api/pleroma_api.md --- docs/api/pleroma_api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/pleroma_api.md b/docs/api/pleroma_api.md index e76a35b3b..c08ee9ecd 100644 --- a/docs/api/pleroma_api.md +++ b/docs/api/pleroma_api.md @@ -126,7 +126,7 @@ Request parameters can be passed via [query strings](https://en.wikipedia.org/wi ## `/api/pleroma/admin/`… See [Admin-API](Admin-API.md) -## `/api/pleroma/v1/notifications/read` +## `/api/v1/pleroma/notifications/read` ### Mark notifications as read * Method `POST` * Authentication: required From 328b2612cd957aa3ad810101a20037e4e9843bb0 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Wed, 4 Sep 2019 13:39:39 +0300 Subject: [PATCH 097/400] Clarify that read notifications are returned --- docs/api/pleroma_api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/pleroma_api.md b/docs/api/pleroma_api.md index c08ee9ecd..7d343e97a 100644 --- a/docs/api/pleroma_api.md +++ b/docs/api/pleroma_api.md @@ -133,7 +133,7 @@ See [Admin-API](Admin-API.md) * Params (mutually exclusive): * `id`: a single notification id to read * `max_id`: read all notifications up to this id -* Response: Notification entity/Array of Notification entities. In case of `max_id`, only the first 80 notifications will be returned. +* Response: Notification entity/Array of Notification entities that were read. In case of `max_id`, only the first 80 read notifications will be returned. ## `/api/v1/pleroma/accounts/:id/subscribe` ### Subscribe to receive notifications for all statuses posted by a user From 3face454671bfdf2b850daf9dcb05468eb909e95 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Wed, 4 Sep 2019 14:16:56 +0300 Subject: [PATCH 098/400] Mastodon API: Add `pleroma.thread_muted` to Status entity Needed for pleroma-fe!941 --- CHANGELOG.md | 1 + docs/api/differences_in_mastoapi_responses.md | 1 + .../web/mastodon_api/views/status_view.ex | 3 ++- .../mastodon_api/views/status_view_test.exs | 21 ++++++++++++++++++- 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40f4580f7..a414ba5e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - **Breaking:** `/api/pleroma/notifications/read` is moved to `/api/v1/pleroma/notifications/read` and now supports `max_id` and responds with Mastodon API entities. - Configuration: OpenGraph and TwitterCard providers enabled by default - Configuration: Filter.AnonymizeFilename added ability to retain file extension with custom text +- Mastodon API: `pleroma.thread_muted` key in the Status entity - Federation: Return 403 errors when trying to request pages from a user's follower/following collections if they have `hide_followers`/`hide_follows` set - NodeInfo: Return `skipThreadContainment` in `metadata` for the `skip_thread_containment` option - NodeInfo: Return `mailerEnabled` in `metadata` diff --git a/docs/api/differences_in_mastoapi_responses.md b/docs/api/differences_in_mastoapi_responses.md index f34e3dd72..02f90f3e8 100644 --- a/docs/api/differences_in_mastoapi_responses.md +++ b/docs/api/differences_in_mastoapi_responses.md @@ -26,6 +26,7 @@ Has these additional fields under the `pleroma` object: - `content`: a map consisting of alternate representations of the `content` property with the key being it's mimetype. Currently the only alternate representation supported is `text/plain` - `spoiler_text`: a map consisting of alternate representations of the `spoiler_text` property with the key being it's mimetype. Currently the only alternate representation supported is `text/plain` - `expires_at`: a datetime (iso8601) that states when the post will expire (be deleted automatically), or empty if the post won't expire +- `thread_muted`: true if the thread the post belongs to is muted ## Attachments diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index a4ee0b5dd..4c3c8c564 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -299,7 +299,8 @@ def render("status.json", %{activity: %{data: %{"object" => _object}} = activity content: %{"text/plain" => content_plaintext}, spoiler_text: %{"text/plain" => summary_plaintext}, expires_at: expires_at, - direct_conversation_id: direct_conversation_id + direct_conversation_id: direct_conversation_id, + thread_muted: thread_muted? } } end diff --git a/test/web/mastodon_api/views/status_view_test.exs b/test/web/mastodon_api/views/status_view_test.exs index 1b6beb6d2..90451cbdc 100644 --- a/test/web/mastodon_api/views/status_view_test.exs +++ b/test/web/mastodon_api/views/status_view_test.exs @@ -150,7 +150,8 @@ test "a note activity" do content: %{"text/plain" => HtmlSanitizeEx.strip_tags(object_data["content"])}, spoiler_text: %{"text/plain" => HtmlSanitizeEx.strip_tags(object_data["summary"])}, expires_at: nil, - direct_conversation_id: nil + direct_conversation_id: nil, + thread_muted: false } } @@ -173,6 +174,24 @@ test "tells if the message is muted for some reason" do assert status.muted == true end + test "tells if the message is thread muted" do + user = insert(:user) + other_user = insert(:user) + + {:ok, user} = User.mute(user, other_user) + + {:ok, activity} = CommonAPI.post(other_user, %{"status" => "test"}) + status = StatusView.render("status.json", %{activity: activity, for: user}) + + assert status.pleroma.thread_muted == false + + {:ok, activity} = CommonAPI.add_mute(user, activity) + + status = StatusView.render("status.json", %{activity: activity, for: user}) + + assert status.pleroma.thread_muted == true + end + test "tells if the status is bookmarked" do user = insert(:user) From 8cbad5500cefbba1e0bb67604960fc331b75b498 Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Wed, 4 Sep 2019 15:25:12 +0300 Subject: [PATCH 099/400] add tests for activity_pub/utils.ex --- lib/pleroma/user.ex | 1 + lib/pleroma/web/activity_pub/activity_pub.ex | 12 +- lib/pleroma/web/activity_pub/utils.ex | 298 +++++++++---------- test/web/activity_pub/utils_test.exs | 232 ++++++++++++++- 4 files changed, 371 insertions(+), 172 deletions(-) diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 29fd6d2ea..424ed772f 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -147,6 +147,7 @@ def get_cached_follow_state(user, target) do Cachex.fetch!(:user_cache, key, fn _ -> {:commit, follow_state(user, target)} end) end + @spec set_follow_state_cache(String.t(), String.t(), String.t()) :: {:ok | :error, boolean()} def set_follow_state_cache(user_ap_id, target_ap_id, state) do Cachex.put( :user_cache, diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index eeb826814..39b46a595 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -435,6 +435,7 @@ def delete(%Object{data: %{"id" => id, "actor" => actor}} = object, local \\ tru end end + @spec block(User.t(), User.t(), String.t() | nil, boolean) :: {:ok, Activity.t() | nil} def block(blocker, blocked, activity_id \\ nil, local \\ true) do outgoing_blocks = Config.get([:activitypub, :outgoing_blocks]) unfollow_blocked = Config.get([:activitypub, :unfollow_blocked]) @@ -463,10 +464,11 @@ def unblock(blocker, blocked, activity_id \\ nil, local \\ true) do end end + @spec flag(map()) :: {:ok, Activity.t()} | any def flag( %{ actor: actor, - context: context, + context: _context, account: account, statuses: statuses, content: content @@ -478,14 +480,6 @@ def flag( additional = params[:additional] || %{} - params = %{ - actor: actor, - context: context, - account: account, - statuses: statuses, - content: content - } - additional = if forward do Map.merge(additional, %{"to" => [], "cc" => [account.ap_id]}) diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex index c9c0c3763..cf82d1a9b 100644 --- a/lib/pleroma/web/activity_pub/utils.ex +++ b/lib/pleroma/web/activity_pub/utils.ex @@ -33,50 +33,40 @@ def normalize_params(params) do Map.put(params, "actor", get_ap_id(params["actor"])) end - def determine_explicit_mentions(%{"tag" => tag} = _object) when is_list(tag) do - tag - |> Enum.filter(fn x -> is_map(x) end) - |> Enum.filter(fn x -> x["type"] == "Mention" end) - |> Enum.map(fn x -> x["href"] end) + @spec determine_explicit_mentions(map()) :: map() + def determine_explicit_mentions(%{"tag" => tag} = _) when is_list(tag) do + Enum.flat_map(tag, fn + %{"type" => "Mention", "href" => href} -> [href] + _ -> [] + end) end def determine_explicit_mentions(%{"tag" => tag} = object) when is_map(tag) do - Map.put(object, "tag", [tag]) + object + |> Map.put("tag", [tag]) |> determine_explicit_mentions() end def determine_explicit_mentions(_), do: [] + @spec recipient_in_collection(any(), any()) :: boolean() defp recipient_in_collection(ap_id, coll) when is_binary(coll), do: ap_id == coll defp recipient_in_collection(ap_id, coll) when is_list(coll), do: ap_id in coll defp recipient_in_collection(_, _), do: false + @spec recipient_in_message(User.t(), User.t(), map()) :: boolean() def recipient_in_message(%User{ap_id: ap_id} = recipient, %User{} = actor, params) do + addresses = [params["to"], params["cc"], params["bto"], params["bcc"]] + cond do - recipient_in_collection(ap_id, params["to"]) -> - true - - recipient_in_collection(ap_id, params["cc"]) -> - true - - recipient_in_collection(ap_id, params["bto"]) -> - true - - recipient_in_collection(ap_id, params["bcc"]) -> - true - + Enum.any?(addresses, &recipient_in_collection(ap_id, &1)) -> true # if the message is unaddressed at all, then assume it is directly addressed # to the recipient - !params["to"] && !params["cc"] && !params["bto"] && !params["bcc"] -> - true - + Enum.all?(addresses, &is_nil(&1)) -> true # if the message is sent from somebody the user is following, then assume it # is addressed to the recipient - User.following?(recipient, actor) -> - true - - true -> - false + User.following?(recipient, actor) -> true + true -> false end end @@ -188,53 +178,58 @@ def maybe_federate(_), do: :ok Adds an id and a published data if they aren't there, also adds it to an included object """ - def lazy_put_activity_defaults(map, fake \\ false) do - map = - unless fake do - %{data: %{"id" => context}, id: context_id} = create_context(map["context"]) + @spec lazy_put_activity_defaults(map(), boolean) :: map() + def lazy_put_activity_defaults(map, fake \\ false) - map - |> Map.put_new_lazy("id", &generate_activity_id/0) - |> Map.put_new_lazy("published", &make_date/0) - |> Map.put_new("context", context) - |> Map.put_new("context_id", context_id) - else - map - |> Map.put_new("id", "pleroma:fakeid") - |> Map.put_new_lazy("published", &make_date/0) - |> Map.put_new("context", "pleroma:fakecontext") - |> Map.put_new("context_id", -1) - end + def lazy_put_activity_defaults(map, true) do + map + |> Map.put_new("id", "pleroma:fakeid") + |> Map.put_new_lazy("published", &make_date/0) + |> Map.put_new("context", "pleroma:fakecontext") + |> Map.put_new("context_id", -1) + |> lazy_put_object_defaults(true) + end - if is_map(map["object"]) do - object = lazy_put_object_defaults(map["object"], map, fake) - %{map | "object" => object} - else + def lazy_put_activity_defaults(map, _fake) do + %{data: %{"id" => context}, id: context_id} = create_context(map["context"]) + + map + |> Map.put_new_lazy("id", &generate_activity_id/0) + |> Map.put_new_lazy("published", &make_date/0) + |> Map.put_new("context", context) + |> Map.put_new("context_id", context_id) + |> lazy_put_object_defaults(false) + end + + # Adds an id and published date if they aren't there. + # + @spec lazy_put_object_defaults(map(), boolean()) :: map() + defp lazy_put_object_defaults(%{"object" => map} = activity, true) + when is_map(map) do + object = map - end + |> Map.put_new("id", "pleroma:fake_object_id") + |> Map.put_new_lazy("published", &make_date/0) + |> Map.put_new("context", activity["context"]) + |> Map.put_new("context_id", activity["context_id"]) + |> Map.put_new("fake", true) + + %{activity | "object" => object} end - @doc """ - Adds an id and published date if they aren't there. - """ - def lazy_put_object_defaults(map, activity \\ %{}, fake) + defp lazy_put_object_defaults(%{"object" => map} = activity, _) + when is_map(map) do + object = + map + |> Map.put_new_lazy("id", &generate_object_id/0) + |> Map.put_new_lazy("published", &make_date/0) + |> Map.put_new("context", activity["context"]) + |> Map.put_new("context_id", activity["context_id"]) - def lazy_put_object_defaults(map, activity, true = _fake) do - map - |> Map.put_new_lazy("published", &make_date/0) - |> Map.put_new("id", "pleroma:fake_object_id") - |> Map.put_new("context", activity["context"]) - |> Map.put_new("fake", true) - |> Map.put_new("context_id", activity["context_id"]) + %{activity | "object" => object} end - def lazy_put_object_defaults(map, activity, _fake) do - map - |> Map.put_new_lazy("id", &generate_object_id/0) - |> Map.put_new_lazy("published", &make_date/0) - |> Map.put_new("context", activity["context"]) - |> Map.put_new("context_id", activity["context_id"]) - end + defp lazy_put_object_defaults(activity, _), do: activity @doc """ Inserts a full object if it is contained in an activity. @@ -356,23 +351,30 @@ defp fetch_likes(object) do @doc """ Updates a follow activity's state (for locked accounts). """ + @spec update_follow_state_for_all(Activity.t(), String.t()) :: {:ok, Activity} | {:error, any()} def update_follow_state_for_all( %Activity{data: %{"actor" => actor, "object" => object}} = activity, state ) do - try do - Ecto.Adapters.SQL.query!( - Repo, - "UPDATE activities SET data = jsonb_set(data, '{state}', $1) WHERE data->>'type' = 'Follow' AND data->>'actor' = $2 AND data->>'object' = $3 AND data->>'state' = 'pending'", - [state, actor, object] + query = + from(activity in Activity, + where: fragment("data->>'type' = 'Follow'"), + where: fragment("data->>'state' = 'pending'"), + where: fragment("data->>'actor' = ?", ^actor), + where: fragment("data->>'object' = ?", ^object), + update: [ + set: [ + data: fragment("jsonb_set(data, '{state}', ?)", ^state) + ] + ] ) - User.set_follow_state_cache(actor, object, state) - activity = Activity.get_by_id(activity.id) + with {_, _} <- Repo.update_all(query, []), + {_, _} <- User.set_follow_state_cache(actor, object, state), + %Activity{} = activity <- Activity.get_by_id(activity.id) do {:ok, activity} - rescue - e -> - {:error, e} + else + e -> {:error, e} end end @@ -380,9 +382,7 @@ def update_follow_state( %Activity{data: %{"actor" => actor, "object" => object}} = activity, state ) do - with new_data <- - activity.data - |> Map.put("state", state), + with new_data <- Map.put(activity.data, "state", state), changeset <- Changeset.change(activity, data: new_data), {:ok, activity} <- Repo.update(changeset), _ <- User.set_follow_state_cache(actor, object, state) do @@ -411,27 +411,17 @@ def make_follow_data( def fetch_latest_follow(%User{ap_id: follower_id}, %User{ap_id: followed_id}) do query = - from( - activity in Activity, - where: - fragment( - "? ->> 'type' = 'Follow'", - activity.data - ), - where: activity.actor == ^follower_id, - # this is to use the index - where: - fragment( - "coalesce((?)->'object'->>'id', (?)->>'object') = ?", - activity.data, - activity.data, - ^followed_id - ), - order_by: [fragment("? desc nulls last", activity.id)], - limit: 1 - ) + follower_id + |> Activity.Queries.by_actor() + |> Activity.Queries.by_type("Follow") + |> Activity.Queries.by_object_id(followed_id) + |> Activity.Queries.limit(1) - Repo.one(query) + from( + activity in query, + order_by: [fragment("? desc nulls last", activity.id)] + ) + |> Repo.one() end #### Announce-related helpers @@ -439,23 +429,14 @@ def fetch_latest_follow(%User{ap_id: follower_id}, %User{ap_id: followed_id}) do @doc """ Retruns an existing announce activity if the notice has already been announced """ + @spec get_existing_announce(String.t(), map()) :: Activity.t() | nil def get_existing_announce(actor, %{data: %{"id" => id}}) do - query = - from( - activity in Activity, - where: activity.actor == ^actor, - # this is to use the index - where: - fragment( - "coalesce((?)->'object'->>'id', (?)->>'object') = ?", - activity.data, - activity.data, - ^id - ), - where: fragment("(?)->>'type' = 'Announce'", activity.data) - ) - - Repo.one(query) + actor + |> Activity.Queries.by_actor() + |> Activity.Queries.by_type("Announce") + |> Activity.Queries.by_object_id(id) + |> Activity.Queries.limit(1) + |> Repo.one() end @doc """ @@ -531,31 +512,35 @@ def make_unlike_data( |> maybe_put("id", activity_id) end + @spec add_announce_to_object(Activity.t(), Object.t()) :: + {:ok, Object.t()} | {:error, Ecto.Changeset.t()} def add_announce_to_object( - %Activity{ - data: %{"actor" => actor, "cc" => [Pleroma.Constants.as_public()]} - }, + %Activity{data: %{"actor" => actor, "cc" => [Pleroma.Constants.as_public()]}}, object ) do - announcements = - if is_list(object.data["announcements"]), do: object.data["announcements"], else: [] + announcements = fetch_announcements(object) - with announcements <- [actor | announcements] |> Enum.uniq() do + with announcements <- Enum.uniq([actor | announcements]) do update_element_in_object("announcement", announcements, object) end end def add_announce_to_object(_, object), do: {:ok, object} + @spec remove_announce_from_object(Activity.t(), Object.t()) :: + {:ok, Object.t()} | {:error, Ecto.Changeset.t()} def remove_announce_from_object(%Activity{data: %{"actor" => actor}}, object) do - announcements = - if is_list(object.data["announcements"]), do: object.data["announcements"], else: [] - - with announcements <- announcements |> List.delete(actor) do + with announcements <- List.delete(fetch_announcements(object), actor) do update_element_in_object("announcement", announcements, object) end end + defp fetch_announcements(%{data: %{"announcements" => announcements}} = _) + when is_list(announcements), + do: announcements + + defp fetch_announcements(_), do: [] + #### Unfollow-related helpers def make_unfollow_data(follower, followed, follow_activity, activity_id) do @@ -569,29 +554,20 @@ def make_unfollow_data(follower, followed, follow_activity, activity_id) do end #### Block-related helpers + @spec fetch_latest_block(User.t(), User.t()) :: Activity.t() | nil def fetch_latest_block(%User{ap_id: blocker_id}, %User{ap_id: blocked_id}) do query = - from( - activity in Activity, - where: - fragment( - "? ->> 'type' = 'Block'", - activity.data - ), - where: activity.actor == ^blocker_id, - # this is to use the index - where: - fragment( - "coalesce((?)->'object'->>'id', (?)->>'object') = ?", - activity.data, - activity.data, - ^blocked_id - ), - order_by: [fragment("? desc nulls last", activity.id)], - limit: 1 - ) + blocker_id + |> Activity.Queries.by_actor() + |> Activity.Queries.by_type("Block") + |> Activity.Queries.by_object_id(blocked_id) + |> Activity.Queries.limit(1) - Repo.one(query) + from( + activity in query, + order_by: [fragment("? desc nulls last", activity.id)] + ) + |> Repo.one() end def make_block_data(blocker, blocked, activity_id) do @@ -631,28 +607,32 @@ def make_create_data(params, additional) do end #### Flag-related helpers - - def make_flag_data(params, additional) do - status_ap_ids = - Enum.map(params.statuses || [], fn - %Activity{} = act -> act.data["id"] - act when is_map(act) -> act["id"] - act when is_binary(act) -> act - end) - - object = [params.account.ap_id] ++ status_ap_ids - + @spec make_flag_data(map(), map()) :: map() + def make_flag_data(%{actor: actor, context: context, content: content} = params, additional) do %{ "type" => "Flag", - "actor" => params.actor.ap_id, - "content" => params.content, - "object" => object, - "context" => params.context, + "actor" => actor.ap_id, + "content" => content, + "object" => build_flag_object(params), + "context" => context, "state" => "open" } |> Map.merge(additional) end + def make_flag_data(_, _), do: %{} + + defp build_flag_object(%{account: account, statuses: statuses} = _) do + [account.ap_id] ++ + Enum.map(statuses || [], fn + %Activity{} = act -> act.data["id"] + act when is_map(act) -> act["id"] + act when is_binary(act) -> act + end) + end + + defp build_flag_object(_), do: [] + @doc """ Fetches the OrderedCollection/OrderedCollectionPage from `from`, limiting the amount of pages fetched after the first one to `pages_left` pages. diff --git a/test/web/activity_pub/utils_test.exs b/test/web/activity_pub/utils_test.exs index eb429b2c4..b1c1d6f71 100644 --- a/test/web/activity_pub/utils_test.exs +++ b/test/web/activity_pub/utils_test.exs @@ -87,6 +87,18 @@ test "works with an object that has only IR tags" do assert Utils.determine_explicit_mentions(object) == [] end + + test "works with an object has tags as map" do + object = %{ + "tag" => %{ + "type" => "Mention", + "href" => "https://example.com/~alyssa", + "name" => "Alyssa P. Hacker" + } + } + + assert Utils.determine_explicit_mentions(object) == ["https://example.com/~alyssa"] + end end describe "make_unlike_data/3" do @@ -300,8 +312,8 @@ test "updates the state of all Follow activities with the same actor and object" {:ok, follow_activity_two} = Utils.update_follow_state_for_all(follow_activity_two, "accept") - assert Repo.get(Activity, follow_activity.id).data["state"] == "accept" - assert Repo.get(Activity, follow_activity_two.id).data["state"] == "accept" + assert refresh_record(follow_activity).data["state"] == "accept" + assert refresh_record(follow_activity_two).data["state"] == "accept" end end @@ -323,8 +335,8 @@ test "updates the state of the given follow activity" do {:ok, follow_activity_two} = Utils.update_follow_state(follow_activity_two, "reject") - assert Repo.get(Activity, follow_activity.id).data["state"] == "pending" - assert Repo.get(Activity, follow_activity_two.id).data["state"] == "reject" + assert refresh_record(follow_activity).data["state"] == "pending" + assert refresh_record(follow_activity_two).data["state"] == "reject" end end @@ -401,4 +413,216 @@ test "fetches existing like" do assert ^like_activity = Utils.get_existing_like(user.ap_id, object) end end + + describe "get_get_existing_announce/2" do + test "returns nil if announce not found" do + actor = insert(:user) + refute Utils.get_existing_announce(actor.ap_id, %{data: %{"id" => "test"}}) + end + + test "fetches existing announce" do + note_activity = insert(:note_activity) + assert object = Object.normalize(note_activity) + actor = insert(:user) + + {:ok, announce, _object} = ActivityPub.announce(actor, object) + assert Utils.get_existing_announce(actor.ap_id, object) == announce + end + end + + describe "fetch_latest_block/2" do + test "fetches last block activities" do + user1 = insert(:user) + user2 = insert(:user) + + assert {:ok, %Activity{} = _} = ActivityPub.block(user1, user2) + assert {:ok, %Activity{} = _} = ActivityPub.block(user1, user2) + assert {:ok, %Activity{} = activity} = ActivityPub.block(user1, user2) + + assert Utils.fetch_latest_block(user1, user2) == activity + end + end + + describe "recipient_in_message/3" do + test "returns true when recipient in `to`" do + recipient = insert(:user) + actor = insert(:user) + assert Utils.recipient_in_message(recipient, actor, %{"to" => recipient.ap_id}) + + assert Utils.recipient_in_message( + recipient, + actor, + %{"to" => [recipient.ap_id], "cc" => ""} + ) + end + + test "returns true when recipient in `cc`" do + recipient = insert(:user) + actor = insert(:user) + assert Utils.recipient_in_message(recipient, actor, %{"cc" => recipient.ap_id}) + + assert Utils.recipient_in_message( + recipient, + actor, + %{"cc" => [recipient.ap_id], "to" => ""} + ) + end + + test "returns true when recipient in `bto`" do + recipient = insert(:user) + actor = insert(:user) + assert Utils.recipient_in_message(recipient, actor, %{"bto" => recipient.ap_id}) + + assert Utils.recipient_in_message( + recipient, + actor, + %{"bcc" => "", "bto" => [recipient.ap_id]} + ) + end + + test "returns true when recipient in `bcc`" do + recipient = insert(:user) + actor = insert(:user) + assert Utils.recipient_in_message(recipient, actor, %{"bcc" => recipient.ap_id}) + + assert Utils.recipient_in_message( + recipient, + actor, + %{"bto" => "", "bcc" => [recipient.ap_id]} + ) + end + + test "returns true when message without addresses fields" do + recipient = insert(:user) + actor = insert(:user) + assert Utils.recipient_in_message(recipient, actor, %{"bccc" => recipient.ap_id}) + + assert Utils.recipient_in_message( + recipient, + actor, + %{"btod" => "", "bccc" => [recipient.ap_id]} + ) + end + + test "returns false" do + recipient = insert(:user) + actor = insert(:user) + refute Utils.recipient_in_message(recipient, actor, %{"to" => "ap_id"}) + end + end + + describe "lazy_put_activity_defaults/2" do + test "returns map with id and published data" do + note_activity = insert(:note_activity) + object = Object.normalize(note_activity) + res = Utils.lazy_put_activity_defaults(%{"context" => object.data["id"]}) + assert res["context"] == object.data["id"] + assert res["context_id"] == object.id + assert res["id"] + assert res["published"] + end + + test "returns map with fake id and published data" do + assert %{ + "context" => "pleroma:fakecontext", + "context_id" => -1, + "id" => "pleroma:fakeid", + "published" => _ + } = Utils.lazy_put_activity_defaults(%{}, true) + end + + test "returns activity data with object" do + note_activity = insert(:note_activity) + object = Object.normalize(note_activity) + + res = + Utils.lazy_put_activity_defaults(%{ + "context" => object.data["id"], + "object" => %{} + }) + + assert res["context"] == object.data["id"] + assert res["context_id"] == object.id + assert res["id"] + assert res["published"] + assert res["object"]["id"] + assert res["object"]["published"] + assert res["object"]["context"] == object.data["id"] + assert res["object"]["context_id"] == object.id + end + end + + describe "make_flag_data" do + test "returns empty map when params is invalid" do + assert Utils.make_flag_data(%{}, %{}) == %{} + end + + test "returns map with Flag object" do + reporter = insert(:user) + target_account = insert(:user) + {:ok, activity} = CommonAPI.post(target_account, %{"status" => "foobar"}) + context = Utils.generate_context_id() + content = "foobar" + + target_ap_id = target_account.ap_id + activity_ap_id = activity.data["id"] + + res = + Utils.make_flag_data( + %{ + actor: reporter, + context: context, + account: target_account, + statuses: [%{"id" => activity.data["id"]}], + content: content + }, + %{} + ) + + assert %{ + "type" => "Flag", + "content" => ^content, + "context" => ^context, + "object" => [^target_ap_id, ^activity_ap_id], + "state" => "open" + } = res + end + end + + describe "add_announce_to_object/2" do + test "adds actor to announcement" do + user = insert(:user) + object = insert(:note) + + activity = + insert(:note_activity, + data: %{ + "actor" => user.ap_id, + "cc" => [Pleroma.Constants.as_public()] + } + ) + + assert {:ok, updated_object} = Utils.add_announce_to_object(activity, object) + assert updated_object.data["announcements"] == [user.ap_id] + assert updated_object.data["announcement_count"] == 1 + end + end + + describe "remove_announce_from_object/2" do + test "removes actor from announcements" do + user = insert(:user) + user2 = insert(:user) + + object = + insert(:note, + data: %{"announcements" => [user.ap_id, user2.ap_id], "announcement_count" => 2} + ) + + activity = insert(:note_activity, data: %{"actor" => user.ap_id}) + + assert {:ok, updated_object} = Utils.remove_announce_from_object(activity, object) + assert updated_object.data["announcements"] == [user2.ap_id] + assert updated_object.data["announcement_count"] == 1 + end + end end From a890451187f0b1507be96ccf144b18fdb8294dd8 Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Wed, 4 Sep 2019 17:42:27 +0300 Subject: [PATCH 100/400] fetch_announcements -> take_announcements --- lib/pleroma/web/activity_pub/utils.ex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex index cf82d1a9b..0d87b9220 100644 --- a/lib/pleroma/web/activity_pub/utils.ex +++ b/lib/pleroma/web/activity_pub/utils.ex @@ -518,7 +518,7 @@ def add_announce_to_object( %Activity{data: %{"actor" => actor, "cc" => [Pleroma.Constants.as_public()]}}, object ) do - announcements = fetch_announcements(object) + announcements = take_announcements(object) with announcements <- Enum.uniq([actor | announcements]) do update_element_in_object("announcement", announcements, object) @@ -530,16 +530,16 @@ def add_announce_to_object(_, object), do: {:ok, object} @spec remove_announce_from_object(Activity.t(), Object.t()) :: {:ok, Object.t()} | {:error, Ecto.Changeset.t()} def remove_announce_from_object(%Activity{data: %{"actor" => actor}}, object) do - with announcements <- List.delete(fetch_announcements(object), actor) do + with announcements <- List.delete(take_announcements(object), actor) do update_element_in_object("announcement", announcements, object) end end - defp fetch_announcements(%{data: %{"announcements" => announcements}} = _) + defp take_announcements(%{data: %{"announcements" => announcements}} = _) when is_list(announcements), do: announcements - defp fetch_announcements(_), do: [] + defp take_announcements(_), do: [] #### Unfollow-related helpers From 2975da284b75c846a99a56ce70a91ebc3cc43f33 Mon Sep 17 00:00:00 2001 From: Sadposter Date: Wed, 4 Sep 2019 15:45:40 +0100 Subject: [PATCH 101/400] truncate remote user bio/display name --- lib/pleroma/user.ex | 16 +++++++++++++++- test/user_test.exs | 45 +++++++++++++++++++++++++++++---------------- 2 files changed, 44 insertions(+), 17 deletions(-) diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 29fd6d2ea..87e56b5b4 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -174,11 +174,25 @@ def following_count(%User{} = user) do |> Repo.aggregate(:count, :id) end + defp truncate_if_exists(params, key, max_length) do + if Map.has_key?(params, key) do + {value, _chopped} = String.split_at(params[key], max_length) + Map.put(params, key, value) + else + params + end + end + def remote_user_creation(params) do bio_limit = Pleroma.Config.get([:instance, :user_bio_length], 5000) name_limit = Pleroma.Config.get([:instance, :user_name_length], 100) - params = Map.put(params, :info, params[:info] || %{}) + params = + params + |> Map.put(:info, params[:info] || %{}) + |> truncate_if_exists(:name, name_limit) + |> truncate_if_exists(:bio, bio_limit) + info_cng = User.Info.remote_user_creation(%User.Info{}, params[:info]) changes = diff --git a/test/user_test.exs b/test/user_test.exs index 92a48f630..45f998ff8 100644 --- a/test/user_test.exs +++ b/test/user_test.exs @@ -570,22 +570,6 @@ test "it has required fields" do refute cs.valid? end) end - - test "it restricts some sizes" do - bio_limit = Pleroma.Config.get([:instance, :user_bio_length], 5000) - name_limit = Pleroma.Config.get([:instance, :user_name_length], 100) - - [bio: bio_limit, name: name_limit] - |> Enum.each(fn {field, size} -> - string = String.pad_leading(".", size) - cs = User.remote_user_creation(Map.put(@valid_remote, field, string)) - assert cs.valid? - - string = String.pad_leading(".", size + 1) - cs = User.remote_user_creation(Map.put(@valid_remote, field, string)) - refute cs.valid? - end) - end end describe "followers and friends" do @@ -1142,6 +1126,35 @@ test "with overly long fields" do assert {:ok, %User{}} = User.insert_or_update_user(data) end + + test "with an overly long bio" do + current_max_length = Pleroma.Config.get([:instance, :user_bio_length], 5000) + user = insert(:user, nickname: "nickname@supergood.domain") + + data = %{ + ap_id: user.ap_id, + name: user.name, + nickname: user.nickname, + bio: String.duplicate("h", current_max_length + 1), + info: %{} + } + + assert {:ok, %User{}} = User.insert_or_update_user(data) + end + + test "with an overly long display name" do + current_max_length = Pleroma.Config.get([:instance, :user_name_length], 100) + user = insert(:user, nickname: "nickname@supergood.domain") + + data = %{ + ap_id: user.ap_id, + name: String.duplicate("h", current_max_length + 1), + nickname: user.nickname, + info: %{} + } + + assert {:ok, %User{}} = User.insert_or_update_user(data) + end end describe "per-user rich-text filtering" do From cb99cfcc65f57f0044117ebd12d040488343d9ef Mon Sep 17 00:00:00 2001 From: Sadposter Date: Wed, 4 Sep 2019 15:57:42 +0100 Subject: [PATCH 102/400] don't try to truncate non-strings --- lib/pleroma/user.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 87e56b5b4..e2ebce6fc 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -175,7 +175,7 @@ def following_count(%User{} = user) do end defp truncate_if_exists(params, key, max_length) do - if Map.has_key?(params, key) do + if Map.has_key?(params, key) and is_binary(params[key]) do {value, _chopped} = String.split_at(params[key], max_length) Map.put(params, key, value) else From af746fa4a814dbacd4fe4a3e58b1ee1732363d22 Mon Sep 17 00:00:00 2001 From: Maxim Filippov Date: Wed, 4 Sep 2019 20:08:13 +0300 Subject: [PATCH 103/400] Return total for reports --- CHANGELOG.md | 3 ++- docs/api/admin_api.md | 1 + lib/pleroma/web/admin_api/admin_api_controller.ex | 6 ++---- lib/pleroma/web/admin_api/views/report_view.ex | 3 ++- test/web/admin_api/admin_api_controller_test.exs | 8 ++++++++ 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a414ba5e0..942605f28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,7 +21,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Mastodon API: Unsubscribe followers when they unfollow a user - AdminAPI: Add "godmode" while fetching user statuses (i.e. admin can see private statuses) - Improve digest email template -– Pagination: (optional) return `total` alongside with `items` when paginating +- Pagination: (optional) return `total` alongside with `items` when paginating +- Admin API: Return `total` when querying for reports ### Fixed - Following from Osada diff --git a/docs/api/admin_api.md b/docs/api/admin_api.md index d79c342be..5a090c720 100644 --- a/docs/api/admin_api.md +++ b/docs/api/admin_api.md @@ -313,6 +313,7 @@ Note: Available `:permission_group` is currently moderator and admin. 404 is ret ```json { + "total" : 1, "reports": [ { "account": { diff --git a/lib/pleroma/web/admin_api/admin_api_controller.ex b/lib/pleroma/web/admin_api/admin_api_controller.ex index 544b9d7d8..2a1cc59e5 100644 --- a/lib/pleroma/web/admin_api/admin_api_controller.ex +++ b/lib/pleroma/web/admin_api/admin_api_controller.ex @@ -442,11 +442,9 @@ def list_reports(conn, params) do params |> Map.put("type", "Flag") |> Map.put("skip_preload", true) + |> Map.put("total", true) - reports = - [] - |> ActivityPub.fetch_activities(params) - |> Enum.reverse() + reports = ActivityPub.fetch_activities([], params) conn |> put_view(ReportView) diff --git a/lib/pleroma/web/admin_api/views/report_view.ex b/lib/pleroma/web/admin_api/views/report_view.ex index a25f3f1fe..0b8745b2e 100644 --- a/lib/pleroma/web/admin_api/views/report_view.ex +++ b/lib/pleroma/web/admin_api/views/report_view.ex @@ -12,7 +12,8 @@ defmodule Pleroma.Web.AdminAPI.ReportView do def render("index.json", %{reports: reports}) do %{ - reports: render_many(reports, __MODULE__, "show.json", as: :report) + reports: render_many(reports[:items], __MODULE__, "show.json", as: :report), + total: reports[:total] } end diff --git a/test/web/admin_api/admin_api_controller_test.exs b/test/web/admin_api/admin_api_controller_test.exs index 4e2c27431..b1ddd898b 100644 --- a/test/web/admin_api/admin_api_controller_test.exs +++ b/test/web/admin_api/admin_api_controller_test.exs @@ -1309,6 +1309,7 @@ test "returns empty response when no reports created", %{conn: conn} do |> json_response(:ok) assert Enum.empty?(response["reports"]) + assert response["total"] == 0 end test "returns reports", %{conn: conn} do @@ -1331,6 +1332,8 @@ test "returns reports", %{conn: conn} do assert length(response["reports"]) == 1 assert report["id"] == report_id + + assert response["total"] == 1 end test "returns reports with specified state", %{conn: conn} do @@ -1364,6 +1367,8 @@ test "returns reports with specified state", %{conn: conn} do assert length(response["reports"]) == 1 assert open_report["id"] == first_report_id + assert response["total"] == 1 + response = conn |> get("/api/pleroma/admin/reports", %{ @@ -1376,6 +1381,8 @@ test "returns reports with specified state", %{conn: conn} do assert length(response["reports"]) == 1 assert closed_report["id"] == second_report_id + assert response["total"] == 1 + response = conn |> get("/api/pleroma/admin/reports", %{ @@ -1384,6 +1391,7 @@ test "returns reports with specified state", %{conn: conn} do |> json_response(:ok) assert Enum.empty?(response["reports"]) + assert response["total"] == 0 end test "returns 403 when requested by a non-admin" do From 8306078de1abade082f932cda5b8d9297bdcdc80 Mon Sep 17 00:00:00 2001 From: Maksim Date: Wed, 4 Sep 2019 17:31:14 +0000 Subject: [PATCH 104/400] Apply suggestion to lib/pleroma/web/activity_pub/utils.ex --- lib/pleroma/web/activity_pub/utils.ex | 33 +++++++++++---------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex index 0d87b9220..2de02f607 100644 --- a/lib/pleroma/web/activity_pub/utils.ex +++ b/lib/pleroma/web/activity_pub/utils.ex @@ -356,26 +356,19 @@ def update_follow_state_for_all( %Activity{data: %{"actor" => actor, "object" => object}} = activity, state ) do - query = - from(activity in Activity, - where: fragment("data->>'type' = 'Follow'"), - where: fragment("data->>'state' = 'pending'"), - where: fragment("data->>'actor' = ?", ^actor), - where: fragment("data->>'object' = ?", ^object), - update: [ - set: [ - data: fragment("jsonb_set(data, '{state}', ?)", ^state) - ] - ] - ) - - with {_, _} <- Repo.update_all(query, []), - {_, _} <- User.set_follow_state_cache(actor, object, state), - %Activity{} = activity <- Activity.get_by_id(activity.id) do - {:ok, activity} - else - e -> {:error, e} - end + "Follow" + |> Activity.Queries.by_type() + |> Activity.Queries.by_actor(actor) + |> Activity.Queries.by_object_id(object["id"]) + |> where(fragment("data->>'state' = 'pending'")) + |> update(set: [data: fragment("jsonb_set(data, '{state}', ?)", ^state)]) + |> Repo.update_all([]) + + User.set_follow_state_cache(actor, object, state) + + activity = Activity.get_by_id(activity.id) + + {:ok, activity} end def update_follow_state( From e2011a667cdf5e67f257c9c30a02c206fb4df913 Mon Sep 17 00:00:00 2001 From: Maksim Date: Wed, 4 Sep 2019 18:35:01 +0000 Subject: [PATCH 105/400] Apply suggestion to lib/pleroma/web/activity_pub/utils.ex --- lib/pleroma/web/activity_pub/utils.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex index 2de02f607..011acd48e 100644 --- a/lib/pleroma/web/activity_pub/utils.ex +++ b/lib/pleroma/web/activity_pub/utils.ex @@ -359,7 +359,7 @@ def update_follow_state_for_all( "Follow" |> Activity.Queries.by_type() |> Activity.Queries.by_actor(actor) - |> Activity.Queries.by_object_id(object["id"]) + |> Activity.Queries.by_object_id(object) |> where(fragment("data->>'state' = 'pending'")) |> update(set: [data: fragment("jsonb_set(data, '{state}', ?)", ^state)]) |> Repo.update_all([]) From ae506ca997619f118d18703a9b0802246eb427d5 Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Wed, 4 Sep 2019 21:40:53 +0300 Subject: [PATCH 106/400] fix formatting --- lib/pleroma/web/activity_pub/utils.ex | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex index 011acd48e..72e07b59d 100644 --- a/lib/pleroma/web/activity_pub/utils.ex +++ b/lib/pleroma/web/activity_pub/utils.ex @@ -356,19 +356,19 @@ def update_follow_state_for_all( %Activity{data: %{"actor" => actor, "object" => object}} = activity, state ) do - "Follow" - |> Activity.Queries.by_type() - |> Activity.Queries.by_actor(actor) - |> Activity.Queries.by_object_id(object) - |> where(fragment("data->>'state' = 'pending'")) - |> update(set: [data: fragment("jsonb_set(data, '{state}', ?)", ^state)]) - |> Repo.update_all([]) - - User.set_follow_state_cache(actor, object, state) - - activity = Activity.get_by_id(activity.id) - - {:ok, activity} + "Follow" + |> Activity.Queries.by_type() + |> Activity.Queries.by_actor(actor) + |> Activity.Queries.by_object_id(object) + |> where(fragment("data->>'state' = 'pending'")) + |> update(set: [data: fragment("jsonb_set(data, '{state}', ?)", ^state)]) + |> Repo.update_all([]) + + User.set_follow_state_cache(actor, object, state) + + activity = Activity.get_by_id(activity.id) + + {:ok, activity} end def update_follow_state( From 053b17f57ecd9e1c3f82118e2a5e5c3b2937969d Mon Sep 17 00:00:00 2001 From: Ashlynn Anderson Date: Wed, 4 Sep 2019 14:56:26 -0400 Subject: [PATCH 107/400] Switch to alpine:3.9 to avoid dlsym errors --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 59a352bbc..c61dcfde9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN apk add git gcc g++ musl-dev make &&\ mkdir release &&\ mix release --path release -FROM alpine:latest +FROM alpine:3.9 ARG HOME=/opt/pleroma ARG DATA=/var/lib/pleroma From 558969a0fd7f64387e59a54b5733d63d3a46a031 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Thu, 5 Sep 2019 08:32:49 +0300 Subject: [PATCH 108/400] Do not crash if one notification failed to render --- CHANGELOG.md | 1 + lib/pleroma/web/mastodon_api/views/notification_view.ex | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40f4580f7..80aed3491 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Federation/MediaProxy not working with instances that have wrong certificate order - Mastodon API: Handling of search timeouts (`/api/v1/search` and `/api/v2/search`) - Mastodon API: Embedded relationships not being properly rendered in the Account entity of Status entity +- Mastodon API: Notifications endpoint crashing if one notification failed to render - Mastodon API: follower/following counters not being nullified, when `hide_follows`/`hide_followers` is set - Mastodon API: `muted` in the Status entity, using author's account to determine if the tread was muted - Mastodon API: Add `account_id`, `type`, `offset`, and `limit` to search API (`/api/v1/search` and `/api/v2/search`) diff --git a/lib/pleroma/web/mastodon_api/views/notification_view.ex b/lib/pleroma/web/mastodon_api/views/notification_view.ex index 27e9cab06..ec8eadcaa 100644 --- a/lib/pleroma/web/mastodon_api/views/notification_view.ex +++ b/lib/pleroma/web/mastodon_api/views/notification_view.ex @@ -14,7 +14,7 @@ defmodule Pleroma.Web.MastodonAPI.NotificationView do alias Pleroma.Web.MastodonAPI.StatusView def render("index.json", %{notifications: notifications, for: user}) do - render_many(notifications, NotificationView, "show.json", %{for: user}) + safe_render_many(notifications, NotificationView, "show.json", %{for: user}) end def render("show.json", %{ From b312ca3d528305ebc3b0c72799af535a406ce251 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Thu, 5 Sep 2019 11:58:02 +0300 Subject: [PATCH 109/400] Mastodon API Poll view: Fix handling of polls without an end date --- CHANGELOG.md | 1 + .../web/mastodon_api/views/status_view.ex | 31 +++++++++++++------ .../tesla_mock/misskey_poll_no_end_date.json | 1 + test/fixtures/tesla_mock/sjw.json | 1 + test/support/http_request_mock.ex | 12 +++++++ .../mastodon_api/views/status_view_test.exs | 8 +++++ 6 files changed, 44 insertions(+), 10 deletions(-) create mode 100644 test/fixtures/tesla_mock/misskey_poll_no_end_date.json create mode 100644 test/fixtures/tesla_mock/sjw.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f4e7a132..fbbaf18f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - `federation_incoming_replies_max_depth` option being ignored in certain cases - Federation/MediaProxy not working with instances that have wrong certificate order - Mastodon API: Handling of search timeouts (`/api/v1/search` and `/api/v2/search`) +- Mastodon API: Misskey's endless polls being unable to render - Mastodon API: Embedded relationships not being properly rendered in the Account entity of Status entity - Mastodon API: Notifications endpoint crashing if one notification failed to render - Mastodon API: follower/following counters not being nullified, when `hide_follows`/`hide_followers` is set diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index 4c3c8c564..e71083b91 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -385,16 +385,27 @@ def render("poll.json", %{object: object} = opts) do end if options do - end_time = - (object.data["closed"] || object.data["endTime"]) - |> NaiveDateTime.from_iso8601!() + {end_time, expired} = + case object.data["closed"] || object.data["endTime"] do + end_time when is_binary(end_time) -> + end_time = + (object.data["closed"] || object.data["endTime"]) + |> NaiveDateTime.from_iso8601!() - expired = - end_time - |> NaiveDateTime.compare(NaiveDateTime.utc_now()) - |> case do - :lt -> true - _ -> false + expired = + end_time + |> NaiveDateTime.compare(NaiveDateTime.utc_now()) + |> case do + :lt -> true + _ -> false + end + + end_time = Utils.to_masto_date(end_time) + + {end_time, expired} + + _ -> + {nil, false} end voted = @@ -421,7 +432,7 @@ def render("poll.json", %{object: object} = opts) do # Mastodon uses separate ids for polls, but an object can't have # more than one poll embedded so object id is fine id: to_string(object.id), - expires_at: Utils.to_masto_date(end_time), + expires_at: end_time, expired: expired, multiple: multiple, votes_count: votes_count, diff --git a/test/fixtures/tesla_mock/misskey_poll_no_end_date.json b/test/fixtures/tesla_mock/misskey_poll_no_end_date.json new file mode 100644 index 000000000..0e08de4de --- /dev/null +++ b/test/fixtures/tesla_mock/misskey_poll_no_end_date.json @@ -0,0 +1 @@ +{"@context":["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1",{"Hashtag":"as:Hashtag"}],"id":"https://skippers-bin.com/notes/7x9tmrp97i","type":"Question","attributedTo":"https://skippers-bin.com/users/7v1w1r8ce6","summary":null,"content":"

@march@marchgenso.me How are your notifications now?
リモートで結果を表示

","_misskey_content":"@march@marchgenso.me How are your notifications now?\n[リモートで結果を表示](https://skippers-bin.com/notes/7x9tmrp97i)","published":"2019-09-05T05:35:32.541Z","to":["https://www.w3.org/ns/activitystreams#Public"],"cc":["https://skippers-bin.com/users/7v1w1r8ce6/followers","https://marchgenso.me/users/march"],"inReplyTo":null,"attachment":[],"sensitive":false,"tag":[{"type":"Mention","href":"https://marchgenso.me/users/march","name":"@march@marchgenso.me"}],"_misskey_fallback_content":"

@march@marchgenso.me How are your notifications now?
リモートで結果を表示
----------------------------------------
0: Working
1: Broken af
----------------------------------------
番号を返信して投票

","endTime":null,"oneOf":[{"type":"Note","name":"Working","replies":{"type":"Collection","totalItems":0}},{"type":"Note","name":"Broken af","replies":{"type":"Collection","totalItems":1}}]} \ No newline at end of file diff --git a/test/fixtures/tesla_mock/sjw.json b/test/fixtures/tesla_mock/sjw.json new file mode 100644 index 000000000..ff64478d3 --- /dev/null +++ b/test/fixtures/tesla_mock/sjw.json @@ -0,0 +1 @@ +{"@context":["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1",{"Hashtag":"as:Hashtag"}],"type":"Person","id":"https://skippers-bin.com/users/7v1w1r8ce6","inbox":"https://skippers-bin.com/users/7v1w1r8ce6/inbox","outbox":"https://skippers-bin.com/users/7v1w1r8ce6/outbox","followers":"https://skippers-bin.com/users/7v1w1r8ce6/followers","following":"https://skippers-bin.com/users/7v1w1r8ce6/following","featured":"https://skippers-bin.com/users/7v1w1r8ce6/collections/featured","sharedInbox":"https://skippers-bin.com/inbox","endpoints":{"sharedInbox":"https://skippers-bin.com/inbox"},"url":"https://skippers-bin.com/@sjw","preferredUsername":"sjw","name":"It's ya boi sjw :verified:","summary":"

Admin of skippers-bin.com and neckbeard.xyz
For the most part I'm just a normal user. I mostly post animu, lewds, may-mays, and shitposts.

Not an alt of
@sjw@neckbeard.xyz but another main.

Email/XMPP: neckbeard@rape.lol
PGP: d016 b622 75ba bcbc 5b3a fced a7d9 4824 0eb3 9c4e

","icon":{"type":"Image","url":"https://skippers-bin.com/files/webpublic-21b17f5b-3a83-4f50-8d4f-eda92066aa26","sensitive":false},"image":{"type":"Image","url":"https://skippers-bin.com/files/webpublic-1cd7f961-421e-4c31-aa03-74fb82584308","sensitive":false},"tag":[{"id":"https://skippers-bin.com/emojis/verified","type":"Emoji","name":":verified:","updated":"2019-07-12T02:16:12.088Z","icon":{"type":"Image","mediaType":"image/png","url":"https://skippers-bin.com/files/webpublic-dd10b435-6dad-4602-938b-f69ec0a19f2c"}}],"manuallyApprovesFollowers":false,"publicKey":{"id":"https://skippers-bin.com/users/7v1w1r8ce6/publickey","type":"Key","owner":"https://skippers-bin.com/users/7v1w1r8ce6","publicKeyPem":"-----BEGIN RSA PUBLIC KEY-----\nMIICCgKCAgEAvmp71/A6Oxe1UW/44HK0juAJhrjv9gYhaoslaS9K1FB+BHfIjaE9\n9+W2SKRLnVNYNFSN4JJrSGhX5RUjAsf4tcdRDVcmHl7tp2sgOAZeZz5geULm2sJQ\nwElnGk34jT/xCfX+w/O+7DuX31sU7ZK0B2P7ulNGDQXhrzVO0RMx7HhNcsFcusno\n3kmPyyPT1l+PbM2UNWms599/3yicKtuOzMgzxNeXvuHYtAO19txyPiOeYckQOMmT\nwEVIxypgCgNQ0MNtPLPKQTwOgVbvnN7MN+h3esKeKDcPcGQySkbkjZPaVnA6xCQf\nj58c19wqdCfAS4Effo5/bxVmhLpe0l9HYpV7IMasv2LhFntmSmAxBQzhdz0oTYb1\naNqiyfZdClnzutOiKcrFppADo4rZH9Z1WlPHapahrKbF0GRPN8DjSUsoBxfY9wZs\ntlL056hT4o+EFHYrRGo7KP6X/6aQ9sSsmpE08aVpVuXdwuaoaDlW1KrJ0oOk4lZw\nUNXvjEaN3c+VQAw2CNvkAqLuwrjnw7MdcxEGodEXb6s8VvoSOaiDqT7cexSaZe0R\nliCe/3dqFXpX1UrgRiryI4yc1BrEJIGTanchmP2aUJ2R2pccFsREp23C3vMN3M5b\nHw7fvKbUQHyf6lhRoLCOSCz1xaPutaMJmpwLuJo4wPCHGg9QFBYsqxcCAwEAAQ==\n-----END RSA PUBLIC KEY-----\n"},"isCat":true} diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 05eebbe9b..231e7c498 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -992,6 +992,18 @@ def get("http://example.com/rel_me/null", _, _, _) do {:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/rel_me_null.html")}} end + def get("https://skippers-bin.com/notes/7x9tmrp97i", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/tesla_mock/misskey_poll_no_end_date.json") + }} + end + + def get("https://skippers-bin.com/users/7v1w1r8ce6", _, _, _) do + {:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/tesla_mock/sjw.json")}} + end + def get(url, query, body, headers) do {:error, "Mock response not implemented for GET #{inspect(url)}, #{query}, #{inspect(body)}, #{ diff --git a/test/web/mastodon_api/views/status_view_test.exs b/test/web/mastodon_api/views/status_view_test.exs index 90451cbdc..fcdd7fbcb 100644 --- a/test/web/mastodon_api/views/status_view_test.exs +++ b/test/web/mastodon_api/views/status_view_test.exs @@ -551,6 +551,14 @@ test "detects vote status" do assert Enum.at(result[:options], 1)[:votes_count] == 1 assert Enum.at(result[:options], 2)[:votes_count] == 1 end + + test "does not crash on polls with no end date" do + object = Object.normalize("https://skippers-bin.com/notes/7x9tmrp97i") + result = StatusView.render("poll.json", %{object: object}) + + assert result[:expires_at] == nil + assert result[:expired] == false + end end test "embeds a relationship in the account" do From 26fe6f70c9cd6a37e72f4795a1a9a316ef5d95fb Mon Sep 17 00:00:00 2001 From: rinpatch Date: Thu, 5 Sep 2019 15:33:49 +0300 Subject: [PATCH 110/400] Move checking for restrict_local to User.get_cached_by_id_or_nickname --- lib/pleroma/user.ex | 18 ++++++++++--- .../controllers/mastodon_api_controller.ex | 25 ++----------------- 2 files changed, 16 insertions(+), 27 deletions(-) diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index d68015a80..3aa245f2a 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -570,10 +570,20 @@ def get_cached_by_nickname(nickname) do end def get_cached_by_nickname_or_id(nickname_or_id, opts \\ []) do - if is_integer(nickname_or_id) or Pleroma.FlakeId.is_flake_id?(nickname_or_id) do - get_cached_by_id(nickname_or_id) || get_cached_by_nickname(nickname_or_id) - else - unless opts[:restrict_remote_nicknames], do: get_cached_by_nickname(nickname_or_id) + restrict_to_local = Pleroma.Config.get([:instance, :limit_to_local_content]) + + cond do + is_integer(nickname_or_id) or Pleroma.FlakeId.is_flake_id?(nickname_or_id) -> + get_cached_by_id(nickname_or_id) || get_cached_by_nickname(nickname_or_id) + + restrict_to_local == false -> + get_cached_by_nickname(nickname_or_id) + + restrict_to_local == :unauthenticated and match?(%User{}, opts[:for]) -> + get_cached_by_nickname(nickname_or_id) + + true -> + nil end end diff --git a/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex index c5f281976..8dfad7a54 100644 --- a/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex @@ -290,7 +290,7 @@ def verify_app_credentials(%{assigns: %{user: _user, token: token}} = conn, _) d end def user(%{assigns: %{user: for_user}} = conn, %{"id" => nickname_or_id}) do - with %User{} = user <- get_user_by_nickname_or_id(for_user, nickname_or_id), + with %User{} = user <- User.get_cached_by_nickname_or_id(nickname_or_id, for: for_user), true <- User.auth_active?(user) || user.id == for_user.id || User.superuser?(for_user) do account = AccountView.render("account.json", %{user: user, for: for_user}) json(conn, account) @@ -390,7 +390,7 @@ def public_timeline(%{assigns: %{user: user}} = conn, params) do end def user_statuses(%{assigns: %{user: reading_user}} = conn, params) do - with %User{} = user <- get_user_by_nickname_or_id(reading_user, params["id"]) do + with %User{} = user <- User.get_cached_by_nickname_or_id(params["id"], for: reading_user) do params = params |> Map.put("tag", params["tagged"]) @@ -1697,25 +1697,4 @@ def try_render(conn, _, _) do defp present?(nil), do: false defp present?(false), do: false defp present?(_), do: true - - defp get_user_by_nickname_or_id(for_user, nickname_or_id) do - restrict_to_local = Pleroma.Config.get([:instance, :limit_to_local_content]) - - opts = - cond do - restrict_to_local == :all -> - [restrict_remote_nicknames: true] - - restrict_to_local == false -> - [] - - restrict_to_local == :unauthenticated and match?(%User{}, for_user) -> - [] - - true -> - [restrict_remote_nicknames: true] - end - - User.get_cached_by_nickname_or_id(nickname_or_id, opts) - end end From 736165c082d34ef4d52367ea8315c228a1df3944 Mon Sep 17 00:00:00 2001 From: Maxim Filippov Date: Thu, 5 Sep 2019 16:54:34 +0300 Subject: [PATCH 111/400] Reverse reports list --- lib/pleroma/web/admin_api/views/report_view.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/web/admin_api/views/report_view.ex b/lib/pleroma/web/admin_api/views/report_view.ex index 0b8745b2e..51b95ad5e 100644 --- a/lib/pleroma/web/admin_api/views/report_view.ex +++ b/lib/pleroma/web/admin_api/views/report_view.ex @@ -12,7 +12,8 @@ defmodule Pleroma.Web.AdminAPI.ReportView do def render("index.json", %{reports: reports}) do %{ - reports: render_many(reports[:items], __MODULE__, "show.json", as: :report), + reports: + render_many(reports[:items], __MODULE__, "show.json", as: :report) |> Enum.reverse(), total: reports[:total] } end From 3523bdcf262dddc7bdf14d759538097f8838cddb Mon Sep 17 00:00:00 2001 From: rinpatch Date: Thu, 5 Sep 2019 22:21:20 +0300 Subject: [PATCH 112/400] Call TrailingFormatPlug for /api/pleroma/emoji Apparently Pleroma-FE still calls it with trailing '.json' --- lib/pleroma/plugs/trailing_format_plug.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/plugs/trailing_format_plug.ex b/lib/pleroma/plugs/trailing_format_plug.ex index 2473e07fe..ce366b218 100644 --- a/lib/pleroma/plugs/trailing_format_plug.ex +++ b/lib/pleroma/plugs/trailing_format_plug.ex @@ -23,7 +23,8 @@ defmodule Pleroma.Plugs.TrailingFormatPlug do "/nodeinfo", "/api/help", "/api/externalprofile", - "/notice" + "/notice", + "/api/pleroma/emoji" ] def init(opts) do From 16e6be340dc56aa03a1a9eed77843962ce97d5ca Mon Sep 17 00:00:00 2001 From: rinpatch Date: Fri, 6 Sep 2019 11:31:44 +0300 Subject: [PATCH 113/400] Update frontend bundle to e75ac9dd --- priv/static/index.html | 2 +- priv/static/static/config.json | 1 - ...a6198.css => app.cb3673e4b661fd9526ea.css} | 35 +++++--- .../css/app.cb3673e4b661fd9526ea.css.map | 1 + .../css/app.db80066bde2c96ea6198.css.map | 1 - priv/static/static/font/LICENSE.txt | 0 priv/static/static/font/README.txt | 0 priv/static/static/font/config.json | 26 ++++-- .../static/static/font/css/fontello-codes.css | 3 +- .../static/font/css/fontello-embedded.css | 15 ++-- .../static/font/css/fontello-ie7-codes.css | 3 +- priv/static/static/font/css/fontello-ie7.css | 3 +- priv/static/static/font/css/fontello.css | 17 ++-- priv/static/static/font/demo.html | 21 +++-- priv/static/static/font/font/fontello.eot | Bin 19060 -> 19452 bytes priv/static/static/font/font/fontello.svg | 4 +- priv/static/static/font/font/fontello.ttf | Bin 18892 -> 19284 bytes priv/static/static/font/font/fontello.woff | Bin 11452 -> 11776 bytes priv/static/static/font/font/fontello.woff2 | Bin 9724 -> 9980 bytes .../static/js/app.670c36c0acc42fadb4fe.js | 2 - .../static/js/app.670c36c0acc42fadb4fe.js.map | 1 - .../static/js/app.8098503330c7dd14a415.js | 2 + .../static/js/app.8098503330c7dd14a415.js.map | 1 + .../js/vendors~app.4b7be53256fba5c365c9.js | 82 ------------------ .../vendors~app.4b7be53256fba5c365c9.js.map | 1 - .../js/vendors~app.4cedffe4993b111c7421.js | 82 ++++++++++++++++++ .../vendors~app.4cedffe4993b111c7421.js.map | 1 + priv/static/sw-pleroma.js | 2 +- 28 files changed, 169 insertions(+), 137 deletions(-) rename priv/static/static/css/{app.db80066bde2c96ea6198.css => app.cb3673e4b661fd9526ea.css} (84%) create mode 100644 priv/static/static/css/app.cb3673e4b661fd9526ea.css.map delete mode 100644 priv/static/static/css/app.db80066bde2c96ea6198.css.map mode change 100644 => 100755 priv/static/static/font/LICENSE.txt mode change 100644 => 100755 priv/static/static/font/README.txt mode change 100644 => 100755 priv/static/static/font/config.json mode change 100644 => 100755 priv/static/static/font/demo.html delete mode 100644 priv/static/static/js/app.670c36c0acc42fadb4fe.js delete mode 100644 priv/static/static/js/app.670c36c0acc42fadb4fe.js.map create mode 100644 priv/static/static/js/app.8098503330c7dd14a415.js create mode 100644 priv/static/static/js/app.8098503330c7dd14a415.js.map delete mode 100644 priv/static/static/js/vendors~app.4b7be53256fba5c365c9.js delete mode 100644 priv/static/static/js/vendors~app.4b7be53256fba5c365c9.js.map create mode 100644 priv/static/static/js/vendors~app.4cedffe4993b111c7421.js create mode 100644 priv/static/static/js/vendors~app.4cedffe4993b111c7421.js.map diff --git a/priv/static/index.html b/priv/static/index.html index e58c4380b..f681f4def 100644 --- a/priv/static/index.html +++ b/priv/static/index.html @@ -1 +1 @@ -Pleroma
\ No newline at end of file +Pleroma
\ No newline at end of file diff --git a/priv/static/static/config.json b/priv/static/static/config.json index 5cdb33a0a..c82678699 100644 --- a/priv/static/static/config.json +++ b/priv/static/static/config.json @@ -6,7 +6,6 @@ "logoMargin": ".1em", "redirectRootNoLogin": "/main/all", "redirectRootLogin": "/main/friends", - "chatDisabled": false, "showInstanceSpecificPanel": false, "collapseMessageWithSubject": false, "scopeCopy": true, diff --git a/priv/static/static/css/app.db80066bde2c96ea6198.css b/priv/static/static/css/app.cb3673e4b661fd9526ea.css similarity index 84% rename from priv/static/static/css/app.db80066bde2c96ea6198.css rename to priv/static/static/css/app.cb3673e4b661fd9526ea.css index b87bc5901..e083f12c8 100644 --- a/priv/static/static/css/app.db80066bde2c96ea6198.css +++ b/priv/static/static/css/app.cb3673e4b661fd9526ea.css @@ -1,17 +1,8 @@ -.with-load-more-footer { - padding: 10px; - text-align: center; - border-top: 1px solid; - border-top-color: #222; - border-top-color: var(--border, #222); -} -.with-load-more-footer .error { - font-size: 14px; -} .tab-switcher .contents .hidden { display: none; } .tab-switcher .tabs { + display: -ms-flexbox; display: flex; position: relative; width: 100%; @@ -23,7 +14,8 @@ .tab-switcher .tabs { .tab-switcher .tabs::after, .tab-switcher .tabs::before { display: block; content: ""; - flex: 1 1 auto; + -ms-flex: 1 1 auto; + flex: 1 1 auto; border-bottom: 1px solid; border-bottom-color: #222; border-bottom-color: var(--border, #222); @@ -31,8 +23,10 @@ .tab-switcher .tabs::after, .tab-switcher .tabs::before { .tab-switcher .tabs .tab-wrapper { height: 28px; position: relative; + display: -ms-flexbox; display: flex; - flex: 0 0 auto; + -ms-flex: 0 0 auto; + flex: 0 0 auto; } .tab-switcher .tabs .tab-wrapper .tab { width: 100%; @@ -55,6 +49,11 @@ .tab-switcher .tabs .tab-wrapper .tab.active { background: transparent; z-index: 5; } +.tab-switcher .tabs .tab-wrapper .tab img { + max-height: 26px; + vertical-align: top; + margin-top: -5px; +} .tab-switcher .tabs .tab-wrapper:not(.active)::after { content: ""; position: absolute; @@ -66,6 +65,16 @@ .tab-switcher .tabs .tab-wrapper:not(.active)::after { border-bottom-color: #222; border-bottom-color: var(--border, #222); } +.with-load-more-footer { + padding: 10px; + text-align: center; + border-top: 1px solid; + border-top-color: #222; + border-top-color: var(--border, #222); +} +.with-load-more-footer .error { + font-size: 14px; +} .with-subscription-loading { padding: 10px; text-align: center; @@ -74,4 +83,4 @@ .with-subscription-loading .error { font-size: 14px; } -/*# sourceMappingURL=app.db80066bde2c96ea6198.css.map*/ \ No newline at end of file +/*# sourceMappingURL=app.cb3673e4b661fd9526ea.css.map*/ \ No newline at end of file diff --git a/priv/static/static/css/app.cb3673e4b661fd9526ea.css.map b/priv/static/static/css/app.cb3673e4b661fd9526ea.css.map new file mode 100644 index 000000000..8cecb0901 --- /dev/null +++ b/priv/static/static/css/app.cb3673e4b661fd9526ea.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./src/components/tab_switcher/tab_switcher.scss","webpack:///./src/hocs/with_load_more/with_load_more.scss","webpack:///./src/hocs/with_subscription/with_subscription.scss"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,C;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,C;ACTA;AACA;AACA;AACA;AACA;AACA;AACA,C","file":"static/css/app.cb3673e4b661fd9526ea.css","sourcesContent":[".tab-switcher .contents .hidden {\n display: none;\n}\n.tab-switcher .tabs {\n display: -ms-flexbox;\n display: flex;\n position: relative;\n width: 100%;\n overflow-y: hidden;\n overflow-x: auto;\n padding-top: 5px;\n box-sizing: border-box;\n}\n.tab-switcher .tabs::after, .tab-switcher .tabs::before {\n display: block;\n content: \"\";\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n border-bottom: 1px solid;\n border-bottom-color: #222;\n border-bottom-color: var(--border, #222);\n}\n.tab-switcher .tabs .tab-wrapper {\n height: 28px;\n position: relative;\n display: -ms-flexbox;\n display: flex;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.tab-switcher .tabs .tab-wrapper .tab {\n width: 100%;\n min-width: 1px;\n position: relative;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n padding: 6px 1em;\n padding-bottom: 99px;\n margin-bottom: -93px;\n white-space: nowrap;\n}\n.tab-switcher .tabs .tab-wrapper .tab:not(.active) {\n z-index: 4;\n}\n.tab-switcher .tabs .tab-wrapper .tab:not(.active):hover {\n z-index: 6;\n}\n.tab-switcher .tabs .tab-wrapper .tab.active {\n background: transparent;\n z-index: 5;\n}\n.tab-switcher .tabs .tab-wrapper .tab img {\n max-height: 26px;\n vertical-align: top;\n margin-top: -5px;\n}\n.tab-switcher .tabs .tab-wrapper:not(.active)::after {\n content: \"\";\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 7;\n border-bottom: 1px solid;\n border-bottom-color: #222;\n border-bottom-color: var(--border, #222);\n}",".with-load-more-footer {\n padding: 10px;\n text-align: center;\n border-top: 1px solid;\n border-top-color: #222;\n border-top-color: var(--border, #222);\n}\n.with-load-more-footer .error {\n font-size: 14px;\n}",".with-subscription-loading {\n padding: 10px;\n text-align: center;\n}\n.with-subscription-loading .error {\n font-size: 14px;\n}"],"sourceRoot":""} \ No newline at end of file diff --git a/priv/static/static/css/app.db80066bde2c96ea6198.css.map b/priv/static/static/css/app.db80066bde2c96ea6198.css.map deleted file mode 100644 index 86f0dd18f..000000000 --- a/priv/static/static/css/app.db80066bde2c96ea6198.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///./src/hocs/with_load_more/with_load_more.scss","webpack:///./src/components/tab_switcher/tab_switcher.scss","webpack:///./src/hocs/with_subscription/with_subscription.scss"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,C;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,C;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA,C","file":"static/css/app.db80066bde2c96ea6198.css","sourcesContent":[".with-load-more-footer {\n padding: 10px;\n text-align: center;\n border-top: 1px solid;\n border-top-color: #222;\n border-top-color: var(--border, #222);\n}\n.with-load-more-footer .error {\n font-size: 14px;\n}",".tab-switcher .contents .hidden {\n display: none;\n}\n.tab-switcher .tabs {\n display: flex;\n position: relative;\n width: 100%;\n overflow-y: hidden;\n overflow-x: auto;\n padding-top: 5px;\n box-sizing: border-box;\n}\n.tab-switcher .tabs::after, .tab-switcher .tabs::before {\n display: block;\n content: \"\";\n flex: 1 1 auto;\n border-bottom: 1px solid;\n border-bottom-color: #222;\n border-bottom-color: var(--border, #222);\n}\n.tab-switcher .tabs .tab-wrapper {\n height: 28px;\n position: relative;\n display: flex;\n flex: 0 0 auto;\n}\n.tab-switcher .tabs .tab-wrapper .tab {\n width: 100%;\n min-width: 1px;\n position: relative;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n padding: 6px 1em;\n padding-bottom: 99px;\n margin-bottom: -93px;\n white-space: nowrap;\n}\n.tab-switcher .tabs .tab-wrapper .tab:not(.active) {\n z-index: 4;\n}\n.tab-switcher .tabs .tab-wrapper .tab:not(.active):hover {\n z-index: 6;\n}\n.tab-switcher .tabs .tab-wrapper .tab.active {\n background: transparent;\n z-index: 5;\n}\n.tab-switcher .tabs .tab-wrapper:not(.active)::after {\n content: \"\";\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 7;\n border-bottom: 1px solid;\n border-bottom-color: #222;\n border-bottom-color: var(--border, #222);\n}",".with-subscription-loading {\n padding: 10px;\n text-align: center;\n}\n.with-subscription-loading .error {\n font-size: 14px;\n}"],"sourceRoot":""} \ No newline at end of file diff --git a/priv/static/static/font/LICENSE.txt b/priv/static/static/font/LICENSE.txt old mode 100644 new mode 100755 diff --git a/priv/static/static/font/README.txt b/priv/static/static/font/README.txt old mode 100644 new mode 100755 diff --git a/priv/static/static/font/config.json b/priv/static/static/font/config.json old mode 100644 new mode 100755 index baa2c763a..72a48a74f --- a/priv/static/static/font/config.json +++ b/priv/static/static/font/config.json @@ -150,12 +150,6 @@ "code": 61669, "src": "fontawesome" }, - { - "uid": "cd21cbfb28ad4d903cede582157f65dc", - "css": "bell", - "code": 59408, - "src": "fontawesome" - }, { "uid": "ccc2329632396dc096bb638d4b46fb98", "css": "mail-alt", @@ -277,6 +271,26 @@ "search": [ "ellipsis" ] + }, + { + "uid": "0bef873af785ead27781fdf98b3ae740", + "css": "bell-ringing-o", + "code": 59408, + "src": "custom_icons", + "selected": true, + "svg": { + "path": "M497.8 0C468.3 0 444.4 23.9 444.4 53.3 444.4 61.1 446.1 68.3 448.9 75 301.7 96.7 213.3 213.3 213.3 320 213.3 588.3 117.8 712.8 35.6 782.2 35.6 821.1 67.8 853.3 106.7 853.3H355.6C355.6 931.7 419.4 995.6 497.8 995.6S640 931.7 640 853.3H888.9C927.8 853.3 960 821.1 960 782.2 877.8 712.8 782.2 588.3 782.2 320 782.2 213.3 693.9 96.7 546.7 75 549.4 68.3 551.1 61.1 551.1 53.3 551.1 23.9 527.2 0 497.8 0ZM189.4 44.8C108.4 118.6 70.5 215.1 71.1 320.2L142.2 319.8C141.7 231.2 170.4 158.3 237.3 97.4L189.4 44.8ZM806.2 44.8L758.3 97.4C825.2 158.3 853.9 231.2 853.3 319.8L924.4 320.2C925.1 215.1 887.2 118.6 806.2 44.8ZM408.9 844.4C413.9 844.4 417.8 848.3 417.8 853.3 417.8 897.2 453.9 933.3 497.8 933.3 502.8 933.3 506.7 937.2 506.7 942.2S502.8 951.1 497.8 951.1C443.9 951.1 400 907.2 400 853.3 400 848.3 403.9 844.4 408.9 844.4Z", + "width": 1000 + }, + "search": [ + "bell-ringing-o" + ] + }, + { + "uid": "0b2b66e526028a6972d51a6f10281b4b", + "css": "zoom-in", + "code": 59420, + "src": "fontawesome" } ] } \ No newline at end of file diff --git a/priv/static/static/font/css/fontello-codes.css b/priv/static/static/font/css/fontello-codes.css index 5f84df349..2083f618a 100755 --- a/priv/static/static/font/css/fontello-codes.css +++ b/priv/static/static/font/css/fontello-codes.css @@ -15,7 +15,7 @@ .icon-video:before { content: '\e80c'; } /* '' */ .icon-right-open:before { content: '\e80d'; } /* '' */ .icon-left-open:before { content: '\e80e'; } /* '' */ .icon-up-open:before { content: '\e80f'; } /* '' */ -.icon-bell:before { content: '\e810'; } /* '' */ +.icon-bell-ringing-o:before { content: '\e810'; } /* '' */ .icon-lock:before { content: '\e811'; } /* '' */ .icon-globe:before { content: '\e812'; } /* '' */ .icon-brush:before { content: '\e813'; } /* '' */ @@ -27,6 +27,7 @@ .icon-pencil:before { content: '\e818'; } /* '' */ .icon-pin:before { content: '\e819'; } /* '' */ .icon-wrench:before { content: '\e81a'; } /* '' */ .icon-chart-bar:before { content: '\e81b'; } /* '' */ +.icon-zoom-in:before { content: '\e81c'; } /* '' */ .icon-spin3:before { content: '\e832'; } /* '' */ .icon-spin4:before { content: '\e834'; } /* '' */ .icon-link-ext:before { content: '\f08e'; } /* '' */ diff --git a/priv/static/static/font/css/fontello-embedded.css b/priv/static/static/font/css/fontello-embedded.css index b4079ea06..ad4246e6e 100755 --- a/priv/static/static/font/css/fontello-embedded.css +++ b/priv/static/static/font/css/fontello-embedded.css @@ -1,15 +1,15 @@ @font-face { font-family: 'fontello'; - src: url('../font/fontello.eot?3632997'); - src: url('../font/fontello.eot?3632997#iefix') format('embedded-opentype'), - url('../font/fontello.svg?3632997#fontello') format('svg'); + src: url('../font/fontello.eot?49712213'); + src: url('../font/fontello.eot?49712213#iefix') format('embedded-opentype'), + url('../font/fontello.svg?49712213#fontello') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'fontello'; - src: url('data:application/octet-stream;base64,d09GRgABAAAAACy8AA8AAAAAScwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABWAAAADsAAABUIIslek9TLzIAAAGUAAAAQwAAAFY+L1N4Y21hcAAAAdgAAAFkAAAEQs+x+y5jdnQgAAADPAAAABMAAAAgBv/+9GZwZ20AAANQAAAFkAAAC3CKkZBZZ2FzcAAACOAAAAAIAAAACAAAABBnbHlmAAAI6AAAH1cAADF2SwZ3VmhlYWQAAChAAAAAMgAAADYVwhCoaGhlYQAAKHQAAAAgAAAAJAfJBAhobXR4AAAolAAAAGAAAAC0odz/4mxvY2EAACj0AAAAXAAAAFwRixuPbWF4cAAAKVAAAAAgAAAAIAGCDaZuYW1lAAApcAAAAXcAAALNzJ0fIXBvc3QAACroAAABVgAAAemcQysrcHJlcAAALEAAAAB6AAAAhuVBK7x4nGNgZGBg4GIwYLBjYHJx8wlh4MtJLMljkGJgYYAAkDwymzEnMz2RgQPGA8qxgGkOIGaDiAIAJjsFSAB4nGNgZJ7JOIGBlYGBqYppDwMDQw+EZnzAYMjIBBRlYGVmwAoC0lxTGBxeMHwyYY78X8gQxZzOMA8ozAiSAwD3dAwvAHic3dPJTsJQFIfxr4g4TzgLTjgrK8PahISHMK59Hn0u38INyVneC3vwfzlnq+xt8yNt06S3nK/AIrAgXalDrUOlI6q2rlaz6w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Ky2wbyywOiuwOystsHAssDorsDwrLbBxLLA6K7A9Ky2wciyzCQQCA0VYIRsjIVlCK7AIZbADJFB4sAEVMC0AS7gAyFJYsQEBjlmwAbkIAAgAY3CxAAVCsgABACqxAAVCswoCAQgqsQAFQrMOAAEIKrEABkK6AsAAAQAJKrEAB0K6AEAAAQAJKrEDAESxJAGIUViwQIhYsQNkRLEmAYhRWLoIgAABBECIY1RYsQMARFlZWVmzDAIBDCq4Af+FsASNsQIARAAA') format('truetype'); } /* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */ /* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */ @@ -17,7 +17,7 @@ @font-face { @media screen and (-webkit-min-device-pixel-ratio:0) { @font-face { font-family: 'fontello'; - src: url('../font/fontello.svg?3632997#fontello') format('svg'); + src: url('../font/fontello.svg?49712213#fontello') format('svg'); } } */ @@ -68,7 +68,7 @@ .icon-video:before { content: '\e80c'; } /* '' */ .icon-right-open:before { content: '\e80d'; } /* '' */ .icon-left-open:before { content: '\e80e'; } /* '' */ .icon-up-open:before { content: '\e80f'; } /* '' */ -.icon-bell:before { content: '\e810'; } /* '' */ +.icon-bell-ringing-o:before { content: '\e810'; } /* '' */ .icon-lock:before { content: '\e811'; } /* '' */ .icon-globe:before { content: '\e812'; } /* '' */ .icon-brush:before { content: '\e813'; } /* '' */ @@ -80,6 +80,7 @@ .icon-pencil:before { content: '\e818'; } /* '' */ .icon-pin:before { content: '\e819'; } /* '' */ .icon-wrench:before { content: '\e81a'; } /* '' */ .icon-chart-bar:before { content: '\e81b'; } /* '' */ +.icon-zoom-in:before { content: '\e81c'; } /* '' */ .icon-spin3:before { content: '\e832'; } /* '' */ .icon-spin4:before { content: '\e834'; } /* '' */ .icon-link-ext:before { content: '\f08e'; } /* '' */ diff --git a/priv/static/static/font/css/fontello-ie7-codes.css b/priv/static/static/font/css/fontello-ie7-codes.css index 3fe390d82..cbc410004 100755 --- a/priv/static/static/font/css/fontello-ie7-codes.css +++ b/priv/static/static/font/css/fontello-ie7-codes.css @@ -15,7 +15,7 @@ .icon-video { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML .icon-right-open { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-left-open { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-up-open { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } -.icon-bell { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } +.icon-bell-ringing-o { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-lock { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-globe { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-brush { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } @@ -27,6 +27,7 @@ .icon-pencil { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTM .icon-pin { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-wrench { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-chart-bar { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } +.icon-zoom-in { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-spin3 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-spin4 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-link-ext { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } diff --git a/priv/static/static/font/css/fontello-ie7.css b/priv/static/static/font/css/fontello-ie7.css index 77c23c0e2..1ef174bf8 100755 --- a/priv/static/static/font/css/fontello-ie7.css +++ b/priv/static/static/font/css/fontello-ie7.css @@ -26,7 +26,7 @@ .icon-video { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML .icon-right-open { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-left-open { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-up-open { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } -.icon-bell { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } +.icon-bell-ringing-o { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-lock { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-globe { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-brush { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } @@ -38,6 +38,7 @@ .icon-pencil { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTM .icon-pin { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-wrench { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-chart-bar { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } +.icon-zoom-in { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-spin3 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-spin4 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } .icon-link-ext { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); } diff --git a/priv/static/static/font/css/fontello.css b/priv/static/static/font/css/fontello.css index 93def62db..84fd6802c 100755 --- a/priv/static/static/font/css/fontello.css +++ b/priv/static/static/font/css/fontello.css @@ -1,11 +1,11 @@ @font-face { font-family: 'fontello'; - src: url('../font/fontello.eot?3304725'); - src: url('../font/fontello.eot?3304725#iefix') format('embedded-opentype'), - url('../font/fontello.woff2?3304725') format('woff2'), - url('../font/fontello.woff?3304725') format('woff'), - url('../font/fontello.ttf?3304725') format('truetype'), - url('../font/fontello.svg?3304725#fontello') format('svg'); + src: url('../font/fontello.eot?4060331'); + src: url('../font/fontello.eot?4060331#iefix') format('embedded-opentype'), + url('../font/fontello.woff2?4060331') format('woff2'), + url('../font/fontello.woff?4060331') format('woff'), + url('../font/fontello.ttf?4060331') format('truetype'), + url('../font/fontello.svg?4060331#fontello') format('svg'); font-weight: normal; font-style: normal; } @@ -15,7 +15,7 @@ @font-face { @media screen and (-webkit-min-device-pixel-ratio:0) { @font-face { font-family: 'fontello'; - src: url('../font/fontello.svg?3304725#fontello') format('svg'); + src: url('../font/fontello.svg?4060331#fontello') format('svg'); } } */ @@ -71,7 +71,7 @@ .icon-video:before { content: '\e80c'; } /* '' */ .icon-right-open:before { content: '\e80d'; } /* '' */ .icon-left-open:before { content: '\e80e'; } /* '' */ .icon-up-open:before { content: '\e80f'; } /* '' */ -.icon-bell:before { content: '\e810'; } /* '' */ +.icon-bell-ringing-o:before { content: '\e810'; } /* '' */ .icon-lock:before { content: '\e811'; } /* '' */ .icon-globe:before { content: '\e812'; } /* '' */ .icon-brush:before { content: '\e813'; } /* '' */ @@ -83,6 +83,7 @@ .icon-pencil:before { content: '\e818'; } /* '' */ .icon-pin:before { content: '\e819'; } /* '' */ .icon-wrench:before { content: '\e81a'; } /* '' */ .icon-chart-bar:before { content: '\e81b'; } /* '' */ +.icon-zoom-in:before { content: '\e81c'; } /* '' */ .icon-spin3:before { content: '\e832'; } /* '' */ .icon-spin4:before { content: '\e834'; } /* '' */ .icon-link-ext:before { content: '\f08e'; } /* '' */ diff --git a/priv/static/static/font/demo.html b/priv/static/static/font/demo.html old mode 100644 new mode 100755 index a1e14322c..225e4ec5b --- a/priv/static/static/font/demo.html +++ b/priv/static/static/font/demo.html @@ -229,11 +229,11 @@ body { } @font-face { font-family: 'fontello'; - src: url('./font/fontello.eot?14310629'); - src: url('./font/fontello.eot?14310629#iefix') format('embedded-opentype'), - url('./font/fontello.woff?14310629') format('woff'), - url('./font/fontello.ttf?14310629') format('truetype'), - url('./font/fontello.svg?14310629#fontello') format('svg'); + src: url('./font/fontello.eot?25455785'); + src: url('./font/fontello.eot?25455785#iefix') format('embedded-opentype'), + url('./font/fontello.woff?25455785') format('woff'), + url('./font/fontello.ttf?25455785') format('truetype'), + url('./font/fontello.svg?25455785#fontello') format('svg'); font-weight: normal; font-style: normal; } @@ -322,7 +322,7 @@ body {
icon-up-open0xe80f
-
icon-bell0xe810
+
icon-bell-ringing-o0xe810
icon-lock0xe811
icon-globe0xe812
icon-brush0xe813
@@ -340,27 +340,30 @@ body {
icon-chart-bar0xe81b
+
icon-zoom-in0xe81c
icon-spin30xe832
icon-spin40xe834
icon-link-ext0xf08e
-
icon-link-ext-alt0xf08f
+
icon-link-ext-alt0xf08f
icon-menu0xf0c9
icon-mail-alt0xf0e0
icon-comment-empty0xf0e5
-
icon-bell-alt0xf0f3
+
icon-bell-alt0xf0f3
icon-plus-squared0xf0fe
icon-reply0xf112
icon-lock-open-alt0xf13e
-
icon-ellipsis0xf141
+
icon-ellipsis0xf141
icon-play-circled0xf144
icon-thumbs-up-alt0xf164
icon-binoculars0xf1e5
+
+
icon-user-plus0xf234
diff --git a/priv/static/static/font/font/fontello.eot b/priv/static/static/font/font/fontello.eot index 6f9cb4a29dff60d98242a41f57538003a9d8e2d7..d08692e84134f5c16e188e97c841e691f820e15a 100755 GIT binary patch delta 1452 zcmZ`(ZAe>J7=GXTb#7u3V{&t2Kk}ibiAGax5)+NFOR;7taTRXas zEU>XZrL(IMIv8UuY@-ZT>_p~Z(86F)=%Bv_gZU!QkNrJbh$N8$kB zKAW4)T)FvuPHF-wuzdaAo_K2QG zW@vyt5Oe_TGWnjF%>3og^QGU&Zz6v!oju(<*<^8$-Ts)mS2L5BbNHU|3xHS``R=*N z%+$kATs7pM0pNbjWiQU(SgQUOppz27=eY}0xhKiS?*RH97H{JB4IV(!0Xl)-wVH_a zr1XFQoAjU-++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G?OWbY^x3^@{{B{mD9B>l z@e`0if^<5E*gON&>Ztyl_e=G-((vM$S|^W-YFf(nmfO}AC7&Ce+?drG-t - + @@ -62,6 +62,8 @@ + + diff --git a/priv/static/static/font/font/fontello.ttf b/priv/static/static/font/font/fontello.ttf index 8a771e529acaa1311334bc7cb01b0c4bcb0e7856..6f5a81d7670e06dbc3cac29ea406c81af010f651 100755 GIT binary patch delta 1431 zcmZ`(T}&fY6h3$U?o9tEWjck0mO{&vEfm;NS||nEg|+-GLDvUZhzqhTAe2^?HLJ1d zgD+;I`@?KB#u(iP&BjE75+WwXU`$Ll!DLO$8cj^pxJe&;sHh2;EcKMpr`68=?sv|e z^PRcp-0AFUnFqxedUL%|5&47K(>|06Y={0QZH=eCo=L>l5ft0T?s$ zGZ!;Xy~9ZWT_XD4h1A;R zce2Hw&~HY6dpSKjIMZx%qTTfiPEV$0E@#M#=63<2{ph<_W>RyzZ`RhKe;$DODwDpr z_S((LPXKyw1LQ$wbuM#1(ex?6(C&@>FIv4oPzJ;W?2*-sY(SwGIM~A*_25Q}$=BqA z`B34SW?^bHfk`^gLg||N?@N1{ndAeQRnWd>{?g)%RAwqYg(=lg`UN(>XU~va4L}|N zSWZ5u16;_s(-NQ-pm0?OZUYL}bO2UYxT6C%2!$VYfCu@$4)7xXt^*p74|RYF@S9D? z5ctsO)d7vj2_0}88QWO`_>r-dB|sB0KA;4^TJ~_0C15?j^6y)696<3ByTeYPCopt90UWETncl8*LZxI^`+9U+{2VI&@N z+uK8ta4yn7U4*uWeJTkmc3Ei;Dzf0I$Jj90Q`~&AvppL1pY}Ts)Wm2)J#hL@H$}Tb zktA1pxYg})CY8z)Ojld5g(Qj7br|9J);f;oxyC5ZPSh#}lhNm03~yy86HdSHq^h3u z`JIW$>{fWu>oZzJw^ADj5A;9QAMOlfXemA9-pwpc7a z!`@F89XageAqG7-1-#5&sL3cKu4 zWsk?mJDczj1fS<2|2yN-jn{4wowqrK`4J;+21q8^kL4JETm`_@>u`Gb1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*O^iDbX>PtHx0Gg6;8wx#Z9uyyGfd?^z4M$R$N>KR3jRgh$d8M z(g$`Bv9~T3MjDyPi#|NSR*!8G9EtNaVu}g1)t=_9FWg1CVpzOb4a`)z?74j_+=zz> zXPr)wk=l;Ov;$UU6r@i=8Te3dFeZhO4@1?eY>8#H+#;#TR;OCqY@oDxxe$!eh)wJ_ zpiGxN+=|uw-C=XAM3GwBH0q&mgVXA5^XtshG~m+V-0WnYCZXT$G+oWqOhbn?SiQ93 zNdJXC^&>K<$91djc7Z{n`22_<;rVbIcg84sEasZJUg?#D<4-`5)kfsVXmB#PzRRtzGq9|31m~WO z{|DTMaTZ(!F9W_f%BarW27f(HnTyqdUoZ8i9wJgWJ` zdfOT>VnZx(E#tB|Fkr!kML<nNgJ49iP^ze^snbA1jWpJZR<)+-hH2SO z-EA~m?M~P0`9T=PNt#XM{ba&WaR2%z%rWwU`S35=)F8><$Ushzb zEJuzA;|qr0cR1Cc?*-#)z_}MCbT^cCxSaI_X}8b!?e_0@S{+q zkQ!bk+H!kJei0q;BVe^_CpIhWo%2uDyXL@0?(0,d.default)(s).id:void 0,e.next=7,M({id:i,maxId:l,credentials:a});case 7:c=e.sent,s=(0,p.default)(s,c),0===c.length&&(r=!1),e.next=3;break;case 12:t(s),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(0),n(e.t0);case 18:case"end":return e.stop()}},e,void 0,[[0,15]])})),function(e,i){return t.apply(this,arguments)}))},fetchFollowers:function(e){var t=e.id,i=e.maxId,a=e.sinceId,o=e.limit,n=void 0===o?20:o,s=e.credentials,r=function(e){return"/api/v1/accounts/"+e+"/followers"}(t),l=[i&&"max_id="+i,a&&"since_id="+a,n&&"limit="+n].filter(function(e){return e}).join("&");return A(r+=l?"?"+l:"",{headers:I(s)}).then(function(e){return e.json()}).then(function(e){return e.map(h.parseUser)})},followUser:function(e){var t=e.id,i=e.credentials,a=function(e){return"/api/v1/accounts/"+e+"/follow"}(t);return A(a,{headers:I(i),method:"POST"}).then(function(e){return e.json()})},unfollowUser:function(e){var t=e.id,i=e.credentials,a=function(e){return"/api/v1/accounts/"+e+"/unfollow"}(t);return A(a,{headers:I(i),method:"POST"}).then(function(e){return e.json()})},pinOwnStatus:function(e){var t=e.id,i=e.credentials;return O({url:L(t),credentials:i,method:"POST"}).then(function(e){return(0,h.parseStatus)(e)})},unpinOwnStatus:function(e){var t=e.id,i=e.credentials;return O({url:z(t),credentials:i,method:"POST"}).then(function(e){return(0,h.parseStatus)(e)})},blockUser:function(e){var t=e.id,i=e.credentials;return A(function(e){return"/api/v1/accounts/"+e+"/block"}(t),{headers:I(i),method:"POST"}).then(function(e){return e.json()})},unblockUser:function(e){var t=e.id,i=e.credentials;return A(function(e){return"/api/v1/accounts/"+e+"/unblock"}(t),{headers:I(i),method:"POST"}).then(function(e){return e.json()})},fetchUser:function(e){var t=e.id,i=e.credentials;return O({url:"/api/v1/accounts/"+t,credentials:i}).then(function(e){return(0,h.parseUser)(e)})},fetchUserRelationship:function(e){var t=e.id,i=e.credentials,a="/api/v1/accounts/relationships/?id="+t;return A(a,{headers:I(i)}).then(function(e){return new l.default(function(t,i){return e.json().then(function(o){return e.ok?t(o):i(new _.StatusCodeError(e.status,o,{url:a},e))})})})},favorite:function(e){var t=e.id,i=e.credentials;return O({url:b(t),method:"POST",credentials:i}).then(function(e){return(0,h.parseStatus)(e)})},unfavorite:function(e){var t=e.id,i=e.credentials;return O({url:w(t),method:"POST",credentials:i}).then(function(e){return(0,h.parseStatus)(e)})},retweet:function(e){var t=e.id,i=e.credentials;return O({url:y(t),method:"POST",credentials:i}).then(function(e){return(0,h.parseStatus)(e)})},unretweet:function(e){var t=e.id,i=e.credentials;return O({url:k(t),method:"POST",credentials:i}).then(function(e){return(0,h.parseStatus)(e)})},postStatus:function(e){var t=e.credentials,i=e.status,o=e.spoilerText,n=e.visibility,s=e.sensitive,r=e.poll,l=e.mediaIds,c=void 0===l?[]:l,u=e.inReplyToStatusId,d=e.contentType,p=new FormData,f=r.options||[];if(p.append("status",i),p.append("source","Pleroma FE"),o&&p.append("spoiler_text",o),n&&p.append("visibility",n),s&&p.append("sensitive",s),d&&p.append("content_type",d),c.forEach(function(e){p.append("media_ids[]",e)}),f.some(function(e){return""!==e})){var m={expires_in:r.expiresIn,multiple:r.multiple};(0,a.default)(m).forEach(function(e){p.append("poll["+e+"]",m[e])}),f.forEach(function(e){p.append("poll[options][]",e)})}return u&&p.append("in_reply_to_id",u),A("/api/v1/statuses",{body:p,method:"POST",headers:I(t)}).then(function(e){return e.ok?e.json():{error:e}}).then(function(e){return e.error?e:(0,h.parseStatus)(e)})},deleteStatus:function(e){var t=e.id,i=e.credentials;return A(function(e){return"/api/v1/statuses/"+e}(t),{headers:I(i),method:"DELETE"})},uploadMedia:function(e){var t=e.formData,i=e.credentials;return A("/api/v1/media",{body:t,method:"POST",headers:I(i)}).then(function(e){return e.json()}).then(function(e){return(0,h.parseAttachment)(e)})},fetchMutes:function(e){var t=e.credentials;return O({url:"/api/v1/mutes/",credentials:t}).then(function(e){return e.map(h.parseUser)})},muteUser:function(e){var t=e.id,i=e.credentials;return O({url:S(t),credentials:i,method:"POST"})},unmuteUser:function(e){var t=e.id,i=e.credentials;return O({url:P(t),credentials:i,method:"POST"})},fetchBlocks:function(e){var t=e.credentials;return O({url:"/api/v1/blocks/",credentials:t}).then(function(e){return e.map(h.parseUser)})},fetchOAuthTokens:function(e){var t=e.credentials;return A("/api/oauth_tokens.json",{headers:I(t)}).then(function(e){if(e.ok)return e.json();throw new Error("Error fetching auth tokens",e)})},revokeOAuthToken:function(e){var t=e.id,i=e.credentials;return A("/api/oauth_tokens/"+t,{headers:I(i),method:"DELETE"})},tagUser:function(e){var t=e.tag,i=e.credentials,a={nicknames:[(0,r.default)(e,["tag","credentials"]).screen_name],tags:[t]},o=I(i);return o["Content-Type"]="application/json",A("/api/pleroma/admin/users/tag",{method:"PUT",headers:o,body:(0,c.default)(a)})},untagUser:function(e){var t=e.tag,i=e.credentials,a={nicknames:[(0,r.default)(e,["tag","credentials"]).screen_name],tags:[t]},o=I(i);return o["Content-Type"]="application/json",A("/api/pleroma/admin/users/tag",{method:"DELETE",headers:o,body:(0,c.default)(a)})},deleteUser:function(e){var t=e.credentials,i=(0,r.default)(e,["credentials"]).screen_name,a=I(t);return A("/api/pleroma/admin/users?nickname="+i,{method:"DELETE",headers:a})},addRight:function(e){var t=e.right,i=e.credentials,a=(0,r.default)(e,["right","credentials"]).screen_name;return A(g(a,t),{method:"POST",headers:I(i),body:{}})},deleteRight:function(e){var t=e.right,i=e.credentials,a=(0,r.default)(e,["right","credentials"]).screen_name;return A(g(a,t),{method:"DELETE",headers:I(i),body:{}})},setActivationStatus:function(e){var t=e.status,i=e.credentials,a=(0,r.default)(e,["status","credentials"]).screen_name,o={status:t},n=I(i);return n["Content-Type"]="application/json",A(function(e){return"/api/pleroma/admin/users/"+e+"/activation_status"}(a),{method:"PUT",headers:n,body:(0,c.default)(o)})},register:function(e){var t=e.params,i=e.credentials,a=t.nickname,o=(0,r.default)(t,["nickname"]);return A("/api/v1/accounts",{method:"POST",headers:(0,u.default)({},I(i),{"Content-Type":"application/json"}),body:(0,c.default)((0,u.default)({nickname:a,locale:"en_US",agreement:!0},o))}).then(function(e){return[e.ok,e]}).then(function(e){var t=(0,s.default)(e,2),i=t[0],a=t[1];return i?a.json():a.json().then(function(e){throw new Error(e)})})},getCaptcha:function(){return A("/api/pleroma/captcha").then(function(e){return e.json()})},updateAvatar:function(e){var t=e.credentials,i=e.avatar,a=new FormData;return a.append("avatar",i),A("/api/v1/accounts/update_credentials",{headers:I(t),method:"PATCH",body:a}).then(function(e){return e.json()}).then(function(e){return(0,h.parseUser)(e)})},updateBg:function(e){var t=e.credentials,i=e.background,a=new FormData;return a.append("pleroma_background_image",i),A("/api/v1/accounts/update_credentials",{headers:I(t),method:"PATCH",body:a}).then(function(e){return e.json()}).then(function(e){return(0,h.parseUser)(e)})},updateProfile:function(e){var t=e.credentials,i=e.params;return O({url:"/api/v1/accounts/update_credentials",method:"PATCH",payload:i,credentials:t}).then(function(e){return(0,h.parseUser)(e)})},updateBanner:function(e){var t=e.credentials,i=e.banner,a=new FormData;return a.append("header",i),A("/api/v1/accounts/update_credentials",{headers:I(t),method:"PATCH",body:a}).then(function(e){return e.json()}).then(function(e){return(0,h.parseUser)(e)})},externalProfile:function(e){var t=e.profileUrl,i=e.credentials;return A("/api/externalprofile/show.json?profileurl="+t,{headers:I(i),method:"GET"}).then(function(e){return e.json()})},importBlocks:function(e){var t=e.file,i=e.credentials,a=new FormData;return a.append("list",t),A("/api/pleroma/blocks_import",{body:a,method:"POST",headers:I(i)}).then(function(e){return e.ok})},importFollows:function(e){var t=e.file,i=e.credentials,a=new FormData;return a.append("list",t),A("/api/pleroma/follow_import",{body:a,method:"POST",headers:I(i)}).then(function(e){return e.ok})},deleteAccount:function(e){var t=e.credentials,i=e.password,a=new FormData;return a.append("password",i),A("/api/pleroma/delete_account",{body:a,method:"POST",headers:I(t)}).then(function(e){return e.json()})},changePassword:function(e){var t=e.credentials,i=e.password,a=e.newPassword,o=e.newPasswordConfirmation,n=new FormData;return n.append("password",i),n.append("new_password",a),n.append("new_password_confirmation",o),A("/api/pleroma/change_password",{body:n,method:"POST",headers:I(t)}).then(function(e){return e.json()})},settingsMFA:function(e){var t=e.credentials;return A("/api/pleroma/profile/mfa",{headers:I(t),method:"GET"}).then(function(e){return e.json()})},mfaDisableOTP:function(e){var t=e.credentials,i=e.password,a=new FormData;return a.append("password",i),A("/api/pleroma/profile/mfa/totp",{body:a,method:"DELETE",headers:I(t)}).then(function(e){return e.json()})},generateMfaBackupCodes:function(e){var t=e.credentials;return A("/api/pleroma/profile/mfa/backup_codes",{headers:I(t),method:"GET"}).then(function(e){return e.json()})},mfaSetupOTP:function(e){var t=e.credentials;return A("/api/pleroma/profile/mfa/setup/totp",{headers:I(t),method:"GET"}).then(function(e){return e.json()})},mfaConfirmOTP:function(e){var t=e.credentials,i=e.password,a=e.token,o=new FormData;return o.append("password",i),o.append("code",a),A("/api/pleroma/profile/mfa/confirm/totp",{body:o,headers:I(t),method:"POST"}).then(function(e){return e.json()})},fetchFollowRequests:function(e){var t=e.credentials;return A("/api/pleroma/friend_requests",{headers:I(t)}).then(function(e){return e.json()})},approveUser:function(e){var t=e.id,i=e.credentials;return A("/api/pleroma/friendships/approve?user_id="+t,{headers:I(i),method:"POST"}).then(function(e){return e.json()})},denyUser:function(e){var t=e.id,i=e.credentials;return A("/api/pleroma/friendships/deny?user_id="+t,{headers:I(i),method:"POST"}).then(function(e){return e.json()})},suggestions:function(e){var t=e.credentials;return A("/api/v1/suggestions",{headers:I(t)}).then(function(e){return e.json()})},markNotificationsAsSeen:function(e){var t=e.id,i=e.credentials,a=new FormData;return a.append("latest_id",t),A("/api/qvitter/statuses/notifications/read.json",{body:a,headers:I(i),method:"POST"}).then(function(e){return e.json()})},vote:function(e){var t,i=e.pollId,a=e.choices,o=e.credentials;return(new FormData).append("choices",a),O({url:(t=encodeURIComponent(i),"/api/v1/polls/"+t+"/votes"),method:"POST",credentials:o,payload:{choices:a}})},fetchPoll:function(e){var t,i=e.pollId,a=e.credentials;return O({url:(t=encodeURIComponent(i),"/api/v1/polls/"+t),method:"GET",credentials:a})},fetchFavoritedByUsers:function(e){var t=e.id;return O({url:j(t)}).then(function(e){return e.map(h.parseUser)})},fetchRebloggedByUsers:function(e){var t=e.id;return O({url:$(t)}).then(function(e){return e.map(h.parseUser)})},reportUser:function(e){var t=e.credentials,i=e.userId,a=e.statusIds,o=e.comment,n=e.forward;return O({url:"/api/v1/reports",method:"POST",payload:{account_id:i,status_ids:a,comment:o,forward:n},credentials:t})},updateNotificationSettings:function(e){var t=e.credentials,i=e.settings,a=new FormData;return(0,m.default)(i,function(e,t){a.append(t,e)}),A("/api/pleroma/notification_settings",{headers:I(t),method:"PUT",body:a}).then(function(e){return e.json()})}};t.default=R},,,,,,,,,,,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(740),n=(a=o)&&a.__esModule?a:{default:a};var s=function(e){return e&&e.includes("@")};t.default=function(e,t,i){var a=!t||s(t)||(0,n.default)(i,t);return{name:a?"external-user-profile":"user-profile",params:a?{id:e}:{name:t}}}},,,,,,,,function(e,t,i){"use strict";i.r(t);var a=i(105),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(262),r=i(0);var l=function(e){i(687)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";i.r(t);var a=i(121),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(256),r=i(0);var l=function(e){i(729)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},,,,,,,,,,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.alphaBlend=t.getContrastRatio=t.invert=t.mixrgb=t.hex2rgb=t.rgb2hex=void 0;var a=r(i(28)),o=r(i(14)),n=r(i(61)),s=r(i(22));function r(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return"rgb".split("").reduce(function(t,i){return t[i]=function(e){var t=e/255;return t<.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}(e[i]),t},{})},c=function(e){var t=l(e);return.2126*t.r+.7152*t.g+.0722*t.b};t.rgb2hex=function(e,t,i){if(null!=e){if("#"===e[0])return e;if("object"===(void 0===e?"undefined":(0,n.default)(e))){var a=e;e=a.r,t=a.g,i=a.b}var r=(0,s.default)([e,t,i],function(e){return e=(e=(e=Math.ceil(e))<0?0:e)>255?255:e}),l=(0,o.default)(r,3);return"#"+((1<<24)+((e=l[0])<<16)+((t=l[1])<<8)+(i=l[2])).toString(16).slice(1)}},t.hex2rgb=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},t.mixrgb=function(e,t){return(0,a.default)(e).reduce(function(i,a){return i[a]=(e[a]+t[a])/2,i},{})},t.invert=function(e){return"rgb".split("").reduce(function(t,i){return t[i]=255-e[i],t},{})},t.getContrastRatio=function(e,t){var i=c(e),a=c(t),n=i>a?[i,a]:[a,i],s=(0,o.default)(n,2);return(s[0]+.05)/(s[1]+.05)},t.alphaBlend=function(e,t,i){return 1===t||void 0===t?e:"rgb".split("").reduce(function(a,o){return a[o]=e[o]*t+i[o]*(1-t),a},{})}},,,,,,,,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e.match(/text\/html/)?"html":e.match(/image/)?"image":e.match(/video/)?"video":e.match(/audio/)?"audio":"unknown"},o={fileType:a,fileMatchesSomeType:function(e,t){return e.some(function(e){return a(t.mimetype)===e})}};t.default=o},,function(e,t,i){"use strict";i.r(t);var a=i(122),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(252),r=i(0);var l=function(e){i(731)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},,,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCssShadowFilter=t.getCssShadow=t.composePreset=t.getThemes=t.generatePreset=t.generateFonts=t.generateShadows=t.generateRadii=t.generateColors=t.getTextColor=t.applyTheme=t.setPreset=t.setStyle=void 0;var a=p(i(13)),o=p(i(14)),n=p(i(35)),s=p(i(10)),r=p(i(61)),l=p(i(36)),c=p(i(479)),u=i(483),d=i(63);function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){return"rgba("+e.r+", "+e.g+", "+e.b+", "+e.a+")"},m=function(e,t,i){var a=(0,u.convert)(e).hsl.l>50,o=(0,u.convert)(t).hsl.l>50;if(a&&o||!a&&!o){var n=void 0!==t.a?{a:t.a}:{},s=(0,l.default)(n,(0,u.invertLightness)(t).rgb);return!i&&(0,d.getContrastRatio)(e,s)<4.5?(0,u.contrastRatio)(e,t).rgb:s}return t},h=function(e,t){var i=C(e),a=i.rules,o=i.theme,n=document.head,s=document.body;s.style.display="none";var r=document.createElement("style");n.appendChild(r);var l=r.sheet;l.toString(),l.insertRule("body { "+a.radii+" }","index-max"),l.insertRule("body { "+a.colors+" }","index-max"),l.insertRule("body { "+a.shadows+" }","index-max"),l.insertRule("body { "+a.fonts+" }","index-max"),s.style.display="initial",t("setOption",{name:"customTheme",value:e}),t("setOption",{name:"colors",value:o.colors})},_=function(e,t){return 0===e.length?"none":e.filter(function(e){return t?e.inset:e}).map(function(e){return[e.x,e.y,e.blur,e.spread].map(function(e){return e+"px"}).concat([g(e.color,e.alpha),e.inset?"inset":""]).join(" ")}).join(", ")},v=function(e){return 0===e.length?"none":e.filter(function(e){return!e.inset&&0===Number(e.spread)}).map(function(e){return[e.x,e.y,e.blur/2].map(function(e){return e+"px"}).concat([g(e.color,e.alpha)]).join(" ")}).map(function(e){return"drop-shadow("+e+")"}).join(" ")},g=function(e,t){var i={};if("object"===(void 0===e?"undefined":(0,r.default)(e)))i=e;else if("string"==typeof e){if(!e.startsWith("#"))return e.startsWith("--")?"var("+e+")":e;i=(0,d.hex2rgb)(e)}return f((0,s.default)({},i,{a:t}))},b=function(e){var t={},i=(0,l.default)({alert:.5,input:.5,faint:.5},(0,n.default)(e.opacity||{}).reduce(function(e,t){var i=(0,o.default)(t,2),a=i[0],n=i[1];return void 0!==n&&(e[a]=n),e},{})),a=(0,n.default)(e.colors||e).reduce(function(e,t){var i=(0,o.default)(t,2),a=i[0],n=i[1];return"object"===(void 0===n?"undefined":(0,r.default)(n))?e[a]=n:e[a]=(0,d.hex2rgb)(n),e},{}),s=(0,u.convert)(a.bg).hsl.l<(0,u.convert)(a.text).hsl.l?1:-1;t.text=a.text,t.lightText=(0,u.brightness)(20*s,t.text).rgb,t.link=a.link,t.faint=a.faint||(0,l.default)({},a.text),t.bg=a.bg,t.lightBg=a.lightBg||(0,u.brightness)(5,t.bg).rgb,t.fg=a.fg,t.fgText=a.fgText||m(t.fg,t.text),t.fgLink=a.fgLink||m(t.fg,t.link,!0),t.border=a.border||(0,u.brightness)(2*s,t.fg).rgb,t.btn=a.btn||(0,l.default)({},a.fg),t.btnText=a.btnText||m(t.btn,t.fgText),t.input=a.input||(0,l.default)({},a.fg),t.inputText=a.inputText||m(t.input,t.lightText),t.panel=a.panel||(0,l.default)({},a.fg),t.panelText=a.panelText||m(t.panel,t.fgText),t.panelLink=a.panelLink||m(t.panel,t.fgLink),t.panelFaint=a.panelFaint||m(t.panel,t.faint),t.topBar=a.topBar||(0,l.default)({},a.fg),t.topBarText=a.topBarText||m(t.topBar,t.fgText),t.topBarLink=a.topBarLink||m(t.topBar,t.fgLink),t.faintLink=a.faintLink||(0,l.default)({},a.link),t.linkBg=(0,d.alphaBlend)(t.link,.4,t.bg),t.icon=(0,d.mixrgb)(t.bg,t.text),t.cBlue=a.cBlue||(0,d.hex2rgb)("#0000FF"),t.cRed=a.cRed||(0,d.hex2rgb)("#FF0000"),t.cGreen=a.cGreen||(0,d.hex2rgb)("#00FF00"),t.cOrange=a.cOrange||(0,d.hex2rgb)("#E3FF00"),t.alertError=a.alertError||(0,l.default)({},t.cRed),t.alertErrorText=m((0,d.alphaBlend)(t.alertError,i.alert,t.bg),t.text),t.alertErrorPanelText=m((0,d.alphaBlend)(t.alertError,i.alert,t.panel),t.panelText),t.badgeNotification=a.badgeNotification||(0,l.default)({},t.cRed),t.badgeNotificationText=(0,u.contrastRatio)(t.badgeNotification).rgb,(0,n.default)(i).forEach(function(e){var i=(0,o.default)(e,2),a=i[0],n=i[1];void 0!==n&&("alert"!==a?("faint"===a&&(t[a+"Link"].a=n,t.panelFaint.a=n),"bg"===a&&(t.lightBg.a=n),t[a]?t[a].a=n:console.error("Wrong key "+a)):t.alertError.a=n)});var c=(0,n.default)(t).reduce(function(e,t){var i=(0,o.default)(t,2),a=i[0],n=i[1];return n?(e.solid[a]=(0,d.rgb2hex)(n),e.complete[a]=void 0===n.a?(0,d.rgb2hex)(n):f(n),e):e},{complete:{},solid:{}});return{rules:{colors:(0,n.default)(c.complete).filter(function(e){var t=(0,o.default)(e,2);t[0];return t[1]}).map(function(e){var t=(0,o.default)(e,2);return"--"+t[0]+": "+t[1]}).join(";")},theme:{colors:c.solid,opacity:i}}},w=function(e){var t=e.radii||{};void 0!==e.btnRadius&&(t=(0,n.default)(e).filter(function(e){var t=(0,o.default)(e,2),i=t[0];t[1];return i.endsWith("Radius")}).reduce(function(e,t){return e[t[0].split("Radius")[0]]=t[1],e},{}));var i=(0,n.default)(t).filter(function(e){var t=(0,o.default)(e,2);t[0];return t[1]}).reduce(function(e,t){var i=(0,o.default)(t,2),a=i[0],n=i[1];return e[a]=n,e},{btn:4,input:4,checkbox:2,panel:10,avatar:5,avatarAlt:50,tooltip:2,attachment:5});return{rules:{radii:(0,n.default)(i).filter(function(e){var t=(0,o.default)(e,2);t[0];return t[1]}).map(function(e){var t=(0,o.default)(e,2);return"--"+t[0]+"Radius: "+t[1]+"px"}).join(";")},theme:{radii:i}}},y=function(e){var t=(0,n.default)(e.fonts||{}).filter(function(e){var t=(0,o.default)(e,2);t[0];return t[1]}).reduce(function(e,t){var i=(0,o.default)(t,2),a=i[0],s=i[1];return e[a]=(0,n.default)(s).filter(function(e){var t=(0,o.default)(e,2);t[0];return t[1]}).reduce(function(e,t){var i=(0,o.default)(t,2),a=i[0],n=i[1];return e[a]=n,e},e[a]),e},{interface:{family:"sans-serif"},input:{family:"inherit"},post:{family:"inherit"},postCode:{family:"monospace"}});return{rules:{fonts:(0,n.default)(t).filter(function(e){var t=(0,o.default)(e,2);t[0];return t[1]}).map(function(e){var t=(0,o.default)(e,2);return"--"+t[0]+"Font: "+t[1].family}).join(";")},theme:{fonts:t}}},k=function(e){var t=function(e,t){return{x:0,y:e?1:-1,blur:0,spread:0,color:t?"#000000":"#FFFFFF",alpha:.2,inset:!0}},i=[t(!0,!1),t(!1,!0)],a=[t(!0,!0),t(!1,!1)],r={x:0,y:0,blur:4,spread:0,color:"--faint",alpha:1},l=(0,s.default)({panel:[{x:1,y:1,blur:4,spread:0,color:"#000000",alpha:.6}],topBar:[{x:0,y:0,blur:4,spread:0,color:"#000000",alpha:.6}],popup:[{x:2,y:2,blur:3,spread:0,color:"#000000",alpha:.5}],avatar:[{x:0,y:1,blur:8,spread:0,color:"#000000",alpha:.7}],avatarStatus:[],panelHeader:[],button:[{x:0,y:0,blur:2,spread:0,color:"#000000",alpha:1}].concat(i),buttonHover:[r].concat(i),buttonPressed:[r].concat(a),input:[].concat(a,[{x:0,y:0,blur:2,inset:!0,spread:0,color:"#000000",alpha:1}])},e.shadows||{});return{rules:{shadows:(0,n.default)(l).map(function(e){var t=(0,o.default)(e,2),i=t[0],a=t[1];return["--"+i+"Shadow: "+_(a),"--"+i+"ShadowFilter: "+v(a),"--"+i+"ShadowInset: "+_(a,!0)].join(";")}).join(";")},theme:{shadows:l}}},x=function(e,t,i,a){return{rules:(0,s.default)({},i.rules,e.rules,t.rules,a.rules),theme:(0,s.default)({},i.theme,e.theme,t.theme,a.theme)}},C=function(e){var t=k(e),i=b(e),a=w(e),o=y(e);return x(i,a,t,o)},S=function(){return window.fetch("/static/styles.json").then(function(e){return e.json()}).then(function(e){return a.default.all((0,n.default)(e).map(function(e){var t=(0,o.default)(e,2),i=t[0],n=t[1];return"object"===(void 0===n?"undefined":(0,r.default)(n))?a.default.resolve([i,n]):"string"==typeof n?window.fetch(n).then(function(e){return e.json()}).then(function(e){return[i,e]}).catch(function(e){return console.error(e),[]}):void 0}))}).then(function(e){return e.filter(function(e){var t=(0,o.default)(e,2);t[0];return t[1]}).reduce(function(e,t){var i=(0,o.default)(t,2),a=i[0],n=i[1];return e[a]=n,e},{})})};t.setStyle=function(e,t){var i=document.head,a=document.body;a.style.display="none";var o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",e),i.appendChild(o);o.addEventListener("load",function(){var e=document.createElement("div");a.appendChild(e);var t={};(0,c.default)(16,function(i){var a="base0"+i.toString(16).toUpperCase();e.setAttribute("class",a);var o=window.getComputedStyle(e).getPropertyValue("color");t[a]=o}),a.removeChild(e);var o=document.createElement("style");i.appendChild(o),a.style.display="initial"})},t.setPreset=function(e,t){return S().then(function(i){var a=i[e]?i[e]:i["pleroma-dark"],o=Array.isArray(a),n=o?{}:a.theme;if(o){var s=(0,d.hex2rgb)(a[1]),r=(0,d.hex2rgb)(a[2]),l=(0,d.hex2rgb)(a[3]),c=(0,d.hex2rgb)(a[4]),u=(0,d.hex2rgb)(a[5]||"#FF0000"),p=(0,d.hex2rgb)(a[6]||"#00FF00"),f=(0,d.hex2rgb)(a[7]||"#0000FF"),m=(0,d.hex2rgb)(a[8]||"#E3FF00");n.colors={bg:s,fg:r,text:l,link:c,cRed:u,cBlue:f,cGreen:p,cOrange:m}}window.themeLoaded||h(n,t)})},t.applyTheme=h,t.getTextColor=m,t.generateColors=b,t.generateRadii=w,t.generateShadows=k,t.generateFonts=y,t.generatePreset=C,t.getThemes=S,t.composePreset=x,t.getCssShadow=_,t.getCssShadowFilter=v},,,,,,,,,,,,,,,,,,,,,function(e,t,i){"use strict";i.r(t);var a=i(106),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(260),r=i(0);var l=function(e){i(691)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";i.r(t);var a=i(135),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(269),r=i(0);var l=function(e){i(777)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";i.r(t);var a=i(140),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(272),r=i(0);var l=function(e){i(791)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(50);var n={components:{Timeline:((a=o)&&a.__esModule?a:{default:a}).default},computed:{timeline:function(){return this.$store.state.statuses.timelines.public}},created:function(){this.$store.dispatch("startFetchingTimeline",{timeline:"public"})},destroyed:function(){this.$store.dispatch("stopFetching","public")}};t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(i(689)),o=r(i(101)),n=r(i(387)),s=r(i(232));function r(e){return e&&e.__esModule?e:{default:e}}var l={props:["timeline","timelineName","title","userId","tag","embedded","count"],data:function(){return{paused:!1,unfocused:!1,bottomedOut:!1}},computed:{timelineError:function(){return this.$store.state.statuses.error},newStatusCount:function(){return this.timeline.newStatusCount},newStatusCountStr:function(){return 0!==this.timeline.flushMarker?"":" ("+this.newStatusCount+")"},classes:function(){return{root:["timeline"].concat(this.embedded?[]:["panel","panel-default"]),header:["timeline-heading"].concat(this.embedded?[]:["panel-heading"]),body:["timeline-body"].concat(this.embedded?[]:["panel-body"]),footer:["timeline-footer"].concat(this.embedded?[]:["panel-footer"])}}},components:{Status:o.default,Conversation:s.default},created:function(){var e=this.$store,t=e.state.users.currentUser.credentials,i=0===this.timeline.visibleStatuses.length;if(window.addEventListener("scroll",this.scrollLoad),e.state.api.fetchers[this.timelineName])return!1;n.default.fetchAndUpdate({store:e,credentials:t,timeline:this.timelineName,showImmediately:i,userId:this.userId,tag:this.tag})},mounted:function(){void 0!==document.hidden&&(document.addEventListener("visibilitychange",this.handleVisibilityChange,!1),this.unfocused=document.hidden),window.addEventListener("keydown",this.handleShortKey)},destroyed:function(){window.removeEventListener("scroll",this.scrollLoad),window.removeEventListener("keydown",this.handleShortKey),void 0!==document.hidden&&document.removeEventListener("visibilitychange",this.handleVisibilityChange,!1),this.$store.commit("setLoading",{timeline:this.timelineName,value:!1})},methods:{handleShortKey:function(e){["textarea","input"].includes(e.target.tagName.toLowerCase())||"."===e.key&&this.showNewStatuses()},showNewStatuses:function(){0!==this.newStatusCount&&(0!==this.timeline.flushMarker?(this.$store.commit("clearTimeline",{timeline:this.timelineName}),this.$store.commit("queueFlush",{timeline:this.timelineName,id:0}),this.fetchOlderStatuses()):(this.$store.commit("showNewStatuses",{timeline:this.timelineName}),this.paused=!1))},fetchOlderStatuses:(0,a.default)(function(){var e=this,t=this.$store,i=t.state.users.currentUser.credentials;t.commit("setLoading",{timeline:this.timelineName,value:!0}),n.default.fetchAndUpdate({store:t,credentials:i,timeline:this.timelineName,older:!0,showImmediately:!0,userId:this.userId,tag:this.tag}).then(function(i){t.commit("setLoading",{timeline:e.timelineName,value:!1}),i&&0===i.length&&(e.bottomedOut=!0)})},1e3,void 0),scrollLoad:function(e){var t=document.body.getBoundingClientRect(),i=Math.max(t.height,-t.y);!1===this.timeline.loading&&this.$store.state.config.autoLoad&&this.$el.offsetHeight>0&&window.innerHeight+window.pageYOffset>=i-750&&this.fetchOlderStatuses()},handleVisibilityChange:function(){this.unfocused=document.hidden}},watch:{newStatusCount:function(e){if(this.$store.state.config.streaming&&e>0){var t=document.documentElement;!((window.pageYOffset||t.scrollTop)-(t.clientTop||0)<15)||this.paused||this.unfocused&&this.$store.state.config.pauseOnUnfocused?this.paused=!0:this.showNewStatuses()}}}};t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=x(i(400)),o=x(i(401)),n=x(i(224)),s=x(i(74)),r=x(i(402)),l=x(i(699)),c=x(i(702)),u=x(i(705)),d=x(i(708)),p=x(i(230)),f=x(i(51)),m=x(i(75)),h=x(i(743)),_=x(i(748)),v=x(i(751)),g=x(i(229)),b=x(i(42)),w=x(i(73)),y=i(416),k=i(754);function x(e){return e&&e.__esModule?e:{default:e}}var C={name:"Status",props:["statusoid","expandable","inConversation","focused","highlight","compact","replies","isPreview","noHeading","inlineExpanded","showPinned"],data:function(){return{replying:!1,unmuted:!1,userExpanded:!1,preview:null,showPreview:!1,showingTall:this.inConversation&&this.focused,showingLongSubject:!1,error:null,expandingSubject:void 0===this.$store.state.config.collapseMessageWithSubject?!this.$store.state.instance.collapseMessageWithSubject:!this.$store.state.config.collapseMessageWithSubject,betterShadow:this.$store.state.interface.browserSupport.cssFilter}},computed:{localCollapseSubjectDefault:function(){return void 0===this.$store.state.config.collapseMessageWithSubject?this.$store.state.instance.collapseMessageWithSubject:this.$store.state.config.collapseMessageWithSubject},muteWords:function(){return this.$store.state.config.muteWords},repeaterClass:function(){var e=this.statusoid.user;return(0,y.highlightClass)(e)},userClass:function(){var e=this.retweet?this.statusoid.retweeted_status.user:this.statusoid.user;return(0,y.highlightClass)(e)},deleted:function(){return this.statusoid.deleted},repeaterStyle:function(){var e=this.statusoid.user,t=this.$store.state.config.highlight;return(0,y.highlightStyle)(t[e.screen_name])},userStyle:function(){if(!this.noHeading){var e=this.retweet?this.statusoid.retweeted_status.user:this.statusoid.user,t=this.$store.state.config.highlight;return(0,y.highlightStyle)(t[e.screen_name])}},hideAttachments:function(){return this.$store.state.config.hideAttachments&&!this.inConversation||this.$store.state.config.hideAttachmentsInConv&&this.inConversation},userProfileLink:function(){return this.generateUserProfileLink(this.status.user.id,this.status.user.screen_name)},replyProfileLink:function(){if(this.isReply)return this.generateUserProfileLink(this.status.in_reply_to_user_id,this.replyToName)},retweet:function(){return!!this.statusoid.retweeted_status},retweeter:function(){return this.statusoid.user.name||this.statusoid.user.screen_name},retweeterHtml:function(){return this.statusoid.user.name_html},retweeterProfileLink:function(){return this.generateUserProfileLink(this.statusoid.user.id,this.statusoid.user.screen_name)},status:function(){return this.retweet?this.statusoid.retweeted_status:this.statusoid},statusFromGlobalRepository:function(){return this.$store.state.statuses.allStatusesObject[this.status.id]},loggedIn:function(){return!!this.$store.state.users.currentUser},muteWordHits:function(){var e=this.status.text.toLowerCase();return(0,s.default)(this.muteWords,function(t){return e.includes(t.toLowerCase())})},muted:function(){return!this.unmuted&&(this.status.user.muted||this.muteWordHits.length>0)},hideFilteredStatuses:function(){return void 0===this.$store.state.config.hideFilteredStatuses?this.$store.state.instance.hideFilteredStatuses:this.$store.state.config.hideFilteredStatuses},hideStatus:function(){return this.hideReply||this.deleted||this.muted&&this.hideFilteredStatuses},isFocused:function(){return!!this.focused||!!this.inConversation&&this.status.id===this.highlight},tallStatus:function(){return this.status.statusnet_html.split(/20},longSubject:function(){return this.status.summary.length>900},isReply:function(){return!(!this.status.in_reply_to_status_id||!this.status.in_reply_to_user_id)},replyToName:function(){if(this.status.in_reply_to_screen_name)return this.status.in_reply_to_screen_name;var e=this.$store.getters.findUser(this.status.in_reply_to_user_id);return e&&e.screen_name},hideReply:function(){if("all"===this.$store.state.config.replyVisibility)return!1;if(this.inConversation||!this.isReply)return!1;if(this.status.user.id===this.$store.state.users.currentUser.id)return!1;if("retweet"===this.status.type)return!1;for(var e="following"===this.$store.state.config.replyVisibility,t=0;t0},hideSubjectStatus:function(){return!(this.tallStatus&&!this.localCollapseSubjectDefault)&&(!this.expandingSubject&&this.status.summary)},hideTallStatus:function(){return(!this.status.summary||!this.localCollapseSubjectDefault)&&(!this.showingTall&&this.tallStatus)},showingMore:function(){return this.tallStatus&&this.showingTall||this.status.summary&&this.expandingSubject},nsfwClickthrough:function(){return!!this.status.nsfw&&(!this.status.summary||!this.localCollapseSubjectDefault)},replySubject:function(){if(!this.status.summary)return"";var e=(0,o.default)(this.status.summary),t=void 0===this.$store.state.config.subjectLineBehavior?this.$store.state.instance.subjectLineBehavior:this.$store.state.config.subjectLineBehavior,i=e.match(/^re[: ]/i);return"noop"!==t&&i||"masto"===t?e:"email"===t?"re: ".concat(e):"noop"===t?"":void 0},attachmentSize:function(){return this.$store.state.config.hideAttachments&&!this.inConversation||this.$store.state.config.hideAttachmentsInConv&&this.inConversation||this.status.attachments.length>this.maxThumbnails?"hide":this.compact?"small":"normal"},galleryTypes:function(){return"hide"===this.attachmentSize?[]:this.$store.state.config.playVideosInModal?["image","video"]:["image"]},galleryAttachments:function(){var e=this;return this.status.attachments.filter(function(t){return w.default.fileMatchesSomeType(e.galleryTypes,t)})},nonGalleryAttachments:function(){var e=this;return this.status.attachments.filter(function(t){return!w.default.fileMatchesSomeType(e.galleryTypes,t)})},maxThumbnails:function(){return this.$store.state.config.maxThumbnails},contentHtml:function(){return this.status.summary_html?this.status.summary_html+"
"+this.status.statusnet_html:this.status.statusnet_html},combinedFavsAndRepeatsUsers:function(){var e=[].concat(this.statusFromGlobalRepository.favoritedBy,this.statusFromGlobalRepository.rebloggedBy);return(0,a.default)(e,"id")},ownStatus:function(){return this.status.user.id===this.$store.state.users.currentUser.id},tags:function(){return this.status.tags.filter(function(e){return e.hasOwnProperty("name")}).map(function(e){return e.name}).join(" ")}},components:{Attachment:r.default,FavoriteButton:l.default,RetweetButton:c.default,ExtraButtons:d.default,PostStatusForm:p.default,Poll:u.default,UserCard:f.default,UserAvatar:m.default,Gallery:h.default,LinkPreview:_.default,AvatarList:v.default,Timeago:g.default},methods:{visibilityIcon:function(e){switch(e){case"private":return"icon-lock";case"unlisted":return"icon-lock-open-alt";case"direct":return"icon-mail-alt";default:return"icon-globe"}},showError:function(e){this.error=e},clearError:function(){this.error=void 0},linkClicked:function(e){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode),"A"===t.tagName){if(t.className.match(/mention/)){var i=t.href,a=this.status.attentions.find(function(e){return(0,k.mentionMatchesUrl)(e,i)});if(a){e.stopPropagation(),e.preventDefault();var o=this.generateUserProfileLink(a.id,a.screen_name);return void this.$router.push(o)}}if(t.className.match(/hashtag/)){var n=(0,k.extractTagFromUrl)(t.href);if(n){var s=this.generateTagLink(n);return void this.$router.push(s)}}window.open(t.href,"_blank")}},toggleReplying:function(){this.replying=!this.replying},gotoOriginal:function(e){this.inConversation&&this.$emit("goto",e)},toggleExpanded:function(){this.$emit("toggleExpanded")},toggleMute:function(){this.unmuted=!this.unmuted},toggleUserExpanded:function(){this.userExpanded=!this.userExpanded},toggleShowMore:function(){this.showingTall?this.showingTall=!1:this.expandingSubject&&this.status.summary?this.expandingSubject=!1:this.hideTallStatus?this.showingTall=!0:this.hideSubjectStatus&&this.status.summary&&(this.expandingSubject=!0)},replyEnter:function(e,t){var i=this;this.showPreview=!0;var a=e,o=this.$store.state.statuses.allStatuses;this.preview?this.preview.id!==a&&(this.preview=(0,n.default)(o,{id:a})):(this.preview=(0,n.default)(o,{id:a}),this.preview||this.$store.state.api.backendInteractor.fetchStatus({id:e}).then(function(e){i.preview=e}))},replyLeave:function(){this.showPreview=!1},generateUserProfileLink:function(e,t){return(0,b.default)(e,t,this.$store.state.instance.restrictedNicknames)},generateTagLink:function(e){return"/tag/"+e},setMedia:function(){var e=this,t="hide"===this.attachmentSize?this.status.attachments:this.galleryAttachments;return function(){return e.$store.dispatch("setMedia",t)}}},watch:{highlight:function(e){if(this.status.id===e){var t=this.$el.getBoundingClientRect();t.top<100?window.scrollBy(0,t.top-100):t.height>=window.innerHeight-50?window.scrollBy(0,t.top-100):t.bottom>window.innerHeight-50&&window.scrollBy(0,t.bottom-window.innerHeight+50)}}},filters:{capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}}};t.default=C},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(i(228)),o=r(i(403)),n=r(i(698)),s=r(i(73));function r(e){return e&&e.__esModule?e:{default:e}}var l={props:["attachment","nsfw","statusId","size","allowPlay","setMedia"],data:function(){return{nsfwImage:this.$store.state.instance.nsfwCensorImage||n.default,hideNsfwLocal:this.$store.state.config.hideNsfw,preloadImage:this.$store.state.config.preloadImage,loading:!1,img:"image"===s.default.fileType(this.attachment.mimetype)&&document.createElement("img"),modalOpen:!1,showHidden:!1}},components:{StillImage:a.default,VideoAttachment:o.default},computed:{usePlaceHolder:function(){return"hide"===this.size||"unknown"===this.type},referrerpolicy:function(){return this.$store.state.instance.mediaProxyAvailable?"":"no-referrer"},type:function(){return s.default.fileType(this.attachment.mimetype)},hidden:function(){return this.nsfw&&this.hideNsfwLocal&&!this.showHidden},isEmpty:function(){return"html"===this.type&&!this.attachment.oembed||"unknown"===this.type},isSmall:function(){return"small"===this.size},fullwidth:function(){return"html"===this.type||"audio"===this.type}},methods:{linkClicked:function(e){var t=e.target;"A"===t.tagName&&window.open(t.href,"_blank")},openModal:function(e){var t=this.$store.state.config.playVideosInModal?["image","video"]:["image"];(s.default.fileMatchesSomeType(t,this.attachment)||this.usePlaceHolder)&&(e.stopPropagation(),e.preventDefault(),this.setMedia(),this.$store.dispatch("setCurrent",this.attachment))},toggleHidden:function(e){var t=this;!this.$store.state.config.useOneClickNsfw||this.showHidden?this.img&&!this.preloadImage?this.img.onload?this.img.onload():(this.loading=!0,this.img.src=this.attachment.url,this.img.onload=function(){t.loading=!1,t.showHidden=!t.showHidden}):this.showHidden=!this.showHidden:this.openModal(e)}}};t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={props:["src","referrerpolicy","mimetype","imageLoadError"],data:function(){return{stopGifs:this.$store.state.config.stopGifs}},computed:{animated:function(){return this.stopGifs&&("image/gif"===this.mimetype||this.src.endsWith(".gif"))}},methods:{onLoad:function(){var e=this.$refs.canvas;if(e){var t=this.$refs.src.naturalWidth,i=this.$refs.src.naturalHeight;e.width=t,e.height=i,e.getContext("2d").drawImage(this.$refs.src,0,0,t,i)}},onError:function(){this.imageLoadError&&this.imageLoadError()}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={props:["attachment","controls"],data:function(){return{loopVideo:this.$store.state.config.loopVideo}},methods:{onVideoDataLoad:function(e){var t=e.srcElement||e.target;void 0!==t.webkitAudioDecodedByteCount?t.webkitAudioDecodedByteCount>0&&(this.loopVideo=this.loopVideo&&!this.$store.state.config.loopVideoSilentOnly):void 0!==t.mozHasAudio?t.mozHasAudio&&(this.loopVideo=this.loopVideo&&!this.$store.state.config.loopVideoSilentOnly):void 0!==t.audioTracks&&t.audioTracks.length>0&&(this.loopVideo=this.loopVideo&&!this.$store.state.config.loopVideoSilentOnly)}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={props:["status","loggedIn"],data:function(){return{hidePostStatsLocal:void 0===this.$store.state.config.hidePostStats?this.$store.state.instance.hidePostStats:this.$store.state.config.hidePostStats,animated:!1}},methods:{favorite:function(){var e=this;this.status.favorited?this.$store.dispatch("unfavorite",{id:this.status.id}):this.$store.dispatch("favorite",{id:this.status.id}),this.animated=!0,setTimeout(function(){e.animated=!1},500)}},computed:{classes:function(){return{"icon-star-empty":!this.status.favorited,"icon-star":this.status.favorited,"animate-spin":this.animated}}}};t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={props:["status","loggedIn","visibility"],data:function(){return{hidePostStatsLocal:void 0===this.$store.state.config.hidePostStats?this.$store.state.instance.hidePostStats:this.$store.state.config.hidePostStats,animated:!1}},methods:{retweet:function(){var e=this;this.status.repeated?this.$store.dispatch("unretweet",{id:this.status.id}):this.$store.dispatch("retweet",{id:this.status.id}),this.animated=!0,setTimeout(function(){e.animated=!1},500)}},computed:{classes:function(){return{retweeted:this.status.repeated,"retweeted-empty":!this.status.repeated,"animate-spin":this.animated}}}};t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s(i(22)),o=s(i(379)),n=s(i(229));function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"Poll",props:["basePoll"],components:{Timeago:n.default},data:function(){return{loading:!1,choices:[]}},created:function(){this.$store.state.polls.pollsObject[this.pollId]||this.$store.dispatch("mergeOrAddPoll",this.basePoll),this.$store.dispatch("trackPoll",this.pollId)},destroyed:function(){this.$store.dispatch("untrackPoll",this.pollId)},computed:{pollId:function(){return this.basePoll.id},poll:function(){return this.$store.state.polls.pollsObject[this.pollId]||{}},options:function(){return this.poll&&this.poll.options||[]},expiresAt:function(){return this.poll&&this.poll.expires_at||0},expired:function(){return this.poll&&this.poll.expired||!1},loggedIn:function(){return this.$store.state.users.currentUser},showResults:function(){return this.poll.voted||this.expired||!this.loggedIn},totalVotesCount:function(){return this.poll.votes_count},containerClass:function(){return{loading:this.loading}},choiceIndices:function(){return this.choices.map(function(e,t){return e&&t}).filter(function(e){return"number"==typeof e})},isDisabled:function(){var e=0===this.choiceIndices.length;return this.loading||e}},methods:{percentageForOption:function(e){return 0===this.totalVotesCount?0:Math.round(e/this.totalVotesCount*100)},resultTitle:function(e){return e.votes_count+"/"+this.totalVotesCount+" "+this.$t("polls.votes")},fetchPoll:function(){this.$store.dispatch("refreshPoll",{id:this.statusId,pollId:this.poll.id})},activateOption:function(e){var t=this.$el.querySelectorAll("input"),i=this.$el.querySelector('input[value="'+e+'"]');this.poll.multiple?i.checked=!i.checked:((0,o.default)(t,function(e){e.checked=!1}),i.checked=!0),this.choices=(0,a.default)(t,function(e){return e.checked})},optionId:function(e){return"poll"+this.poll.id+"-"+e},vote:function(){var e=this;0!==this.choiceIndices.length&&(this.loading=!0,this.$store.dispatch("votePoll",{id:this.statusId,pollId:this.poll.id,choices:this.choiceIndices}).then(function(t){e.loading=!1}))}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(i(404));t.default={name:"Timeago",props:["time","autoUpdate","longFormat","nowThreshold"],data:function(){return{relativeTime:{key:"time.now",num:0},interval:null}},created:function(){this.refreshRelativeTimeObject()},destroyed:function(){clearTimeout(this.interval)},computed:{localeDateString:function(){return"string"==typeof this.time?new Date(Date.parse(this.time)).toLocaleString():this.time.toLocaleString()}},methods:{refreshRelativeTimeObject:function(){var e="number"==typeof this.nowThreshold?this.nowThreshold:1;this.relativeTime=this.longFormat?a.relativeTime(this.time,e):a.relativeTimeShort(this.time,e),this.autoUpdate&&(this.interval=setTimeout(this.refreshRelativeTimeObject,1e3*this.autoUpdate))}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(405);var n={props:["status"],components:{Popper:((a=o)&&a.__esModule?a:{default:a}).default},data:function(){return{showDropDown:!1,showPopper:!0}},methods:{deleteStatus:function(){this.refreshPopper(),window.confirm(this.$t("status.delete_confirm"))&&this.$store.dispatch("deleteStatus",{id:this.status.id})},toggleMenu:function(){this.showDropDown=!this.showDropDown},pinStatus:function(){var e=this;this.refreshPopper(),this.$store.dispatch("pinStatus",this.status.id).then(function(){return e.$emit("onSuccess")}).catch(function(t){return e.$emit("onError",t.error.error)})},unpinStatus:function(){var e=this;this.refreshPopper(),this.$store.dispatch("unpinStatus",this.status.id).then(function(){return e.$emit("onSuccess")}).catch(function(t){return e.$emit("onError",t.error.error)})},refreshPopper:function(){var e=this;this.showPopper=!1,this.showDropDown=!1,setTimeout(function(){e.showPopper=!0})}},computed:{currentUser:function(){return this.$store.state.users.currentUser},canDelete:function(){if(this.currentUser)return this.currentUser.rights.moderator||this.currentUser.rights.admin||this.status.user.id===this.currentUser.id},ownStatus:function(){return this.status.user.id===this.currentUser.id},canPin:function(){return this.ownStatus&&("public"===this.status.visibility||"unlisted"===this.status.visibility)},enabled:function(){return this.canPin||this.canDelete}}};t.default=n},,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=m(i(24)),o=m(i(400)),n=m(i(22)),s=m(i(406)),r=m(i(407)),l=m(i(716)),c=m(i(409)),u=m(i(410)),d=m(i(726)),p=m(i(73)),f=m(i(411));function m(e){return e&&e.__esModule?e:{default:e}}var h={props:["replyTo","repliedUser","attentions","copyMessageScope","subject"],components:{MediaUpload:l.default,EmojiInput:u.default,PollForm:d.default,ScopeSelector:c.default},mounted:function(){this.resize(this.$refs.textarea);var e=this.$refs.textarea.value.length;this.$refs.textarea.setSelectionRange(e,e),this.replyTo&&this.$refs.textarea.focus()},data:function(){var e=this.$route.query.message||"",t=void 0===this.$store.state.config.scopeCopy?this.$store.state.instance.scopeCopy:this.$store.state.config.scopeCopy;if(this.replyTo){var i=this.$store.state.users.currentUser;e=function(e,t){var i=e.user,r=e.attentions,l=[].concat((0,a.default)(r));l.unshift(i),l=(0,o.default)(l,"id"),l=(0,s.default)(l,{id:t.id});var c=(0,n.default)(l,function(e){return"@"+e.screen_name});return c.length>0?c.join(" ")+" ":""}({user:this.repliedUser,attentions:this.attentions},i)}var r=this.copyMessageScope&&t||"direct"===this.copyMessageScope?this.copyMessageScope:this.$store.state.users.currentUser.default_scope,l=void 0===this.$store.state.config.postContentType?this.$store.state.instance.postContentType:this.$store.state.config.postContentType;return{dropFiles:[],submitDisabled:!1,error:null,posting:!1,highlighted:0,newStatus:{spoilerText:this.subject||"",status:e,nsfw:!1,files:[],poll:{},visibility:r,contentType:l},caret:0,pollFormVisible:!1}},computed:{users:function(){return this.$store.state.users.users},userDefaultScope:function(){return this.$store.state.users.currentUser.default_scope},showAllScopes:function(){return!(void 0===this.$store.state.config.minimalScopesMode?this.$store.state.instance.minimalScopesMode:this.$store.state.config.minimalScopesMode)},emojiUserSuggestor:function(){return(0,f.default)({emoji:[].concat((0,a.default)(this.$store.state.instance.emoji),(0,a.default)(this.$store.state.instance.customEmoji)),users:this.$store.state.users.users})},emojiSuggestor:function(){return(0,f.default)({emoji:[].concat((0,a.default)(this.$store.state.instance.emoji),(0,a.default)(this.$store.state.instance.customEmoji))})},emoji:function(){return this.$store.state.instance.emoji||[]},customEmoji:function(){return this.$store.state.instance.customEmoji||[]},statusLength:function(){return this.newStatus.status.length},spoilerTextLength:function(){return this.newStatus.spoilerText.length},statusLengthLimit:function(){return this.$store.state.instance.textlimit},hasStatusLengthLimit:function(){return this.statusLengthLimit>0},charactersLeft:function(){return this.statusLengthLimit-(this.statusLength+this.spoilerTextLength)},isOverLengthLimit:function(){return this.hasStatusLengthLimit&&this.charactersLeft<0},minimalScopesMode:function(){return this.$store.state.instance.minimalScopesMode},alwaysShowSubject:function(){return void 0!==this.$store.state.config.alwaysShowSubjectInput?this.$store.state.config.alwaysShowSubjectInput:void 0===this.$store.state.instance.alwaysShowSubjectInput||this.$store.state.instance.alwaysShowSubjectInput},postFormats:function(){return this.$store.state.instance.postFormats||[]},safeDMEnabled:function(){return this.$store.state.instance.safeDM},pollsAvailable:function(){return this.$store.state.instance.pollsAvailable&&this.$store.state.instance.pollLimits.max_options>=2},hideScopeNotice:function(){return this.$store.state.config.hideScopeNotice},pollContentError:function(){return this.pollFormVisible&&this.newStatus.poll&&this.newStatus.poll.error}},methods:{postStatus:function(e){var t=this;if(!this.posting&&!this.submitDisabled){if(""===this.newStatus.status){if(!(this.newStatus.files.length>0))return void(this.error="Cannot post an empty status with no files");this.newStatus.status="​"}var i=this.pollFormVisible?this.newStatus.poll:{};this.pollContentError?this.error=this.pollContentError:(this.posting=!0,r.default.postStatus({status:e.status,spoilerText:e.spoilerText||null,visibility:e.visibility,sensitive:e.nsfw,media:e.files,store:this.$store,inReplyToStatusId:this.replyTo,contentType:e.contentType,poll:i}).then(function(i){if(i.error)t.error=i.error;else{t.newStatus={status:"",spoilerText:"",files:[],visibility:e.visibility,contentType:e.contentType,poll:{}},t.pollFormVisible=!1,t.$refs.mediaUpload.clearFile(),t.clearPollForm(),t.$emit("posted");var a=t.$el.querySelector("textarea");a.style.height="auto",a.style.height=void 0,t.error=null}t.posting=!1}))}},addMediaFile:function(e){this.newStatus.files.push(e),this.enableSubmit()},removeMediaFile:function(e){var t=this.newStatus.files.indexOf(e);this.newStatus.files.splice(t,1)},uploadFailed:function(e,t){t=t||{},this.error=this.$t("upload.error.base")+" "+this.$t("upload.error."+e,t),this.enableSubmit()},disableSubmit:function(){this.submitDisabled=!0},enableSubmit:function(){this.submitDisabled=!1},type:function(e){return p.default.fileType(e.mimetype)},paste:function(e){e.clipboardData.files.length>0&&(e.preventDefault(),this.dropFiles=[e.clipboardData.files[0]])},fileDrop:function(e){e.dataTransfer.files.length>0&&(e.preventDefault(),this.dropFiles=e.dataTransfer.files)},fileDrag:function(e){e.dataTransfer.dropEffect="copy"},resize:function(e){var t=e.target||e;if(t instanceof window.Element){var i=window.getComputedStyle(t)["padding-top"],a=window.getComputedStyle(t)["padding-bottom"],o=Number(i.substr(0,i.length-2))+Number(a.substr(0,a.length-2));t.style.height="auto",t.style.height=t.scrollHeight-o+"px",""===t.value&&(t.style.height=null)}},clearError:function(){this.error=null},changeVis:function(e){this.newStatus.visibility=e},togglePollForm:function(){this.pollFormVisible=!this.pollFormVisible},setPoll:function(e){this.newStatus.poll=e},clearPollForm:function(){this.$refs.pollForm&&this.$refs.pollForm.clear()},dismissScopeNotice:function(){this.$store.dispatch("setOption",{name:"hideScopeNotice",value:!0})}}};t.default=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(i(407)),o=n(i(408));function n(e){return e&&e.__esModule?e:{default:e}}var s={data:function(){return{uploading:!1,uploadReady:!0}},methods:{uploadFile:function(e){var t=this,i=this.$store;if(e.size>i.state.instance.uploadlimit){var n=o.default.fileSizeFormat(e.size),s=o.default.fileSizeFormat(i.state.instance.uploadlimit);t.$emit("upload-failed","file_too_big",{filesize:n.num,filesizeunit:n.unit,allowedsize:s.num,allowedsizeunit:s.unit})}else{var r=new FormData;r.append("file",e),t.$emit("uploading"),t.uploading=!0,a.default.uploadMedia({store:i,formData:r}).then(function(e){t.$emit("uploaded",e),t.uploading=!1},function(e){t.$emit("upload-failed","default"),t.uploading=!1})}},fileDrop:function(e){e.dataTransfer.files.length>0&&(e.preventDefault(),this.uploadFile(e.dataTransfer.files[0]))},fileDrag:function(e){e.dataTransfer.types.contains("Files")?e.dataTransfer.dropEffect="copy":e.dataTransfer.dropEffect="none"},clearFile:function(){var e=this;this.uploadReady=!1,this.$nextTick(function(){e.uploadReady=!0})},change:function(e){for(var t=e.target,i=0;i0},textAtCaret:function(){return(this.wordAtCaret||{}).word||""},wordAtCaret:function(){if(this.value&&this.caret)return s.default.wordAtPosition(this.value,this.caret-1)||{}}},mounted:function(){var e=this.$slots.default;if(e&&0!==e.length){var t=e.find(function(e){return["input","textarea"].includes(e.tag)});t&&(this.input=t,this.resize(),t.elm.addEventListener("blur",this.onBlur),t.elm.addEventListener("focus",this.onFocus),t.elm.addEventListener("paste",this.onPaste),t.elm.addEventListener("keyup",this.onKeyUp),t.elm.addEventListener("keydown",this.onKeyDown),t.elm.addEventListener("transitionend",this.onTransition))}},unmounted:function(){var e=this.input;e&&(e.elm.removeEventListener("blur",this.onBlur),e.elm.removeEventListener("focus",this.onFocus),e.elm.removeEventListener("paste",this.onPaste),e.elm.removeEventListener("keyup",this.onKeyUp),e.elm.removeEventListener("keydown",this.onKeyDown),e.elm.removeEventListener("transitionend",this.onTransition))},methods:{replace:function(e){var t=s.default.replaceWord(this.value,this.wordAtCaret,e);this.$emit("input",t),this.caret=0},replaceText:function(e,t){var i=this.suggestions.length||0;if(1!==this.textAtCaret.length&&(i>0||t)){var a=(t||this.suggestions[this.highlighted]).replacement,o=s.default.replaceWord(this.value,this.wordAtCaret,a);this.$emit("input",o),this.highlighted=0;var n=this.wordAtCaret.start+a.length;this.$nextTick(function(){this.input.elm.focus(),this.input.elm.setSelectionRange(n,n),this.caret=n}),e.preventDefault()}},cycleBackward:function(e){(this.suggestions.length||0)>0?(this.highlighted-=1,this.highlighted<0&&(this.highlighted=this.suggestions.length-1),e.preventDefault()):this.highlighted=0},cycleForward:function(e){var t=this.suggestions.length||0;t>0?(this.highlighted+=1,this.highlighted>=t&&(this.highlighted=0),e.preventDefault()):this.highlighted=0},onTransition:function(e){this.resize()},onBlur:function(e){var t=this;this.blurTimeout=setTimeout(function(){t.focused=!1,t.setCaret(e),t.resize()},200)},onClick:function(e,t){this.replaceText(e,t)},onFocus:function(e){this.blurTimeout&&(clearTimeout(this.blurTimeout),this.blurTimeout=null),this.focused=!0,this.setCaret(e),this.resize()},onKeyUp:function(e){this.setCaret(e),this.resize()},onPaste:function(e){this.setCaret(e),this.resize()},onKeyDown:function(e){this.setCaret(e),this.resize();var t=e.ctrlKey,i=e.shiftKey,a=e.key;"Tab"===a&&(i?this.cycleBackward(e):this.cycleForward(e)),"ArrowUp"===a?this.cycleBackward(e):"ArrowDown"===a&&this.cycleForward(e),"Enter"===a&&(t||this.replaceText(e))},onInput:function(e){this.$emit("input",e.target.value)},setCaret:function(e){var t=e.target.selectionStart;this.caret=t},resize:function(){if(this.$refs.panel){var e=this.input.elm,t=e.offsetHeight,i=e.offsetTop;this.$refs.panel.style.top=i+t+"px"}}}};t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(385),n=(a=o)&&a.__esModule?a:{default:a},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(i(404));t.default={name:"PollForm",props:["visible"],data:function(){return{pollType:"single",options:["",""],expiryAmount:10,expiryUnit:"minutes"}},computed:{pollLimits:function(){return this.$store.state.instance.pollLimits},maxOptions:function(){return this.pollLimits.max_options},maxLength:function(){return this.pollLimits.max_option_chars},expiryUnits:function(){var e=this,t=this.convertExpiryFromUnit;return["minutes","hours","days"].filter(function(i){return e.pollLimits.max_expiration>=t(i,1)})},minExpirationInCurrentUnit:function(){return Math.ceil(this.convertExpiryToUnit(this.expiryUnit,this.pollLimits.min_expiration))},maxExpirationInCurrentUnit:function(){return Math.floor(this.convertExpiryToUnit(this.expiryUnit,this.pollLimits.max_expiration))}},methods:{clear:function(){this.pollType="single",this.options=["",""],this.expiryAmount=10,this.expiryUnit="minutes"},nextOption:function(e){var t=this.$el.querySelector("#poll-"+(e+1));t?t.focus():this.addOption()&&this.$nextTick(function(){this.nextOption(e)})},addOption:function(){return this.options.length2&&this.options.splice(e,1)},convertExpiryToUnit:function(e,t){switch(e){case"minutes":return 1e3*t/s.MINUTE;case"hours":return 1e3*t/s.HOUR;case"days":return 1e3*t/s.DAY}},convertExpiryFromUnit:function(e,t){switch(e){case"minutes":return.001*t*s.MINUTE;case"hours":return.001*t*s.HOUR;case"days":return.001*t*s.DAY}},expiryAmountChange:function(){this.expiryAmount=Math.max(this.minExpirationInCurrentUnit,this.expiryAmount),this.expiryAmount=Math.min(this.maxExpirationInCurrentUnit,this.expiryAmount),this.updatePollToParent()},updatePollToParent:function(){var e=this.convertExpiryFromUnit(this.expiryUnit,this.expiryAmount),t=(0,n.default)(this.options.filter(function(e){return""!==e}));t.length<2?this.$emit("update-poll",{error:this.$t("polls.not_enough_options")}):this.$emit("update-poll",{options:t,multiple:"multiple"===this.pollType,expiresIn:e})}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=c(i(75)),o=c(i(412)),n=c(i(413)),s=i(63),r=i(414),l=c(i(42));function c(e){return e&&e.__esModule?e:{default:e}}t.default={props:["user","switcher","selected","hideBio","rounded","bordered"],data:function(){return{followRequestInProgress:!1,followRequestSent:!1,hideUserStatsLocal:void 0===this.$store.state.config.hideUserStats?this.$store.state.instance.hideUserStats:this.$store.state.config.hideUserStats,betterShadow:this.$store.state.interface.browserSupport.cssFilter}},created:function(){this.$store.dispatch("fetchUserRelationship",this.user.id)},computed:{classes:function(){return[{"user-card-rounded-t":"top"===this.rounded,"user-card-rounded":!0===this.rounded,"user-card-bordered":!0===this.bordered}]},style:function(){var e=this.$store.state.config.customTheme.colors?this.$store.state.config.customTheme.colors.bg:this.$store.state.config.colors.bg;if(e){var t="string"==typeof e?(0,s.hex2rgb)(e):e,i="rgba("+Math.floor(t.r)+", "+Math.floor(t.g)+", "+Math.floor(t.b)+", .5)",a=[[i,this.hideBio?"60%":""],this.hideBio?[e,"100%"]:[i,""]].map(function(e){return e.join(" ")}).join(", ");return{backgroundColor:"rgb("+Math.floor(.53*t.r)+", "+Math.floor(.56*t.g)+", "+Math.floor(.59*t.b)+")",backgroundImage:["linear-gradient(to bottom, "+a+")","url("+this.user.cover_photo+")"].join(", ")}}},isOtherUser:function(){return this.user.id!==this.$store.state.users.currentUser.id},subscribeUrl:function(){var e=new URL(this.user.statusnet_profile_url);return e.protocol+"//"+e.host+"/main/ostatus"},loggedIn:function(){return this.$store.state.users.currentUser},dailyAvg:function(){var e=Math.ceil((new Date-new Date(this.user.created_at))/864e5);return Math.round(this.user.statuses_count/e)},userHighlightType:{get:function(){var e=this.$store.state.config.highlight[this.user.screen_name];return e&&e.type||"disabled"},set:function(e){var t=this.$store.state.config.highlight[this.user.screen_name];"disabled"!==e?this.$store.dispatch("setHighlight",{user:this.user.screen_name,color:t&&t.color||"#FFFFFF",type:e}):this.$store.dispatch("setHighlight",{user:this.user.screen_name,color:void 0})}},userHighlightColor:{get:function(){var e=this.$store.state.config.highlight[this.user.screen_name];return e&&e.color},set:function(e){this.$store.dispatch("setHighlight",{user:this.user.screen_name,color:e})}},visibleRole:function(){var e=this.user.rights;if(e){var t=e.admin||e.moderator,i=e.admin?"admin":"moderator";return t&&i}}},components:{UserAvatar:a.default,RemoteFollow:o.default,ModerationTools:n.default},methods:{followUser:function(){var e=this,t=this.$store;this.followRequestInProgress=!0,(0,r.requestFollow)(this.user,t).then(function(t){var i=t.sent;e.followRequestInProgress=!1,e.followRequestSent=i})},unfollowUser:function(){var e=this,t=this.$store;this.followRequestInProgress=!0,(0,r.requestUnfollow)(this.user,t).then(function(){e.followRequestInProgress=!1,t.commit("removeStatus",{timeline:"friends",userId:e.user.id})})},blockUser:function(){this.$store.dispatch("blockUser",this.user.id)},unblockUser:function(){this.$store.dispatch("unblockUser",this.user.id)},muteUser:function(){this.$store.dispatch("muteUser",this.user.id)},unmuteUser:function(){this.$store.dispatch("unmuteUser",this.user.id)},setProfileView:function(e){this.switcher&&this.$store.commit("setProfileView",{v:e})},linkClicked:function(e){var t=e.target;"SPAN"===t.tagName&&(t=t.parentNode),"A"===t.tagName&&window.open(t.href,"_blank")},userProfileLink:function(e){return(0,l.default)(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)},reportUser:function(){this.$store.dispatch("openUserReportingModal",this.user.id)}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(228);var n={props:["user","betterShadow","compact"],data:function(){return{showPlaceholder:!1}},components:{StillImage:((a=o)&&a.__esModule?a:{default:a}).default},computed:{imgSrc:function(){return this.showPlaceholder?"/images/avi.png":this.src}},methods:{imageLoadError:function(){this.showPlaceholder=!0}},watch:{src:function(){this.showPlaceholder=!1}}};t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:["user"],computed:{subscribeUrl:function(){var e=new URL(this.user.statusnet_profile_url);return e.protocol+"//"+e.host+"/main/ostatus"}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s(i(218)),o=s(i(737)),n=s(i(405));function s(e){return e&&e.__esModule?e:{default:e}}var r={props:["user"],data:function(){return{showDropDown:!1,tags:{FORCE_NSFW:"mrf_tag:media-force-nsfw",STRIP_MEDIA:"mrf_tag:media-strip",FORCE_UNLISTED:"mrf_tag:force-unlisted",DISABLE_REMOTE_SUBSCRIPTION:"mrf_tag:disable-remote-subscription",DISABLE_ANY_SUBSCRIPTION:"mrf_tag:disable-any-subscription",SANDBOX:"mrf_tag:sandbox",QUARANTINE:"mrf_tag:quarantine"},showDeleteUserDialog:!1}},components:{DialogModal:o.default,Popper:n.default},computed:{tagsSet:function(){return new a.default(this.user.tags)},hasTagPolicy:function(){return this.$store.state.instance.tagPolicyAvailable}},methods:{toggleMenu:function(){this.showDropDown=!this.showDropDown},hasTag:function(e){return this.tagsSet.has(e)},toggleTag:function(e){var t=this,i=this.$store;this.tagsSet.has(e)?i.state.api.backendInteractor.untagUser(this.user,e).then(function(a){a.ok&&i.commit("untagUser",{user:t.user,tag:e})}):i.state.api.backendInteractor.tagUser(this.user,e).then(function(a){a.ok&&i.commit("tagUser",{user:t.user,tag:e})})},toggleRight:function(e){var t=this,i=this.$store;this.user.rights[e]?i.state.api.backendInteractor.deleteRight(this.user,e).then(function(a){a.ok&&i.commit("updateRight",{user:t.user,right:e,value:!1})}):i.state.api.backendInteractor.addRight(this.user,e).then(function(a){a.ok&&i.commit("updateRight",{user:t.user,right:e,value:!0})})},toggleActivationStatus:function(){var e=this,t=this.$store,i=!!this.user.deactivated;t.state.api.backendInteractor.setActivationStatus(this.user,i).then(function(a){a.ok&&t.commit("updateActivationStatus",{user:e.user,status:i})})},deleteUserDialog:function(e){this.showDeleteUserDialog=e},deleteUser:function(){var e=this,t=this.$store,i=this.user,a=i.id,o=i.name;t.state.api.backendInteractor.deleteUser(i).then(function(t){e.$store.dispatch("markStatusesAsDeleted",function(e){return i.id===e.user.id});var n="external-user-profile"===e.$route.name||"user-profile"===e.$route.name,s=e.$route.params.name===o||e.$route.params.id===a;n&&s&&window.history.back()})}}};t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={props:{darkOverlay:{default:!0,type:Boolean},onCancel:{default:function(){},type:Function}}};t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s(i(746)),o=s(i(71)),n=s(i(747));function s(e){return e&&e.__esModule?e:{default:e}}var r={data:function(){return{width:500}},props:["attachments","nsfw","setMedia"],components:{Attachment:s(i(402)).default},mounted:function(){this.resize(),window.addEventListener("resize",this.resize)},destroyed:function(){window.removeEventListener("resize",this.resize)},computed:{rows:function(){if(!this.attachments)return[];var e=(0,n.default)(this.attachments,3);if(1===(0,o.default)(e).length&&e.length>1){var t=(0,o.default)(e)[0],i=(0,a.default)(e);return(0,o.default)(i).push(t),i}return e},rowHeight:function(){var e=this;return function(t){return{height:e.width/(t+.6)+"px"}}},useContainFit:function(){return this.$store.state.config.useContainFit}},methods:{resize:function(){var e=10*Math.floor(this.$el.getBoundingClientRect().width/10);this.width!==e&&(this.width=e)}}};t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={name:"LinkPreview",props:["card","size","nsfw"],computed:{useImage:function(){return this.card.image&&!this.nsfw&&"hide"!==this.size},useDescription:function(){return this.card.description&&/\S/.test(this.card.description)}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(i(75)),o=n(i(42));function n(e){return e&&e.__esModule?e:{default:e}}var s={props:["users"],computed:{slicedUsers:function(){return this.users?this.users.slice(0,15):[]}},components:{UserAvatar:a.default},methods:{userProfileLink:function(e){return(0,o.default)(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)}}};t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=c(i(93)),o=c(i(757)),n=c(i(225)),s=c(i(74)),r=c(i(231)),l=c(i(101));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e,t){var i="retweet"===e.type?e.retweeted_status.id:e.id,o="retweet"===t.type?t.retweeted_status.id:t.id,n=Number(i),s=Number(o),r=!(0,a.default)(n),l=!(0,a.default)(s);return r&&l?n0?this.$store.dispatch("setPageTitle","("+e+")"):this.$store.dispatch("setPageTitle","")}},methods:{markAsSeen:function(){this.$store.dispatch("markNotificationsAsSeen")},fetchOlderNotifications:function(){var e=this;if(!this.loading){var t=this.$store,i=t.state.users.currentUser.credentials;t.commit("setNotificationsLoading",{value:!0}),o.default.fetchAndUpdate({store:t,credentials:i,older:!0}).then(function(i){t.commit("setNotificationsLoading",{value:!1}),0===i.length&&(e.bottomedOut=!0)})}}}};t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=c(i(101)),o=c(i(75)),n=c(i(51)),s=c(i(229)),r=i(416),l=c(i(42));function c(e){return e&&e.__esModule?e:{default:e}}var u={data:function(){return{userExpanded:!1,betterShadow:this.$store.state.interface.browserSupport.cssFilter}},props:["notification"],components:{Status:a.default,UserAvatar:o.default,UserCard:n.default,Timeago:s.default},methods:{toggleUserExpanded:function(){this.userExpanded=!this.userExpanded},userProfileLink:function(e){return(0,l.default)(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)},getUser:function(e){return this.$store.state.users.usersObject[e.from_profile.id]}},computed:{userClass:function(){return(0,r.highlightClass)(this.notification.from_profile)},userStyle:function(){var e=this.$store.state.config.highlight,t=this.notification.from_profile;return(0,r.highlightStyle)(e[t.screen_name])},userInStore:function(){return this.$store.getters.findUser(this.notification.from_profile.id)},user:function(){return this.userInStore?this.userInStore:this.notification.from_profile}}};t.default=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(50);var n={computed:{timeline:function(){return this.$store.state.statuses.timelines.dms}},components:{Timeline:((a=o)&&a.__esModule?a:{default:a}).default}};t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=d(i(216)),o=d(i(51)),n=d(i(234)),s=d(i(50)),r=d(i(232)),l=d(i(413)),c=d(i(235)),u=d(i(795));function d(e){return e&&e.__esModule?e:{default:e}}var p=(0,u.default)({fetch:function(e,t){return t.dispatch("fetchFollowers",e.userId)},select:function(e,t){return(0,a.default)(t.getters.findUser(e.userId),"followerIds",[]).map(function(e){return t.getters.findUser(e)})},destroy:function(e,t){return t.dispatch("clearFollowers",e.userId)},childPropName:"items",additionalPropNames:["userId"]})(c.default),f=(0,u.default)({fetch:function(e,t){return t.dispatch("fetchFriends",e.userId)},select:function(e,t){return(0,a.default)(t.getters.findUser(e.userId),"friendIds",[]).map(function(e){return t.getters.findUser(e)})},destroy:function(e,t){return t.dispatch("clearFriends",e.userId)},childPropName:"items",additionalPropNames:["userId"]})(c.default),m={data:function(){return{error:!1,userId:null}},created:function(){var e=this.$route.params;this.load(e.name||e.id)},destroyed:function(){this.cleanUp()},computed:{timeline:function(){return this.$store.state.statuses.timelines.user},favorites:function(){return this.$store.state.statuses.timelines.favorites},media:function(){return this.$store.state.statuses.timelines.media},isUs:function(){return this.userId&&this.$store.state.users.currentUser.id&&this.userId===this.$store.state.users.currentUser.id},user:function(){return this.$store.getters.findUser(this.userId)},isExternal:function(){return"external-user-profile"===this.$route.name},followsTabVisible:function(){return this.isUs||!this.user.hide_follows},followersTabVisible:function(){return this.isUs||!this.user.hide_followers}},methods:{load:function(e){var t=this,i=this.$store.getters.findUser(e);i?(this.userId=i.id,this.fetchTimelines()):this.$store.dispatch("fetchUser",e).then(function(e){var i=e.id;t.userId=i,t.fetchTimelines()}).catch(function(e){var i=(0,a.default)(e,"error.error");t.error="No user with such user_id"===i?t.$t("user_profile.profile_does_not_exist"):i||t.$t("user_profile.profile_loading_error")})},fetchTimelines:function(){var e=this.userId;this.$store.dispatch("startFetchingTimeline",{timeline:"user",userId:e}),this.$store.dispatch("startFetchingTimeline",{timeline:"media",userId:e}),this.isUs&&this.$store.dispatch("startFetchingTimeline",{timeline:"favorites",userId:e}),this.$store.dispatch("fetchPinnedStatuses",e)},cleanUp:function(){this.$store.dispatch("stopFetching","user"),this.$store.dispatch("stopFetching","favorites"),this.$store.dispatch("stopFetching","media"),this.$store.commit("clearTimeline",{timeline:"user"}),this.$store.commit("clearTimeline",{timeline:"favorites"}),this.$store.commit("clearTimeline",{timeline:"media"})}},watch:{"$route.params.id":function(e){e&&(this.cleanUp(),this.load(e))},"$route.params.name":function(e){e&&(this.cleanUp(),this.load(e))},$route:function(){this.$refs.tabSwitcher.activateTab(0)()}},components:{UserCard:o.default,Timeline:s.default,FollowerList:p,FriendList:f,ModerationTools:l.default,FollowCard:n.default,Conversation:r.default}};t.default=m},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s(i(103)),o=s(i(412)),n=i(414);function s(e){return e&&e.__esModule?e:{default:e}}var r={props:["user","noFollowsYou"],data:function(){return{inProgress:!1,requestSent:!1}},components:{BasicUserCard:a.default,RemoteFollow:o.default},computed:{isMe:function(){return this.$store.state.users.currentUser.id===this.user.id},loggedIn:function(){return this.$store.state.users.currentUser}},methods:{followUser:function(){var e=this;this.inProgress=!0,(0,n.requestFollow)(this.user,this.$store).then(function(t){var i=t.sent;e.inProgress=!1,e.requestSent=i})},unfollowUser:function(){var e=this;this.inProgress=!0,(0,n.requestUnfollow)(this.user,this.$store).then(function(){e.inProgress=!1})}}};t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s(i(51)),o=s(i(75)),n=s(i(42));function s(e){return e&&e.__esModule?e:{default:e}}var r={props:["user"],data:function(){return{userExpanded:!1}},components:{UserCard:a.default,UserAvatar:o.default},methods:{toggleUserExpanded:function(){this.userExpanded=!this.userExpanded},userProfileLink:function(e){return(0,n.default)(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)}}};t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{items:{type:Array,default:function(){return[]}},getKey:{type:Function,default:function(e){return e.id}}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=u(i(801)),o=u(i(804)),n=u(i(74)),s=u(i(236)),r=u(i(420)),l=u(i(825)),c=i(826);function u(e){return e&&e.__esModule?e:{default:e}}var d={data:function(){var e=this.$store.state.config,t=this.$store.state.instance;return{hideAttachmentsLocal:e.hideAttachments,hideAttachmentsInConvLocal:e.hideAttachmentsInConv,maxThumbnails:e.maxThumbnails,hideNsfwLocal:e.hideNsfw,useOneClickNsfw:e.useOneClickNsfw,hideISPLocal:e.hideISP,preloadImage:e.preloadImage,hidePostStatsLocal:void 0===e.hidePostStats?t.hidePostStats:e.hidePostStats,hidePostStatsDefault:this.$t("settings.values."+t.hidePostStats),hideUserStatsLocal:void 0===e.hideUserStats?t.hideUserStats:e.hideUserStats,hideUserStatsDefault:this.$t("settings.values."+t.hideUserStats),hideFilteredStatusesLocal:void 0===e.hideFilteredStatuses?t.hideFilteredStatuses:e.hideFilteredStatuses,hideFilteredStatusesDefault:this.$t("settings.values."+t.hideFilteredStatuses),notificationVisibilityLocal:e.notificationVisibility,replyVisibilityLocal:e.replyVisibility,loopVideoLocal:e.loopVideo,muteWordsString:e.muteWords.join("\n"),autoLoadLocal:e.autoLoad,streamingLocal:e.streaming,pauseOnUnfocusedLocal:e.pauseOnUnfocused,hoverPreviewLocal:e.hoverPreview,autohideFloatingPostButtonLocal:e.autohideFloatingPostButton,hideMutedPostsLocal:void 0===e.hideMutedPosts?t.hideMutedPosts:e.hideMutedPosts,hideMutedPostsDefault:this.$t("settings.values."+t.hideMutedPosts),collapseMessageWithSubjectLocal:void 0===e.collapseMessageWithSubject?t.collapseMessageWithSubject:e.collapseMessageWithSubject,collapseMessageWithSubjectDefault:this.$t("settings.values."+t.collapseMessageWithSubject),subjectLineBehaviorLocal:void 0===e.subjectLineBehavior?t.subjectLineBehavior:e.subjectLineBehavior,subjectLineBehaviorDefault:t.subjectLineBehavior,postContentTypeLocal:void 0===e.postContentType?t.postContentType:e.postContentType,postContentTypeDefault:t.postContentType,alwaysShowSubjectInputLocal:void 0===e.alwaysShowSubjectInput?t.alwaysShowSubjectInput:e.alwaysShowSubjectInput,alwaysShowSubjectInputDefault:this.$t("settings.values."+t.alwaysShowSubjectInput),scopeCopyLocal:void 0===e.scopeCopy?t.scopeCopy:e.scopeCopy,scopeCopyDefault:this.$t("settings.values."+t.scopeCopy),minimalScopesModeLocal:void 0===e.minimalScopesMode?t.minimalScopesMode:e.minimalScopesMode,minimalScopesModeDefault:this.$t("settings.values."+t.minimalScopesMode),stopGifs:e.stopGifs,webPushNotificationsLocal:e.webPushNotifications,loopVideoSilentOnlyLocal:e.loopVideosSilentOnly,loopSilentAvailable:(0,a.default)(HTMLVideoElement.prototype,"mozHasAudio")||(0,a.default)(HTMLMediaElement.prototype,"webkitAudioDecodedByteCount")||(0,a.default)(HTMLMediaElement.prototype,"audioTracks"),playVideosInModal:e.playVideosInModal,useContainFit:e.useContainFit,backendVersion:t.backendVersion,frontendVersion:t.frontendVersion}},components:{TabSwitcher:s.default,StyleSwitcher:r.default,InterfaceLanguageSwitcher:l.default},computed:{user:function(){return this.$store.state.users.currentUser},currentSaveStateNotice:function(){return this.$store.state.interface.settings.currentSaveStateNotice},postFormats:function(){return this.$store.state.instance.postFormats||[]},instanceSpecificPanelPresent:function(){return this.$store.state.instance.showInstanceSpecificPanel},frontendVersionLink:function(){return"https://git.pleroma.social/pleroma/pleroma-fe/commit/"+this.frontendVersion},backendVersionLink:function(){return"https://git.pleroma.social/pleroma/pleroma/commit/"+(0,c.extractCommit)(this.backendVersion)}},watch:{hideAttachmentsLocal:function(e){this.$store.dispatch("setOption",{name:"hideAttachments",value:e})},hideAttachmentsInConvLocal:function(e){this.$store.dispatch("setOption",{name:"hideAttachmentsInConv",value:e})},hidePostStatsLocal:function(e){this.$store.dispatch("setOption",{name:"hidePostStats",value:e})},hideUserStatsLocal:function(e){this.$store.dispatch("setOption",{name:"hideUserStats",value:e})},hideFilteredStatusesLocal:function(e){this.$store.dispatch("setOption",{name:"hideFilteredStatuses",value:e})},hideNsfwLocal:function(e){this.$store.dispatch("setOption",{name:"hideNsfw",value:e})},useOneClickNsfw:function(e){this.$store.dispatch("setOption",{name:"useOneClickNsfw",value:e})},preloadImage:function(e){this.$store.dispatch("setOption",{name:"preloadImage",value:e})},hideISPLocal:function(e){this.$store.dispatch("setOption",{name:"hideISP",value:e})},"notificationVisibilityLocal.likes":function(e){this.$store.dispatch("setOption",{name:"notificationVisibility",value:this.$store.state.config.notificationVisibility})},"notificationVisibilityLocal.follows":function(e){this.$store.dispatch("setOption",{name:"notificationVisibility",value:this.$store.state.config.notificationVisibility})},"notificationVisibilityLocal.repeats":function(e){this.$store.dispatch("setOption",{name:"notificationVisibility",value:this.$store.state.config.notificationVisibility})},"notificationVisibilityLocal.mentions":function(e){this.$store.dispatch("setOption",{name:"notificationVisibility",value:this.$store.state.config.notificationVisibility})},replyVisibilityLocal:function(e){this.$store.dispatch("setOption",{name:"replyVisibility",value:e})},loopVideoLocal:function(e){this.$store.dispatch("setOption",{name:"loopVideo",value:e})},loopVideoSilentOnlyLocal:function(e){this.$store.dispatch("setOption",{name:"loopVideoSilentOnly",value:e})},autoLoadLocal:function(e){this.$store.dispatch("setOption",{name:"autoLoad",value:e})},streamingLocal:function(e){this.$store.dispatch("setOption",{name:"streaming",value:e})},pauseOnUnfocusedLocal:function(e){this.$store.dispatch("setOption",{name:"pauseOnUnfocused",value:e})},hoverPreviewLocal:function(e){this.$store.dispatch("setOption",{name:"hoverPreview",value:e})},autohideFloatingPostButtonLocal:function(e){this.$store.dispatch("setOption",{name:"autohideFloatingPostButton",value:e})},muteWordsString:function(e){e=(0,n.default)(e.split("\n"),function(e){return(0,o.default)(e).length>0}),this.$store.dispatch("setOption",{name:"muteWords",value:e})},hideMutedPostsLocal:function(e){this.$store.dispatch("setOption",{name:"hideMutedPosts",value:e})},collapseMessageWithSubjectLocal:function(e){this.$store.dispatch("setOption",{name:"collapseMessageWithSubject",value:e})},scopeCopyLocal:function(e){this.$store.dispatch("setOption",{name:"scopeCopy",value:e})},alwaysShowSubjectInputLocal:function(e){this.$store.dispatch("setOption",{name:"alwaysShowSubjectInput",value:e})},subjectLineBehaviorLocal:function(e){this.$store.dispatch("setOption",{name:"subjectLineBehavior",value:e})},postContentTypeLocal:function(e){this.$store.dispatch("setOption",{name:"postContentType",value:e})},minimalScopesModeLocal:function(e){this.$store.dispatch("setOption",{name:"minimalScopesMode",value:e})},stopGifs:function(e){this.$store.dispatch("setOption",{name:"stopGifs",value:e})},webPushNotificationsLocal:function(e){this.$store.dispatch("setOption",{name:"webPushNotifications",value:e}),e&&this.$store.dispatch("registerPushNotifications")},playVideosInModal:function(e){this.$store.dispatch("setOption",{name:"playVideosInModal",value:e})},useContainFit:function(e){this.$store.dispatch("setOption",{name:"useContainFit",value:e})},maxThumbnails:function(e){e=this.maxThumbnails=Math.floor(Math.max(e,0)),this.$store.dispatch("setOption",{name:"maxThumbnails",value:e})}}};t.default=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=x(i(93)),o=x(i(218)),n=x(i(36)),s=x(i(28)),r=x(i(365)),l=x(i(24)),c=x(i(14)),u=x(i(35)),d=i(63),p=i(9),f=i(80),m=x(i(421)),h=x(i(812)),_=x(i(422)),v=x(i(813)),g=x(i(816)),b=x(i(819)),w=x(i(236)),y=x(i(956)),k=x(i(822));function x(e){return e&&e.__esModule?e:{default:e}}var C=["bg","fg","text","link","cRed","cGreen","cBlue","cOrange"].map(function(e){return e+"ColorLocal"});t.default={data:function(){return{availableStyles:[],selected:this.$store.state.config.theme,previewShadows:{},previewColors:{},previewRadii:{},previewFonts:{},shadowsInvalid:!0,colorsInvalid:!0,radiiInvalid:!0,keepColor:!1,keepShadows:!1,keepOpacity:!1,keepRoundness:!1,keepFonts:!1,textColorLocal:"",linkColorLocal:"",bgColorLocal:"",bgOpacityLocal:void 0,fgColorLocal:"",fgTextColorLocal:void 0,fgLinkColorLocal:void 0,btnColorLocal:void 0,btnTextColorLocal:void 0,btnOpacityLocal:void 0,inputColorLocal:void 0,inputTextColorLocal:void 0,inputOpacityLocal:void 0,panelColorLocal:void 0,panelTextColorLocal:void 0,panelLinkColorLocal:void 0,panelFaintColorLocal:void 0,panelOpacityLocal:void 0,topBarColorLocal:void 0,topBarTextColorLocal:void 0,topBarLinkColorLocal:void 0,alertErrorColorLocal:void 0,badgeOpacityLocal:void 0,badgeNotificationColorLocal:void 0,borderColorLocal:void 0,borderOpacityLocal:void 0,faintColorLocal:void 0,faintOpacityLocal:void 0,faintLinkColorLocal:void 0,cRedColorLocal:"",cBlueColorLocal:"",cGreenColorLocal:"",cOrangeColorLocal:"",shadowSelected:void 0,shadowsLocal:{},fontsLocal:{},btnRadiusLocal:"",inputRadiusLocal:"",checkboxRadiusLocal:"",panelRadiusLocal:"",avatarRadiusLocal:"",avatarAltRadiusLocal:"",attachmentRadiusLocal:"",tooltipRadiusLocal:""}},created:function(){var e=this;(0,f.getThemes)().then(function(t){e.availableStyles=t})},mounted:function(){this.normalizeLocalState(this.$store.state.config.customTheme),void 0===this.shadowSelected&&(this.shadowSelected=this.shadowsAvailable[0])},computed:{selectedVersion:function(){return Array.isArray(this.selected)?1:2},currentColors:function(){return{bg:this.bgColorLocal,text:this.textColorLocal,link:this.linkColorLocal,fg:this.fgColorLocal,fgText:this.fgTextColorLocal,fgLink:this.fgLinkColorLocal,panel:this.panelColorLocal,panelText:this.panelTextColorLocal,panelLink:this.panelLinkColorLocal,panelFaint:this.panelFaintColorLocal,input:this.inputColorLocal,inputText:this.inputTextColorLocal,topBar:this.topBarColorLocal,topBarText:this.topBarTextColorLocal,topBarLink:this.topBarLinkColorLocal,btn:this.btnColorLocal,btnText:this.btnTextColorLocal,alertError:this.alertErrorColorLocal,badgeNotification:this.badgeNotificationColorLocal,faint:this.faintColorLocal,faintLink:this.faintLinkColorLocal,border:this.borderColorLocal,cRed:this.cRedColorLocal,cBlue:this.cBlueColorLocal,cGreen:this.cGreenColorLocal,cOrange:this.cOrangeColorLocal}},currentOpacity:function(){return{bg:this.bgOpacityLocal,btn:this.btnOpacityLocal,input:this.inputOpacityLocal,panel:this.panelOpacityLocal,topBar:this.topBarOpacityLocal,border:this.borderOpacityLocal,faint:this.faintOpacityLocal}},currentRadii:function(){return{btn:this.btnRadiusLocal,input:this.inputRadiusLocal,checkbox:this.checkboxRadiusLocal,panel:this.panelRadiusLocal,avatar:this.avatarRadiusLocal,avatarAlt:this.avatarAltRadiusLocal,tooltip:this.tooltipRadiusLocal,attachment:this.attachmentRadiusLocal}},preview:function(){return(0,f.composePreset)(this.previewColors,this.previewRadii,this.previewShadows,this.previewFonts)},previewTheme:function(){return this.preview.theme.colors?this.preview.theme:{colors:{},opacity:{},radii:{},shadows:{},fonts:{}}},previewContrast:function(){if(!this.previewTheme.colors.bg)return{};var e=this.previewTheme.colors,t=this.previewTheme.opacity;if(!e.bg)return{};var i={text:(0,d.hex2rgb)(e.text),panelText:(0,d.hex2rgb)(e.panelText),panelLink:(0,d.hex2rgb)(e.panelLink),btnText:(0,d.hex2rgb)(e.btnText),topBarText:(0,d.hex2rgb)(e.topBarText),inputText:(0,d.hex2rgb)(e.inputText),link:(0,d.hex2rgb)(e.link),topBarLink:(0,d.hex2rgb)(e.topBarLink),red:(0,d.hex2rgb)(e.cRed),green:(0,d.hex2rgb)(e.cGreen),blue:(0,d.hex2rgb)(e.cBlue),orange:(0,d.hex2rgb)(e.cOrange)},a={bg:(0,d.hex2rgb)(e.bg),btn:(0,d.hex2rgb)(e.btn),panel:(0,d.hex2rgb)(e.panel),topBar:(0,d.hex2rgb)(e.topBar),input:(0,d.hex2rgb)(e.input),alertError:(0,d.hex2rgb)(e.alertError),badgeNotification:(0,d.hex2rgb)(e.badgeNotification)},o={bgText:(0,d.getContrastRatio)((0,d.alphaBlend)(a.bg,t.bg,i.text),i.text),bgLink:(0,d.getContrastRatio)((0,d.alphaBlend)(a.bg,t.bg,i.link),i.link),bgRed:(0,d.getContrastRatio)((0,d.alphaBlend)(a.bg,t.bg,i.red),i.red),bgGreen:(0,d.getContrastRatio)((0,d.alphaBlend)(a.bg,t.bg,i.green),i.green),bgBlue:(0,d.getContrastRatio)((0,d.alphaBlend)(a.bg,t.bg,i.blue),i.blue),bgOrange:(0,d.getContrastRatio)((0,d.alphaBlend)(a.bg,t.bg,i.orange),i.orange),tintText:(0,d.getContrastRatio)((0,d.alphaBlend)(a.bg,.5,i.panelText),i.text),panelText:(0,d.getContrastRatio)((0,d.alphaBlend)(a.panel,t.panel,i.panelText),i.panelText),panelLink:(0,d.getContrastRatio)((0,d.alphaBlend)(a.panel,t.panel,i.panelLink),i.panelLink),btnText:(0,d.getContrastRatio)((0,d.alphaBlend)(a.btn,t.btn,i.btnText),i.btnText),inputText:(0,d.getContrastRatio)((0,d.alphaBlend)(a.input,t.input,i.inputText),i.inputText),topBarText:(0,d.getContrastRatio)((0,d.alphaBlend)(a.topBar,t.topBar,i.topBarText),i.topBarText),topBarLink:(0,d.getContrastRatio)((0,d.alphaBlend)(a.topBar,t.topBar,i.topBarLink),i.topBarLink)};return(0,u.default)(o).reduce(function(e,t){var i,a=(0,c.default)(t,2),o=a[0],n=a[1];return e[o]={text:(i=n).toPrecision(3)+":1",aa:i>=4.5,aaa:i>=7,laa:i>=3,laaa:i>=4.5},e},{})},previewRules:function(){return this.preview.rules?[].concat((0,l.default)((0,r.default)(this.preview.rules)),["color: var(--text)","font-family: var(--interfaceFont, sans-serif)"]).join(";"):""},shadowsAvailable:function(){return(0,s.default)(this.previewTheme.shadows).sort()},currentShadowOverriden:{get:function(){return!!this.currentShadow},set:function(e){e?(0,p.set)(this.shadowsLocal,this.shadowSelected,this.currentShadowFallback.map(function(e){return(0,n.default)({},e)})):(0,p.delete)(this.shadowsLocal,this.shadowSelected)}},currentShadowFallback:function(){return this.previewTheme.shadows[this.shadowSelected]},currentShadow:{get:function(){return this.shadowsLocal[this.shadowSelected]},set:function(e){(0,p.set)(this.shadowsLocal,this.shadowSelected,e)}},themeValid:function(){return!this.shadowsInvalid&&!this.colorsInvalid&&!this.radiiInvalid},exportedTheme:function(){var e=!(this.keepFonts||this.keepShadows||this.keepOpacity||this.keepRoundness||this.keepColor),t={};return(this.keepFonts||e)&&(t.fonts=this.fontsLocal),(this.keepShadows||e)&&(t.shadows=this.shadowsLocal),(this.keepOpacity||e)&&(t.opacity=this.currentOpacity),(this.keepColor||e)&&(t.colors=this.currentColors),(this.keepRoundness||e)&&(t.radii=this.currentRadii),{_pleroma_theme_version:2,theme:t}}},components:{ColorInput:m.default,OpacityInput:_.default,RangeInput:h.default,ContrastRatio:b.default,ShadowControl:v.default,FontControl:g.default,TabSwitcher:w.default,Preview:y.default,ExportImport:k.default},methods:{setCustomTheme:function(){this.$store.dispatch("setOption",{name:"customTheme",value:{shadows:this.shadowsLocal,fonts:this.fontsLocal,opacity:this.currentOpacity,colors:this.currentColors,radii:this.currentRadii}})},onImport:function(e){1===e._pleroma_theme_version?this.normalizeLocalState(e,1):2===e._pleroma_theme_version&&this.normalizeLocalState(e.theme,2)},importValidator:function(e){var t=e._pleroma_theme_version;return t>=1||t<=2},clearAll:function(){var e=this.$store.state.config.customTheme.colors?2:"l1";this.normalizeLocalState(this.$store.state.config.customTheme,e)},clearV1:function(){var e=this;(0,s.default)(this.$data).filter(function(e){return e.endsWith("ColorLocal")||e.endsWith("OpacityLocal")}).filter(function(e){return!C.includes(e)}).forEach(function(t){(0,p.set)(e.$data,t,void 0)})},clearRoundness:function(){var e=this;(0,s.default)(this.$data).filter(function(e){return e.endsWith("RadiusLocal")}).forEach(function(t){(0,p.set)(e.$data,t,void 0)})},clearOpacity:function(){var e=this;(0,s.default)(this.$data).filter(function(e){return e.endsWith("OpacityLocal")}).forEach(function(t){(0,p.set)(e.$data,t,void 0)})},clearShadows:function(){this.shadowsLocal={}},clearFonts:function(){this.fontsLocal={}},normalizeLocalState:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.colors||e,r=e.radii||e,l=e.opacity,p=e.shadows||{},f=e.fonts||{};if(0===i&&(e.version&&(i=e.version),void 0===n.text&&void 0!==n.fg&&(i=1),void 0!==n.text&&void 0!==n.fg&&(i=2)),1===i&&(this.fgColorLocal=(0,d.rgb2hex)(n.btn),this.textColorLocal=(0,d.rgb2hex)(n.fg)),!this.keepColor){this.clearV1();var m=new o.default(1!==i?(0,s.default)(n):[]);1!==i&&"l1"!==i||m.add("bg").add("link").add("cRed").add("cBlue").add("cGreen").add("cOrange"),m.forEach(function(e){t[e+"ColorLocal"]=(0,d.rgb2hex)(n[e])})}this.keepRoundness||(this.clearRoundness(),(0,u.default)(r).forEach(function(e){var i=(0,c.default)(e,2),a=i[0],o=i[1],n=a.endsWith("Radius")?a.split("Radius")[0]:a;t[n+"RadiusLocal"]=o})),this.keepShadows||(this.clearShadows(),this.shadowsLocal=p,this.shadowSelected=this.shadowsAvailable[0]),this.keepFonts||(this.clearFonts(),this.fontsLocal=f),l&&!this.keepOpacity&&(this.clearOpacity(),(0,u.default)(l).forEach(function(e){var i=(0,c.default)(e,2),o=i[0],n=i[1];null==n||(0,a.default)(n)||(t[o+"OpacityLocal"]=n)}))}},watch:{currentRadii:function(){try{this.previewRadii=(0,f.generateRadii)({radii:this.currentRadii}),this.radiiInvalid=!1}catch(e){this.radiiInvalid=!0,console.warn(e)}},shadowsLocal:{handler:function(){try{this.previewShadows=(0,f.generateShadows)({shadows:this.shadowsLocal}),this.shadowsInvalid=!1}catch(e){this.shadowsInvalid=!0,console.warn(e)}},deep:!0},fontsLocal:{handler:function(){try{this.previewFonts=(0,f.generateFonts)({fonts:this.fontsLocal}),this.fontsInvalid=!1}catch(e){this.fontsInvalid=!0,console.warn(e)}},deep:!0},currentColors:function(){try{this.previewColors=(0,f.generateColors)({opacity:this.currentOpacity,colors:this.currentColors}),this.colorsInvalid=!1}catch(e){this.colorsInvalid=!0,console.warn(e)}},currentOpacity:function(){try{this.previewColors=(0,f.generateColors)({opacity:this.currentOpacity,colors:this.currentColors})}catch(e){console.warn(e)}},selected:function(){1===this.selectedVersion?(this.keepRoundness||this.clearRoundness(),this.keepShadows||this.clearShadows(),this.keepOpacity||this.clearOpacity(),this.keepColor||(this.clearV1(),this.bgColorLocal=this.selected[1],this.fgColorLocal=this.selected[2],this.textColorLocal=this.selected[3],this.linkColorLocal=this.selected[4],this.cRedColorLocal=this.selected[5],this.cGreenColorLocal=this.selected[6],this.cBlueColorLocal=this.selected[7],this.cOrangeColorLocal=this.selected[8])):this.selectedVersion>=2&&this.normalizeLocalState(this.selected.theme,2)}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:["name","label","value","fallback","disabled"],computed:{present:function(){return void 0!==this.value}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:["name","value","fallback","disabled","label","max","min","step","hardMin","hardMax"],computed:{present:function(){return void 0!==this.value}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:["name","value","fallback","disabled"],computed:{present:function(){return void 0!==this.value}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=l(i(36)),o=l(i(421)),n=l(i(422)),s=i(80),r=i(63);function l(e){return e&&e.__esModule?e:{default:e}}t.default={props:["value","fallback","ready"],data:function(){return{selectedId:0,cValue:this.value||this.fallback||[]}},components:{ColorInput:o.default,OpacityInput:n.default},methods:{add:function(){this.cValue.push((0,a.default)({},this.selected)),this.selectedId=this.cValue.length-1},del:function(){this.cValue.splice(this.selectedId,1),this.selectedId=0===this.cValue.length?void 0:this.selectedId-1},moveUp:function(){var e=this.cValue.splice(this.selectedId,1)[0];this.cValue.splice(this.selectedId-1,0,e),this.selectedId-=1},moveDn:function(){var e=this.cValue.splice(this.selectedId,1)[0];this.cValue.splice(this.selectedId+1,0,e),this.selectedId+=1}},beforeUpdate:function(){this.cValue=this.value||this.fallback},computed:{selected:function(){return this.ready&&this.cValue.length>0?this.cValue[this.selectedId]:{x:0,y:0,blur:0,spread:0,inset:!1,color:"#000000",alpha:1}},moveUpValid:function(){return this.ready&&this.selectedId>0},moveDnValid:function(){return this.ready&&this.selectedIdthis.$store.state.instance[e+"limit"]){var o=f.default.fileSizeFormat(a.size),n=f.default.fileSizeFormat(this.$store.state.instance[e+"limit"]);this[e+"UploadError"]=this.$t("upload.error.base")+" "+this.$t("upload.error.file_too_big",{filesize:o.num,filesizeunit:o.unit,allowedsize:n.num,allowedsizeunit:n.unit})}else{var s=new FileReader;s.onload=function(t){var o=t.target.result;i[e+"Preview"]=o,i[e]=a},s.readAsDataURL(a)}},submitAvatar:function(e,t){var i=this;return new a.default(function(a,o){function n(e){i.$store.state.api.backendInteractor.updateAvatar({avatar:e}).then(function(e){i.$store.commit("addNewUsers",[e]),i.$store.commit("setCurrentUser",e),a()}).catch(function(e){o(new Error(i.$t("upload.error.base")+" "+e.message))})}e?e.getCroppedCanvas().toBlob(n,t.type):n(t)})},clearUploadError:function(e){this[e+"UploadError"]=null},submitBanner:function(){var e=this;this.bannerPreview&&(this.bannerUploading=!0,this.$store.state.api.backendInteractor.updateBanner({banner:this.banner}).then(function(t){e.$store.commit("addNewUsers",[t]),e.$store.commit("setCurrentUser",t),e.bannerPreview=null}).catch(function(t){e.bannerUploadError=e.$t("upload.error.base")+" "+t.message}).then(function(){e.bannerUploading=!1}))},submitBg:function(){var e=this;if(this.backgroundPreview){var t=this.background;this.backgroundUploading=!0,this.$store.state.api.backendInteractor.updateBg({background:t}).then(function(t){t.error?e.backgroundUploadError=e.$t("upload.error.base")+t.error:(e.$store.commit("addNewUsers",[t]),e.$store.commit("setCurrentUser",t),e.backgroundPreview=null),e.backgroundUploading=!1})}},importFollows:function(e){return this.$store.state.api.backendInteractor.importFollows(e).then(function(e){if(!e)throw new Error("failed")})},importBlocks:function(e){return this.$store.state.api.backendInteractor.importBlocks(e).then(function(e){if(!e)throw new Error("failed")})},generateExportableUsersContent:function(e){return e.map(function(e){return e&&e.is_local?e.screen_name+"@"+location.hostname:e.screen_name}).join("\n")},getFollowsContent:function(){return this.$store.state.api.backendInteractor.exportFriends({id:this.$store.state.users.currentUser.id}).then(this.generateExportableUsersContent)},getBlocksContent:function(){return this.$store.state.api.backendInteractor.fetchBlocks().then(this.generateExportableUsersContent)},confirmDelete:function(){this.deletingAccount=!0},deleteAccount:function(){var e=this;this.$store.state.api.backendInteractor.deleteAccount({password:this.deleteAccountConfirmPasswordInput}).then(function(t){"success"===t.status?(e.$store.dispatch("logout"),e.$router.push({name:"root"})):e.deleteAccountError=t.error})},changePassword:function(){var e=this,t={password:this.changePasswordInputs[0],newPassword:this.changePasswordInputs[1],newPasswordConfirmation:this.changePasswordInputs[2]};this.$store.state.api.backendInteractor.changePassword(t).then(function(t){"success"===t.status?(e.changedPassword=!0,e.changePasswordError=!1,e.logout()):(e.changedPassword=!1,e.changePasswordError=t.error)})},activateTab:function(e){this.activeTab=e},logout:function(){this.$store.dispatch("logout"),this.$router.replace("/")},revokeToken:function(e){window.confirm(this.$i18n.t("settings.revoke_token")+"?")&&this.$store.dispatch("revokeToken",e)},filterUnblockedUsers:function(e){var t=this;return(0,l.default)(e,function(e){var i=t.$store.getters.findUser(e);return!i||i.statusnet_blocking||i.id===t.$store.state.users.currentUser.id})},filterUnMutedUsers:function(e){var t=this;return(0,l.default)(e,function(e){var i=t.$store.getters.findUser(e);return!i||i.muted||i.id===t.$store.state.users.currentUser.id})},queryUserIds:function(e){var t=this;return C.default.search({query:e,store:this.$store}).then(function(e){return t.$store.dispatch("addNewUsers",e),(0,r.default)(e,"id")})},blockUsers:function(e){return this.$store.dispatch("blockUsers",e)},unblockUsers:function(e){return this.$store.dispatch("unblockUsers",e)},muteUsers:function(e){return this.$store.dispatch("muteUsers",e)},unmuteUsers:function(e){return this.$store.dispatch("unmuteUsers",e)},identity:function(e){return e}}};t.default=L},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(i(61)),o=n(i(862));function n(e){return e&&e.__esModule?e:{default:e}}i(863);var s={props:{trigger:{type:[String,window.Element],required:!0},submitHandler:{type:Function,required:!0},cropperOptions:{type:Object,default:function(){return{aspectRatio:1,autoCropArea:1,viewMode:1,movable:!1,zoomable:!1,guides:!1}}},mimes:{type:String,default:"image/png, image/gif, image/jpeg, image/bmp, image/x-icon"},saveButtonLabel:{type:String},saveWithoutCroppingButtonlabel:{type:String},cancelButtonLabel:{type:String}},data:function(){return{cropper:void 0,dataUrl:void 0,filename:void 0,submitting:!1,submitError:null}},computed:{saveText:function(){return this.saveButtonLabel||this.$t("image_cropper.save")},saveWithoutCroppingText:function(){return this.saveWithoutCroppingButtonlabel||this.$t("image_cropper.save_without_cropping")},cancelText:function(){return this.cancelButtonLabel||this.$t("image_cropper.cancel")},submitErrorMsg:function(){return this.submitError&&this.submitError instanceof Error?this.submitError.toString():this.submitError}},methods:{destroy:function(){this.cropper&&this.cropper.destroy(),this.$refs.input.value="",this.dataUrl=void 0,this.$emit("close")},submit:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.submitting=!0,this.avatarUploadError=null,this.submitHandler(t&&this.cropper,this.file).then(function(){return e.destroy()}).catch(function(t){e.submitError=t}).finally(function(){e.submitting=!1})},pickImage:function(){this.$refs.input.click()},createCropper:function(){this.cropper=new o.default(this.$refs.img,this.cropperOptions)},getTriggerDOM:function(){return"object"===(0,a.default)(this.trigger)?this.trigger:document.querySelector(this.trigger)},readFile:function(){var e=this,t=this.$refs.input;if(null!=t.files&&null!=t.files[0]){this.file=t.files[0];var i=new window.FileReader;i.onload=function(t){e.dataUrl=t.target.result,e.$emit("open")},i.readAsDataURL(this.file),this.$emit("changed",this.file,i)}},clearError:function(){this.submitError=null}},mounted:function(){var e=this.getTriggerDOM();e?e.addEventListener("click",this.pickImage):this.$emit("error","No image make trigger found.","user"),this.$refs.input.addEventListener("change",this.readFile)},beforeDestroy:function(){var e=this.getTriggerDOM();e&&e.removeEventListener("click",this.pickImage),this.$refs.input.removeEventListener("change",this.readFile)}};t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(103);var n={props:["userId"],data:function(){return{progress:!1}},computed:{user:function(){return this.$store.getters.findUser(this.userId)},blocked:function(){return this.user.statusnet_blocking}},components:{BasicUserCard:((a=o)&&a.__esModule?a:{default:a}).default},methods:{unblockUser:function(){var e=this;this.progress=!0,this.$store.dispatch("unblockUser",this.user.id).then(function(){e.progress=!1})},blockUser:function(){var e=this;this.progress=!0,this.$store.dispatch("blockUser",this.user.id).then(function(){e.progress=!1})}}};t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(103);var n={props:["userId"],data:function(){return{progress:!1}},computed:{user:function(){return this.$store.getters.findUser(this.userId)},muted:function(){return this.user.muted}},components:{BasicUserCard:((a=o)&&a.__esModule?a:{default:a}).default},methods:{unmuteUser:function(){var e=this;this.progress=!0,this.$store.dispatch("unmuteUser",this.user.id).then(function(){e.progress=!1})},muteUser:function(){var e=this;this.progress=!0,this.$store.dispatch("muteUser",this.user.id).then(function(){e.progress=!1})}}};t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(i(235)),o=n(i(424));function n(e){return e&&e.__esModule?e:{default:e}}var s={components:{List:a.default,Checkbox:o.default},props:{items:{type:Array,default:function(){return[]}},getKey:{type:Function,default:function(e){return e.id}}},data:function(){return{selected:[]}},computed:{allKeys:function(){return this.items.map(this.getKey)},filteredSelected:function(){var e=this;return this.allKeys.filter(function(t){return-1!==e.selected.indexOf(t)})},allSelected:function(){return this.filteredSelected.length===this.items.length},noneSelected:function(){return 0===this.filteredSelected.length},someSelected:function(){return!this.allSelected&&!this.noneSelected}},methods:{isSelected:function(e){return-1!==this.filteredSelected.indexOf(this.getKey(e))},toggle:function(e,t){var i=this.getKey(t);e!==this.isSelected(i)&&(e?this.selected.push(i):this.selected.splice(this.selected.indexOf(i),1))},toggleAll:function(e){this.selected=e?this.allKeys.slice(0):[]}}};t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={model:{prop:"checked",event:"change"},props:["checked","indeterminate"]}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(13),n=(a=o)&&a.__esModule?a:{default:a};t.default={props:{disabled:{type:Boolean},click:{type:Function,default:function(){return n.default.resolve()}}},data:function(){return{progress:!1}},methods:{onClick:function(){var e=this;this.progress=!0,this.click().then(function(){e.progress=!1})}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={props:{query:{type:Function,required:!0},filter:{type:Function},placeholder:{type:String,default:"Search..."}},data:function(){return{term:"",timeout:null,results:[],resultsVisible:!1}},computed:{filtered:function(){return this.filter?this.filter(this.results):this.results}},watch:{term:function(e){this.fetchResults(e)}},methods:{fetchResults:function(e){var t=this;clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.results=[],e&&t.query(e).then(function(e){t.results=e})},500)},onInputClick:function(){this.resultsVisible=!0},onClickOutside:function(){this.resultsVisible=!1}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={props:{submitHandler:{type:Function,required:!0},submitButtonLabel:{type:String,default:function(){return this.$t("importer.submit")}},successMessage:{type:String,default:function(){return this.$t("importer.success")}},errorMessage:{type:String,default:function(){return this.$t("importer.error")}}},data:function(){return{file:null,error:!1,success:!1,submitting:!1}},methods:{change:function(){this.file=this.$refs.input.files[0]},submit:function(){var e=this;this.dismiss(),this.submitting=!0,this.submitHandler(this.file).then(function(){e.success=!0}).catch(function(){e.error=!0}).finally(function(){e.submitting=!1})},dismiss:function(){this.success=!1,this.error=!1}}};t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={props:{getContent:{type:Function,required:!0},filename:{type:String,default:"export.csv"},exportButtonLabel:{type:String,default:function(){return this.$t("exporter.export")}},processingMessage:{type:String,default:function(){return this.$t("exporter.processing")}}},data:function(){return{processing:!1}},methods:{process:function(){var e=this;this.processing=!0,this.getContent().then(function(t){var i=document.createElement("a");i.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(t)),i.setAttribute("download",e.filename),i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i),setTimeout(function(){e.processing=!1},2e3)})}}};t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=d(i(30)),o=d(i(31)),n=d(i(10)),s=d(i(890)),r=d(i(893)),l=d(i(425)),c=d(i(894)),u=i(21);function d(e){return e&&e.__esModule?e:{default:e}}var p={data:function(){return{settings:{available:!1,enabled:!1,totp:!1},setupState:{state:"",setupOTPState:""},backupCodes:{getNewCodes:!1,inProgress:!1,codes:[]},otpSettings:{provisioning_uri:"",key:""},currentPassword:null,otpConfirmToken:null,error:null,readyInit:!1}},components:{"recovery-codes":s.default,"totp-item":r.default,qrcode:c.default,confirm:l.default},computed:(0,n.default)({canSetupOTP:function(){return(this.setupInProgress&&this.backupCodesPrepared||this.settings.enabled)&&!this.settings.totp&&!this.setupOTPInProgress},setupInProgress:function(){return""!==this.setupState.state&&"complete"!==this.setupState.state},setupOTPInProgress:function(){return"setupOTP"===this.setupState.state&&!this.completedOTP},prepareOTP:function(){return"prepare"===this.setupState.setupOTPState},confirmOTP:function(){return"confirm"===this.setupState.setupOTPState},completedOTP:function(){return"completed"===this.setupState.setupOTPState},backupCodesPrepared:function(){return!this.backupCodes.inProgress&&this.backupCodes.codes.length>0},confirmNewBackupCodes:function(){return this.backupCodes.getNewCodes}},(0,u.mapState)({backendInteractor:function(e){return e.api.backendInteractor}})),methods:{activateOTP:function(){this.settings.enabled||(this.setupState.state="getBackupcodes",this.fetchBackupCodes())},fetchBackupCodes:function(){var e=this;return this.backupCodes.inProgress=!0,this.backupCodes.codes=[],this.backendInteractor.generateMfaBackupCodes().then(function(t){e.backupCodes.codes=t.codes,e.backupCodes.inProgress=!1})},getBackupCodes:function(){this.backupCodes.getNewCodes=!0},confirmBackupCodes:function(){var e=this;this.fetchBackupCodes().then(function(t){e.backupCodes.getNewCodes=!1})},cancelBackupCodes:function(){this.backupCodes.getNewCodes=!1},setupOTP:function(){var e=this;this.setupState.state="setupOTP",this.setupState.setupOTPState="prepare",this.backendInteractor.mfaSetupOTP().then(function(t){e.otpSettings=t,e.setupState.setupOTPState="confirm"})},doConfirmOTP:function(){var e=this;this.error=null,this.backendInteractor.mfaConfirmOTP({token:this.otpConfirmToken,password:this.currentPassword}).then(function(t){t.error?e.error=t.error:e.completeSetup()})},completeSetup:function(){this.setupState.setupOTPState="complete",this.setupState.state="complete",this.currentPassword=null,this.error=null,this.fetchSettings()},cancelSetup:function(){this.setupState.setupOTPState="",this.setupState.state="",this.currentPassword=null,this.error=null},fetchSettings:function(){var e=(0,o.default)(a.default.mark(function e(){var t;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.backendInteractor.fetchSettingsMFA();case 2:if(!(t=e.sent).error){e.next=5;break}return e.abrupt("return");case 5:return this.settings=t.settings,this.settings.available=!0,e.abrupt("return",t);case 8:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},mounted:function(){var e=this;this.fetchSettings().then(function(){e.readyInit=!0})}};t.default=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{backupCodes:{type:Object,default:function(){return{inProgress:!1,codes:[]}}}},data:function(){return{}},computed:{inProgress:function(){return this.backupCodes.inProgress},ready:function(){return this.backupCodes.codes.length>0},displayTitle:function(){return this.inProgress||this.ready}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s(i(10)),o=s(i(425)),n=i(21);function s(e){return e&&e.__esModule?e:{default:e}}t.default={props:["settings"],data:function(){return{error:!1,currentPassword:"",deactivate:!1,inProgress:!1}},components:{confirm:o.default},computed:(0,a.default)({isActivated:function(){return this.settings.totp}},(0,n.mapState)({backendInteractor:function(e){return e.api.backendInteractor}})),methods:{doActivate:function(){this.$emit("activate")},cancelDeactivate:function(){this.deactivate=!1},doDeactivate:function(){this.error=null,this.deactivate=!0},confirmDeactivate:function(){var e=this;this.error=null,this.inProgress=!0,this.backendInteractor.mfaDisableOTP({password:this.currentPassword}).then(function(t){e.inProgress=!1,t.error?e.error=t.error:(e.deactivate=!1,e.$emit("deactivate"))})}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={props:["disabled"],data:function(){return{}},methods:{confirm:function(){this.$emit("confirm")},cancel:function(){this.$emit("cancel")}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(896);var n={components:{FollowRequestCard:((a=o)&&a.__esModule?a:{default:a}).default},computed:{requests:function(){return this.$store.state.api.followRequests}}};t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(103);var n={props:["user"],components:{BasicUserCard:((a=o)&&a.__esModule?a:{default:a}).default},methods:{approveUser:function(){this.$store.state.api.backendInteractor.approveUser(this.user.id),this.$store.dispatch("removeFollowRequest",this.user)},denyUser:function(){this.$store.state.api.backendInteractor.denyUser(this.user.id),this.$store.dispatch("removeFollowRequest",this.user)}}};t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(237),n=(a=o)&&a.__esModule?a:{default:a};var s={props:["code"],mounted:function(){var e=this;if(this.code){var t=this.$store.state.oauth,i=t.clientId,a=t.clientSecret;n.default.getToken({clientId:i,clientSecret:a,instance:this.$store.state.instance.server,code:this.code}).then(function(t){e.$store.commit("setToken",t.access_token),e.$store.dispatch("loginUser",t.access_token),e.$router.push({name:"friends"})})}}};t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(i(234)),o=n(i(22));function n(e){return e&&e.__esModule?e:{default:e}}var s={components:{FollowCard:a.default},props:["query"],data:function(){return{username:"",userIds:[],loading:!1}},computed:{users:function(){var e=this;return this.userIds.map(function(t){return e.$store.getters.findUser(t)})}},mounted:function(){this.search(this.query)},watch:{query:function(e){this.search(e)}},methods:{newQuery:function(e){this.$router.push({name:"user-search",query:{query:e}}),this.$refs.userSearchInput.focus()},search:function(e){var t=this;e?(this.loading=!0,this.$store.dispatch("searchUsers",e).then(function(e){t.loading=!1,t.userIds=(0,o.default)(e,"id")})):this.users=[]}}};t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s(i(10)),o=i(21),n=s(i(237));function s(e){return e&&e.__esModule?e:{default:e}}var r={data:function(){return{user:{},error:!1}},computed:(0,a.default)({isPasswordAuth:function(){return this.requiredPassword},isTokenAuth:function(){return this.requiredToken}},(0,o.mapState)({registrationOpen:function(e){return e.instance.registrationOpen},instance:function(e){return e.instance},loggingIn:function(e){return e.users.loggingIn},oauth:function(e){return e.oauth}}),(0,o.mapGetters)("authFlow",["requiredPassword","requiredToken","requiredMFA"])),methods:(0,a.default)({},(0,o.mapMutations)("authFlow",["requireMFA"]),(0,o.mapActions)({login:"authFlow/login"}),{submit:function(){this.isTokenAuth?this.submitToken():this.submitPassword()},submitToken:function(){var e=this.oauth,t={clientId:e.clientId,clientSecret:e.clientSecret,instance:this.instance.server,commit:this.$store.commit};n.default.getOrCreateApp(t).then(function(e){n.default.login((0,a.default)({},e,t))})},submitPassword:function(){var e=this,t={clientId:this.oauth.clientId,oauth:this.oauth,instance:this.instance.server,commit:this.$store.commit};this.error=!1,n.default.getOrCreateApp(t).then(function(i){n.default.getTokenWithCredentials((0,a.default)({},i,{instance:t.instance,username:e.user.username,password:e.user.password})).then(function(t){t.error?"mfa_required"===t.error?e.requireMFA({app:i,settings:t}):(e.error=t.error,e.focusOnPasswordInput()):e.login(t).then(function(){e.$router.push({name:"friends"})})})})},clearError:function(){this.error=!1},focusOnPasswordInput:function(){var e=this.$refs.passwordInput;e.focus(),e.setSelectionRange(0,e.value.length)}})};t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s(i(10)),o=s(i(427)),n=i(21);function s(e){return e&&e.__esModule?e:{default:e}}t.default={data:function(){return{code:null,error:!1}},computed:(0,a.default)({},(0,n.mapGetters)({authApp:"authFlow/app",authSettings:"authFlow/settings"}),(0,n.mapState)({instance:"instance"})),methods:(0,a.default)({},(0,n.mapMutations)("authFlow",["requireTOTP","abortMFA"]),(0,n.mapActions)({login:"authFlow/login"}),{clearError:function(){this.error=!1},submit:function(){var e=this,t={app:this.authApp,instance:this.instance.server,mfaToken:this.authSettings.mfa_token,code:this.code};o.default.verifyRecoveryCode(t).then(function(t){if(t.error)return e.error=t.error,void(e.code=null);e.login(t).then(function(){e.$router.push({name:"friends"})})})}})}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s(i(10)),o=s(i(427)),n=i(21);function s(e){return e&&e.__esModule?e:{default:e}}t.default={data:function(){return{code:null,error:!1}},computed:(0,a.default)({},(0,n.mapGetters)({authApp:"authFlow/app",authSettings:"authFlow/settings"}),(0,n.mapState)({instance:"instance"})),methods:(0,a.default)({},(0,n.mapMutations)("authFlow",["requireRecovery","abortMFA"]),(0,n.mapActions)({login:"authFlow/login"}),{clearError:function(){this.error=!1},submit:function(){var e=this,t={app:this.authApp,instance:this.instance.server,mfaToken:this.authSettings.mfa_token,code:this.code};o.default.verifyOTPCode(t).then(function(t){if(t.error)return e.error=t.error,void(e.code=null);e.login(t).then(function(){e.$router.push({name:"friends"})})})}})}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(42),n=(a=o)&&a.__esModule?a:{default:a};var s={props:["floating"],data:function(){return{currentMessage:"",channel:null,collapsed:!0}},computed:{messages:function(){return this.$store.state.chat.messages}},methods:{submit:function(e){this.$store.state.chat.channel.push("new_msg",{text:e},1e4),this.currentMessage=""},togglePanel:function(){this.collapsed=!this.collapsed},userProfileLink:function(e){return(0,n.default)(e.id,e.username,this.$store.state.instance.restrictedNicknames)}}};t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o(i(29));function o(e){return e&&e.__esModule?e:{default:e}}var n={components:{FollowCard:o(i(234)).default},data:function(){return{users:[]}},mounted:function(){this.getWhoToFollow()},methods:{showWhoToFollow:function(e){var t=this;e.forEach(function(e,i){var a={id:0,name:e.display_name,screen_name:e.acct,profile_image_url:e.avatar||"/images/avi.png",profile_image_url_original:e.avatar||"/images/avi.png"};t.users.push(a),t.$store.state.api.backendInteractor.externalProfile(a.screen_name).then(function(e){e.error||(t.$store.commit("addNewUsers",[e]),a.id=e.id)})})},getWhoToFollow:function(){var e=this,t=this.$store.state.users.currentUser.credentials;t&&a.default.suggestions({credentials:t}).then(function(t){e.showWhoToFollow(t)})}}};t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s(i(429)),o=s(i(430)),n=s(i(920));function s(e){return e&&e.__esModule?e:{default:e}}var r={components:{InstanceSpecificPanel:a.default,FeaturesPanel:o.default,TermsOfServicePanel:n.default},computed:{showFeaturesPanel:function(){return this.$store.state.instance.showFeaturesPanel}}};t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={computed:{instanceSpecificPanelContent:function(){return this.$store.state.instance.instanceSpecificPanelContent},show:function(){return!this.$store.state.config.hideISP}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={computed:{chat:function(){return this.$store.state.instance.chatAvailable&&!this.$store.state.chatDisabled},gopher:function(){return this.$store.state.instance.gopherAvailable},whoToFollow:function(){return this.$store.state.instance.suggestionsEnabled},mediaProxy:function(){return this.$store.state.instance.mediaProxyAvailable},minimalScopesMode:function(){return this.$store.state.instance.minimalScopesMode},textlimit:function(){return this.$store.state.instance.textlimit}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={computed:{content:function(){return this.$store.state.instance.tos}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=g(i(36)),o=g(i(926)),n=g(i(929)),s=g(i(102)),r=g(i(933)),l=g(i(429)),c=g(i(430)),u=g(i(936)),d=g(i(428)),p=g(i(943)),f=g(i(432)),m=g(i(434)),h=g(i(950)),_=g(i(953)),v=i(435);function g(e){return e&&e.__esModule?e:{default:e}}t.default={name:"app",components:{UserPanel:o.default,NavPanel:n.default,Notifications:s.default,UserFinder:r.default,InstanceSpecificPanel:l.default,FeaturesPanel:c.default,WhoToFollowPanel:u.default,ChatPanel:d.default,MediaModal:p.default,SideDrawer:f.default,MobilePostStatusModal:m.default,MobileNav:h.default,UserReportingModal:_.default},data:function(){return{mobileActivePanel:"timeline",finderHidden:!0,supportsMask:window.CSS&&window.CSS.supports&&(window.CSS.supports("mask-size","contain")||window.CSS.supports("-webkit-mask-size","contain")||window.CSS.supports("-moz-mask-size","contain")||window.CSS.supports("-ms-mask-size","contain")||window.CSS.supports("-o-mask-size","contain"))}},created:function(){this.$i18n.locale=this.$store.state.config.interfaceLanguage,window.addEventListener("resize",this.updateMobileState)},destroyed:function(){window.removeEventListener("resize",this.updateMobileState)},computed:{currentUser:function(){return this.$store.state.users.currentUser},background:function(){return this.currentUser.background_image||this.$store.state.instance.background},enableMask:function(){return this.supportsMask&&this.$store.state.instance.logoMask},logoStyle:function(){return{visibility:this.enableMask?"hidden":"visible"}},logoMaskStyle:function(){return this.enableMask?{"mask-image":"url("+this.$store.state.instance.logo+")"}:{"background-color":this.enableMask?"":"transparent"}},logoBgStyle:function(){return(0,a.default)({margin:this.$store.state.instance.logoMargin+" 0",opacity:this.finderHidden?1:0},this.enableMask?{}:{"background-color":this.enableMask?"":"transparent"})},logo:function(){return this.$store.state.instance.logo},bgStyle:function(){return{"background-image":"url("+this.background+")"}},bgAppStyle:function(){return{"--body-background-image":"url("+this.background+")"}},sitename:function(){return this.$store.state.instance.name},chat:function(){return"joined"===this.$store.state.chat.channel.state},suggestionsEnabled:function(){return this.$store.state.instance.suggestionsEnabled},showInstanceSpecificPanel:function(){return this.$store.state.instance.showInstanceSpecificPanel},showFeaturesPanel:function(){return this.$store.state.instance.showFeaturesPanel},isMobileLayout:function(){return this.$store.state.interface.mobileLayout}},methods:{scrollToTop:function(){window.scrollTo(0,0)},logout:function(){this.$router.replace("/main/public"),this.$store.dispatch("logout")},onFinderToggled:function(e){this.finderHidden=e},updateMobileState:function(){var e=(0,v.windowWidth)()<=800;e!==this.isMobileLayout&&this.$store.dispatch("setMobileLayout",e)}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=l(i(10)),o=l(i(426)),n=l(i(230)),s=l(i(51)),r=i(21);function l(e){return e&&e.__esModule?e:{default:e}}var c={computed:(0,a.default)({signedIn:function(){return this.user}},(0,r.mapState)({user:function(e){return e.users.currentUser}})),components:{AuthForm:o.default,PostStatusForm:n.default,UserCard:s.default}};t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(932),n=(a=o)&&a.__esModule?a:{default:a};var s={created:function(){if(this.currentUser&&this.currentUser.locked){var e=this.$store,t=e.state.users.currentUser.credentials;n.default.startFetching({store:e,credentials:t})}},computed:{currentUser:function(){return this.$store.state.users.currentUser},chat:function(){return this.$store.state.chat.channel},followRequestCount:function(){return this.$store.state.api.followRequests.length}}};t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={data:function(){return{username:void 0,hidden:!0,error:!1,loading:!1}},methods:{findUser:function(e){this.$router.push({name:"user-search",query:{query:e}}),this.$refs.userSearchInput.focus()},toggleHidden:function(){this.hidden=!this.hidden,this.$emit("toggled",this.hidden)}}};t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s(i(939)),o=s(i(29)),n=s(i(42));function s(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=e.$store.state.users.currentUser.credentials;t&&(e.usersToFollow.forEach(function(e){e.name="Loading..."}),o.default.suggestions({credentials:t}).then(function(t){!function(e,t){var i=(0,a.default)(t);e.usersToFollow.forEach(function(t,a){var o=i[a],n=o.avatar||"/images/avi.png",s=o.acct;t.img=n,t.name=s,e.$store.state.api.backendInteractor.externalProfile(s).then(function(i){i.error||(e.$store.commit("addNewUsers",[i]),t.id=i.id)})})}(e,t)}))}var l={data:function(){return{usersToFollow:new Array(3).fill().map(function(e){return{img:"/images/avi.png",name:"",id:0}})}},computed:{user:function(){return this.$store.state.users.currentUser.screen_name},suggestionsEnabled:function(){return this.$store.state.instance.suggestionsEnabled}},methods:{userProfileLink:function(e,t){return(0,n.default)(e,t,this.$store.state.instance.restrictedNicknames)}},watch:{user:function(e,t){this.suggestionsEnabled&&r(this)}},mounted:function(){this.suggestionsEnabled&&r(this)}};t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s(i(228)),o=s(i(403)),n=s(i(73));function s(e){return e&&e.__esModule?e:{default:e}}var r={components:{StillImage:a.default,VideoAttachment:o.default},computed:{showing:function(){return this.$store.state.mediaViewer.activated},media:function(){return this.$store.state.mediaViewer.media},currentIndex:function(){return this.$store.state.mediaViewer.currentIndex},currentMedia:function(){return this.media[this.currentIndex]},canNavigate:function(){return this.media.length>1},type:function(){return this.currentMedia?n.default.fileType(this.currentMedia.mimetype):null}},methods:{hide:function(){this.$store.dispatch("closeMediaViewer")},goPrev:function(){if(this.canNavigate){var e=0===this.currentIndex?this.media.length-1:this.currentIndex-1;this.$store.dispatch("setCurrent",this.media[e])}},goNext:function(){if(this.canNavigate){var e=this.currentIndex===this.media.length-1?0:this.currentIndex+1;this.$store.dispatch("setCurrent",this.media[e])}},handleKeyupEvent:function(e){this.showing&&27===e.keyCode&&this.hide()},handleKeydownEvent:function(e){this.showing&&(39===e.keyCode?this.goNext():37===e.keyCode&&this.goPrev())}},mounted:function(){document.addEventListener("keyup",this.handleKeyupEvent),document.addEventListener("keydown",this.handleKeydownEvent)},destroyed:function(){document.removeEventListener("keyup",this.handleKeyupEvent),document.removeEventListener("keydown",this.handleKeydownEvent)}};t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s(i(51)),o=i(233),n=s(i(433));function s(e){return e&&e.__esModule?e:{default:e}}var r={props:["logout"],data:function(){return{closed:!0,closeGesture:void 0}},created:function(){this.closeGesture=n.default.swipeGesture(n.default.DIRECTION_LEFT,this.toggleDrawer)},components:{UserCard:a.default},computed:{currentUser:function(){return this.$store.state.users.currentUser},chat:function(){return"joined"===this.$store.state.chat.channel.state},unseenNotifications:function(){return(0,o.unseenNotificationsFromStore)(this.$store)},unseenNotificationsCount:function(){return this.unseenNotifications.length},suggestionsEnabled:function(){return this.$store.state.instance.suggestionsEnabled},logo:function(){return this.$store.state.instance.logo},sitename:function(){return this.$store.state.instance.name},followRequestCount:function(){return this.$store.state.api.followRequests.length}},methods:{toggleDrawer:function(){this.closed=!this.closed},doLogout:function(){this.logout(),this.toggleDrawer()},touchStart:function(e){n.default.beginSwipe(e,this.closeGesture)},touchMove:function(e){n.default.updateSwipe(e,this.closeGesture)}}};t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o(i(399));function o(e){return e&&e.__esModule?e:{default:e}}var n={components:{PostStatusForm:o(i(230)).default},data:function(){return{hidden:!1,postFormOpen:!1,scrollingDown:!1,inputActive:!1,oldScrollPos:0,amountScrolled:0}},created:function(){this.autohideFloatingPostButton&&this.activateFloatingPostButtonAutohide(),window.addEventListener("resize",this.handleOSK)},destroyed:function(){this.autohideFloatingPostButton&&this.deactivateFloatingPostButtonAutohide(),window.removeEventListener("resize",this.handleOSK)},computed:{currentUser:function(){return this.$store.state.users.currentUser},isHidden:function(){return this.autohideFloatingPostButton&&(this.hidden||this.inputActive)},autohideFloatingPostButton:function(){return!!this.$store.state.config.autohideFloatingPostButton}},watch:{autohideFloatingPostButton:function(e){e?this.activateFloatingPostButtonAutohide():this.deactivateFloatingPostButtonAutohide()}},methods:{activateFloatingPostButtonAutohide:function(){window.addEventListener("scroll",this.handleScrollStart),window.addEventListener("scroll",this.handleScrollEnd)},deactivateFloatingPostButtonAutohide:function(){window.removeEventListener("scroll",this.handleScrollStart),window.removeEventListener("scroll",this.handleScrollEnd)},openPostForm:function(){this.postFormOpen=!0,this.hidden=!0;var e=this.$el.querySelector("textarea");this.$nextTick(function(){e.focus()})},closePostForm:function(){this.postFormOpen=!1,this.hidden=!1},handleOSK:function(){var e=window.innerWidth<350,t=e&&window.innerHeight<345,i=!e&&window.innerWidth<450&&window.innerHeight<560;this.inputActive=!(!t&&!i)},handleScrollStart:(0,a.default)(function(){window.scrollY>this.oldScrollPos?this.hidden=!0:this.hidden=!1,this.oldScrollPos=window.scrollY},100,{leading:!0,trailing:!1}),handleScrollEnd:(0,a.default)(function(){this.hidden=!1,this.oldScrollPos=window.scrollY},100,{leading:!1,trailing:!0})}};t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=l(i(432)),o=l(i(102)),n=l(i(434)),s=i(233),r=l(i(433));function l(e){return e&&e.__esModule?e:{default:e}}var c={components:{SideDrawer:a.default,Notifications:o.default,MobilePostStatusModal:n.default},data:function(){return{notificationsCloseGesture:void 0,notificationsOpen:!1}},created:function(){this.notificationsCloseGesture=r.default.swipeGesture(r.default.DIRECTION_RIGHT,this.closeMobileNotifications,50)},computed:{currentUser:function(){return this.$store.state.users.currentUser},unseenNotifications:function(){return(0,s.unseenNotificationsFromStore)(this.$store)},unseenNotificationsCount:function(){return this.unseenNotifications.length},sitename:function(){return this.$store.state.instance.name}},methods:{toggleMobileSidebar:function(){this.$refs.sideDrawer.toggleDrawer()},openMobileNotifications:function(){this.notificationsOpen=!0},closeMobileNotifications:function(){this.notificationsOpen&&(this.notificationsOpen=!1,this.markNotificationsAsSeen())},notificationsTouchStart:function(e){r.default.beginSwipe(e,this.notificationsCloseGesture)},notificationsTouchMove:function(e){r.default.updateSwipe(e,this.notificationsCloseGesture)},scrollToTop:function(){window.scrollTo(0,0)},logout:function(){this.$router.replace("/main/public"),this.$store.dispatch("logout")},markNotificationsAsSeen:function(){this.$refs.notifications.markAsSeen()},onScroll:function(e){var t=e.target,i=t.scrollTop,a=t.clientHeight,o=t.scrollHeight;this.$store.state.config.autoLoad&&i+a>=o&&this.$refs.notifications.fetchOlderNotifications()}},watch:{$route:function(){this.closeMobileNotifications()}}};t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s(i(101)),o=s(i(235)),n=s(i(424));function s(e){return e&&e.__esModule?e:{default:e}}var r={components:{Status:a.default,List:o.default,Checkbox:n.default},data:function(){return{comment:"",forward:!1,statusIdsToReport:[],processing:!1,error:!1}},computed:{isLoggedIn:function(){return!!this.$store.state.users.currentUser},isOpen:function(){return this.isLoggedIn&&this.$store.state.reports.modalActivated},userId:function(){return this.$store.state.reports.userId},user:function(){return this.$store.getters.findUser(this.userId)},remoteInstance:function(){return!this.user.is_local&&this.user.screen_name.substr(this.user.screen_name.indexOf("@")+1)},statuses:function(){return this.$store.state.reports.statuses}},watch:{userId:"resetState"},methods:{resetState:function(){this.comment="",this.forward=!1,this.statusIdsToReport=[],this.processing=!1,this.error=!1},closeModal:function(){this.$store.dispatch("closeUserReportingModal")},reportUser:function(){var e=this;this.processing=!0,this.error=!1;var t={userId:this.userId,comment:this.comment,forward:this.forward,statusIds:this.statusIdsToReport};this.$store.state.api.backendInteractor.reportUser(t).then(function(){e.processing=!1,e.resetState(),e.closeModal()}).catch(function(){e.processing=!1,e.error=!0})},clearError:function(){this.error=!1},isChecked:function(e){return-1!==this.statusIdsToReport.indexOf(e)},toggleStatus:function(e,t){e!==this.isChecked(t)&&(e?this.statusIdsToReport.push(t):this.statusIdsToReport.splice(this.statusIdsToReport.indexOf(t),1))},resize:function(e){var t=e.target||e;t instanceof window.Element&&(t.style.height="auto",t.style.height=t.scrollHeight+"px",""===t.value&&(t.style.height=null))}}};t.default=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(i(10)),o=r(i(29)),n=r(i(387)),s=r(i(394));function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return{fetchStatus:function(t){var i=t.id;return o.default.fetchStatus({id:i,credentials:e})},fetchConversation:function(t){var i=t.id;return o.default.fetchConversation({id:i,credentials:e})},fetchFriends:function(t){var i=t.id,a=t.maxId,n=t.sinceId,s=t.limit;return o.default.fetchFriends({id:i,maxId:a,sinceId:n,limit:s,credentials:e})},exportFriends:function(t){var i=t.id;return o.default.exportFriends({id:i,credentials:e})},fetchFollowers:function(t){var i=t.id,a=t.maxId,n=t.sinceId,s=t.limit;return o.default.fetchFollowers({id:i,maxId:a,sinceId:n,limit:s,credentials:e})},followUser:function(t){return o.default.followUser({credentials:e,id:t})},unfollowUser:function(t){return o.default.unfollowUser({credentials:e,id:t})},blockUser:function(t){return o.default.blockUser({credentials:e,id:t})},unblockUser:function(t){return o.default.unblockUser({credentials:e,id:t})},fetchUser:function(t){var i=t.id;return o.default.fetchUser({id:i,credentials:e})},fetchUserRelationship:function(t){var i=t.id;return o.default.fetchUserRelationship({id:i,credentials:e})},verifyCredentials:o.default.verifyCredentials,startFetchingTimeline:function(t){var i=t.timeline,a=t.store,o=t.userId,s=void 0!==o&&o,r=t.tag;return n.default.startFetching({timeline:i,store:a,credentials:e,userId:s,tag:r})},startFetchingNotifications:function(t){var i=t.store;return s.default.startFetching({store:i,credentials:e})},fetchMutes:function(){return o.default.fetchMutes({credentials:e})},muteUser:function(t){return o.default.muteUser({credentials:e,id:t})},unmuteUser:function(t){return o.default.unmuteUser({credentials:e,id:t})},fetchBlocks:function(){return o.default.fetchBlocks({credentials:e})},fetchOAuthTokens:function(){return o.default.fetchOAuthTokens({credentials:e})},revokeOAuthToken:function(t){return o.default.revokeOAuthToken({id:t,credentials:e})},fetchPinnedStatuses:function(t){return o.default.fetchPinnedStatuses({credentials:e,id:t})},pinOwnStatus:function(t){return o.default.pinOwnStatus({credentials:e,id:t})},unpinOwnStatus:function(t){return o.default.unpinOwnStatus({credentials:e,id:t})},tagUser:function(t,i){var a=t.screen_name;return o.default.tagUser({screen_name:a,tag:i,credentials:e})},untagUser:function(t,i){var a=t.screen_name;return o.default.untagUser({screen_name:a,tag:i,credentials:e})},addRight:function(t,i){var a=t.screen_name;return o.default.addRight({screen_name:a,right:i,credentials:e})},deleteRight:function(t,i){var a=t.screen_name;return o.default.deleteRight({screen_name:a,right:i,credentials:e})},deleteUser:function(t){var i=t.screen_name;return o.default.deleteUser({screen_name:i,credentials:e})},setActivationStatus:function(t,i){var a=t.screen_name;return o.default.setActivationStatus({screen_name:a,status:i,credentials:e})},register:function(t){return o.default.register({credentials:e,params:t})},getCaptcha:function(){return o.default.getCaptcha()},updateAvatar:function(t){var i=t.avatar;return o.default.updateAvatar({credentials:e,avatar:i})},updateBg:function(t){var i=t.background;return o.default.updateBg({credentials:e,background:i})},updateBanner:function(t){var i=t.banner;return o.default.updateBanner({credentials:e,banner:i})},updateProfile:function(t){var i=t.params;return o.default.updateProfile({credentials:e,params:i})},externalProfile:function(t){return o.default.externalProfile({profileUrl:t,credentials:e})},importBlocks:function(t){return o.default.importBlocks({file:t,credentials:e})},importFollows:function(t){return o.default.importFollows({file:t,credentials:e})},deleteAccount:function(t){var i=t.password;return o.default.deleteAccount({credentials:e,password:i})},changePassword:function(t){var i=t.password,a=t.newPassword,n=t.newPasswordConfirmation;return o.default.changePassword({credentials:e,password:i,newPassword:a,newPasswordConfirmation:n})},fetchSettingsMFA:function(){return o.default.settingsMFA({credentials:e})},generateMfaBackupCodes:function(){return o.default.generateMfaBackupCodes({credentials:e})},mfaSetupOTP:function(){return o.default.mfaSetupOTP({credentials:e})},mfaConfirmOTP:function(t){var i=t.password,a=t.token;return o.default.mfaConfirmOTP({credentials:e,password:i,token:a})},mfaDisableOTP:function(t){var i=t.password;return o.default.mfaDisableOTP({credentials:e,password:i})},fetchFollowRequests:function(){return o.default.fetchFollowRequests({credentials:e})},approveUser:function(t){return o.default.approveUser({credentials:e,id:t})},denyUser:function(t){return o.default.denyUser({credentials:e,id:t})},vote:function(t,i){return o.default.vote({credentials:e,pollId:t,choices:i})},fetchPoll:function(t){return o.default.fetchPoll({credentials:e,pollId:t})},fetchFavoritedByUsers:function(e){return o.default.fetchFavoritedByUsers({id:e})},fetchRebloggedByUsers:function(e){return o.default.fetchRebloggedByUsers({id:e})},reportUser:function(t){return o.default.reportUser((0,a.default)({credentials:e},t))},favorite:function(t){return o.default.favorite({id:t,credentials:e})},unfavorite:function(t){return o.default.unfavorite({id:t,credentials:e})},retweet:function(t){return o.default.retweet({id:t,credentials:e})},unretweet:function(t){return o.default.unretweet({id:t,credentials:e})},updateNotificationSettings:function(t){var i=t.settings;return o.default.updateNotificationSettings({credentials:e,settings:i})}}}},,function(e,t,i){"use strict";i.r(t);var a=i(108),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(238),r=i(0);var l=function(e){i(696)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";i.r(t);var a=i(113),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(243),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},function(e,t,i){"use strict";i.r(t);var a=i(116),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(251),r=i(0);var l=function(e){i(714)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},,function(e,t,i){"use strict";i.r(t);var a=i(129),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(261),r=i(0);var l=function(e){i(755)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unseenNotificationsFromStore=t.visibleNotificationsFromStore=t.visibleTypes=t.notificationsFromStore=void 0;var a=s(i(93)),o=s(i(780)),n=s(i(74));function s(e){return e&&e.__esModule?e:{default:e}}var r=t.notificationsFromStore=function(e){return e.state.statuses.notifications.data},l=t.visibleTypes=function(e){return[e.state.config.notificationVisibility.likes&&"like",e.state.config.notificationVisibility.mentions&&"mention",e.state.config.notificationVisibility.repeats&&"repeat",e.state.config.notificationVisibility.follows&&"follow"].filter(function(e){return e})},c=function(e,t){var i=Number(e.id),o=Number(t.id),n=!(0,a.default)(i),s=!(0,a.default)(o);return n&&s?i>o?-1:1:n&&!s?1:!n&&s?-1:e.id>t.id?-1:1},u=t.visibleNotificationsFromStore=function(e,t){var i=r(e).map(function(e){return e}).sort(c);return(i=(0,o.default)(i,"seen")).filter(function(i){return(t||l(e)).includes(i.type)})};t.unseenNotificationsFromStore=function(e){return(0,n.default)(u(e),function(e){return!e.seen})}},function(e,t,i){"use strict";i.r(t);var a=i(139),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(273),r=i(0);var l=function(e){i(789)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";i.r(t);var a=i(141),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(274),r=i(0);var l=function(e){i(793)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(9),n=(a=o)&&a.__esModule?a:{default:a};i(807),t.default=n.default.component("tab-switcher",{name:"TabSwitcher",props:["renderOnlyFocused","onSwitch"],data:function(){return{active:this.$slots.default.findIndex(function(e){return e.tag})}},methods:{activateTab:function(e,t){var i=this;return function(){"function"==typeof i.onSwitch&&i.onSwitch.call(null,e,i.$slots.default[e].elm.dataset),i.active=e}}},beforeUpdate:function(){this.$slots.default[this.active].tag||(this.active=this.$slots.default.findIndex(function(e){return e.tag}))},render:function(e){var t=this,i=this.$slots.default.map(function(i,a){if(i.tag){var o=["tab"],n=["tab-wrapper"];return a===t.active&&(o.push("active"),n.push("active")),e("div",{class:n.join(" ")},[e("button",{attrs:{disabled:i.data.attrs.disabled},on:{click:t.activateTab(a)},class:o.join(" ")},[i.data.attrs.label])])}}),a=this.$slots.default.map(function(i,a){if(i.tag){var o=a===t.active;return t.renderOnlyFocused?o?e("div",{class:"active"},[i]):e("div",{class:"hidden"}):e("div",{class:o?"active":"hidden"},[i])}});return e("div",{class:"tab-switcher"},[e("div",{class:"tabs"},[i]),e("div",{class:"contents"},[a])])}})},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClientToken=t.getOrCreateApp=void 0;var a=n(i(13)),o=n(i(231));function n(e){return e&&e.__esModule?e:{default:e}}var s=window.location.origin+"/oauth-callback",r=t.getOrCreateApp=function(e){var t=e.clientId,i=e.clientSecret,o=e.instance,n=e.commit;if(t&&i)return a.default.resolve({clientId:t,clientSecret:i});var r=o+"/api/v1/apps",l=new window.FormData;return l.append("client_name","PleromaFE_"+window.___pleromafe_commit_hash+"_"+(new Date).toISOString()),l.append("redirect_uris",s),l.append("scopes","read write follow"),window.fetch(r,{method:"POST",body:l}).then(function(e){return e.json()}).then(function(e){return{clientId:e.client_id,clientSecret:e.client_secret}}).then(function(e){return n("setClientData",e)||e})},l=(t.getClientToken=function(e){var t=e.clientId,i=e.clientSecret,a=e.instance+"/oauth/token",o=new window.FormData;return o.append("client_id",t),o.append("client_secret",i),o.append("grant_type","client_credentials"),o.append("redirect_uri",window.location.origin+"/oauth-callback"),window.fetch(a,{method:"POST",body:o}).then(function(e){return e.json()})},{login:function(e){var t=e.instance,i={response_type:"code",client_id:e.clientId,redirect_uri:s,scope:"read write follow"},a=t+"/oauth/authorize?"+(0,o.default)(i,function(e,t,i){var a=i+"="+encodeURIComponent(t);return e?e+"&"+a:a},!1);window.location.href=a},getToken:function(e){var t=e.clientId,i=e.clientSecret,a=e.instance,o=e.code,n=a+"/oauth/token",s=new window.FormData;return s.append("client_id",t),s.append("client_secret",i),s.append("grant_type","authorization_code"),s.append("code",o),s.append("redirect_uri",window.location.origin+"/oauth-callback"),window.fetch(n,{method:"POST",body:s}).then(function(e){return e.json()})},getTokenWithCredentials:function(e){var t=e.clientId,i=e.clientSecret,a=e.instance,o=e.username,n=e.password,s=a+"/oauth/token",r=new window.FormData;return r.append("client_id",t),r.append("client_secret",i),r.append("grant_type","password"),r.append("username",o),r.append("password",n),window.fetch(s,{method:"POST",body:r}).then(function(e){return e.json()})},getOrCreateApp:r,verifyOTPCode:function(e){var t=e.app,i=e.instance,a=e.mfaToken,o=e.code,n=i+"/oauth/mfa/challenge",s=new window.FormData;return s.append("client_id",t.client_id),s.append("client_secret",t.client_secret),s.append("mfa_token",a),s.append("code",o),s.append("challenge_type","totp"),window.fetch(n,{method:"POST",body:s}).then(function(e){return e.json()})},verifyRecoveryCode:function(e){var t=e.app,i=e.instance,a=e.mfaToken,o=e.code,n=i+"/oauth/mfa/challenge",s=new window.FormData;return s.append("client_id",t.client_id),s.append("client_secret",t.client_secret),s.append("mfa_token",a),s.append("code",o),s.append("challenge_type","recovery"),window.fetch(n,{method:"POST",body:s}).then(function(e){return e.json()})}});t.default=l},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"still-image",class:{animated:e.animated}},[e.animated?i("canvas",{ref:"canvas"}):e._e(),e._v(" "),i("img",{ref:"src",attrs:{src:e.src,referrerpolicy:e.referrerpolicy},on:{load:e.onLoad,error:e.onError}})])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this.$createElement;return(this._self._c||e)("video",{staticClass:"video",attrs:{src:this.attachment.url,loop:this.loopVideo,controls:this.controls,playsinline:""},on:{loadeddata:this.onVideoDataLoad}})},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e,t=this,i=t.$createElement,a=t._self._c||i;return t.usePlaceHolder?a("div",{on:{click:t.openModal}},["html"!==t.type?a("a",{staticClass:"placeholder",attrs:{target:"_blank",href:t.attachment.url}},[t._v("\n ["+t._s(t.nsfw?"NSFW/":"")+t._s(t.type.toUpperCase())+"]\n ")]):t._e()]):a("div",{directives:[{name:"show",rawName:"v-show",value:!t.isEmpty,expression:"!isEmpty"}],staticClass:"attachment",class:(e={},e[t.type]=!0,e.loading=t.loading,e.fullwidth=t.fullwidth,e["nsfw-placeholder"]=t.hidden,e)},[t.hidden?a("a",{staticClass:"image-attachment",attrs:{href:t.attachment.url},on:{click:function(e){return e.preventDefault(),t.toggleHidden(e)}}},[a("img",{key:t.nsfwImage,staticClass:"nsfw",class:{small:t.isSmall},attrs:{src:t.nsfwImage}}),t._v(" "),"video"===t.type?a("i",{staticClass:"play-icon icon-play-circled"}):t._e()]):t._e(),t._v(" "),t.nsfw&&t.hideNsfwLocal&&!t.hidden?a("div",{staticClass:"hider"},[a("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleHidden(e)}}},[t._v("Hide")])]):t._e(),t._v(" "),"image"!==t.type||t.hidden&&!t.preloadImage?t._e():a("a",{staticClass:"image-attachment",class:{hidden:t.hidden&&t.preloadImage},attrs:{href:t.attachment.url,target:"_blank",title:t.attachment.description},on:{click:t.openModal}},[a("StillImage",{attrs:{referrerpolicy:t.referrerpolicy,mimetype:t.attachment.mimetype,src:t.attachment.large_thumb_url||t.attachment.url}})],1),t._v(" "),"video"!==t.type||t.hidden?t._e():a("a",{staticClass:"video-container",class:{small:t.isSmall},attrs:{href:t.allowPlay?void 0:t.attachment.url},on:{click:t.openModal}},[a("VideoAttachment",{staticClass:"video",attrs:{attachment:t.attachment,controls:t.allowPlay}}),t._v(" "),t.allowPlay?t._e():a("i",{staticClass:"play-icon icon-play-circled"})],1),t._v(" "),"audio"===t.type?a("audio",{attrs:{src:t.attachment.url,controls:""}}):t._e(),t._v(" "),"html"===t.type&&t.attachment.oembed?a("div",{staticClass:"oembed",on:{click:function(e){return e.preventDefault(),t.linkClicked(e)}}},[t.attachment.thumb_url?a("div",{staticClass:"image"},[a("img",{attrs:{src:t.attachment.thumb_url}})]):t._e(),t._v(" "),a("div",{staticClass:"text"},[a("h1",[a("a",{attrs:{href:t.attachment.url}},[t._v(t._s(t.attachment.oembed.title))])]),t._v(" "),a("div",{domProps:{innerHTML:t._s(t.attachment.oembed.oembedHTML)}})])]):t._e()])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.loggedIn?i("div",[i("i",{staticClass:"button-icon favorite-button fav-active",class:e.classes,attrs:{title:e.$t("tool_tip.favorite")},on:{click:function(t){t.preventDefault(),e.favorite()}}}),e._v(" "),!e.hidePostStatsLocal&&e.status.fave_num>0?i("span",[e._v(e._s(e.status.fave_num))]):e._e()]):i("div",[i("i",{staticClass:"button-icon favorite-button",class:e.classes,attrs:{title:e.$t("tool_tip.favorite")}}),e._v(" "),!e.hidePostStatsLocal&&e.status.fave_num>0?i("span",[e._v(e._s(e.status.fave_num))]):e._e()])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.loggedIn?i("div",["private"!==e.visibility&&"direct"!==e.visibility?[i("i",{staticClass:"button-icon retweet-button icon-retweet rt-active",class:e.classes,attrs:{title:e.$t("tool_tip.repeat")},on:{click:function(t){t.preventDefault(),e.retweet()}}}),e._v(" "),!e.hidePostStatsLocal&&e.status.repeat_num>0?i("span",[e._v(e._s(e.status.repeat_num))]):e._e()]:[i("i",{staticClass:"button-icon icon-lock",class:e.classes,attrs:{title:e.$t("timeline.no_retweet_hint")}})]],2):e.loggedIn?e._e():i("div",[i("i",{staticClass:"button-icon icon-retweet",class:e.classes,attrs:{title:e.$t("tool_tip.repeat")}}),e._v(" "),!e.hidePostStatsLocal&&e.status.repeat_num>0?i("span",[e._v(e._s(e.status.repeat_num))]):e._e()])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this.$createElement;return(this._self._c||e)("time",{attrs:{datetime:this.time,title:this.localeDateString}},[this._v("\n "+this._s(this.$t(this.relativeTime.key,[this.relativeTime.num]))+"\n")])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"poll",class:e.containerClass},[e._l(e.options,function(t,a){return i("div",{key:a,staticClass:"poll-option"},[e.showResults?i("div",{staticClass:"option-result",attrs:{title:e.resultTitle(t)}},[i("div",{staticClass:"option-result-label"},[i("span",{staticClass:"result-percentage"},[e._v("\n "+e._s(e.percentageForOption(t.votes_count))+"%\n ")]),e._v(" "),i("span",[e._v(e._s(t.title))])]),e._v(" "),i("div",{staticClass:"result-fill",style:{width:e.percentageForOption(t.votes_count)+"%"}})]):i("div",{on:{click:function(t){e.activateOption(a)}}},[e.poll.multiple?i("input",{attrs:{type:"checkbox",disabled:e.loading},domProps:{value:a}}):i("input",{attrs:{type:"radio",disabled:e.loading},domProps:{value:a}}),e._v(" "),i("label",{staticClass:"option-vote"},[i("div",[e._v(e._s(t.title))])])])])}),e._v(" "),i("div",{staticClass:"footer faint"},[e.showResults?e._e():i("button",{staticClass:"btn btn-default poll-vote-button",attrs:{type:"button",disabled:e.isDisabled},on:{click:e.vote}},[e._v("\n "+e._s(e.$t("polls.vote"))+"\n ")]),e._v(" "),i("div",{staticClass:"total"},[e._v("\n "+e._s(e.totalVotesCount)+" "+e._s(e.$t("polls.votes"))+" · \n ")]),e._v(" "),i("i18n",{attrs:{path:e.expired?"polls.expired":"polls.expires_in"}},[i("Timeago",{attrs:{time:this.expiresAt,"auto-update":60,"now-threshold":0}})],1)],1)],2)},o=[]},,function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.enabled&&e.showPopper?i("Popper",{attrs:{trigger:"click","append-to-body":"",options:{placement:"top",modifiers:{arrow:{enabled:!0},offset:{offset:"0, 5px"}}}},on:{hide:function(t){e.showDropDown=!1}}},[i("div",{staticClass:"popper-wrapper"},[i("div",{staticClass:"dropdown-menu"},[!e.status.pinned&&e.canPin?i("button",{staticClass:"dropdown-item dropdown-item-icon",on:{click:function(t){return t.preventDefault(),e.pinStatus(t)}}},[i("i",{staticClass:"icon-pin"}),i("span",[e._v(e._s(e.$t("status.pin")))])]):e._e(),e._v(" "),e.status.pinned&&e.canPin?i("button",{staticClass:"dropdown-item dropdown-item-icon",on:{click:function(t){return t.preventDefault(),e.unpinStatus(t)}}},[i("i",{staticClass:"icon-pin"}),i("span",[e._v(e._s(e.$t("status.unpin")))])]):e._e(),e._v(" "),e.canDelete?i("button",{staticClass:"dropdown-item dropdown-item-icon",on:{click:function(t){return t.preventDefault(),e.deleteStatus(t)}}},[i("i",{staticClass:"icon-cancel"}),i("span",[e._v(e._s(e.$t("status.delete")))])]):e._e()])]),e._v(" "),i("div",{staticClass:"button-icon",attrs:{slot:"reference"},on:{click:e.toggleMenu},slot:"reference"},[i("i",{staticClass:"icon-ellipsis",class:{"icon-clicked":e.showDropDown}})])]):e._e()},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"media-upload",on:{drop:[function(e){e.preventDefault()},e.fileDrop],dragover:function(t){return t.preventDefault(),e.fileDrag(t)}}},[i("label",{staticClass:"btn btn-default",attrs:{title:e.$t("tool_tip.media_upload")}},[e.uploading?i("i",{staticClass:"icon-spin4 animate-spin"}):e._e(),e._v(" "),e.uploading?e._e():i("i",{staticClass:"icon-upload"}),e._v(" "),e.uploadReady?i("input",{staticStyle:{position:"fixed",top:"-100em"},attrs:{type:"file",multiple:"true"},on:{change:e.change}}):e._e()])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.showNothing?e._e():i("div",{staticClass:"scope-selector"},[e.showDirect?i("i",{staticClass:"icon-mail-alt",class:e.css.direct,attrs:{title:e.$t("post_status.scope.direct")},on:{click:function(t){e.changeVis("direct")}}}):e._e(),e._v(" "),e.showPrivate?i("i",{staticClass:"icon-lock",class:e.css.private,attrs:{title:e.$t("post_status.scope.private")},on:{click:function(t){e.changeVis("private")}}}):e._e(),e._v(" "),e.showUnlisted?i("i",{staticClass:"icon-lock-open-alt",class:e.css.unlisted,attrs:{title:e.$t("post_status.scope.unlisted")},on:{click:function(t){e.changeVis("unlisted")}}}):e._e(),e._v(" "),e.showPublic?i("i",{staticClass:"icon-globe",class:e.css.public,attrs:{title:e.$t("post_status.scope.public")},on:{click:function(t){e.changeVis("public")}}}):e._e()])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"emoji-input"},[e._t("default"),e._v(" "),i("div",{ref:"panel",staticClass:"autocomplete-panel",class:{hide:!e.showPopup}},[i("div",{staticClass:"autocomplete-panel-body"},e._l(e.suggestions,function(t,a){return i("div",{key:a,staticClass:"autocomplete-item",class:{highlighted:t.highlighted},on:{click:function(i){i.stopPropagation(),i.preventDefault(),e.onClick(i,t)}}},[i("span",{staticClass:"image"},[t.img?i("img",{attrs:{src:t.img}}):i("span",[e._v(e._s(t.replacement))])]),e._v(" "),i("div",{staticClass:"label"},[i("span",{staticClass:"displayText"},[e._v(e._s(t.displayText))]),e._v(" "),i("span",{staticClass:"detailText"},[e._v(e._s(t.detailText))])])])}),0)])],2)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.visible?i("div",{staticClass:"poll-form"},[e._l(e.options,function(t,a){return i("div",{key:a,staticClass:"poll-option"},[i("div",{staticClass:"input-container"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.options[a],expression:"options[index]"}],staticClass:"poll-option-input",attrs:{type:"text",placeholder:e.$t("polls.option"),maxlength:e.maxLength,id:"poll-"+a},domProps:{value:e.options[a]},on:{change:e.updatePollToParent,keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;t.stopPropagation(),t.preventDefault(),e.nextOption(a)},input:function(t){t.target.composing||e.$set(e.options,a,t.target.value)}}})]),e._v(" "),e.options.length>2?i("div",{staticClass:"icon-container"},[i("i",{staticClass:"icon-cancel",on:{click:function(t){e.deleteOption(a)}}})]):e._e()])}),e._v(" "),e.options.length1?i("div",{staticClass:"text-format"},[i("label",{staticClass:"select",attrs:{for:"post-content-type"}},[i("select",{directives:[{name:"model",rawName:"v-model",value:e.newStatus.contentType,expression:"newStatus.contentType"}],staticClass:"form-control",attrs:{id:"post-content-type"},on:{change:function(t){var i=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.$set(e.newStatus,"contentType",t.target.multiple?i:i[0])}}},e._l(e.postFormats,function(t){return i("option",{key:t,domProps:{value:t}},[e._v("\n "+e._s(e.$t('post_status.content_type["'+t+'"]'))+"\n ")])}),0),e._v(" "),i("i",{staticClass:"icon-down-open"})])]):e._e(),e._v(" "),1===e.postFormats.length?i("div",{staticClass:"text-format"},[i("span",{staticClass:"only-format"},[e._v("\n "+e._s(e.$t('post_status.content_type["'+e.postFormats[0]+'"]'))+"\n ")])]):e._e(),e._v(" "),i("scope-selector",{attrs:{showAll:e.showAllScopes,userDefault:e.userDefaultScope,originalScope:e.copyMessageScope,initialScope:e.newStatus.visibility,onScopeChange:e.changeVis}})],1)],1),e._v(" "),e.pollsAvailable?i("poll-form",{ref:"pollForm",attrs:{visible:e.pollFormVisible},on:{"update-poll":e.setPoll}}):e._e(),e._v(" "),i("div",{staticClass:"form-bottom"},[i("div",{staticClass:"form-bottom-left"},[i("media-upload",{ref:"mediaUpload",attrs:{"drop-files":e.dropFiles},on:{uploading:e.disableSubmit,uploaded:e.addMediaFile,"upload-failed":e.uploadFailed}}),e._v(" "),e.pollsAvailable?i("div",{staticClass:"poll-icon"},[i("i",{staticClass:"icon-chart-bar btn btn-default",class:e.pollFormVisible&&"selected",attrs:{title:e.$t("polls.add_poll")},on:{click:e.togglePollForm}})]):e._e()],1),e._v(" "),e.posting?i("button",{staticClass:"btn btn-default",attrs:{disabled:""}},[e._v(e._s(e.$t("post_status.posting")))]):e.isOverLengthLimit?i("button",{staticClass:"btn btn-default",attrs:{disabled:""}},[e._v(e._s(e.$t("general.submit")))]):i("button",{staticClass:"btn btn-default",attrs:{disabled:e.submitDisabled,type:"submit"}},[e._v(e._s(e.$t("general.submit")))])]),e._v(" "),e.error?i("div",{staticClass:"alert error"},[e._v("\n Error: "+e._s(e.error)+"\n "),i("i",{staticClass:"button-icon icon-cancel",on:{click:e.clearError}})]):e._e(),e._v(" "),i("div",{staticClass:"attachments"},e._l(e.newStatus.files,function(t){return i("div",{staticClass:"media-upload-wrapper"},[i("i",{staticClass:"fa button-icon icon-cancel",on:{click:function(i){e.removeMediaFile(t)}}}),e._v(" "),i("div",{staticClass:"media-upload-container attachment"},["image"===e.type(t)?i("img",{staticClass:"thumbnail media-upload",attrs:{src:t.url}}):e._e(),e._v(" "),"video"===e.type(t)?i("video",{attrs:{src:t.url,controls:""}}):e._e(),e._v(" "),"audio"===e.type(t)?i("audio",{attrs:{src:t.url,controls:""}}):e._e(),e._v(" "),"unknown"===e.type(t)?i("a",{attrs:{href:t.url}},[e._v(e._s(t.url))]):e._e()])])}),0),e._v(" "),e.newStatus.files.length>0?i("div",{staticClass:"upload_settings"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.newStatus.nsfw,expression:"newStatus.nsfw"}],attrs:{type:"checkbox",id:"filesSensitive"},domProps:{checked:Array.isArray(e.newStatus.nsfw)?e._i(e.newStatus.nsfw,null)>-1:e.newStatus.nsfw},on:{change:function(t){var i=e.newStatus.nsfw,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&e.$set(e.newStatus,"nsfw",i.concat([null])):n>-1&&e.$set(e.newStatus,"nsfw",i.slice(0,n).concat(i.slice(n+1)))}else e.$set(e.newStatus,"nsfw",o)}}}),e._v(" "),i("label",{attrs:{for:"filesSensitive"}},[e._v(e._s(e.$t("post_status.attachments_sensitive")))])]):e._e()],1)])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this.$createElement;return(this._self._c||e)("StillImage",{staticClass:"avatar",class:{"avatar-compact":this.compact,"better-shadow":this.betterShadow},attrs:{alt:this.user.screen_name,title:this.user.screen_name,src:this.user.profile_image_url_original,imageLoadError:this.imageLoadError}})},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"remote-follow"},[t("form",{attrs:{method:"POST",action:this.subscribeUrl}},[t("input",{attrs:{type:"hidden",name:"nickname"},domProps:{value:this.user.screen_name}}),this._v(" "),t("input",{attrs:{type:"hidden",name:"profile",value:""}}),this._v(" "),t("button",{staticClass:"remote-button",attrs:{click:"submit"}},[this._v("\n "+this._s(this.$t("user_card.remote_follow"))+"\n ")])])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",{class:{"dark-overlay":e.darkOverlay},on:{click:function(t){if(t.target!==t.currentTarget)return null;t.stopPropagation(),e.onCancel()}}},[i("div",{staticClass:"dialog-modal panel panel-default",on:{click:function(e){e.stopPropagation()}}},[i("div",{staticClass:"panel-heading dialog-modal-heading"},[i("div",{staticClass:"title"},[e._t("header")],2)]),e._v(" "),i("div",{staticClass:"dialog-modal-content"},[e._t("default")],2),e._v(" "),i("div",{staticClass:"dialog-modal-footer user-interactions panel-footer"},[e._t("footer")],2)])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"block",staticStyle:{position:"relative"}},[i("Popper",{attrs:{trigger:"click","append-to-body":"",options:{placement:"bottom-end",modifiers:{arrow:{enabled:!0},offset:{offset:"0, 5px"}}}},on:{hide:function(t){e.showDropDown=!1}}},[i("div",{staticClass:"popper-wrapper"},[i("div",{staticClass:"dropdown-menu"},[e.user.is_local?i("span",[i("button",{staticClass:"dropdown-item",on:{click:function(t){e.toggleRight("admin")}}},[e._v("\n "+e._s(e.$t(e.user.rights.admin?"user_card.admin_menu.revoke_admin":"user_card.admin_menu.grant_admin"))+"\n ")]),e._v(" "),i("button",{staticClass:"dropdown-item",on:{click:function(t){e.toggleRight("moderator")}}},[e._v("\n "+e._s(e.$t(e.user.rights.moderator?"user_card.admin_menu.revoke_moderator":"user_card.admin_menu.grant_moderator"))+"\n ")]),e._v(" "),i("div",{staticClass:"dropdown-divider",attrs:{role:"separator"}})]):e._e(),e._v(" "),i("button",{staticClass:"dropdown-item",on:{click:function(t){e.toggleActivationStatus()}}},[e._v("\n "+e._s(e.$t(e.user.deactivated?"user_card.admin_menu.activate_account":"user_card.admin_menu.deactivate_account"))+"\n ")]),e._v(" "),i("button",{staticClass:"dropdown-item",on:{click:function(t){e.deleteUserDialog(!0)}}},[e._v("\n "+e._s(e.$t("user_card.admin_menu.delete_account"))+"\n ")]),e._v(" "),e.hasTagPolicy?i("div",{staticClass:"dropdown-divider",attrs:{role:"separator"}}):e._e(),e._v(" "),e.hasTagPolicy?i("span",[i("button",{staticClass:"dropdown-item",on:{click:function(t){e.toggleTag(e.tags.FORCE_NSFW)}}},[e._v("\n "+e._s(e.$t("user_card.admin_menu.force_nsfw"))+"\n "),i("span",{staticClass:"menu-checkbox",class:{"menu-checkbox-checked":e.hasTag(e.tags.FORCE_NSFW)}})]),e._v(" "),i("button",{staticClass:"dropdown-item",on:{click:function(t){e.toggleTag(e.tags.STRIP_MEDIA)}}},[e._v("\n "+e._s(e.$t("user_card.admin_menu.strip_media"))+"\n "),i("span",{staticClass:"menu-checkbox",class:{"menu-checkbox-checked":e.hasTag(e.tags.STRIP_MEDIA)}})]),e._v(" "),i("button",{staticClass:"dropdown-item",on:{click:function(t){e.toggleTag(e.tags.FORCE_UNLISTED)}}},[e._v("\n "+e._s(e.$t("user_card.admin_menu.force_unlisted"))+"\n "),i("span",{staticClass:"menu-checkbox",class:{"menu-checkbox-checked":e.hasTag(e.tags.FORCE_UNLISTED)}})]),e._v(" "),i("button",{staticClass:"dropdown-item",on:{click:function(t){e.toggleTag(e.tags.SANDBOX)}}},[e._v("\n "+e._s(e.$t("user_card.admin_menu.sandbox"))+"\n "),i("span",{staticClass:"menu-checkbox",class:{"menu-checkbox-checked":e.hasTag(e.tags.SANDBOX)}})]),e._v(" "),e.user.is_local?i("button",{staticClass:"dropdown-item",on:{click:function(t){e.toggleTag(e.tags.DISABLE_REMOTE_SUBSCRIPTION)}}},[e._v("\n "+e._s(e.$t("user_card.admin_menu.disable_remote_subscription"))+"\n "),i("span",{staticClass:"menu-checkbox",class:{"menu-checkbox-checked":e.hasTag(e.tags.DISABLE_REMOTE_SUBSCRIPTION)}})]):e._e(),e._v(" "),e.user.is_local?i("button",{staticClass:"dropdown-item",on:{click:function(t){e.toggleTag(e.tags.DISABLE_ANY_SUBSCRIPTION)}}},[e._v("\n "+e._s(e.$t("user_card.admin_menu.disable_any_subscription"))+"\n "),i("span",{staticClass:"menu-checkbox",class:{"menu-checkbox-checked":e.hasTag(e.tags.DISABLE_ANY_SUBSCRIPTION)}})]):e._e(),e._v(" "),e.user.is_local?i("button",{staticClass:"dropdown-item",on:{click:function(t){e.toggleTag(e.tags.QUARANTINE)}}},[e._v("\n "+e._s(e.$t("user_card.admin_menu.quarantine"))+"\n "),i("span",{staticClass:"menu-checkbox",class:{"menu-checkbox-checked":e.hasTag(e.tags.QUARANTINE)}})]):e._e()]):e._e()])]),e._v(" "),i("button",{class:{pressed:e.showDropDown},attrs:{slot:"reference"},on:{click:e.toggleMenu},slot:"reference"},[e._v("\n "+e._s(e.$t("user_card.admin_menu.moderation"))+"\n ")])]),e._v(" "),i("portal",{attrs:{to:"modal"}},[e.showDeleteUserDialog?i("DialogModal",{attrs:{onCancel:e.deleteUserDialog.bind(this,!1)}},[i("template",{slot:"header"},[e._v(e._s(e.$t("user_card.admin_menu.delete_user")))]),e._v(" "),i("p",[e._v(e._s(e.$t("user_card.admin_menu.delete_user_confirmation")))]),e._v(" "),i("template",{slot:"footer"},[i("button",{staticClass:"btn btn-default",on:{click:function(t){e.deleteUserDialog(!1)}}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),i("button",{staticClass:"btn btn-default danger",on:{click:function(t){e.deleteUser()}}},[e._v("\n "+e._s(e.$t("user_card.admin_menu.delete_user"))+"\n ")])])],2):e._e()],1)],1)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"user-card",class:e.classes,style:e.style},[i("div",{staticClass:"panel-heading"},[i("div",{staticClass:"user-info"},[i("div",{staticClass:"container"},[i("router-link",{attrs:{to:e.userProfileLink(e.user)}},[i("UserAvatar",{attrs:{betterShadow:e.betterShadow,user:e.user}})],1),e._v(" "),i("div",{staticClass:"user-summary"},[i("div",{staticClass:"top-line"},[e.user.name_html?i("div",{staticClass:"user-name",attrs:{title:e.user.name},domProps:{innerHTML:e._s(e.user.name_html)}}):i("div",{staticClass:"user-name",attrs:{title:e.user.name}},[e._v(e._s(e.user.name))]),e._v(" "),e.isOtherUser?e._e():i("router-link",{attrs:{to:{name:"user-settings"}}},[i("i",{staticClass:"button-icon icon-wrench usersettings",attrs:{title:e.$t("tool_tip.user_settings")}})]),e._v(" "),e.isOtherUser&&!e.user.is_local?i("a",{attrs:{href:e.user.statusnet_profile_url,target:"_blank"}},[i("i",{staticClass:"icon-link-ext usersettings"})]):e._e()],1),e._v(" "),i("div",{staticClass:"bottom-line"},[i("router-link",{staticClass:"user-screen-name",attrs:{to:e.userProfileLink(e.user)}},[e._v("@"+e._s(e.user.screen_name))]),e._v(" "),!e.hideBio&&e.visibleRole?i("span",{staticClass:"alert staff"},[e._v(e._s(e.visibleRole))]):e._e(),e._v(" "),e.user.locked?i("span",[i("i",{staticClass:"icon icon-lock"})]):e._e(),e._v(" "),e.hideUserStatsLocal||e.hideBio?e._e():i("span",{staticClass:"dailyAvg"},[e._v(e._s(e.dailyAvg)+" "+e._s(e.$t("user_card.per_day")))])],1)])],1),e._v(" "),i("div",{staticClass:"user-meta"},[e.user.follows_you&&e.loggedIn&&e.isOtherUser?i("div",{staticClass:"following"},[e._v("\n "+e._s(e.$t("user_card.follows_you"))+"\n ")]):e._e(),e._v(" "),!e.isOtherUser||!e.loggedIn&&e.switcher?e._e():i("div",{staticClass:"highlighter"},["disabled"!==e.userHighlightType?i("input",{directives:[{name:"model",rawName:"v-model",value:e.userHighlightColor,expression:"userHighlightColor"}],staticClass:"userHighlightText",attrs:{type:"text",id:"userHighlightColorTx"+e.user.id},domProps:{value:e.userHighlightColor},on:{input:function(t){t.target.composing||(e.userHighlightColor=t.target.value)}}}):e._e(),e._v(" "),"disabled"!==e.userHighlightType?i("input",{directives:[{name:"model",rawName:"v-model",value:e.userHighlightColor,expression:"userHighlightColor"}],staticClass:"userHighlightCl",attrs:{type:"color",id:"userHighlightColor"+e.user.id},domProps:{value:e.userHighlightColor},on:{input:function(t){t.target.composing||(e.userHighlightColor=t.target.value)}}}):e._e(),e._v(" "),i("label",{staticClass:"userHighlightSel select",attrs:{for:"style-switcher"}},[i("select",{directives:[{name:"model",rawName:"v-model",value:e.userHighlightType,expression:"userHighlightType"}],staticClass:"userHighlightSel",attrs:{id:"userHighlightSel"+e.user.id},on:{change:function(t){var i=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.userHighlightType=t.target.multiple?i:i[0]}}},[i("option",{attrs:{value:"disabled"}},[e._v("No highlight")]),e._v(" "),i("option",{attrs:{value:"solid"}},[e._v("Solid bg")]),e._v(" "),i("option",{attrs:{value:"striped"}},[e._v("Striped bg")]),e._v(" "),i("option",{attrs:{value:"side"}},[e._v("Side stripe")])]),e._v(" "),i("i",{staticClass:"icon-down-open"})])])]),e._v(" "),e.isOtherUser?i("div",{staticClass:"user-interactions"},[e.loggedIn?i("div",{staticClass:"follow"},[e.user.following?i("span",[i("button",{staticClass:"pressed",attrs:{disabled:e.followRequestInProgress,title:e.$t("user_card.follow_unfollow")},on:{click:e.unfollowUser}},[e.followRequestInProgress?[e._v("\n "+e._s(e.$t("user_card.follow_progress"))+"\n ")]:[e._v("\n "+e._s(e.$t("user_card.following"))+"\n ")]],2)]):e._e(),e._v(" "),e.user.following?e._e():i("span",[i("button",{attrs:{disabled:e.followRequestInProgress,title:e.followRequestSent?e.$t("user_card.follow_again"):""},on:{click:e.followUser}},[e.followRequestInProgress?[e._v("\n "+e._s(e.$t("user_card.follow_progress"))+"\n ")]:e.followRequestSent?[e._v("\n "+e._s(e.$t("user_card.follow_sent"))+"\n ")]:[e._v("\n "+e._s(e.$t("user_card.follow"))+"\n ")]],2)])]):e._e(),e._v(" "),e.isOtherUser&&e.loggedIn?i("div",{staticClass:"mute"},[e.user.muted?i("span",[i("button",{staticClass:"pressed",on:{click:e.unmuteUser}},[e._v("\n "+e._s(e.$t("user_card.muted"))+"\n ")])]):e._e(),e._v(" "),e.user.muted?e._e():i("span",[i("button",{on:{click:e.muteUser}},[e._v("\n "+e._s(e.$t("user_card.mute"))+"\n ")])])]):e._e(),e._v(" "),!e.loggedIn&&e.user.is_local?i("div",[i("RemoteFollow",{attrs:{user:e.user}})],1):e._e(),e._v(" "),e.isOtherUser&&e.loggedIn?i("div",{staticClass:"block"},[e.user.statusnet_blocking?i("span",[i("button",{staticClass:"pressed",on:{click:e.unblockUser}},[e._v("\n "+e._s(e.$t("user_card.blocked"))+"\n ")])]):e._e(),e._v(" "),e.user.statusnet_blocking?e._e():i("span",[i("button",{on:{click:e.blockUser}},[e._v("\n "+e._s(e.$t("user_card.block"))+"\n ")])])]):e._e(),e._v(" "),e.isOtherUser&&e.loggedIn?i("div",{staticClass:"block"},[i("span",[i("button",{on:{click:e.reportUser}},[e._v("\n "+e._s(e.$t("user_card.report"))+"\n ")])])]):e._e(),e._v(" "),"admin"===e.loggedIn.role?i("ModerationTools",{attrs:{user:e.user}}):e._e()],1):e._e()])]),e._v(" "),e.hideBio?e._e():i("div",{staticClass:"panel-body"},[!e.hideUserStatsLocal&&e.switcher?i("div",{staticClass:"user-counts"},[i("div",{staticClass:"user-count",on:{click:function(t){t.preventDefault(),e.setProfileView("statuses")}}},[i("h5",[e._v(e._s(e.$t("user_card.statuses")))]),e._v(" "),i("span",[e._v(e._s(e.user.statuses_count)+" "),i("br")])]),e._v(" "),i("div",{staticClass:"user-count",on:{click:function(t){t.preventDefault(),e.setProfileView("friends")}}},[i("h5",[e._v(e._s(e.$t("user_card.followees")))]),e._v(" "),i("span",[e._v(e._s(e.user.friends_count))])]),e._v(" "),i("div",{staticClass:"user-count",on:{click:function(t){t.preventDefault(),e.setProfileView("followers")}}},[i("h5",[e._v(e._s(e.$t("user_card.followers")))]),e._v(" "),i("span",[e._v(e._s(e.user.followers_count))])])]):e._e(),e._v(" "),!e.hideBio&&e.user.description_html?i("p",{staticClass:"user-card-bio",domProps:{innerHTML:e._s(e.user.description_html)},on:{click:function(t){return t.preventDefault(),e.linkClicked(t)}}}):e.hideBio?e._e():i("p",{staticClass:"user-card-bio"},[e._v(e._s(e.user.description))])])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"galleryContainer",staticStyle:{width:"100%"}},e._l(e.rows,function(t){return i("div",{staticClass:"gallery-row",class:{"contain-fit":e.useContainFit,"cover-fit":!e.useContainFit},style:e.rowHeight(t.length)},e._l(t,function(t){return i("attachment",{key:t.id,attrs:{setMedia:e.setMedia,nsfw:e.nsfw,attachment:t,allowPlay:!1}})}),1)}),0)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("a",{staticClass:"link-preview-card",attrs:{href:e.card.url,target:"_blank",rel:"noopener"}},[e.useImage?i("div",{staticClass:"card-image",class:{"small-image":"small"===e.size}},[i("img",{attrs:{src:e.card.image}})]):e._e(),e._v(" "),i("div",{staticClass:"card-content"},[i("span",{staticClass:"card-host faint"},[e._v(e._s(e.card.provider_name))]),e._v(" "),i("h4",{staticClass:"card-title"},[e._v(e._s(e.card.title))]),e._v(" "),e.useDescription?i("p",{staticClass:"card-description"},[e._v(e._s(e.card.description))]):e._e()])])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"avatars"},e._l(e.slicedUsers,function(t){return i("router-link",{key:t.id,staticClass:"avatars-item",attrs:{to:e.userProfileLink(t)}},[i("UserAvatar",{staticClass:"avatar-small",attrs:{user:t}})],1)}),1)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.hideStatus?e._e():i("div",{staticClass:"status-el",class:[{"status-el_focused":e.isFocused},{"status-conversation":e.inlineExpanded}]},[e.error?i("div",{staticClass:"alert error"},[e._v("\n "+e._s(e.error)+"\n "),i("i",{staticClass:"button-icon icon-cancel",on:{click:e.clearError}})]):e._e(),e._v(" "),e.muted&&!e.isPreview?[i("div",{staticClass:"media status container muted"},[i("small",[i("router-link",{attrs:{to:e.userProfileLink}},[e._v("\n "+e._s(e.status.user.screen_name)+"\n ")])],1),e._v(" "),i("small",{staticClass:"muteWords"},[e._v(e._s(e.muteWordHits.join(", ")))]),e._v(" "),i("a",{staticClass:"unmute",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.toggleMute(t)}}},[i("i",{staticClass:"button-icon icon-eye-off"})])])]:[e.showPinned&&e.statusoid.pinned?i("div",{staticClass:"status-pin"},[i("i",{staticClass:"fa icon-pin faint"}),e._v(" "),i("span",{staticClass:"faint"},[e._v(e._s(e.$t("status.pinned")))])]):e._e(),e._v(" "),!e.retweet||e.noHeading||e.inConversation?e._e():i("div",{staticClass:"media container retweet-info",class:[e.repeaterClass,{highlighted:e.repeaterStyle}],style:[e.repeaterStyle]},[e.retweet?i("UserAvatar",{staticClass:"media-left",attrs:{betterShadow:e.betterShadow,user:e.statusoid.user}}):e._e(),e._v(" "),i("div",{staticClass:"media-body faint"},[i("span",{staticClass:"user-name"},[e.retweeterHtml?i("router-link",{attrs:{to:e.retweeterProfileLink},domProps:{innerHTML:e._s(e.retweeterHtml)}}):i("router-link",{attrs:{to:e.retweeterProfileLink}},[e._v(e._s(e.retweeter))])],1),e._v(" "),i("i",{staticClass:"fa icon-retweet retweeted",attrs:{title:e.$t("tool_tip.repeat")}}),e._v("\n "+e._s(e.$t("timeline.repeated"))+"\n ")])],1),e._v(" "),i("div",{staticClass:"media status",class:[e.userClass,{highlighted:e.userStyle,"is-retweet":e.retweet&&!e.inConversation}],style:[e.userStyle],attrs:{"data-tags":e.tags}},[e.noHeading?e._e():i("div",{staticClass:"media-left"},[i("router-link",{attrs:{to:e.userProfileLink},nativeOn:{"!click":function(t){return t.stopPropagation(),t.preventDefault(),e.toggleUserExpanded(t)}}},[i("UserAvatar",{attrs:{compact:e.compact,betterShadow:e.betterShadow,user:e.status.user}})],1)],1),e._v(" "),i("div",{staticClass:"status-body"},[e.userExpanded?i("UserCard",{staticClass:"status-usercard",attrs:{user:e.status.user,rounded:!0,bordered:!0}}):e._e(),e._v(" "),e.noHeading?e._e():i("div",{staticClass:"media-heading"},[i("div",{staticClass:"heading-name-row"},[i("div",{staticClass:"name-and-account-name"},[e.status.user.name_html?i("h4",{staticClass:"user-name",domProps:{innerHTML:e._s(e.status.user.name_html)}}):i("h4",{staticClass:"user-name"},[e._v(e._s(e.status.user.name))]),e._v(" "),i("router-link",{staticClass:"account-name",attrs:{to:e.userProfileLink}},[e._v("\n "+e._s(e.status.user.screen_name)+"\n ")])],1),e._v(" "),i("span",{staticClass:"heading-right"},[i("router-link",{staticClass:"timeago faint-link",attrs:{to:{name:"conversation",params:{id:e.status.id}}}},[i("Timeago",{attrs:{time:e.status.created_at,"auto-update":60}})],1),e._v(" "),e.status.visibility?i("div",{staticClass:"button-icon visibility-icon"},[i("i",{class:e.visibilityIcon(e.status.visibility),attrs:{title:e._f("capitalize")(e.status.visibility)}})]):e._e(),e._v(" "),e.status.is_local||e.isPreview?e._e():i("a",{staticClass:"source_url",attrs:{href:e.status.external_url,target:"_blank",title:"Source"}},[i("i",{staticClass:"button-icon icon-link-ext-alt"})]),e._v(" "),e.expandable&&!e.isPreview?[i("a",{attrs:{href:"#",title:"Expand"},on:{click:function(t){return t.preventDefault(),e.toggleExpanded(t)}}},[i("i",{staticClass:"button-icon icon-plus-squared"})])]:e._e(),e._v(" "),e.unmuted?i("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.toggleMute(t)}}},[i("i",{staticClass:"button-icon icon-eye-off"})]):e._e()],2)]),e._v(" "),i("div",{staticClass:"heading-reply-row"},[e.isReply?i("div",{staticClass:"reply-to-and-accountname"},[i("a",{staticClass:"reply-to",attrs:{href:"#","aria-label":e.$t("tool_tip.reply")},on:{click:function(t){t.preventDefault(),e.gotoOriginal(e.status.in_reply_to_status_id)},mouseenter:function(t){t.preventDefault(),t.stopPropagation(),e.replyEnter(e.status.in_reply_to_status_id,t)},mouseleave:function(t){t.preventDefault(),t.stopPropagation(),e.replyLeave()}}},[e.isPreview?e._e():i("i",{staticClass:"button-icon icon-reply"}),e._v(" "),i("span",{staticClass:"faint-link reply-to-text"},[e._v(e._s(e.$t("status.reply_to")))])]),e._v(" "),i("router-link",{attrs:{to:e.replyProfileLink}},[e._v("\n "+e._s(e.replyToName)+"\n ")]),e._v(" "),e.replies&&e.replies.length?i("span",{staticClass:"faint replies-separator"},[e._v("\n -\n ")]):e._e()],1):e._e(),e._v(" "),e.inConversation&&!e.isPreview?i("div",{staticClass:"replies"},[e.replies&&e.replies.length?i("span",{staticClass:"faint"},[e._v(e._s(e.$t("status.replies_list")))]):e._e(),e._v(" "),e._l(e.replies,function(t){return e.replies?i("span",{staticClass:"reply-link faint"},[i("a",{attrs:{href:"#"},on:{click:function(i){i.preventDefault(),e.gotoOriginal(t.id)},mouseenter:function(i){e.replyEnter(t.id,i)},mouseout:function(t){e.replyLeave()}}},[e._v(e._s(t.name))])]):e._e()})],2):e._e()])]),e._v(" "),e.showPreview?i("div",{staticClass:"status-preview-container"},[e.preview?i("status",{staticClass:"status-preview",attrs:{isPreview:!0,statusoid:e.preview,compact:!0}}):i("div",{staticClass:"status-preview status-preview-loading"},[i("i",{staticClass:"icon-spin4 animate-spin"})])],1):e._e(),e._v(" "),e.longSubject?i("div",{staticClass:"status-content-wrapper",class:{"tall-status":!e.showingLongSubject}},[e.showingLongSubject?e._e():i("a",{staticClass:"tall-status-hider",class:{"tall-status-hider_focused":e.isFocused},attrs:{href:"#"},on:{click:function(t){t.preventDefault(),e.showingLongSubject=!0}}},[e._v(e._s(e.$t("general.show_more")))]),e._v(" "),i("div",{staticClass:"status-content media-body",domProps:{innerHTML:e._s(e.contentHtml)},on:{click:function(t){return t.preventDefault(),e.linkClicked(t)}}}),e._v(" "),e.showingLongSubject?i("a",{staticClass:"status-unhider",attrs:{href:"#"},on:{click:function(t){t.preventDefault(),e.showingLongSubject=!1}}},[e._v(e._s(e.$t("general.show_less")))]):e._e()]):i("div",{staticClass:"status-content-wrapper",class:{"tall-status":e.hideTallStatus}},[e.hideTallStatus?i("a",{staticClass:"tall-status-hider",class:{"tall-status-hider_focused":e.isFocused},attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.toggleShowMore(t)}}},[e._v(e._s(e.$t("general.show_more")))]):e._e(),e._v(" "),e.hideSubjectStatus?i("div",{staticClass:"status-content media-body",domProps:{innerHTML:e._s(e.status.summary_html)},on:{click:function(t){return t.preventDefault(),e.linkClicked(t)}}}):i("div",{staticClass:"status-content media-body",domProps:{innerHTML:e._s(e.contentHtml)},on:{click:function(t){return t.preventDefault(),e.linkClicked(t)}}}),e._v(" "),e.hideSubjectStatus?i("a",{staticClass:"cw-status-hider",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.toggleShowMore(t)}}},[e._v(e._s(e.$t("general.show_more")))]):e._e(),e._v(" "),e.showingMore?i("a",{staticClass:"status-unhider",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.toggleShowMore(t)}}},[e._v(e._s(e.$t("general.show_less")))]):e._e()]),e._v(" "),e.status.poll&&e.status.poll.options?i("div",[i("poll",{attrs:{"base-poll":e.status.poll}})],1):e._e(),e._v(" "),!e.status.attachments||e.hideSubjectStatus&&!e.showingLongSubject?e._e():i("div",{staticClass:"attachments media-body"},[e._l(e.nonGalleryAttachments,function(t){return i("attachment",{key:t.id,staticClass:"non-gallery",attrs:{size:e.attachmentSize,nsfw:e.nsfwClickthrough,attachment:t,allowPlay:!0,setMedia:e.setMedia()}})}),e._v(" "),e.galleryAttachments.length>0?i("gallery",{attrs:{nsfw:e.nsfwClickthrough,attachments:e.galleryAttachments,setMedia:e.setMedia()}}):e._e()],2),e._v(" "),!e.status.card||e.hideSubjectStatus||e.noHeading?e._e():i("div",{staticClass:"link-preview media-body"},[i("link-preview",{attrs:{card:e.status.card,size:e.attachmentSize,nsfw:e.nsfwClickthrough}})],1),e._v(" "),i("transition",{attrs:{name:"fade"}},[e.isFocused&&e.combinedFavsAndRepeatsUsers.length>0?i("div",{staticClass:"favs-repeated-users"},[i("div",{staticClass:"stats"},[e.statusFromGlobalRepository.rebloggedBy&&e.statusFromGlobalRepository.rebloggedBy.length>0?i("div",{staticClass:"stat-count"},[i("a",{staticClass:"stat-title"},[e._v(e._s(e.$t("status.repeats")))]),e._v(" "),i("div",{staticClass:"stat-number"},[e._v(e._s(e.statusFromGlobalRepository.rebloggedBy.length))])]):e._e(),e._v(" "),e.statusFromGlobalRepository.favoritedBy&&e.statusFromGlobalRepository.favoritedBy.length>0?i("div",{staticClass:"stat-count"},[i("a",{staticClass:"stat-title"},[e._v(e._s(e.$t("status.favorites")))]),e._v(" "),i("div",{staticClass:"stat-number"},[e._v(e._s(e.statusFromGlobalRepository.favoritedBy.length))])]):e._e(),e._v(" "),i("div",{staticClass:"avatar-row"},[i("AvatarList",{attrs:{users:e.combinedFavsAndRepeatsUsers}})],1)])]):e._e()]),e._v(" "),e.noHeading||e.isPreview?e._e():i("div",{staticClass:"status-actions media-body"},[i("div",[e.loggedIn?i("i",{staticClass:"button-icon icon-reply",class:{"button-icon-active":e.replying},attrs:{title:e.$t("tool_tip.reply")},on:{click:function(t){return t.preventDefault(),e.toggleReplying(t)}}}):i("i",{staticClass:"button-icon button-icon-disabled icon-reply",attrs:{title:e.$t("tool_tip.reply")}}),e._v(" "),e.status.replies_count>0?i("span",[e._v(e._s(e.status.replies_count))]):e._e()]),e._v(" "),i("retweet-button",{attrs:{visibility:e.status.visibility,loggedIn:e.loggedIn,status:e.status}}),e._v(" "),i("favorite-button",{attrs:{loggedIn:e.loggedIn,status:e.status}}),e._v(" "),i("extra-buttons",{attrs:{status:e.status},on:{onError:e.showError,onSuccess:e.clearError}})],1)],1)]),e._v(" "),e.replying?i("div",{staticClass:"container"},[i("post-status-form",{staticClass:"reply-body",attrs:{"reply-to":e.status.id,attentions:e.status.attentions,repliedUser:e.status.user,"copy-message-scope":e.status.visibility,subject:e.replySubject},on:{posted:e.toggleReplying}})],1):e._e()]],2)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"timeline panel-default",class:[e.isExpanded?"panel":"panel-disabled"]},[e.isExpanded?i("div",{staticClass:"panel-heading conversation-heading"},[i("span",{staticClass:"title"},[e._v(" "+e._s(e.$t("timeline.conversation"))+" ")]),e._v(" "),e.collapsable?i("span",[i("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.toggleExpanded(t)}}},[e._v(e._s(e.$t("timeline.collapse")))])]):e._e()]):e._e(),e._v(" "),e._l(e.conversation,function(t){return i("status",{key:t.id,staticClass:"status-fadein panel-body",attrs:{inlineExpanded:e.collapsable&&e.isExpanded,statusoid:t,expandable:!e.isExpanded,showPinned:e.showPinned,focused:e.focused(t.id),inConversation:e.isExpanded,highlight:e.getHighlight(),replies:e.getReplies(t.id)},on:{goto:e.setHighlight,toggleExpanded:e.toggleExpanded}})})],2)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:e.classes.root},[i("div",{class:e.classes.header},[i("div",{staticClass:"title"},[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),e.timelineError?i("div",{staticClass:"loadmore-error alert error",on:{click:function(e){e.preventDefault()}}},[e._v("\n "+e._s(e.$t("timeline.error_fetching"))+"\n ")]):e._e(),e._v(" "),e.timeline.newStatusCount>0&&!e.timelineError?i("button",{staticClass:"loadmore-button",on:{click:function(t){return t.preventDefault(),e.showNewStatuses(t)}}},[e._v("\n "+e._s(e.$t("timeline.show_new"))+e._s(e.newStatusCountStr)+"\n ")]):e._e(),e._v(" "),!e.timeline.newStatusCount>0&&!e.timelineError?i("div",{staticClass:"loadmore-text faint",on:{click:function(e){e.preventDefault()}}},[e._v("\n "+e._s(e.$t("timeline.up_to_date"))+"\n ")]):e._e()]),e._v(" "),i("div",{class:e.classes.body},[i("div",{staticClass:"timeline"},e._l(e.timeline.visibleStatuses,function(e){return i("conversation",{key:e.id,staticClass:"status-fadein",attrs:{statusoid:e,collapsable:!0}})}),1)]),e._v(" "),i("div",{class:e.classes.footer},[0===e.count?i("div",{staticClass:"new-status-notification text-center panel-footer faint"},[e._v("\n "+e._s(e.$t("timeline.no_statuses"))+"\n ")]):e.bottomedOut?i("div",{staticClass:"new-status-notification text-center panel-footer faint"},[e._v("\n "+e._s(e.$t("timeline.no_more_statuses"))+"\n ")]):e.timeline.loading?i("div",{staticClass:"new-status-notification text-center panel-footer"},[i("i",{staticClass:"icon-spin3 animate-spin"})]):i("a",{attrs:{href:"#"},on:{click:function(t){t.preventDefault(),e.fetchOlderStatuses()}}},[i("div",{staticClass:"new-status-notification text-center panel-footer"},[e._v(e._s(e.$t("timeline.load_older")))])])])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this.$createElement;return(this._self._c||e)("Timeline",{attrs:{title:this.$t("nav.public_tl"),timeline:this.timeline,"timeline-name":"public"}})},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this.$createElement;return(this._self._c||e)("Timeline",{attrs:{title:this.$t("nav.twkn"),timeline:this.timeline,"timeline-name":"publicAndExternal"}})},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this.$createElement;return(this._self._c||e)("Timeline",{attrs:{title:this.$t("nav.timeline"),timeline:this.timeline,"timeline-name":"friends"}})},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this.$createElement;return(this._self._c||e)("Timeline",{attrs:{title:this.tag,timeline:this.timeline,"timeline-name":"tag",tag:this.tag}})},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this.$createElement;return(this._self._c||e)("conversation",{attrs:{collapsable:!1,isPage:"true",statusoid:this.statusoid}})},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return"mention"===e.notification.type?i("status",{attrs:{compact:!0,statusoid:e.notification.status}}):i("div",{staticClass:"non-mention",class:[e.userClass,{highlighted:e.userStyle}],style:[e.userStyle]},[i("a",{staticClass:"avatar-container",attrs:{href:e.notification.from_profile.statusnet_profile_url},on:{"!click":function(t){return t.stopPropagation(),t.preventDefault(),e.toggleUserExpanded(t)}}},[i("UserAvatar",{attrs:{compact:!0,betterShadow:e.betterShadow,user:e.notification.from_profile}})],1),e._v(" "),i("div",{staticClass:"notification-right"},[e.userExpanded?i("UserCard",{attrs:{user:e.getUser(e.notification),rounded:!0,bordered:!0}}):e._e(),e._v(" "),i("span",{staticClass:"notification-details"},[i("div",{staticClass:"name-and-action"},[e.notification.from_profile.name_html?i("span",{staticClass:"username",attrs:{title:"@"+e.notification.from_profile.screen_name},domProps:{innerHTML:e._s(e.notification.from_profile.name_html)}}):i("span",{staticClass:"username",attrs:{title:"@"+e.notification.from_profile.screen_name}},[e._v(e._s(e.notification.from_profile.name))]),e._v(" "),"like"===e.notification.type?i("span",[i("i",{staticClass:"fa icon-star lit"}),e._v(" "),i("small",[e._v(e._s(e.$t("notifications.favorited_you")))])]):e._e(),e._v(" "),"repeat"===e.notification.type?i("span",[i("i",{staticClass:"fa icon-retweet lit",attrs:{title:e.$t("tool_tip.repeat")}}),e._v(" "),i("small",[e._v(e._s(e.$t("notifications.repeated_you")))])]):e._e(),e._v(" "),"follow"===e.notification.type?i("span",[i("i",{staticClass:"fa icon-user-plus lit"}),e._v(" "),i("small",[e._v(e._s(e.$t("notifications.followed_you")))])]):e._e()]),e._v(" "),"follow"===e.notification.type?i("div",{staticClass:"timeago"},[i("span",{staticClass:"faint"},[i("Timeago",{attrs:{time:e.notification.created_at,"auto-update":240}})],1)]):i("div",{staticClass:"timeago"},[e.notification.status?i("router-link",{staticClass:"faint-link",attrs:{to:{name:"conversation",params:{id:e.notification.status.id}}}},[i("Timeago",{attrs:{time:e.notification.created_at,"auto-update":240}})],1):e._e()],1)]),e._v(" "),"follow"===e.notification.type?i("div",{staticClass:"follow-text"},[i("router-link",{attrs:{to:e.userProfileLink(e.notification.from_profile)}},[e._v("\n @"+e._s(e.notification.from_profile.screen_name)+"\n ")])],1):[i("status",{staticClass:"faint",attrs:{compact:!0,statusoid:e.notification.action,noHeading:!0}})]],2)])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"notifications",class:{minimal:e.minimalMode}},[i("div",{class:e.mainClass},[e.noHeading?e._e():i("div",{staticClass:"panel-heading"},[i("div",{staticClass:"title"},[e._v("\n "+e._s(e.$t("notifications.notifications"))+"\n "),e.unseenCount?i("span",{staticClass:"badge badge-notification unseen-count"},[e._v(e._s(e.unseenCount))]):e._e()]),e._v(" "),e.error?i("div",{staticClass:"loadmore-error alert error",on:{click:function(e){e.preventDefault()}}},[e._v("\n "+e._s(e.$t("timeline.error_fetching"))+"\n ")]):e._e(),e._v(" "),e.unseenCount?i("button",{staticClass:"read-button",on:{click:function(t){return t.preventDefault(),e.markAsSeen(t)}}},[e._v(e._s(e.$t("notifications.read")))]):e._e()]),e._v(" "),i("div",{staticClass:"panel-body"},e._l(e.visibleNotifications,function(t){return i("div",{key:t.id,staticClass:"notification",class:{unseen:!e.minimalMode&&!t.seen}},[i("div",{staticClass:"notification-overlay"}),e._v(" "),i("notification",{attrs:{notification:t}})],1)}),0),e._v(" "),i("div",{staticClass:"panel-footer"},[e.bottomedOut?i("div",{staticClass:"new-status-notification text-center panel-footer faint"},[e._v("\n "+e._s(e.$t("notifications.no_more_notifications"))+"\n ")]):e.loading?i("div",{staticClass:"new-status-notification text-center panel-footer"},[i("i",{staticClass:"icon-spin3 animate-spin"})]):i("a",{attrs:{href:"#"},on:{click:function(t){t.preventDefault(),e.fetchOlderNotifications()}}},[i("div",{staticClass:"new-status-notification text-center panel-footer"},[e._v("\n "+e._s(e.minimalMode?e.$t("interactions.load_older"):e.$t("notifications.load_older"))+"\n ")])])])])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"panel panel-default"},[i("div",{staticClass:"panel-heading"},[i("div",{staticClass:"title"},[e._v("\n "+e._s(e.$t("nav.interactions"))+"\n ")])]),e._v(" "),i("tab-switcher",{ref:"tabSwitcher",attrs:{onSwitch:e.onModeSwitch}},[i("span",{attrs:{"data-tab-dummy":"","data-filter":"mentions",label:e.$t("nav.mentions")}}),e._v(" "),i("span",{attrs:{"data-tab-dummy":"","data-filter":"likes+repeats",label:e.$t("interactions.favs_repeats")}}),e._v(" "),i("span",{attrs:{"data-tab-dummy":"","data-filter":"follows",label:e.$t("interactions.follows")}})]),e._v(" "),i("Notifications",{ref:"notifications",attrs:{noHeading:!0,minimalMode:!0,filterMode:e.filterMode}})],1)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this.$createElement;return(this._self._c||e)("Timeline",{attrs:{title:this.$t("nav.dms"),timeline:this.timeline,"timeline-name":"dms"}})},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"basic-user-card"},[i("router-link",{attrs:{to:e.userProfileLink(e.user)}},[i("UserAvatar",{staticClass:"avatar",attrs:{user:e.user},nativeOn:{click:function(t){return t.preventDefault(),e.toggleUserExpanded(t)}}})],1),e._v(" "),e.userExpanded?i("div",{staticClass:"basic-user-card-expanded-content"},[i("UserCard",{attrs:{user:e.user,rounded:!0,bordered:!0}})],1):i("div",{staticClass:"basic-user-card-collapsed-content"},[i("div",{staticClass:"basic-user-card-user-name",attrs:{title:e.user.name}},[e.user.name_html?i("span",{staticClass:"basic-user-card-user-name-value",domProps:{innerHTML:e._s(e.user.name_html)}}):i("span",{staticClass:"basic-user-card-user-name-value"},[e._v(e._s(e.user.name))])]),e._v(" "),i("div",[i("router-link",{staticClass:"basic-user-card-screen-name",attrs:{to:e.userProfileLink(e.user)}},[e._v("\n @"+e._s(e.user.screen_name)+"\n ")])],1),e._v(" "),e._t("default")],2)],1)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("basic-user-card",{attrs:{user:e.user}},[i("div",{staticClass:"follow-card-content-container"},[!e.noFollowsYou&&e.user.follows_you?i("span",{staticClass:"faint"},[e._v("\n "+e._s(e.isMe?e.$t("user_card.its_you"):e.$t("user_card.follows_you"))+"\n ")]):e._e(),e._v(" "),e.loggedIn?[e.user.following?i("button",{staticClass:"btn btn-default follow-card-follow-button pressed",attrs:{disabled:e.inProgress},on:{click:e.unfollowUser}},[e.inProgress?[e._v("\n "+e._s(e.$t("user_card.follow_progress"))+"\n ")]:[e._v("\n "+e._s(e.$t("user_card.follow_unfollow"))+"\n ")]],2):i("button",{staticClass:"btn btn-default follow-card-follow-button",attrs:{disabled:e.inProgress,title:e.requestSent?e.$t("user_card.follow_again"):""},on:{click:e.followUser}},[e.inProgress?[e._v("\n "+e._s(e.$t("user_card.follow_progress"))+"\n ")]:e.requestSent?[e._v("\n "+e._s(e.$t("user_card.follow_sent"))+"\n ")]:[e._v("\n "+e._s(e.$t("user_card.follow"))+"\n ")]],2)]:[e.user.following?e._e():i("div",{staticClass:"follow-card-follow-button"},[i("RemoteFollow",{attrs:{user:e.user}})],1)]],2)])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"list"},[e._l(e.items,function(t){return i("div",{key:e.getKey(t),staticClass:"list-item"},[e._t("item",null,{item:t})],2)}),e._v(" "),0===e.items.length&&e.$slots.empty?i("div",{staticClass:"list-empty-content faint"},[e._t("empty")],2):e._e()],2)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.user?i("div",{staticClass:"user-profile panel panel-default"},[i("UserCard",{attrs:{user:e.user,switcher:!0,selected:e.timeline.viewing,rounded:"top"}}),e._v(" "),i("tab-switcher",{ref:"tabSwitcher",attrs:{renderOnlyFocused:!0}},[i("div",{attrs:{label:e.$t("user_card.statuses")}},[i("div",{staticClass:"timeline"},[e._l(e.user.pinnedStatuseIds,function(t){return[e.timeline.statusesObject[t]?i("Conversation",{key:t,staticClass:"status-fadein",attrs:{statusoid:e.timeline.statusesObject[t],collapsable:!0,showPinned:!0}}):e._e()]})],2),e._v(" "),i("Timeline",{attrs:{count:e.user.statuses_count,embedded:!0,title:e.$t("user_profile.timeline_title"),timeline:e.timeline,"timeline-name":"user","user-id":e.userId}})],1),e._v(" "),e.followsTabVisible?i("div",{attrs:{label:e.$t("user_card.followees"),disabled:!e.user.friends_count}},[i("FriendList",{attrs:{userId:e.userId},scopedSlots:e._u([{key:"item",fn:function(e){var t=e.item;return[i("FollowCard",{attrs:{user:t}})]}}])})],1):e._e(),e._v(" "),e.followersTabVisible?i("div",{attrs:{label:e.$t("user_card.followers"),disabled:!e.user.followers_count}},[i("FollowerList",{attrs:{userId:e.userId},scopedSlots:e._u([{key:"item",fn:function(t){var a=t.item;return[i("FollowCard",{attrs:{user:a,noFollowsYou:e.isUs}})]}}])})],1):e._e(),e._v(" "),i("Timeline",{attrs:{label:e.$t("user_card.media"),disabled:!e.media.visibleStatuses.length,embedded:!0,title:e.$t("user_card.media"),"timeline-name":"media",timeline:e.media,"user-id":e.userId}}),e._v(" "),e.isUs?i("Timeline",{attrs:{label:e.$t("user_card.favorites"),disabled:!e.favorites.visibleStatuses.length,embedded:!0,title:e.$t("user_card.favorites"),"timeline-name":"favorites",timeline:e.favorites}}):e._e()],1)],1):i("div",{staticClass:"panel user-profile-placeholder"},[i("div",{staticClass:"panel-heading"},[i("div",{staticClass:"title"},[e._v("\n "+e._s(e.$t("settings.profile_tab"))+"\n ")])]),e._v(" "),i("div",{staticClass:"panel-body"},[e.error?i("span",[e._v(e._s(e.error))]):i("i",{staticClass:"icon-spin3 animate-spin"})])])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"color-control style-control",class:{disabled:!e.present||e.disabled}},[i("label",{staticClass:"label",attrs:{for:e.name}},[e._v("\n "+e._s(e.label)+"\n ")]),e._v(" "),void 0!==e.fallback?i("input",{staticClass:"opt exlcude-disabled",attrs:{id:e.name+"-o",type:"checkbox"},domProps:{checked:e.present},on:{input:function(t){e.$emit("input",void 0===e.value?e.fallback:void 0)}}}):e._e(),e._v(" "),void 0!==e.fallback?i("label",{staticClass:"opt-l",attrs:{for:e.name+"-o"}}):e._e(),e._v(" "),i("input",{staticClass:"color-input",attrs:{id:e.name,type:"color",disabled:!e.present||e.disabled},domProps:{value:e.value||e.fallback},on:{input:function(t){e.$emit("input",t.target.value)}}}),e._v(" "),i("input",{staticClass:"text-input",attrs:{id:e.name+"-t",type:"text",disabled:!e.present||e.disabled},domProps:{value:e.value||e.fallback},on:{input:function(t){e.$emit("input",t.target.value)}}})])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"range-control style-control",class:{disabled:!e.present||e.disabled}},[i("label",{staticClass:"label",attrs:{for:e.name}},[e._v("\n "+e._s(e.label)+"\n ")]),e._v(" "),void 0!==e.fallback?i("input",{staticClass:"opt exclude-disabled",attrs:{id:e.name+"-o",type:"checkbox"},domProps:{checked:e.present},on:{input:function(t){e.$emit("input",e.present?void 0:e.fallback)}}}):e._e(),e._v(" "),void 0!==e.fallback?i("label",{staticClass:"opt-l",attrs:{for:e.name+"-o"}}):e._e(),e._v(" "),i("input",{staticClass:"input-number",attrs:{id:e.name,type:"range",disabled:!e.present||e.disabled,max:e.max||e.hardMax||100,min:e.min||e.hardMin||0,step:e.step||1},domProps:{value:e.value||e.fallback},on:{input:function(t){e.$emit("input",t.target.value)}}}),e._v(" "),i("input",{staticClass:"input-number",attrs:{id:e.name,type:"number",disabled:!e.present||e.disabled,max:e.hardMax,min:e.hardMin,step:e.step||1},domProps:{value:e.value||e.fallback},on:{input:function(t){e.$emit("input",t.target.value)}}})])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"opacity-control style-control",class:{disabled:!e.present||e.disabled}},[i("label",{staticClass:"label",attrs:{for:e.name}},[e._v("\n "+e._s(e.$t("settings.style.common.opacity"))+"\n ")]),e._v(" "),void 0!==e.fallback?i("input",{staticClass:"opt exclude-disabled",attrs:{id:e.name+"-o",type:"checkbox"},domProps:{checked:e.present},on:{input:function(t){e.$emit("input",e.present?void 0:e.fallback)}}}):e._e(),e._v(" "),void 0!==e.fallback?i("label",{staticClass:"opt-l",attrs:{for:e.name+"-o"}}):e._e(),e._v(" "),i("input",{staticClass:"input-number",attrs:{id:e.name,type:"number",disabled:!e.present||e.disabled,max:"1",min:"0",step:".05"},domProps:{value:e.value||e.fallback},on:{input:function(t){e.$emit("input",t.target.value)}}})])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"shadow-control",class:{disabled:!e.present}},[i("div",{staticClass:"shadow-preview-container"},[i("div",{staticClass:"y-shift-control",attrs:{disabled:!e.present}},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.selected.y,expression:"selected.y"}],staticClass:"input-number",attrs:{disabled:!e.present,type:"number"},domProps:{value:e.selected.y},on:{input:function(t){t.target.composing||e.$set(e.selected,"y",t.target.value)}}}),e._v(" "),i("div",{staticClass:"wrap"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.selected.y,expression:"selected.y"}],staticClass:"input-range",attrs:{disabled:!e.present,type:"range",max:"20",min:"-20"},domProps:{value:e.selected.y},on:{__r:function(t){e.$set(e.selected,"y",t.target.value)}}})])]),e._v(" "),i("div",{staticClass:"preview-window"},[i("div",{staticClass:"preview-block",style:e.style})]),e._v(" "),i("div",{staticClass:"x-shift-control",attrs:{disabled:!e.present}},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.selected.x,expression:"selected.x"}],staticClass:"input-number",attrs:{disabled:!e.present,type:"number"},domProps:{value:e.selected.x},on:{input:function(t){t.target.composing||e.$set(e.selected,"x",t.target.value)}}}),e._v(" "),i("div",{staticClass:"wrap"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.selected.x,expression:"selected.x"}],staticClass:"input-range",attrs:{disabled:!e.present,type:"range",max:"20",min:"-20"},domProps:{value:e.selected.x},on:{__r:function(t){e.$set(e.selected,"x",t.target.value)}}})])])]),e._v(" "),i("div",{staticClass:"shadow-tweak"},[i("div",{staticClass:"id-control style-control",attrs:{disabled:e.usingFallback}},[i("label",{staticClass:"select",attrs:{for:"shadow-switcher",disabled:!e.ready||e.usingFallback}},[i("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedId,expression:"selectedId"}],staticClass:"shadow-switcher",attrs:{disabled:!e.ready||e.usingFallback,id:"shadow-switcher"},on:{change:function(t){var i=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.selectedId=t.target.multiple?i:i[0]}}},e._l(e.cValue,function(t,a){return i("option",{domProps:{value:a}},[e._v("\n "+e._s(e.$t("settings.style.shadows.shadow_id",{value:a}))+"\n ")])}),0),e._v(" "),i("i",{staticClass:"icon-down-open"})]),e._v(" "),i("button",{staticClass:"btn btn-default",attrs:{disabled:!e.ready||!e.present},on:{click:e.del}},[i("i",{staticClass:"icon-cancel"})]),e._v(" "),i("button",{staticClass:"btn btn-default",attrs:{disabled:!e.moveUpValid},on:{click:e.moveUp}},[i("i",{staticClass:"icon-up-open"})]),e._v(" "),i("button",{staticClass:"btn btn-default",attrs:{disabled:!e.moveDnValid},on:{click:e.moveDn}},[i("i",{staticClass:"icon-down-open"})]),e._v(" "),i("button",{staticClass:"btn btn-default",attrs:{disabled:e.usingFallback},on:{click:e.add}},[i("i",{staticClass:"icon-plus"})])]),e._v(" "),i("div",{staticClass:"inset-control style-control",attrs:{disabled:!e.present}},[i("label",{staticClass:"label",attrs:{for:"inset"}},[e._v("\n "+e._s(e.$t("settings.style.shadows.inset"))+"\n ")]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.selected.inset,expression:"selected.inset"}],staticClass:"input-inset",attrs:{disabled:!e.present,name:"inset",id:"inset",type:"checkbox"},domProps:{checked:Array.isArray(e.selected.inset)?e._i(e.selected.inset,null)>-1:e.selected.inset},on:{change:function(t){var i=e.selected.inset,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&e.$set(e.selected,"inset",i.concat([null])):n>-1&&e.$set(e.selected,"inset",i.slice(0,n).concat(i.slice(n+1)))}else e.$set(e.selected,"inset",o)}}}),e._v(" "),i("label",{staticClass:"checkbox-label",attrs:{for:"inset"}})]),e._v(" "),i("div",{staticClass:"blur-control style-control",attrs:{disabled:!e.present}},[i("label",{staticClass:"label",attrs:{for:"spread"}},[e._v("\n "+e._s(e.$t("settings.style.shadows.blur"))+"\n ")]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.selected.blur,expression:"selected.blur"}],staticClass:"input-range",attrs:{disabled:!e.present,name:"blur",id:"blur",type:"range",max:"20",min:"0"},domProps:{value:e.selected.blur},on:{__r:function(t){e.$set(e.selected,"blur",t.target.value)}}}),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.selected.blur,expression:"selected.blur"}],staticClass:"input-number",attrs:{disabled:!e.present,type:"number",min:"0"},domProps:{value:e.selected.blur},on:{input:function(t){t.target.composing||e.$set(e.selected,"blur",t.target.value)}}})]),e._v(" "),i("div",{staticClass:"spread-control style-control",attrs:{disabled:!e.present}},[i("label",{staticClass:"label",attrs:{for:"spread"}},[e._v("\n "+e._s(e.$t("settings.style.shadows.spread"))+"\n ")]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.selected.spread,expression:"selected.spread"}],staticClass:"input-range",attrs:{disabled:!e.present,name:"spread",id:"spread",type:"range",max:"20",min:"-20"},domProps:{value:e.selected.spread},on:{__r:function(t){e.$set(e.selected,"spread",t.target.value)}}}),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.selected.spread,expression:"selected.spread"}],staticClass:"input-number",attrs:{disabled:!e.present,type:"number"},domProps:{value:e.selected.spread},on:{input:function(t){t.target.composing||e.$set(e.selected,"spread",t.target.value)}}})]),e._v(" "),i("ColorInput",{attrs:{disabled:!e.present,label:e.$t("settings.style.common.color"),name:"shadow"},model:{value:e.selected.color,callback:function(t){e.$set(e.selected,"color",t)},expression:"selected.color"}}),e._v(" "),i("OpacityInput",{attrs:{disabled:!e.present},model:{value:e.selected.alpha,callback:function(t){e.$set(e.selected,"alpha",t)},expression:"selected.alpha"}}),e._v(" "),i("p",[e._v("\n "+e._s(e.$t("settings.style.shadows.hint"))+"\n ")])],1)])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"font-control style-control",class:{custom:e.isCustom}},[i("label",{staticClass:"label",attrs:{for:"custom"===e.preset?e.name:e.name+"-font-switcher"}},[e._v("\n "+e._s(e.label)+"\n ")]),e._v(" "),void 0!==e.fallback?i("input",{staticClass:"opt exlcude-disabled",attrs:{type:"checkbox",id:e.name+"-o"},domProps:{checked:e.present},on:{input:function(t){e.$emit("input",void 0===e.value?e.fallback:void 0)}}}):e._e(),e._v(" "),void 0!==e.fallback?i("label",{staticClass:"opt-l",attrs:{for:e.name+"-o"}}):e._e(),e._v(" "),i("label",{staticClass:"select",attrs:{for:e.name+"-font-switcher",disabled:!e.present}},[i("select",{directives:[{name:"model",rawName:"v-model",value:e.preset,expression:"preset"}],staticClass:"font-switcher",attrs:{disabled:!e.present,id:e.name+"-font-switcher"},on:{change:function(t){var i=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.preset=t.target.multiple?i:i[0]}}},e._l(e.availableOptions,function(t){return i("option",{domProps:{value:t}},[e._v("\n "+e._s("custom"===t?e.$t("settings.style.fonts.custom"):t)+"\n ")])}),0),e._v(" "),i("i",{staticClass:"icon-down-open"})]),e._v(" "),e.isCustom?i("input",{directives:[{name:"model",rawName:"v-model",value:e.family,expression:"family"}],staticClass:"custom-font",attrs:{type:"text",id:e.name},domProps:{value:e.family},on:{input:function(t){t.target.composing||(e.family=t.target.value)}}}):e._e()])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.contrast?i("span",{staticClass:"contrast-ratio"},[i("span",{staticClass:"rating",attrs:{title:e.hint}},[e.contrast.aaa?i("span",[i("i",{staticClass:"icon-thumbs-up-alt"})]):e._e(),e._v(" "),!e.contrast.aaa&&e.contrast.aa?i("span",[i("i",{staticClass:"icon-adjust"})]):e._e(),e._v(" "),e.contrast.aaa||e.contrast.aa?e._e():i("span",[i("i",{staticClass:"icon-attention"})])]),e._v(" "),e.contrast&&e.large?i("span",{staticClass:"rating",attrs:{title:e.hint_18pt}},[e.contrast.laaa?i("span",[i("i",{staticClass:"icon-thumbs-up-alt"})]):e._e(),e._v(" "),!e.contrast.laaa&&e.contrast.laa?i("span",[i("i",{staticClass:"icon-adjust"})]):e._e(),e._v(" "),e.contrast.laaa||e.contrast.laa?e._e():i("span",[i("i",{staticClass:"icon-attention"})])]):e._e()]):e._e()},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"import-export-container"},[e._t("before"),e._v(" "),i("button",{staticClass:"btn",on:{click:e.exportData}},[e._v(e._s(e.exportLabel))]),e._v(" "),i("button",{staticClass:"btn",on:{click:e.importData}},[e._v(e._s(e.importLabel))]),e._v(" "),e._t("afterButtons"),e._v(" "),e.importFailed?i("p",{staticClass:"alert error"},[e._v(e._s(e.importFailedText))]):e._e(),e._v(" "),e._t("afterError")],2)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"style-switcher"},[i("div",{staticClass:"presets-container"},[i("div",{staticClass:"save-load"},[i("export-import",{attrs:{exportObject:e.exportedTheme,exportLabel:e.$t("settings.export_theme"),importLabel:e.$t("settings.import_theme"),importFailedText:e.$t("settings.invalid_theme_imported"),onImport:e.onImport,validator:e.importValidator}},[i("template",{slot:"before"},[i("div",{staticClass:"presets"},[e._v("\n "+e._s(e.$t("settings.presets"))+"\n "),i("label",{staticClass:"select",attrs:{for:"preset-switcher"}},[i("select",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],staticClass:"preset-switcher",attrs:{id:"preset-switcher"},on:{change:function(t){var i=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.selected=t.target.multiple?i:i[0]}}},e._l(e.availableStyles,function(t){return i("option",{style:{backgroundColor:t[1]||t.theme.colors.bg,color:t[3]||t.theme.colors.text},domProps:{value:t}},[e._v("\n "+e._s(t[0]||t.name)+"\n ")])}),0),e._v(" "),i("i",{staticClass:"icon-down-open"})])])])],2)],1),e._v(" "),i("div",{staticClass:"save-load-options"},[i("span",{staticClass:"keep-option"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.keepColor,expression:"keepColor"}],attrs:{id:"keep-color",type:"checkbox"},domProps:{checked:Array.isArray(e.keepColor)?e._i(e.keepColor,null)>-1:e.keepColor},on:{change:function(t){var i=e.keepColor,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.keepColor=i.concat([null])):n>-1&&(e.keepColor=i.slice(0,n).concat(i.slice(n+1)))}else e.keepColor=o}}}),e._v(" "),i("label",{attrs:{for:"keep-color"}},[e._v(e._s(e.$t("settings.style.switcher.keep_color")))])]),e._v(" "),i("span",{staticClass:"keep-option"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.keepShadows,expression:"keepShadows"}],attrs:{id:"keep-shadows",type:"checkbox"},domProps:{checked:Array.isArray(e.keepShadows)?e._i(e.keepShadows,null)>-1:e.keepShadows},on:{change:function(t){var i=e.keepShadows,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.keepShadows=i.concat([null])):n>-1&&(e.keepShadows=i.slice(0,n).concat(i.slice(n+1)))}else e.keepShadows=o}}}),e._v(" "),i("label",{attrs:{for:"keep-shadows"}},[e._v(e._s(e.$t("settings.style.switcher.keep_shadows")))])]),e._v(" "),i("span",{staticClass:"keep-option"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.keepOpacity,expression:"keepOpacity"}],attrs:{id:"keep-opacity",type:"checkbox"},domProps:{checked:Array.isArray(e.keepOpacity)?e._i(e.keepOpacity,null)>-1:e.keepOpacity},on:{change:function(t){var i=e.keepOpacity,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.keepOpacity=i.concat([null])):n>-1&&(e.keepOpacity=i.slice(0,n).concat(i.slice(n+1)))}else e.keepOpacity=o}}}),e._v(" "),i("label",{attrs:{for:"keep-opacity"}},[e._v(e._s(e.$t("settings.style.switcher.keep_opacity")))])]),e._v(" "),i("span",{staticClass:"keep-option"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.keepRoundness,expression:"keepRoundness"}],attrs:{id:"keep-roundness",type:"checkbox"},domProps:{checked:Array.isArray(e.keepRoundness)?e._i(e.keepRoundness,null)>-1:e.keepRoundness},on:{change:function(t){var i=e.keepRoundness,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.keepRoundness=i.concat([null])):n>-1&&(e.keepRoundness=i.slice(0,n).concat(i.slice(n+1)))}else e.keepRoundness=o}}}),e._v(" "),i("label",{attrs:{for:"keep-roundness"}},[e._v(e._s(e.$t("settings.style.switcher.keep_roundness")))])]),e._v(" "),i("span",{staticClass:"keep-option"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.keepFonts,expression:"keepFonts"}],attrs:{id:"keep-fonts",type:"checkbox"},domProps:{checked:Array.isArray(e.keepFonts)?e._i(e.keepFonts,null)>-1:e.keepFonts},on:{change:function(t){var i=e.keepFonts,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.keepFonts=i.concat([null])):n>-1&&(e.keepFonts=i.slice(0,n).concat(i.slice(n+1)))}else e.keepFonts=o}}}),e._v(" "),i("label",{attrs:{for:"keep-fonts"}},[e._v(e._s(e.$t("settings.style.switcher.keep_fonts")))])]),e._v(" "),i("p",[e._v(e._s(e.$t("settings.style.switcher.save_load_hint")))])])]),e._v(" "),i("div",{staticClass:"preview-container"},[i("preview",{style:e.previewRules})],1),e._v(" "),i("keep-alive",[i("tab-switcher",{key:"style-tweak"},[i("div",{staticClass:"color-container",attrs:{label:e.$t("settings.style.common_colors._tab_label")}},[i("div",{staticClass:"tab-header"},[i("p",[e._v(e._s(e.$t("settings.theme_help")))]),e._v(" "),i("button",{staticClass:"btn",on:{click:e.clearOpacity}},[e._v(e._s(e.$t("settings.style.switcher.clear_opacity")))]),e._v(" "),i("button",{staticClass:"btn",on:{click:e.clearV1}},[e._v(e._s(e.$t("settings.style.switcher.clear_all")))])]),e._v(" "),i("p",[e._v(e._s(e.$t("settings.theme_help_v2_1")))]),e._v(" "),i("h4",[e._v(e._s(e.$t("settings.style.common_colors.main")))]),e._v(" "),i("div",{staticClass:"color-item"},[i("ColorInput",{attrs:{name:"bgColor",label:e.$t("settings.background")},model:{value:e.bgColorLocal,callback:function(t){e.bgColorLocal=t},expression:"bgColorLocal"}}),e._v(" "),i("OpacityInput",{attrs:{name:"bgOpacity",fallback:e.previewTheme.opacity.bg||1},model:{value:e.bgOpacityLocal,callback:function(t){e.bgOpacityLocal=t},expression:"bgOpacityLocal"}}),e._v(" "),i("ColorInput",{attrs:{name:"textColor",label:e.$t("settings.text")},model:{value:e.textColorLocal,callback:function(t){e.textColorLocal=t},expression:"textColorLocal"}}),e._v(" "),i("ContrastRatio",{attrs:{contrast:e.previewContrast.bgText}}),e._v(" "),i("ColorInput",{attrs:{name:"linkColor",label:e.$t("settings.links")},model:{value:e.linkColorLocal,callback:function(t){e.linkColorLocal=t},expression:"linkColorLocal"}}),e._v(" "),i("ContrastRatio",{attrs:{contrast:e.previewContrast.bgLink}})],1),e._v(" "),i("div",{staticClass:"color-item"},[i("ColorInput",{attrs:{name:"fgColor",label:e.$t("settings.foreground")},model:{value:e.fgColorLocal,callback:function(t){e.fgColorLocal=t},expression:"fgColorLocal"}}),e._v(" "),i("ColorInput",{attrs:{name:"fgTextColor",label:e.$t("settings.text"),fallback:e.previewTheme.colors.fgText},model:{value:e.fgTextColorLocal,callback:function(t){e.fgTextColorLocal=t},expression:"fgTextColorLocal"}}),e._v(" "),i("ColorInput",{attrs:{name:"fgLinkColor",label:e.$t("settings.links"),fallback:e.previewTheme.colors.fgLink},model:{value:e.fgLinkColorLocal,callback:function(t){e.fgLinkColorLocal=t},expression:"fgLinkColorLocal"}}),e._v(" "),i("p",[e._v(e._s(e.$t("settings.style.common_colors.foreground_hint")))])],1),e._v(" "),i("h4",[e._v(e._s(e.$t("settings.style.common_colors.rgbo")))]),e._v(" "),i("div",{staticClass:"color-item"},[i("ColorInput",{attrs:{name:"cRedColor",label:e.$t("settings.cRed")},model:{value:e.cRedColorLocal,callback:function(t){e.cRedColorLocal=t},expression:"cRedColorLocal"}}),e._v(" "),i("ContrastRatio",{attrs:{contrast:e.previewContrast.bgRed}}),e._v(" "),i("ColorInput",{attrs:{name:"cBlueColor",label:e.$t("settings.cBlue")},model:{value:e.cBlueColorLocal,callback:function(t){e.cBlueColorLocal=t},expression:"cBlueColorLocal"}}),e._v(" "),i("ContrastRatio",{attrs:{contrast:e.previewContrast.bgBlue}})],1),e._v(" "),i("div",{staticClass:"color-item"},[i("ColorInput",{attrs:{name:"cGreenColor",label:e.$t("settings.cGreen")},model:{value:e.cGreenColorLocal,callback:function(t){e.cGreenColorLocal=t},expression:"cGreenColorLocal"}}),e._v(" "),i("ContrastRatio",{attrs:{contrast:e.previewContrast.bgGreen}}),e._v(" "),i("ColorInput",{attrs:{name:"cOrangeColor",label:e.$t("settings.cOrange")},model:{value:e.cOrangeColorLocal,callback:function(t){e.cOrangeColorLocal=t},expression:"cOrangeColorLocal"}}),e._v(" "),i("ContrastRatio",{attrs:{contrast:e.previewContrast.bgOrange}})],1),e._v(" "),i("p",[e._v(e._s(e.$t("settings.theme_help_v2_2")))])]),e._v(" "),i("div",{staticClass:"color-container",attrs:{label:e.$t("settings.style.advanced_colors._tab_label")}},[i("div",{staticClass:"tab-header"},[i("p",[e._v(e._s(e.$t("settings.theme_help")))]),e._v(" "),i("button",{staticClass:"btn",on:{click:e.clearOpacity}},[e._v(e._s(e.$t("settings.style.switcher.clear_opacity")))]),e._v(" "),i("button",{staticClass:"btn",on:{click:e.clearV1}},[e._v(e._s(e.$t("settings.style.switcher.clear_all")))])]),e._v(" "),i("div",{staticClass:"color-item"},[i("h4",[e._v(e._s(e.$t("settings.style.advanced_colors.alert")))]),e._v(" "),i("ColorInput",{attrs:{name:"alertError",label:e.$t("settings.style.advanced_colors.alert_error"),fallback:e.previewTheme.colors.alertError},model:{value:e.alertErrorColorLocal,callback:function(t){e.alertErrorColorLocal=t},expression:"alertErrorColorLocal"}}),e._v(" "),i("ContrastRatio",{attrs:{contrast:e.previewContrast.alertError}})],1),e._v(" "),i("div",{staticClass:"color-item"},[i("h4",[e._v(e._s(e.$t("settings.style.advanced_colors.badge")))]),e._v(" "),i("ColorInput",{attrs:{name:"badgeNotification",label:e.$t("settings.style.advanced_colors.badge_notification"),fallback:e.previewTheme.colors.badgeNotification},model:{value:e.badgeNotificationColorLocal,callback:function(t){e.badgeNotificationColorLocal=t},expression:"badgeNotificationColorLocal"}})],1),e._v(" "),i("div",{staticClass:"color-item"},[i("h4",[e._v(e._s(e.$t("settings.style.advanced_colors.panel_header")))]),e._v(" "),i("ColorInput",{attrs:{name:"panelColor",fallback:e.fgColorLocal,label:e.$t("settings.background")},model:{value:e.panelColorLocal,callback:function(t){e.panelColorLocal=t},expression:"panelColorLocal"}}),e._v(" "),i("OpacityInput",{attrs:{name:"panelOpacity",fallback:e.previewTheme.opacity.panel||1},model:{value:e.panelOpacityLocal,callback:function(t){e.panelOpacityLocal=t},expression:"panelOpacityLocal"}}),e._v(" "),i("ColorInput",{attrs:{name:"panelTextColor",fallback:e.previewTheme.colors.panelText,label:e.$t("settings.text")},model:{value:e.panelTextColorLocal,callback:function(t){e.panelTextColorLocal=t},expression:"panelTextColorLocal"}}),e._v(" "),i("ContrastRatio",{attrs:{contrast:e.previewContrast.panelText,large:"1"}}),e._v(" "),i("ColorInput",{attrs:{name:"panelLinkColor",fallback:e.previewTheme.colors.panelLink,label:e.$t("settings.links")},model:{value:e.panelLinkColorLocal,callback:function(t){e.panelLinkColorLocal=t},expression:"panelLinkColorLocal"}}),e._v(" "),i("ContrastRatio",{attrs:{contrast:e.previewContrast.panelLink,large:"1"}})],1),e._v(" "),i("div",{staticClass:"color-item"},[i("h4",[e._v(e._s(e.$t("settings.style.advanced_colors.top_bar")))]),e._v(" "),i("ColorInput",{attrs:{name:"topBarColor",fallback:e.fgColorLocal,label:e.$t("settings.background")},model:{value:e.topBarColorLocal,callback:function(t){e.topBarColorLocal=t},expression:"topBarColorLocal"}}),e._v(" "),i("ColorInput",{attrs:{name:"topBarTextColor",fallback:e.previewTheme.colors.topBarText,label:e.$t("settings.text")},model:{value:e.topBarTextColorLocal,callback:function(t){e.topBarTextColorLocal=t},expression:"topBarTextColorLocal"}}),e._v(" "),i("ContrastRatio",{attrs:{contrast:e.previewContrast.topBarText}}),e._v(" "),i("ColorInput",{attrs:{name:"topBarLinkColor",fallback:e.previewTheme.colors.topBarLink,label:e.$t("settings.links")},model:{value:e.topBarLinkColorLocal,callback:function(t){e.topBarLinkColorLocal=t},expression:"topBarLinkColorLocal"}}),e._v(" "),i("ContrastRatio",{attrs:{contrast:e.previewContrast.topBarLink}})],1),e._v(" "),i("div",{staticClass:"color-item"},[i("h4",[e._v(e._s(e.$t("settings.style.advanced_colors.inputs")))]),e._v(" "),i("ColorInput",{attrs:{name:"inputColor",fallback:e.fgColorLocal,label:e.$t("settings.background")},model:{value:e.inputColorLocal,callback:function(t){e.inputColorLocal=t},expression:"inputColorLocal"}}),e._v(" "),i("OpacityInput",{attrs:{name:"inputOpacity",fallback:e.previewTheme.opacity.input||1},model:{value:e.inputOpacityLocal,callback:function(t){e.inputOpacityLocal=t},expression:"inputOpacityLocal"}}),e._v(" "),i("ColorInput",{attrs:{name:"inputTextColor",fallback:e.previewTheme.colors.inputText,label:e.$t("settings.text")},model:{value:e.inputTextColorLocal,callback:function(t){e.inputTextColorLocal=t},expression:"inputTextColorLocal"}}),e._v(" "),i("ContrastRatio",{attrs:{contrast:e.previewContrast.inputText}})],1),e._v(" "),i("div",{staticClass:"color-item"},[i("h4",[e._v(e._s(e.$t("settings.style.advanced_colors.buttons")))]),e._v(" "),i("ColorInput",{attrs:{name:"btnColor",fallback:e.fgColorLocal,label:e.$t("settings.background")},model:{value:e.btnColorLocal,callback:function(t){e.btnColorLocal=t},expression:"btnColorLocal"}}),e._v(" "),i("OpacityInput",{attrs:{name:"btnOpacity",fallback:e.previewTheme.opacity.btn||1},model:{value:e.btnOpacityLocal,callback:function(t){e.btnOpacityLocal=t},expression:"btnOpacityLocal"}}),e._v(" "),i("ColorInput",{attrs:{name:"btnTextColor",fallback:e.previewTheme.colors.btnText,label:e.$t("settings.text")},model:{value:e.btnTextColorLocal,callback:function(t){e.btnTextColorLocal=t},expression:"btnTextColorLocal"}}),e._v(" "),i("ContrastRatio",{attrs:{contrast:e.previewContrast.btnText}})],1),e._v(" "),i("div",{staticClass:"color-item"},[i("h4",[e._v(e._s(e.$t("settings.style.advanced_colors.borders")))]),e._v(" "),i("ColorInput",{attrs:{name:"borderColor",fallback:e.previewTheme.colors.border,label:e.$t("settings.style.common.color")},model:{value:e.borderColorLocal,callback:function(t){e.borderColorLocal=t},expression:"borderColorLocal"}}),e._v(" "),i("OpacityInput",{attrs:{name:"borderOpacity",fallback:e.previewTheme.opacity.border||1},model:{value:e.borderOpacityLocal,callback:function(t){e.borderOpacityLocal=t},expression:"borderOpacityLocal"}})],1),e._v(" "),i("div",{staticClass:"color-item"},[i("h4",[e._v(e._s(e.$t("settings.style.advanced_colors.faint_text")))]),e._v(" "),i("ColorInput",{attrs:{name:"faintColor",fallback:e.previewTheme.colors.faint||1,label:e.$t("settings.text")},model:{value:e.faintColorLocal,callback:function(t){e.faintColorLocal=t},expression:"faintColorLocal"}}),e._v(" "),i("ColorInput",{attrs:{name:"faintLinkColor",fallback:e.previewTheme.colors.faintLink,label:e.$t("settings.links")},model:{value:e.faintLinkColorLocal,callback:function(t){e.faintLinkColorLocal=t},expression:"faintLinkColorLocal"}}),e._v(" "),i("ColorInput",{attrs:{name:"panelFaintColor",fallback:e.previewTheme.colors.panelFaint,label:e.$t("settings.style.advanced_colors.panel_header")},model:{value:e.panelFaintColorLocal,callback:function(t){e.panelFaintColorLocal=t},expression:"panelFaintColorLocal"}}),e._v(" "),i("OpacityInput",{attrs:{name:"faintOpacity",fallback:e.previewTheme.opacity.faint||.5},model:{value:e.faintOpacityLocal,callback:function(t){e.faintOpacityLocal=t},expression:"faintOpacityLocal"}})],1)]),e._v(" "),i("div",{staticClass:"radius-container",attrs:{label:e.$t("settings.style.radii._tab_label")}},[i("div",{staticClass:"tab-header"},[i("p",[e._v(e._s(e.$t("settings.radii_help")))]),e._v(" "),i("button",{staticClass:"btn",on:{click:e.clearRoundness}},[e._v(e._s(e.$t("settings.style.switcher.clear_all")))])]),e._v(" "),i("RangeInput",{attrs:{name:"btnRadius",label:e.$t("settings.btnRadius"),fallback:e.previewTheme.radii.btn,max:"16",hardMin:"0"},model:{value:e.btnRadiusLocal,callback:function(t){e.btnRadiusLocal=t},expression:"btnRadiusLocal"}}),e._v(" "),i("RangeInput",{attrs:{name:"inputRadius",label:e.$t("settings.inputRadius"),fallback:e.previewTheme.radii.input,max:"9",hardMin:"0"},model:{value:e.inputRadiusLocal,callback:function(t){e.inputRadiusLocal=t},expression:"inputRadiusLocal"}}),e._v(" "),i("RangeInput",{attrs:{name:"checkboxRadius",label:e.$t("settings.checkboxRadius"),fallback:e.previewTheme.radii.checkbox,max:"16",hardMin:"0"},model:{value:e.checkboxRadiusLocal,callback:function(t){e.checkboxRadiusLocal=t},expression:"checkboxRadiusLocal"}}),e._v(" "),i("RangeInput",{attrs:{name:"panelRadius",label:e.$t("settings.panelRadius"),fallback:e.previewTheme.radii.panel,max:"50",hardMin:"0"},model:{value:e.panelRadiusLocal,callback:function(t){e.panelRadiusLocal=t},expression:"panelRadiusLocal"}}),e._v(" "),i("RangeInput",{attrs:{name:"avatarRadius",label:e.$t("settings.avatarRadius"),fallback:e.previewTheme.radii.avatar,max:"28",hardMin:"0"},model:{value:e.avatarRadiusLocal,callback:function(t){e.avatarRadiusLocal=t},expression:"avatarRadiusLocal"}}),e._v(" "),i("RangeInput",{attrs:{name:"avatarAltRadius",label:e.$t("settings.avatarAltRadius"),fallback:e.previewTheme.radii.avatarAlt,max:"28",hardMin:"0"},model:{value:e.avatarAltRadiusLocal,callback:function(t){e.avatarAltRadiusLocal=t},expression:"avatarAltRadiusLocal"}}),e._v(" "),i("RangeInput",{attrs:{name:"attachmentRadius",label:e.$t("settings.attachmentRadius"),fallback:e.previewTheme.radii.attachment,max:"50",hardMin:"0"},model:{value:e.attachmentRadiusLocal,callback:function(t){e.attachmentRadiusLocal=t},expression:"attachmentRadiusLocal"}}),e._v(" "),i("RangeInput",{attrs:{name:"tooltipRadius",label:e.$t("settings.tooltipRadius"),fallback:e.previewTheme.radii.tooltip,max:"50",hardMin:"0"},model:{value:e.tooltipRadiusLocal,callback:function(t){e.tooltipRadiusLocal=t},expression:"tooltipRadiusLocal"}})],1),e._v(" "),i("div",{staticClass:"shadow-container",attrs:{label:e.$t("settings.style.shadows._tab_label")}},[i("div",{staticClass:"tab-header shadow-selector"},[i("div",{staticClass:"select-container"},[e._v("\n "+e._s(e.$t("settings.style.shadows.component"))+"\n "),i("label",{staticClass:"select",attrs:{for:"shadow-switcher"}},[i("select",{directives:[{name:"model",rawName:"v-model",value:e.shadowSelected,expression:"shadowSelected"}],staticClass:"shadow-switcher",attrs:{id:"shadow-switcher"},on:{change:function(t){var i=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.shadowSelected=t.target.multiple?i:i[0]}}},e._l(e.shadowsAvailable,function(t){return i("option",{domProps:{value:t}},[e._v("\n "+e._s(e.$t("settings.style.shadows.components."+t))+"\n ")])}),0),e._v(" "),i("i",{staticClass:"icon-down-open"})])]),e._v(" "),i("div",{staticClass:"override"},[i("label",{staticClass:"label",attrs:{for:"override"}},[e._v("\n "+e._s(e.$t("settings.style.shadows.override"))+"\n ")]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentShadowOverriden,expression:"currentShadowOverriden"}],staticClass:"input-override",attrs:{name:"override",id:"override",type:"checkbox"},domProps:{checked:Array.isArray(e.currentShadowOverriden)?e._i(e.currentShadowOverriden,null)>-1:e.currentShadowOverriden},on:{change:function(t){var i=e.currentShadowOverriden,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.currentShadowOverriden=i.concat([null])):n>-1&&(e.currentShadowOverriden=i.slice(0,n).concat(i.slice(n+1)))}else e.currentShadowOverriden=o}}}),e._v(" "),i("label",{staticClass:"checkbox-label",attrs:{for:"override"}})]),e._v(" "),i("button",{staticClass:"btn",on:{click:e.clearShadows}},[e._v(e._s(e.$t("settings.style.switcher.clear_all")))])]),e._v(" "),i("shadow-control",{attrs:{ready:!!e.currentShadowFallback,fallback:e.currentShadowFallback},model:{value:e.currentShadow,callback:function(t){e.currentShadow=t},expression:"currentShadow"}}),e._v(" "),"avatar"===e.shadowSelected||"avatarStatus"===e.shadowSelected?i("div",[i("i18n",{attrs:{path:"settings.style.shadows.filter_hint.always_drop_shadow",tag:"p"}},[i("code",[e._v("filter: drop-shadow()")])]),e._v(" "),i("p",[e._v(e._s(e.$t("settings.style.shadows.filter_hint.avatar_inset")))]),e._v(" "),i("i18n",{attrs:{path:"settings.style.shadows.filter_hint.drop_shadow_syntax",tag:"p"}},[i("code",[e._v("drop-shadow")]),e._v(" "),i("code",[e._v("spread-radius")]),e._v(" "),i("code",[e._v("inset")])]),e._v(" "),i("i18n",{attrs:{path:"settings.style.shadows.filter_hint.inset_classic",tag:"p"}},[i("code",[e._v("box-shadow")])]),e._v(" "),i("p",[e._v(e._s(e.$t("settings.style.shadows.filter_hint.spread_zero")))])],1):e._e()],1),e._v(" "),i("div",{staticClass:"fonts-container",attrs:{label:e.$t("settings.style.fonts._tab_label")}},[i("div",{staticClass:"tab-header"},[i("p",[e._v(e._s(e.$t("settings.style.fonts.help")))]),e._v(" "),i("button",{staticClass:"btn",on:{click:e.clearFonts}},[e._v(e._s(e.$t("settings.style.switcher.clear_all")))])]),e._v(" "),i("FontControl",{attrs:{name:"ui",label:e.$t("settings.style.fonts.components.interface"),fallback:e.previewTheme.fonts.interface,"no-inherit":"1"},model:{value:e.fontsLocal.interface,callback:function(t){e.$set(e.fontsLocal,"interface",t)},expression:"fontsLocal.interface"}}),e._v(" "),i("FontControl",{attrs:{name:"input",label:e.$t("settings.style.fonts.components.input"),fallback:e.previewTheme.fonts.input},model:{value:e.fontsLocal.input,callback:function(t){e.$set(e.fontsLocal,"input",t)},expression:"fontsLocal.input"}}),e._v(" "),i("FontControl",{attrs:{name:"post",label:e.$t("settings.style.fonts.components.post"),fallback:e.previewTheme.fonts.post},model:{value:e.fontsLocal.post,callback:function(t){e.$set(e.fontsLocal,"post",t)},expression:"fontsLocal.post"}}),e._v(" "),i("FontControl",{attrs:{name:"postCode",label:e.$t("settings.style.fonts.components.postCode"),fallback:e.previewTheme.fonts.postCode},model:{value:e.fontsLocal.postCode,callback:function(t){e.$set(e.fontsLocal,"postCode",t)},expression:"fontsLocal.postCode"}})],1)])],1),e._v(" "),i("div",{staticClass:"apply-container"},[i("button",{staticClass:"btn submit",attrs:{disabled:!e.themeValid},on:{click:e.setCustomTheme}},[e._v(e._s(e.$t("general.apply")))]),e._v(" "),i("button",{staticClass:"btn",on:{click:e.clearAll}},[e._v(e._s(e.$t("settings.style.switcher.reset")))])])],1)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("label",{attrs:{for:"interface-language-switcher"}},[e._v("\n "+e._s(e.$t("settings.interfaceLanguage"))+"\n ")]),e._v(" "),i("label",{staticClass:"select",attrs:{for:"interface-language-switcher"}},[i("select",{directives:[{name:"model",rawName:"v-model",value:e.language,expression:"language"}],attrs:{id:"interface-language-switcher"},on:{change:function(t){var i=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.language=t.target.multiple?i:i[0]}}},e._l(e.languageCodes,function(t,a){return i("option",{domProps:{value:t}},[e._v("\n "+e._s(e.languageNames[a])+"\n ")])}),0),e._v(" "),i("i",{staticClass:"icon-down-open"})])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"settings panel panel-default"},[i("div",{staticClass:"panel-heading"},[i("div",{staticClass:"title"},[e._v("\n "+e._s(e.$t("settings.settings"))+"\n ")]),e._v(" "),i("transition",{attrs:{name:"fade"}},[e.currentSaveStateNotice?[e.currentSaveStateNotice.error?i("div",{staticClass:"alert error",on:{click:function(e){e.preventDefault()}}},[e._v("\n "+e._s(e.$t("settings.saving_err"))+"\n ")]):e._e(),e._v(" "),e.currentSaveStateNotice.error?e._e():i("div",{staticClass:"alert transparent",on:{click:function(e){e.preventDefault()}}},[e._v("\n "+e._s(e.$t("settings.saving_ok"))+"\n ")])]:e._e()],2)],1),e._v(" "),i("div",{staticClass:"panel-body"},[i("keep-alive",[i("tab-switcher",[i("div",{attrs:{label:e.$t("settings.general")}},[i("div",{staticClass:"setting-item"},[i("h2",[e._v(e._s(e.$t("settings.interface")))]),e._v(" "),i("ul",{staticClass:"setting-list"},[i("li",[i("interface-language-switcher")],1),e._v(" "),e.instanceSpecificPanelPresent?i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.hideISPLocal,expression:"hideISPLocal"}],attrs:{type:"checkbox",id:"hideISP"},domProps:{checked:Array.isArray(e.hideISPLocal)?e._i(e.hideISPLocal,null)>-1:e.hideISPLocal},on:{change:function(t){var i=e.hideISPLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.hideISPLocal=i.concat([null])):n>-1&&(e.hideISPLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.hideISPLocal=o}}}),e._v(" "),i("label",{attrs:{for:"hideISP"}},[e._v(e._s(e.$t("settings.hide_isp")))])]):e._e()])]),e._v(" "),i("div",{staticClass:"setting-item"},[i("h2",[e._v(e._s(e.$t("nav.timeline")))]),e._v(" "),i("ul",{staticClass:"setting-list"},[i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.hideMutedPostsLocal,expression:"hideMutedPostsLocal"}],attrs:{type:"checkbox",id:"hideMutedPosts"},domProps:{checked:Array.isArray(e.hideMutedPostsLocal)?e._i(e.hideMutedPostsLocal,null)>-1:e.hideMutedPostsLocal},on:{change:function(t){var i=e.hideMutedPostsLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.hideMutedPostsLocal=i.concat([null])):n>-1&&(e.hideMutedPostsLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.hideMutedPostsLocal=o}}}),e._v(" "),i("label",{attrs:{for:"hideMutedPosts"}},[e._v(e._s(e.$t("settings.hide_muted_posts"))+" "+e._s(e.$t("settings.instance_default",{value:e.hideMutedPostsDefault})))])]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.collapseMessageWithSubjectLocal,expression:"collapseMessageWithSubjectLocal"}],attrs:{type:"checkbox",id:"collapseMessageWithSubject"},domProps:{checked:Array.isArray(e.collapseMessageWithSubjectLocal)?e._i(e.collapseMessageWithSubjectLocal,null)>-1:e.collapseMessageWithSubjectLocal},on:{change:function(t){var i=e.collapseMessageWithSubjectLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.collapseMessageWithSubjectLocal=i.concat([null])):n>-1&&(e.collapseMessageWithSubjectLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.collapseMessageWithSubjectLocal=o}}}),e._v(" "),i("label",{attrs:{for:"collapseMessageWithSubject"}},[e._v(e._s(e.$t("settings.collapse_subject"))+" "+e._s(e.$t("settings.instance_default",{value:e.collapseMessageWithSubjectDefault})))])]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.streamingLocal,expression:"streamingLocal"}],attrs:{type:"checkbox",id:"streaming"},domProps:{checked:Array.isArray(e.streamingLocal)?e._i(e.streamingLocal,null)>-1:e.streamingLocal},on:{change:function(t){var i=e.streamingLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.streamingLocal=i.concat([null])):n>-1&&(e.streamingLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.streamingLocal=o}}}),e._v(" "),i("label",{attrs:{for:"streaming"}},[e._v(e._s(e.$t("settings.streaming")))]),e._v(" "),i("ul",{staticClass:"setting-list suboptions",class:[{disabled:!e.streamingLocal}]},[i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.pauseOnUnfocusedLocal,expression:"pauseOnUnfocusedLocal"}],attrs:{disabled:!e.streamingLocal,type:"checkbox",id:"pauseOnUnfocused"},domProps:{checked:Array.isArray(e.pauseOnUnfocusedLocal)?e._i(e.pauseOnUnfocusedLocal,null)>-1:e.pauseOnUnfocusedLocal},on:{change:function(t){var i=e.pauseOnUnfocusedLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.pauseOnUnfocusedLocal=i.concat([null])):n>-1&&(e.pauseOnUnfocusedLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.pauseOnUnfocusedLocal=o}}}),e._v(" "),i("label",{attrs:{for:"pauseOnUnfocused"}},[e._v(e._s(e.$t("settings.pause_on_unfocused")))])])])]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.autoLoadLocal,expression:"autoLoadLocal"}],attrs:{type:"checkbox",id:"autoload"},domProps:{checked:Array.isArray(e.autoLoadLocal)?e._i(e.autoLoadLocal,null)>-1:e.autoLoadLocal},on:{change:function(t){var i=e.autoLoadLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.autoLoadLocal=i.concat([null])):n>-1&&(e.autoLoadLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.autoLoadLocal=o}}}),e._v(" "),i("label",{attrs:{for:"autoload"}},[e._v(e._s(e.$t("settings.autoload")))])]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.hoverPreviewLocal,expression:"hoverPreviewLocal"}],attrs:{type:"checkbox",id:"hoverPreview"},domProps:{checked:Array.isArray(e.hoverPreviewLocal)?e._i(e.hoverPreviewLocal,null)>-1:e.hoverPreviewLocal},on:{change:function(t){var i=e.hoverPreviewLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.hoverPreviewLocal=i.concat([null])):n>-1&&(e.hoverPreviewLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.hoverPreviewLocal=o}}}),e._v(" "),i("label",{attrs:{for:"hoverPreview"}},[e._v(e._s(e.$t("settings.reply_link_preview")))])])])]),e._v(" "),i("div",{staticClass:"setting-item"},[i("h2",[e._v(e._s(e.$t("settings.composing")))]),e._v(" "),i("ul",{staticClass:"setting-list"},[i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.scopeCopyLocal,expression:"scopeCopyLocal"}],attrs:{type:"checkbox",id:"scopeCopy"},domProps:{checked:Array.isArray(e.scopeCopyLocal)?e._i(e.scopeCopyLocal,null)>-1:e.scopeCopyLocal},on:{change:function(t){var i=e.scopeCopyLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.scopeCopyLocal=i.concat([null])):n>-1&&(e.scopeCopyLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.scopeCopyLocal=o}}}),e._v(" "),i("label",{attrs:{for:"scopeCopy"}},[e._v("\n "+e._s(e.$t("settings.scope_copy"))+" "+e._s(e.$t("settings.instance_default",{value:e.scopeCopyDefault}))+"\n ")])]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.alwaysShowSubjectInputLocal,expression:"alwaysShowSubjectInputLocal"}],attrs:{type:"checkbox",id:"subjectHide"},domProps:{checked:Array.isArray(e.alwaysShowSubjectInputLocal)?e._i(e.alwaysShowSubjectInputLocal,null)>-1:e.alwaysShowSubjectInputLocal},on:{change:function(t){var i=e.alwaysShowSubjectInputLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.alwaysShowSubjectInputLocal=i.concat([null])):n>-1&&(e.alwaysShowSubjectInputLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.alwaysShowSubjectInputLocal=o}}}),e._v(" "),i("label",{attrs:{for:"subjectHide"}},[e._v("\n "+e._s(e.$t("settings.subject_input_always_show"))+" "+e._s(e.$t("settings.instance_default",{value:e.alwaysShowSubjectInputDefault}))+"\n ")])]),e._v(" "),i("li",[i("div",[e._v("\n "+e._s(e.$t("settings.subject_line_behavior"))+"\n "),i("label",{staticClass:"select",attrs:{for:"subjectLineBehavior"}},[i("select",{directives:[{name:"model",rawName:"v-model",value:e.subjectLineBehaviorLocal,expression:"subjectLineBehaviorLocal"}],attrs:{id:"subjectLineBehavior"},on:{change:function(t){var i=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.subjectLineBehaviorLocal=t.target.multiple?i:i[0]}}},[i("option",{attrs:{value:"email"}},[e._v("\n "+e._s(e.$t("settings.subject_line_email"))+"\n "+e._s("email"==e.subjectLineBehaviorDefault?e.$t("settings.instance_default_simple"):"")+"\n ")]),e._v(" "),i("option",{attrs:{value:"masto"}},[e._v("\n "+e._s(e.$t("settings.subject_line_mastodon"))+"\n "+e._s("mastodon"==e.subjectLineBehaviorDefault?e.$t("settings.instance_default_simple"):"")+"\n ")]),e._v(" "),i("option",{attrs:{value:"noop"}},[e._v("\n "+e._s(e.$t("settings.subject_line_noop"))+"\n "+e._s("noop"==e.subjectLineBehaviorDefault?e.$t("settings.instance_default_simple"):"")+"\n ")])]),e._v(" "),i("i",{staticClass:"icon-down-open"})])])]),e._v(" "),e.postFormats.length>0?i("li",[i("div",[e._v("\n "+e._s(e.$t("settings.post_status_content_type"))+"\n "),i("label",{staticClass:"select",attrs:{for:"postContentType"}},[i("select",{directives:[{name:"model",rawName:"v-model",value:e.postContentTypeLocal,expression:"postContentTypeLocal"}],attrs:{id:"postContentType"},on:{change:function(t){var i=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.postContentTypeLocal=t.target.multiple?i:i[0]}}},e._l(e.postFormats,function(t){return i("option",{key:t,domProps:{value:t}},[e._v("\n "+e._s(e.$t('post_status.content_type["'+t+'"]'))+"\n "+e._s(e.postContentTypeDefault===t?e.$t("settings.instance_default_simple"):"")+"\n ")])}),0),e._v(" "),i("i",{staticClass:"icon-down-open"})])])]):e._e(),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.minimalScopesModeLocal,expression:"minimalScopesModeLocal"}],attrs:{type:"checkbox",id:"minimalScopesMode"},domProps:{checked:Array.isArray(e.minimalScopesModeLocal)?e._i(e.minimalScopesModeLocal,null)>-1:e.minimalScopesModeLocal},on:{change:function(t){var i=e.minimalScopesModeLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.minimalScopesModeLocal=i.concat([null])):n>-1&&(e.minimalScopesModeLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.minimalScopesModeLocal=o}}}),e._v(" "),i("label",{attrs:{for:"minimalScopesMode"}},[e._v("\n "+e._s(e.$t("settings.minimal_scopes_mode"))+" "+e._s(e.$t("settings.instance_default",{value:e.minimalScopesModeDefault}))+"\n ")])]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.autohideFloatingPostButtonLocal,expression:"autohideFloatingPostButtonLocal"}],attrs:{type:"checkbox",id:"autohideFloatingPostButton"},domProps:{checked:Array.isArray(e.autohideFloatingPostButtonLocal)?e._i(e.autohideFloatingPostButtonLocal,null)>-1:e.autohideFloatingPostButtonLocal},on:{change:function(t){var i=e.autohideFloatingPostButtonLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.autohideFloatingPostButtonLocal=i.concat([null])):n>-1&&(e.autohideFloatingPostButtonLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.autohideFloatingPostButtonLocal=o}}}),e._v(" "),i("label",{attrs:{for:"autohideFloatingPostButton"}},[e._v(e._s(e.$t("settings.autohide_floating_post_button")))])])])]),e._v(" "),i("div",{staticClass:"setting-item"},[i("h2",[e._v(e._s(e.$t("settings.attachments")))]),e._v(" "),i("ul",{staticClass:"setting-list"},[i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.hideAttachmentsLocal,expression:"hideAttachmentsLocal"}],attrs:{type:"checkbox",id:"hideAttachments"},domProps:{checked:Array.isArray(e.hideAttachmentsLocal)?e._i(e.hideAttachmentsLocal,null)>-1:e.hideAttachmentsLocal},on:{change:function(t){var i=e.hideAttachmentsLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.hideAttachmentsLocal=i.concat([null])):n>-1&&(e.hideAttachmentsLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.hideAttachmentsLocal=o}}}),e._v(" "),i("label",{attrs:{for:"hideAttachments"}},[e._v(e._s(e.$t("settings.hide_attachments_in_tl")))])]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.hideAttachmentsInConvLocal,expression:"hideAttachmentsInConvLocal"}],attrs:{type:"checkbox",id:"hideAttachmentsInConv"},domProps:{checked:Array.isArray(e.hideAttachmentsInConvLocal)?e._i(e.hideAttachmentsInConvLocal,null)>-1:e.hideAttachmentsInConvLocal},on:{change:function(t){var i=e.hideAttachmentsInConvLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.hideAttachmentsInConvLocal=i.concat([null])):n>-1&&(e.hideAttachmentsInConvLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.hideAttachmentsInConvLocal=o}}}),e._v(" "),i("label",{attrs:{for:"hideAttachmentsInConv"}},[e._v(e._s(e.$t("settings.hide_attachments_in_convo")))])]),e._v(" "),i("li",[i("label",{attrs:{for:"maxThumbnails"}},[e._v(e._s(e.$t("settings.max_thumbnails")))]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model.number",value:e.maxThumbnails,expression:"maxThumbnails",modifiers:{number:!0}}],staticClass:"number-input",attrs:{type:"number",id:"maxThumbnails",min:"0",step:"1"},domProps:{value:e.maxThumbnails},on:{input:function(t){t.target.composing||(e.maxThumbnails=e._n(t.target.value))},blur:function(t){e.$forceUpdate()}}})]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.hideNsfwLocal,expression:"hideNsfwLocal"}],attrs:{type:"checkbox",id:"hideNsfw"},domProps:{checked:Array.isArray(e.hideNsfwLocal)?e._i(e.hideNsfwLocal,null)>-1:e.hideNsfwLocal},on:{change:function(t){var i=e.hideNsfwLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.hideNsfwLocal=i.concat([null])):n>-1&&(e.hideNsfwLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.hideNsfwLocal=o}}}),e._v(" "),i("label",{attrs:{for:"hideNsfw"}},[e._v(e._s(e.$t("settings.nsfw_clickthrough")))])]),e._v(" "),i("ul",{staticClass:"setting-list suboptions"},[i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.preloadImage,expression:"preloadImage"}],attrs:{disabled:!e.hideNsfwLocal,type:"checkbox",id:"preloadImage"},domProps:{checked:Array.isArray(e.preloadImage)?e._i(e.preloadImage,null)>-1:e.preloadImage},on:{change:function(t){var i=e.preloadImage,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.preloadImage=i.concat([null])):n>-1&&(e.preloadImage=i.slice(0,n).concat(i.slice(n+1)))}else e.preloadImage=o}}}),e._v(" "),i("label",{attrs:{for:"preloadImage"}},[e._v(e._s(e.$t("settings.preload_images")))])]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.useOneClickNsfw,expression:"useOneClickNsfw"}],attrs:{disabled:!e.hideNsfwLocal,type:"checkbox",id:"useOneClickNsfw"},domProps:{checked:Array.isArray(e.useOneClickNsfw)?e._i(e.useOneClickNsfw,null)>-1:e.useOneClickNsfw},on:{change:function(t){var i=e.useOneClickNsfw,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.useOneClickNsfw=i.concat([null])):n>-1&&(e.useOneClickNsfw=i.slice(0,n).concat(i.slice(n+1)))}else e.useOneClickNsfw=o}}}),e._v(" "),i("label",{attrs:{for:"useOneClickNsfw"}},[e._v(e._s(e.$t("settings.use_one_click_nsfw")))])])]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.stopGifs,expression:"stopGifs"}],attrs:{type:"checkbox",id:"stopGifs"},domProps:{checked:Array.isArray(e.stopGifs)?e._i(e.stopGifs,null)>-1:e.stopGifs},on:{change:function(t){var i=e.stopGifs,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.stopGifs=i.concat([null])):n>-1&&(e.stopGifs=i.slice(0,n).concat(i.slice(n+1)))}else e.stopGifs=o}}}),e._v(" "),i("label",{attrs:{for:"stopGifs"}},[e._v(e._s(e.$t("settings.stop_gifs")))])]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.loopVideoLocal,expression:"loopVideoLocal"}],attrs:{type:"checkbox",id:"loopVideo"},domProps:{checked:Array.isArray(e.loopVideoLocal)?e._i(e.loopVideoLocal,null)>-1:e.loopVideoLocal},on:{change:function(t){var i=e.loopVideoLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.loopVideoLocal=i.concat([null])):n>-1&&(e.loopVideoLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.loopVideoLocal=o}}}),e._v(" "),i("label",{attrs:{for:"loopVideo"}},[e._v(e._s(e.$t("settings.loop_video")))]),e._v(" "),i("ul",{staticClass:"setting-list suboptions",class:[{disabled:!e.streamingLocal}]},[i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.loopVideoSilentOnlyLocal,expression:"loopVideoSilentOnlyLocal"}],attrs:{disabled:!e.loopVideoLocal||!e.loopSilentAvailable,type:"checkbox",id:"loopVideoSilentOnly"},domProps:{checked:Array.isArray(e.loopVideoSilentOnlyLocal)?e._i(e.loopVideoSilentOnlyLocal,null)>-1:e.loopVideoSilentOnlyLocal},on:{change:function(t){var i=e.loopVideoSilentOnlyLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.loopVideoSilentOnlyLocal=i.concat([null])):n>-1&&(e.loopVideoSilentOnlyLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.loopVideoSilentOnlyLocal=o}}}),e._v(" "),i("label",{attrs:{for:"loopVideoSilentOnly"}},[e._v(e._s(e.$t("settings.loop_video_silent_only")))]),e._v(" "),e.loopSilentAvailable?e._e():i("div",{staticClass:"unavailable"},[i("i",{staticClass:"icon-globe"}),e._v("! "+e._s(e.$t("settings.limited_availability"))+"\n ")])])])]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.playVideosInModal,expression:"playVideosInModal"}],attrs:{type:"checkbox",id:"playVideosInModal"},domProps:{checked:Array.isArray(e.playVideosInModal)?e._i(e.playVideosInModal,null)>-1:e.playVideosInModal},on:{change:function(t){var i=e.playVideosInModal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.playVideosInModal=i.concat([null])):n>-1&&(e.playVideosInModal=i.slice(0,n).concat(i.slice(n+1)))}else e.playVideosInModal=o}}}),e._v(" "),i("label",{attrs:{for:"playVideosInModal"}},[e._v(e._s(e.$t("settings.play_videos_in_modal")))])]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.useContainFit,expression:"useContainFit"}],attrs:{type:"checkbox",id:"useContainFit"},domProps:{checked:Array.isArray(e.useContainFit)?e._i(e.useContainFit,null)>-1:e.useContainFit},on:{change:function(t){var i=e.useContainFit,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.useContainFit=i.concat([null])):n>-1&&(e.useContainFit=i.slice(0,n).concat(i.slice(n+1)))}else e.useContainFit=o}}}),e._v(" "),i("label",{attrs:{for:"useContainFit"}},[e._v(e._s(e.$t("settings.use_contain_fit")))])])])]),e._v(" "),i("div",{staticClass:"setting-item"},[i("h2",[e._v(e._s(e.$t("settings.notifications")))]),e._v(" "),i("ul",{staticClass:"setting-list"},[i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.webPushNotificationsLocal,expression:"webPushNotificationsLocal"}],attrs:{type:"checkbox",id:"webPushNotifications"},domProps:{checked:Array.isArray(e.webPushNotificationsLocal)?e._i(e.webPushNotificationsLocal,null)>-1:e.webPushNotificationsLocal},on:{change:function(t){var i=e.webPushNotificationsLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.webPushNotificationsLocal=i.concat([null])):n>-1&&(e.webPushNotificationsLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.webPushNotificationsLocal=o}}}),e._v(" "),i("label",{attrs:{for:"webPushNotifications"}},[e._v("\n "+e._s(e.$t("settings.enable_web_push_notifications"))+"\n ")])])])])]),e._v(" "),i("div",{attrs:{label:e.$t("settings.theme")}},[i("div",{staticClass:"setting-item"},[i("style-switcher")],1)]),e._v(" "),i("div",{attrs:{label:e.$t("settings.filtering")}},[i("div",{staticClass:"setting-item"},[i("div",{staticClass:"select-multiple"},[i("span",{staticClass:"label"},[e._v(e._s(e.$t("settings.notification_visibility")))]),e._v(" "),i("ul",{staticClass:"option-list"},[i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.notificationVisibilityLocal.likes,expression:"notificationVisibilityLocal.likes"}],attrs:{type:"checkbox",id:"notification-visibility-likes"},domProps:{checked:Array.isArray(e.notificationVisibilityLocal.likes)?e._i(e.notificationVisibilityLocal.likes,null)>-1:e.notificationVisibilityLocal.likes},on:{change:function(t){var i=e.notificationVisibilityLocal.likes,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&e.$set(e.notificationVisibilityLocal,"likes",i.concat([null])):n>-1&&e.$set(e.notificationVisibilityLocal,"likes",i.slice(0,n).concat(i.slice(n+1)))}else e.$set(e.notificationVisibilityLocal,"likes",o)}}}),e._v(" "),i("label",{attrs:{for:"notification-visibility-likes"}},[e._v("\n "+e._s(e.$t("settings.notification_visibility_likes"))+"\n ")])]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.notificationVisibilityLocal.repeats,expression:"notificationVisibilityLocal.repeats"}],attrs:{type:"checkbox",id:"notification-visibility-repeats"},domProps:{checked:Array.isArray(e.notificationVisibilityLocal.repeats)?e._i(e.notificationVisibilityLocal.repeats,null)>-1:e.notificationVisibilityLocal.repeats},on:{change:function(t){var i=e.notificationVisibilityLocal.repeats,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&e.$set(e.notificationVisibilityLocal,"repeats",i.concat([null])):n>-1&&e.$set(e.notificationVisibilityLocal,"repeats",i.slice(0,n).concat(i.slice(n+1)))}else e.$set(e.notificationVisibilityLocal,"repeats",o)}}}),e._v(" "),i("label",{attrs:{for:"notification-visibility-repeats"}},[e._v("\n "+e._s(e.$t("settings.notification_visibility_repeats"))+"\n ")])]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.notificationVisibilityLocal.follows,expression:"notificationVisibilityLocal.follows"}],attrs:{type:"checkbox",id:"notification-visibility-follows"},domProps:{checked:Array.isArray(e.notificationVisibilityLocal.follows)?e._i(e.notificationVisibilityLocal.follows,null)>-1:e.notificationVisibilityLocal.follows},on:{change:function(t){var i=e.notificationVisibilityLocal.follows,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&e.$set(e.notificationVisibilityLocal,"follows",i.concat([null])):n>-1&&e.$set(e.notificationVisibilityLocal,"follows",i.slice(0,n).concat(i.slice(n+1)))}else e.$set(e.notificationVisibilityLocal,"follows",o)}}}),e._v(" "),i("label",{attrs:{for:"notification-visibility-follows"}},[e._v("\n "+e._s(e.$t("settings.notification_visibility_follows"))+"\n ")])]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.notificationVisibilityLocal.mentions,expression:"notificationVisibilityLocal.mentions"}],attrs:{type:"checkbox",id:"notification-visibility-mentions"},domProps:{checked:Array.isArray(e.notificationVisibilityLocal.mentions)?e._i(e.notificationVisibilityLocal.mentions,null)>-1:e.notificationVisibilityLocal.mentions},on:{change:function(t){var i=e.notificationVisibilityLocal.mentions,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&e.$set(e.notificationVisibilityLocal,"mentions",i.concat([null])):n>-1&&e.$set(e.notificationVisibilityLocal,"mentions",i.slice(0,n).concat(i.slice(n+1)))}else e.$set(e.notificationVisibilityLocal,"mentions",o)}}}),e._v(" "),i("label",{attrs:{for:"notification-visibility-mentions"}},[e._v("\n "+e._s(e.$t("settings.notification_visibility_mentions"))+"\n ")])])])]),e._v(" "),i("div",[e._v("\n "+e._s(e.$t("settings.replies_in_timeline"))+"\n "),i("label",{staticClass:"select",attrs:{for:"replyVisibility"}},[i("select",{directives:[{name:"model",rawName:"v-model",value:e.replyVisibilityLocal,expression:"replyVisibilityLocal"}],attrs:{id:"replyVisibility"},on:{change:function(t){var i=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.replyVisibilityLocal=t.target.multiple?i:i[0]}}},[i("option",{attrs:{value:"all",selected:""}},[e._v(e._s(e.$t("settings.reply_visibility_all")))]),e._v(" "),i("option",{attrs:{value:"following"}},[e._v(e._s(e.$t("settings.reply_visibility_following")))]),e._v(" "),i("option",{attrs:{value:"self"}},[e._v(e._s(e.$t("settings.reply_visibility_self")))])]),e._v(" "),i("i",{staticClass:"icon-down-open"})])]),e._v(" "),i("div",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.hidePostStatsLocal,expression:"hidePostStatsLocal"}],attrs:{type:"checkbox",id:"hidePostStats"},domProps:{checked:Array.isArray(e.hidePostStatsLocal)?e._i(e.hidePostStatsLocal,null)>-1:e.hidePostStatsLocal},on:{change:function(t){var i=e.hidePostStatsLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.hidePostStatsLocal=i.concat([null])):n>-1&&(e.hidePostStatsLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.hidePostStatsLocal=o}}}),e._v(" "),i("label",{attrs:{for:"hidePostStats"}},[e._v("\n "+e._s(e.$t("settings.hide_post_stats"))+" "+e._s(e.$t("settings.instance_default",{value:e.hidePostStatsDefault}))+"\n ")])]),e._v(" "),i("div",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.hideUserStatsLocal,expression:"hideUserStatsLocal"}],attrs:{type:"checkbox",id:"hideUserStats"},domProps:{checked:Array.isArray(e.hideUserStatsLocal)?e._i(e.hideUserStatsLocal,null)>-1:e.hideUserStatsLocal},on:{change:function(t){var i=e.hideUserStatsLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.hideUserStatsLocal=i.concat([null])):n>-1&&(e.hideUserStatsLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.hideUserStatsLocal=o}}}),e._v(" "),i("label",{attrs:{for:"hideUserStats"}},[e._v("\n "+e._s(e.$t("settings.hide_user_stats"))+" "+e._s(e.$t("settings.instance_default",{value:e.hideUserStatsDefault}))+"\n ")])])]),e._v(" "),i("div",{staticClass:"setting-item"},[i("div",[i("p",[e._v(e._s(e.$t("settings.filtering_explanation")))]),e._v(" "),i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.muteWordsString,expression:"muteWordsString"}],attrs:{id:"muteWords"},domProps:{value:e.muteWordsString},on:{input:function(t){t.target.composing||(e.muteWordsString=t.target.value)}}})]),e._v(" "),i("div",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.hideFilteredStatusesLocal,expression:"hideFilteredStatusesLocal"}],attrs:{type:"checkbox",id:"hideFilteredStatuses"},domProps:{checked:Array.isArray(e.hideFilteredStatusesLocal)?e._i(e.hideFilteredStatusesLocal,null)>-1:e.hideFilteredStatusesLocal},on:{change:function(t){var i=e.hideFilteredStatusesLocal,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.hideFilteredStatusesLocal=i.concat([null])):n>-1&&(e.hideFilteredStatusesLocal=i.slice(0,n).concat(i.slice(n+1)))}else e.hideFilteredStatusesLocal=o}}}),e._v(" "),i("label",{attrs:{for:"hideFilteredStatuses"}},[e._v("\n "+e._s(e.$t("settings.hide_filtered_statuses"))+" "+e._s(e.$t("settings.instance_default",{value:e.hideFilteredStatusesDefault}))+"\n ")])])])]),e._v(" "),i("div",{attrs:{label:e.$t("settings.version.title")}},[i("div",{staticClass:"setting-item"},[i("ul",{staticClass:"setting-list"},[i("li",[i("p",[e._v(e._s(e.$t("settings.version.backend_version")))]),e._v(" "),i("ul",{staticClass:"option-list"},[i("li",[i("a",{attrs:{href:e.backendVersionLink,target:"_blank"}},[e._v(e._s(e.backendVersion))])])])]),e._v(" "),i("li",[i("p",[e._v(e._s(e.$t("settings.version.frontend_version")))]),e._v(" "),i("ul",{staticClass:"option-list"},[i("li",[i("a",{attrs:{href:e.frontendVersionLink,target:"_blank"}},[e._v(e._s(e.frontendVersion))])])])])])])])])],1)],1)])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"settings panel panel-default"},[i("div",{staticClass:"panel-heading"},[e._v("\n "+e._s(e.$t("registration.registration"))+"\n ")]),e._v(" "),i("div",{staticClass:"panel-body"},[i("form",{staticClass:"registration-form",on:{submit:function(t){t.preventDefault(),e.submit(e.user)}}},[i("div",{staticClass:"container"},[i("div",{staticClass:"text-fields"},[i("div",{staticClass:"form-group",class:{"form-group--error":e.$v.user.username.$error}},[i("label",{staticClass:"form--label",attrs:{for:"sign-up-username"}},[e._v(e._s(e.$t("login.username")))]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.$v.user.username.$model,expression:"$v.user.username.$model",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{disabled:e.isPending,id:"sign-up-username",placeholder:e.$t("registration.username_placeholder")},domProps:{value:e.$v.user.username.$model},on:{input:function(t){t.target.composing||e.$set(e.$v.user.username,"$model",t.target.value.trim())},blur:function(t){e.$forceUpdate()}}})]),e._v(" "),e.$v.user.username.$dirty?i("div",{staticClass:"form-error"},[i("ul",[e.$v.user.username.required?e._e():i("li",[i("span",[e._v(e._s(e.$t("registration.validations.username_required")))])])])]):e._e(),e._v(" "),i("div",{staticClass:"form-group",class:{"form-group--error":e.$v.user.fullname.$error}},[i("label",{staticClass:"form--label",attrs:{for:"sign-up-fullname"}},[e._v(e._s(e.$t("registration.fullname")))]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.$v.user.fullname.$model,expression:"$v.user.fullname.$model",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{disabled:e.isPending,id:"sign-up-fullname",placeholder:e.$t("registration.fullname_placeholder")},domProps:{value:e.$v.user.fullname.$model},on:{input:function(t){t.target.composing||e.$set(e.$v.user.fullname,"$model",t.target.value.trim())},blur:function(t){e.$forceUpdate()}}})]),e._v(" "),e.$v.user.fullname.$dirty?i("div",{staticClass:"form-error"},[i("ul",[e.$v.user.fullname.required?e._e():i("li",[i("span",[e._v(e._s(e.$t("registration.validations.fullname_required")))])])])]):e._e(),e._v(" "),i("div",{staticClass:"form-group",class:{"form-group--error":e.$v.user.email.$error}},[i("label",{staticClass:"form--label",attrs:{for:"email"}},[e._v(e._s(e.$t("registration.email")))]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.$v.user.email.$model,expression:"$v.user.email.$model"}],staticClass:"form-control",attrs:{disabled:e.isPending,id:"email",type:"email"},domProps:{value:e.$v.user.email.$model},on:{input:function(t){t.target.composing||e.$set(e.$v.user.email,"$model",t.target.value)}}})]),e._v(" "),e.$v.user.email.$dirty?i("div",{staticClass:"form-error"},[i("ul",[e.$v.user.email.required?e._e():i("li",[i("span",[e._v(e._s(e.$t("registration.validations.email_required")))])])])]):e._e(),e._v(" "),i("div",{staticClass:"form-group"},[i("label",{staticClass:"form--label",attrs:{for:"bio"}},[e._v(e._s(e.$t("registration.bio"))+" ("+e._s(e.$t("general.optional"))+")")]),e._v(" "),i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.user.bio,expression:"user.bio"}],staticClass:"form-control",attrs:{disabled:e.isPending,id:"bio",placeholder:e.bioPlaceholder},domProps:{value:e.user.bio},on:{input:function(t){t.target.composing||e.$set(e.user,"bio",t.target.value)}}})]),e._v(" "),i("div",{staticClass:"form-group",class:{"form-group--error":e.$v.user.password.$error}},[i("label",{staticClass:"form--label",attrs:{for:"sign-up-password"}},[e._v(e._s(e.$t("login.password")))]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.user.password,expression:"user.password"}],staticClass:"form-control",attrs:{disabled:e.isPending,id:"sign-up-password",type:"password"},domProps:{value:e.user.password},on:{input:function(t){t.target.composing||e.$set(e.user,"password",t.target.value)}}})]),e._v(" "),e.$v.user.password.$dirty?i("div",{staticClass:"form-error"},[i("ul",[e.$v.user.password.required?e._e():i("li",[i("span",[e._v(e._s(e.$t("registration.validations.password_required")))])])])]):e._e(),e._v(" "),i("div",{staticClass:"form-group",class:{"form-group--error":e.$v.user.confirm.$error}},[i("label",{staticClass:"form--label",attrs:{for:"sign-up-password-confirmation"}},[e._v(e._s(e.$t("registration.password_confirm")))]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.user.confirm,expression:"user.confirm"}],staticClass:"form-control",attrs:{disabled:e.isPending,id:"sign-up-password-confirmation",type:"password"},domProps:{value:e.user.confirm},on:{input:function(t){t.target.composing||e.$set(e.user,"confirm",t.target.value)}}})]),e._v(" "),e.$v.user.confirm.$dirty?i("div",{staticClass:"form-error"},[i("ul",[e.$v.user.confirm.required?e._e():i("li",[i("span",[e._v(e._s(e.$t("registration.validations.password_confirmation_required")))])]),e._v(" "),e.$v.user.confirm.sameAsPassword?e._e():i("li",[i("span",[e._v(e._s(e.$t("registration.validations.password_confirmation_match")))])])])]):e._e(),e._v(" "),"none"!=e.captcha.type?i("div",{staticClass:"form-group",attrs:{id:"captcha-group"}},[i("label",{staticClass:"form--label",attrs:{for:"captcha-label"}},[e._v(e._s(e.$t("captcha")))]),e._v(" "),"kocaptcha"==e.captcha.type?[i("img",{attrs:{src:e.captcha.url},on:{click:e.setCaptcha}}),e._v(" "),i("sub",[e._v(e._s(e.$t("registration.new_captcha")))]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.captcha.solution,expression:"captcha.solution"}],staticClass:"form-control",attrs:{disabled:e.isPending,id:"captcha-answer",type:"text",autocomplete:"off"},domProps:{value:e.captcha.solution},on:{input:function(t){t.target.composing||e.$set(e.captcha,"solution",t.target.value)}}})]:e._e()],2):e._e(),e._v(" "),e.token?i("div",{staticClass:"form-group"},[i("label",{attrs:{for:"token"}},[e._v(e._s(e.$t("registration.token")))]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.token,expression:"token"}],staticClass:"form-control",attrs:{disabled:"true",id:"token",type:"text"},domProps:{value:e.token},on:{input:function(t){t.target.composing||(e.token=t.target.value)}}})]):e._e(),e._v(" "),i("div",{staticClass:"form-group"},[i("button",{staticClass:"btn btn-default",attrs:{disabled:e.isPending,type:"submit"}},[e._v(e._s(e.$t("general.submit")))])])]),e._v(" "),i("div",{staticClass:"terms-of-service",domProps:{innerHTML:e._s(e.termsOfService)}})]),e._v(" "),e.serverValidationErrors.length?i("div",{staticClass:"form-group"},[i("div",{staticClass:"alert error"},e._l(e.serverValidationErrors,function(t){return i("span",[e._v(e._s(t))])}),0)]):e._e()])])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"image-cropper"},[e.dataUrl?i("div",[i("div",{staticClass:"image-cropper-image-container"},[i("img",{ref:"img",attrs:{src:e.dataUrl,alt:""},on:{load:function(t){return t.stopPropagation(),e.createCropper(t)}}})]),e._v(" "),i("div",{staticClass:"image-cropper-buttons-wrapper"},[i("button",{staticClass:"btn",attrs:{type:"button",disabled:e.submitting},domProps:{textContent:e._s(e.saveText)},on:{click:function(t){e.submit()}}}),e._v(" "),i("button",{staticClass:"btn",attrs:{type:"button",disabled:e.submitting},domProps:{textContent:e._s(e.cancelText)},on:{click:e.destroy}}),e._v(" "),i("button",{staticClass:"btn",attrs:{type:"button",disabled:e.submitting},domProps:{textContent:e._s(e.saveWithoutCroppingText)},on:{click:function(t){e.submit(!1)}}}),e._v(" "),e.submitting?i("i",{staticClass:"icon-spin4 animate-spin"}):e._e()]),e._v(" "),e.submitError?i("div",{staticClass:"alert error"},[e._v("\n "+e._s(e.submitErrorMsg)+"\n "),i("i",{staticClass:"button-icon icon-cancel",on:{click:e.clearError}})]):e._e()]):e._e(),e._v(" "),i("input",{ref:"input",staticClass:"image-cropper-img-input",attrs:{type:"file",accept:e.mimes}})])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("basic-user-card",{attrs:{user:e.user}},[i("div",{staticClass:"block-card-content-container"},[e.blocked?i("button",{staticClass:"btn btn-default",attrs:{disabled:e.progress},on:{click:e.unblockUser}},[e.progress?[e._v("\n "+e._s(e.$t("user_card.unblock_progress"))+"\n ")]:[e._v("\n "+e._s(e.$t("user_card.unblock"))+"\n ")]],2):i("button",{staticClass:"btn btn-default",attrs:{disabled:e.progress},on:{click:e.blockUser}},[e.progress?[e._v("\n "+e._s(e.$t("user_card.block_progress"))+"\n ")]:[e._v("\n "+e._s(e.$t("user_card.block"))+"\n ")]],2)])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("basic-user-card",{attrs:{user:e.user}},[i("div",{staticClass:"mute-card-content-container"},[e.muted?i("button",{staticClass:"btn btn-default",attrs:{disabled:e.progress},on:{click:e.unmuteUser}},[e.progress?[e._v("\n "+e._s(e.$t("user_card.unmute_progress"))+"\n ")]:[e._v("\n "+e._s(e.$t("user_card.unmute"))+"\n ")]],2):i("button",{staticClass:"btn btn-default",attrs:{disabled:e.progress},on:{click:e.muteUser}},[e.progress?[e._v("\n "+e._s(e.$t("user_card.mute_progress"))+"\n ")]:[e._v("\n "+e._s(e.$t("user_card.mute"))+"\n ")]],2)])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("label",{staticClass:"checkbox"},[i("input",{attrs:{type:"checkbox"},domProps:{checked:e.checked,indeterminate:e.indeterminate},on:{change:function(t){e.$emit("change",t.target.checked)}}}),e._v(" "),i("i",{staticClass:"checkbox-indicator"}),e._v(" "),e.$slots.default?i("span",[e._t("default")],2):e._e()])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"selectable-list"},[e.items.length>0?i("div",{staticClass:"selectable-list-header"},[i("div",{staticClass:"selectable-list-checkbox-wrapper"},[i("Checkbox",{attrs:{checked:e.allSelected,indeterminate:e.someSelected},on:{change:e.toggleAll}},[e._v(e._s(e.$t("selectable_list.select_all")))])],1),e._v(" "),i("div",{staticClass:"selectable-list-header-actions"},[e._t("header",null,{selected:e.filteredSelected})],2)]):e._e(),e._v(" "),i("List",{attrs:{items:e.items,getKey:e.getKey},scopedSlots:e._u([{key:"item",fn:function(t){var a=t.item;return[i("div",{staticClass:"selectable-list-item-inner",class:{"selectable-list-item-selected-inner":e.isSelected(a)}},[i("div",{staticClass:"selectable-list-checkbox-wrapper"},[i("Checkbox",{attrs:{checked:e.isSelected(a)},on:{change:function(t){return e.toggle(t,a)}}})],1),e._v(" "),e._t("item",null,{item:a})],2)]}}])},[i("template",{slot:"empty"},[e._t("empty")],2)],2)],1)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this.$createElement;return(this._self._c||e)("button",{attrs:{disabled:this.progress||this.disabled},on:{click:this.onClick}},[this.progress?[this._t("progress")]:[this._t("default")]],2)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.onClickOutside,expression:"onClickOutside"}],staticClass:"autosuggest"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.term,expression:"term"}],staticClass:"autosuggest-input",attrs:{placeholder:e.placeholder},domProps:{value:e.term},on:{click:e.onInputClick,input:function(t){t.target.composing||(e.term=t.target.value)}}}),e._v(" "),e.resultsVisible&&e.filtered.length>0?i("div",{staticClass:"autosuggest-results"},[e._l(e.filtered,function(t){return e._t("default",null,{item:t})})],2):e._e()])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"importer"},[i("form",[i("input",{ref:"input",attrs:{type:"file"},on:{change:e.change}})]),e._v(" "),e.submitting?i("i",{staticClass:"icon-spin4 animate-spin importer-uploading"}):i("button",{staticClass:"btn btn-default",on:{click:e.submit}},[e._v(e._s(e.submitButtonLabel))]),e._v(" "),e.success?i("div",[i("i",{staticClass:"icon-cross",on:{click:e.dismiss}}),e._v(" "),i("p",[e._v(e._s(e.successMessage))])]):e.error?i("div",[i("i",{staticClass:"icon-cross",on:{click:e.dismiss}}),e._v(" "),i("p",[e._v(e._s(e.errorMessage))])]):e._e()])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"exporter"},[e.processing?i("div",[i("i",{staticClass:"icon-spin4 animate-spin exporter-processing"}),e._v(" "),i("span",[e._v(e._s(e.processingMessage))])]):i("button",{staticClass:"btn btn-default",on:{click:e.process}},[e._v(e._s(e.exportButtonLabel))])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.displayTitle?i("h4",[e._v(e._s(e.$t("settings.mfa.recovery_codes")))]):e._e(),e._v(" "),e.inProgress?i("i",[e._v(e._s(e.$t("settings.mfa.waiting_a_recovery_codes")))]):e._e(),e._v(" "),e.ready?[i("p",{staticClass:"alert warning"},[e._v(e._s(e.$t("settings.mfa.recovery_codes_warning")))]),e._v(" "),i("ul",{staticClass:"backup-codes"},e._l(e.backupCodes.codes,function(t){return i("li",[e._v(e._s(t))])}),0)]:e._e()],2)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e._t("default"),e._v(" "),i("button",{staticClass:"btn btn-default",attrs:{disabled:e.disabled},on:{click:e.confirm}},[e._v("\n "+e._s(e.$t("general.confirm"))+"\n ")]),e._v(" "),i("button",{staticClass:"btn btn-default",attrs:{disabled:e.disabled},on:{click:e.cancel}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")])],2)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"method-item"},[i("strong",[e._v(e._s(e.$t("settings.mfa.otp")))]),e._v(" "),e.isActivated?e._e():i("button",{staticClass:"btn btn-default",on:{click:e.doActivate}},[e._v("\n "+e._s(e.$t("general.enable"))+"\n ")]),e._v(" "),e.isActivated?i("button",{staticClass:"btn btn-default",attrs:{disabled:e.deactivate},on:{click:e.doDeactivate}},[e._v("\n "+e._s(e.$t("general.disable"))+"\n ")]):e._e()]),e._v(" "),e.deactivate?i("confirm",{attrs:{disabled:e.inProgress},on:{confirm:e.confirmDeactivate,cancel:e.cancelDeactivate}},[e._v("\n "+e._s(e.$t("settings.enter_current_password_to_confirm"))+":\n "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentPassword,expression:"currentPassword"}],attrs:{type:"password"},domProps:{value:e.currentPassword},on:{input:function(t){t.target.composing||(e.currentPassword=t.target.value)}}})]):e._e(),e._v(" "),e.error?i("div",{staticClass:"alert error"},[e._v(e._s(e.error))]):e._e()],1)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.readyInit&&e.settings.available?i("div",{staticClass:"setting-item mfa-settings"},[i("div",{staticClass:"mfa-heading"},[i("h2",[e._v(e._s(e.$t("settings.mfa.title")))])]),e._v(" "),i("div",[e.setupInProgress?e._e():i("div",{staticClass:"setting-item"},[i("h3",[e._v(e._s(e.$t("settings.mfa.authentication_methods")))]),e._v(" "),i("totp-item",{attrs:{settings:e.settings},on:{deactivate:e.fetchSettings,activate:e.activateOTP}}),e._v(" "),i("br"),e._v(" "),e.settings.enabled?i("div",[e.confirmNewBackupCodes?e._e():i("recovery-codes",{attrs:{"backup-codes":e.backupCodes}}),e._v(" "),e.confirmNewBackupCodes?e._e():i("button",{staticClass:"btn btn-default",on:{click:e.getBackupCodes}},[e._v("\n "+e._s(e.$t("settings.mfa.generate_new_recovery_codes"))+"\n ")]),e._v(" "),e.confirmNewBackupCodes?i("div",[i("confirm",{attrs:{disabled:e.backupCodes.inProgress},on:{confirm:e.confirmBackupCodes,cancel:e.cancelBackupCodes}},[i("p",{staticClass:"warning"},[e._v(e._s(e.$t("settings.mfa.warning_of_generate_new_codes")))])])],1):e._e()],1):e._e()],1),e._v(" "),e.setupInProgress?i("div",[i("h3",[e._v(e._s(e.$t("settings.mfa.setup_otp")))]),e._v(" "),e.setupOTPInProgress?e._e():i("recovery-codes",{attrs:{"backup-codes":e.backupCodes}}),e._v(" "),e.canSetupOTP?i("button",{staticClass:"btn btn-default",on:{click:e.cancelSetup}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]):e._e(),e._v(" "),e.canSetupOTP?i("button",{staticClass:"btn btn-default",on:{click:e.setupOTP}},[e._v("\n "+e._s(e.$t("settings.mfa.setup_otp"))+"\n ")]):e._e(),e._v(" "),e.setupOTPInProgress?[e.prepareOTP?i("i",[e._v(e._s(e.$t("settings.mfa.wait_pre_setup_otp")))]):e._e(),e._v(" "),e.confirmOTP?i("div",[i("div",{staticClass:"setup-otp"},[i("div",{staticClass:"qr-code"},[i("h4",[e._v(e._s(e.$t("settings.mfa.scan.title")))]),e._v(" "),i("p",[e._v(e._s(e.$t("settings.mfa.scan.desc")))]),e._v(" "),i("qrcode",{attrs:{value:e.otpSettings.provisioning_uri,options:{width:200}}}),e._v(" "),i("p",[e._v("\n "+e._s(e.$t("settings.mfa.scan.secret_code"))+":\n "+e._s(e.otpSettings.key)+"\n ")])],1),e._v(" "),i("div",{staticClass:"verify"},[i("h4",[e._v(e._s(e.$t("general.verify")))]),e._v(" "),i("p",[e._v(e._s(e.$t("settings.mfa.verify.desc")))]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.otpConfirmToken,expression:"otpConfirmToken"}],attrs:{type:"text"},domProps:{value:e.otpConfirmToken},on:{input:function(t){t.target.composing||(e.otpConfirmToken=t.target.value)}}}),e._v(" "),i("p",[e._v(e._s(e.$t("settings.enter_current_password_to_confirm"))+":")]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentPassword,expression:"currentPassword"}],attrs:{type:"password"},domProps:{value:e.currentPassword},on:{input:function(t){t.target.composing||(e.currentPassword=t.target.value)}}}),e._v(" "),i("div",{staticClass:"confirm-otp-actions"},[i("button",{staticClass:"btn btn-default",on:{click:e.doConfirmOTP}},[e._v("\n "+e._s(e.$t("settings.mfa.confirm_and_enable"))+"\n ")]),e._v(" "),i("button",{staticClass:"btn btn-default",on:{click:e.cancelSetup}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")])]),e._v(" "),e.error?i("div",{staticClass:"alert error"},[e._v(e._s(e.error))]):e._e()])])]):e._e()]:e._e()],2):e._e()])]):e._e()},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"settings panel panel-default"},[i("div",{staticClass:"panel-heading"},[i("div",{staticClass:"title"},[e._v("\n "+e._s(e.$t("settings.user_settings"))+"\n ")]),e._v(" "),i("transition",{attrs:{name:"fade"}},[e.currentSaveStateNotice?[e.currentSaveStateNotice.error?i("div",{staticClass:"alert error",on:{click:function(e){e.preventDefault()}}},[e._v("\n "+e._s(e.$t("settings.saving_err"))+"\n ")]):e._e(),e._v(" "),e.currentSaveStateNotice.error?e._e():i("div",{staticClass:"alert transparent",on:{click:function(e){e.preventDefault()}}},[e._v("\n "+e._s(e.$t("settings.saving_ok"))+"\n ")])]:e._e()],2)],1),e._v(" "),i("div",{staticClass:"panel-body profile-edit"},[i("tab-switcher",[i("div",{attrs:{label:e.$t("settings.profile_tab")}},[i("div",{staticClass:"setting-item"},[i("h2",[e._v(e._s(e.$t("settings.name_bio")))]),e._v(" "),i("p",[e._v(e._s(e.$t("settings.name")))]),e._v(" "),i("EmojiInput",{attrs:{suggest:e.emojiSuggestor},model:{value:e.newName,callback:function(t){e.newName=t},expression:"newName"}},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.newName,expression:"newName"}],attrs:{id:"username",classname:"name-changer"},domProps:{value:e.newName},on:{input:function(t){t.target.composing||(e.newName=t.target.value)}}})]),e._v(" "),i("p",[e._v(e._s(e.$t("settings.bio")))]),e._v(" "),i("EmojiInput",{attrs:{suggest:e.emojiUserSuggestor},model:{value:e.newBio,callback:function(t){e.newBio=t},expression:"newBio"}},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.newBio,expression:"newBio"}],attrs:{classname:"bio"},domProps:{value:e.newBio},on:{input:function(t){t.target.composing||(e.newBio=t.target.value)}}})]),e._v(" "),i("p",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.newLocked,expression:"newLocked"}],attrs:{type:"checkbox",id:"account-locked"},domProps:{checked:Array.isArray(e.newLocked)?e._i(e.newLocked,null)>-1:e.newLocked},on:{change:function(t){var i=e.newLocked,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.newLocked=i.concat([null])):n>-1&&(e.newLocked=i.slice(0,n).concat(i.slice(n+1)))}else e.newLocked=o}}}),e._v(" "),i("label",{attrs:{for:"account-locked"}},[e._v(e._s(e.$t("settings.lock_account_description")))])]),e._v(" "),i("div",[i("label",{attrs:{for:"default-vis"}},[e._v(e._s(e.$t("settings.default_vis")))]),e._v(" "),i("div",{staticClass:"visibility-tray",attrs:{id:"default-vis"}},[i("scope-selector",{attrs:{showAll:!0,userDefault:e.newDefaultScope,initialScope:e.newDefaultScope,onScopeChange:e.changeVis}})],1)]),e._v(" "),i("p",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.newNoRichText,expression:"newNoRichText"}],attrs:{type:"checkbox",id:"account-no-rich-text"},domProps:{checked:Array.isArray(e.newNoRichText)?e._i(e.newNoRichText,null)>-1:e.newNoRichText},on:{change:function(t){var i=e.newNoRichText,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.newNoRichText=i.concat([null])):n>-1&&(e.newNoRichText=i.slice(0,n).concat(i.slice(n+1)))}else e.newNoRichText=o}}}),e._v(" "),i("label",{attrs:{for:"account-no-rich-text"}},[e._v(e._s(e.$t("settings.no_rich_text_description")))])]),e._v(" "),i("p",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.hideFollows,expression:"hideFollows"}],attrs:{type:"checkbox",id:"account-hide-follows"},domProps:{checked:Array.isArray(e.hideFollows)?e._i(e.hideFollows,null)>-1:e.hideFollows},on:{change:function(t){var i=e.hideFollows,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.hideFollows=i.concat([null])):n>-1&&(e.hideFollows=i.slice(0,n).concat(i.slice(n+1)))}else e.hideFollows=o}}}),e._v(" "),i("label",{attrs:{for:"account-hide-follows"}},[e._v(e._s(e.$t("settings.hide_follows_description")))])]),e._v(" "),i("p",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.hideFollowers,expression:"hideFollowers"}],attrs:{type:"checkbox",id:"account-hide-followers"},domProps:{checked:Array.isArray(e.hideFollowers)?e._i(e.hideFollowers,null)>-1:e.hideFollowers},on:{change:function(t){var i=e.hideFollowers,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.hideFollowers=i.concat([null])):n>-1&&(e.hideFollowers=i.slice(0,n).concat(i.slice(n+1)))}else e.hideFollowers=o}}}),e._v(" "),i("label",{attrs:{for:"account-hide-followers"}},[e._v(e._s(e.$t("settings.hide_followers_description")))])]),e._v(" "),i("p",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.showRole,expression:"showRole"}],attrs:{type:"checkbox",id:"account-show-role"},domProps:{checked:Array.isArray(e.showRole)?e._i(e.showRole,null)>-1:e.showRole},on:{change:function(t){var i=e.showRole,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&(e.showRole=i.concat([null])):n>-1&&(e.showRole=i.slice(0,n).concat(i.slice(n+1)))}else e.showRole=o}}}),e._v(" "),"admin"===e.role?i("label",{attrs:{for:"account-show-role"}},[e._v(e._s(e.$t("settings.show_admin_badge")))]):e._e(),e._v(" "),"moderator"===e.role?i("label",{attrs:{for:"account-show-role"}},[e._v(e._s(e.$t("settings.show_moderator_badge")))]):e._e()]),e._v(" "),i("button",{staticClass:"btn btn-default",attrs:{disabled:e.newName&&0===e.newName.length},on:{click:e.updateProfile}},[e._v(e._s(e.$t("general.submit")))])],1),e._v(" "),i("div",{staticClass:"setting-item"},[i("h2",[e._v(e._s(e.$t("settings.avatar")))]),e._v(" "),i("p",{staticClass:"visibility-notice"},[e._v(e._s(e.$t("settings.avatar_size_instruction")))]),e._v(" "),i("p",[e._v(e._s(e.$t("settings.current_avatar")))]),e._v(" "),i("img",{staticClass:"current-avatar",attrs:{src:e.user.profile_image_url_original}}),e._v(" "),i("p",[e._v(e._s(e.$t("settings.set_new_avatar")))]),e._v(" "),i("button",{directives:[{name:"show",rawName:"v-show",value:e.pickAvatarBtnVisible,expression:"pickAvatarBtnVisible"}],staticClass:"btn",attrs:{type:"button",id:"pick-avatar"}},[e._v(e._s(e.$t("settings.upload_a_photo")))]),e._v(" "),i("image-cropper",{attrs:{trigger:"#pick-avatar",submitHandler:e.submitAvatar},on:{open:function(t){e.pickAvatarBtnVisible=!1},close:function(t){e.pickAvatarBtnVisible=!0}}})],1),e._v(" "),i("div",{staticClass:"setting-item"},[i("h2",[e._v(e._s(e.$t("settings.profile_banner")))]),e._v(" "),i("p",[e._v(e._s(e.$t("settings.current_profile_banner")))]),e._v(" "),i("img",{staticClass:"banner",attrs:{src:e.user.cover_photo}}),e._v(" "),i("p",[e._v(e._s(e.$t("settings.set_new_profile_banner")))]),e._v(" "),e.bannerPreview?i("img",{staticClass:"banner",attrs:{src:e.bannerPreview}}):e._e(),e._v(" "),i("div",[i("input",{attrs:{type:"file"},on:{change:function(t){e.uploadFile("banner",t)}}})]),e._v(" "),e.bannerUploading?i("i",{staticClass:" icon-spin4 animate-spin uploading"}):e.bannerPreview?i("button",{staticClass:"btn btn-default",on:{click:e.submitBanner}},[e._v(e._s(e.$t("general.submit")))]):e._e(),e._v(" "),e.bannerUploadError?i("div",{staticClass:"alert error"},[e._v("\n Error: "+e._s(e.bannerUploadError)+"\n "),i("i",{staticClass:"button-icon icon-cancel",on:{click:function(t){e.clearUploadError("banner")}}})]):e._e()]),e._v(" "),i("div",{staticClass:"setting-item"},[i("h2",[e._v(e._s(e.$t("settings.profile_background")))]),e._v(" "),i("p",[e._v(e._s(e.$t("settings.set_new_profile_background")))]),e._v(" "),e.backgroundPreview?i("img",{staticClass:"bg",attrs:{src:e.backgroundPreview}}):e._e(),e._v(" "),i("div",[i("input",{attrs:{type:"file"},on:{change:function(t){e.uploadFile("background",t)}}})]),e._v(" "),e.backgroundUploading?i("i",{staticClass:" icon-spin4 animate-spin uploading"}):e.backgroundPreview?i("button",{staticClass:"btn btn-default",on:{click:e.submitBg}},[e._v(e._s(e.$t("general.submit")))]):e._e(),e._v(" "),e.backgroundUploadError?i("div",{staticClass:"alert error"},[e._v("\n Error: "+e._s(e.backgroundUploadError)+"\n "),i("i",{staticClass:"button-icon icon-cancel",on:{click:function(t){e.clearUploadError("background")}}})]):e._e()])]),e._v(" "),i("div",{attrs:{label:e.$t("settings.security_tab")}},[i("div",{staticClass:"setting-item"},[i("h2",[e._v(e._s(e.$t("settings.change_password")))]),e._v(" "),i("div",[i("p",[e._v(e._s(e.$t("settings.current_password")))]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.changePasswordInputs[0],expression:"changePasswordInputs[0]"}],attrs:{type:"password"},domProps:{value:e.changePasswordInputs[0]},on:{input:function(t){t.target.composing||e.$set(e.changePasswordInputs,0,t.target.value)}}})]),e._v(" "),i("div",[i("p",[e._v(e._s(e.$t("settings.new_password")))]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.changePasswordInputs[1],expression:"changePasswordInputs[1]"}],attrs:{type:"password"},domProps:{value:e.changePasswordInputs[1]},on:{input:function(t){t.target.composing||e.$set(e.changePasswordInputs,1,t.target.value)}}})]),e._v(" "),i("div",[i("p",[e._v(e._s(e.$t("settings.confirm_new_password")))]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.changePasswordInputs[2],expression:"changePasswordInputs[2]"}],attrs:{type:"password"},domProps:{value:e.changePasswordInputs[2]},on:{input:function(t){t.target.composing||e.$set(e.changePasswordInputs,2,t.target.value)}}})]),e._v(" "),i("button",{staticClass:"btn btn-default",on:{click:e.changePassword}},[e._v(e._s(e.$t("general.submit")))]),e._v(" "),e.changedPassword?i("p",[e._v(e._s(e.$t("settings.changed_password")))]):!1!==e.changePasswordError?i("p",[e._v(e._s(e.$t("settings.change_password_error")))]):e._e(),e._v(" "),e.changePasswordError?i("p",[e._v(e._s(e.changePasswordError))]):e._e()]),e._v(" "),i("div",{staticClass:"setting-item"},[i("h2",[e._v(e._s(e.$t("settings.oauth_tokens")))]),e._v(" "),i("table",{staticClass:"oauth-tokens"},[i("thead",[i("tr",[i("th",[e._v(e._s(e.$t("settings.app_name")))]),e._v(" "),i("th",[e._v(e._s(e.$t("settings.valid_until")))]),e._v(" "),i("th")])]),e._v(" "),i("tbody",e._l(e.oauthTokens,function(t){return i("tr",{key:t.id},[i("td",[e._v(e._s(t.appName))]),e._v(" "),i("td",[e._v(e._s(t.validUntil))]),e._v(" "),i("td",{staticClass:"actions"},[i("button",{staticClass:"btn btn-default",on:{click:function(i){e.revokeToken(t.id)}}},[e._v("\n "+e._s(e.$t("settings.revoke_token"))+"\n ")])])])}),0)])]),e._v(" "),i("mfa"),e._v(" "),i("div",{staticClass:"setting-item"},[i("h2",[e._v(e._s(e.$t("settings.delete_account")))]),e._v(" "),e.deletingAccount?e._e():i("p",[e._v(e._s(e.$t("settings.delete_account_description")))]),e._v(" "),e.deletingAccount?i("div",[i("p",[e._v(e._s(e.$t("settings.delete_account_instructions")))]),e._v(" "),i("p",[e._v(e._s(e.$t("login.password")))]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.deleteAccountConfirmPasswordInput,expression:"deleteAccountConfirmPasswordInput"}],attrs:{type:"password"},domProps:{value:e.deleteAccountConfirmPasswordInput},on:{input:function(t){t.target.composing||(e.deleteAccountConfirmPasswordInput=t.target.value)}}}),e._v(" "),i("button",{staticClass:"btn btn-default",on:{click:e.deleteAccount}},[e._v(e._s(e.$t("settings.delete_account")))])]):e._e(),e._v(" "),!1!==e.deleteAccountError?i("p",[e._v(e._s(e.$t("settings.delete_account_error")))]):e._e(),e._v(" "),e.deleteAccountError?i("p",[e._v(e._s(e.deleteAccountError))]):e._e(),e._v(" "),e.deletingAccount?e._e():i("button",{staticClass:"btn btn-default",on:{click:e.confirmDelete}},[e._v(e._s(e.$t("general.submit")))])])],1),e._v(" "),e.pleromaBackend?i("div",{attrs:{label:e.$t("settings.notifications")}},[i("div",{staticClass:"setting-item"},[i("div",{staticClass:"select-multiple"},[i("span",{staticClass:"label"},[e._v(e._s(e.$t("settings.notification_setting")))]),e._v(" "),i("ul",{staticClass:"option-list"},[i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.notificationSettings.follows,expression:"notificationSettings.follows"}],attrs:{type:"checkbox",id:"notification-setting-follows"},domProps:{checked:Array.isArray(e.notificationSettings.follows)?e._i(e.notificationSettings.follows,null)>-1:e.notificationSettings.follows},on:{change:function(t){var i=e.notificationSettings.follows,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&e.$set(e.notificationSettings,"follows",i.concat([null])):n>-1&&e.$set(e.notificationSettings,"follows",i.slice(0,n).concat(i.slice(n+1)))}else e.$set(e.notificationSettings,"follows",o)}}}),e._v(" "),i("label",{attrs:{for:"notification-setting-follows"}},[e._v("\n "+e._s(e.$t("settings.notification_setting_follows"))+"\n ")])]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.notificationSettings.followers,expression:"notificationSettings.followers"}],attrs:{type:"checkbox",id:"notification-setting-followers"},domProps:{checked:Array.isArray(e.notificationSettings.followers)?e._i(e.notificationSettings.followers,null)>-1:e.notificationSettings.followers},on:{change:function(t){var i=e.notificationSettings.followers,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&e.$set(e.notificationSettings,"followers",i.concat([null])):n>-1&&e.$set(e.notificationSettings,"followers",i.slice(0,n).concat(i.slice(n+1)))}else e.$set(e.notificationSettings,"followers",o)}}}),e._v(" "),i("label",{attrs:{for:"notification-setting-followers"}},[e._v("\n "+e._s(e.$t("settings.notification_setting_followers"))+"\n ")])]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.notificationSettings.non_follows,expression:"notificationSettings.non_follows"}],attrs:{type:"checkbox",id:"notification-setting-non-follows"},domProps:{checked:Array.isArray(e.notificationSettings.non_follows)?e._i(e.notificationSettings.non_follows,null)>-1:e.notificationSettings.non_follows},on:{change:function(t){var i=e.notificationSettings.non_follows,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&e.$set(e.notificationSettings,"non_follows",i.concat([null])):n>-1&&e.$set(e.notificationSettings,"non_follows",i.slice(0,n).concat(i.slice(n+1)))}else e.$set(e.notificationSettings,"non_follows",o)}}}),e._v(" "),i("label",{attrs:{for:"notification-setting-non-follows"}},[e._v("\n "+e._s(e.$t("settings.notification_setting_non_follows"))+"\n ")])]),e._v(" "),i("li",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.notificationSettings.non_followers,expression:"notificationSettings.non_followers"}],attrs:{type:"checkbox",id:"notification-setting-non-followers"},domProps:{checked:Array.isArray(e.notificationSettings.non_followers)?e._i(e.notificationSettings.non_followers,null)>-1:e.notificationSettings.non_followers},on:{change:function(t){var i=e.notificationSettings.non_followers,a=t.target,o=!!a.checked;if(Array.isArray(i)){var n=e._i(i,null);a.checked?n<0&&e.$set(e.notificationSettings,"non_followers",i.concat([null])):n>-1&&e.$set(e.notificationSettings,"non_followers",i.slice(0,n).concat(i.slice(n+1)))}else e.$set(e.notificationSettings,"non_followers",o)}}}),e._v(" "),i("label",{attrs:{for:"notification-setting-non-followers"}},[e._v("\n "+e._s(e.$t("settings.notification_setting_non_followers"))+"\n ")])])])]),e._v(" "),i("p",[e._v(e._s(e.$t("settings.notification_mutes")))]),e._v(" "),i("p",[e._v(e._s(e.$t("settings.notification_blocks")))]),e._v(" "),i("button",{staticClass:"btn btn-default",on:{click:e.updateNotificationSettings}},[e._v(e._s(e.$t("general.submit")))])])]):e._e(),e._v(" "),e.pleromaBackend?i("div",{attrs:{label:e.$t("settings.data_import_export_tab")}},[i("div",{staticClass:"setting-item"},[i("h2",[e._v(e._s(e.$t("settings.follow_import")))]),e._v(" "),i("p",[e._v(e._s(e.$t("settings.import_followers_from_a_csv_file")))]),e._v(" "),i("Importer",{attrs:{submitHandler:e.importFollows,successMessage:e.$t("settings.follows_imported"),errorMessage:e.$t("settings.follow_import_error")}})],1),e._v(" "),i("div",{staticClass:"setting-item"},[i("h2",[e._v(e._s(e.$t("settings.follow_export")))]),e._v(" "),i("Exporter",{attrs:{getContent:e.getFollowsContent,filename:"friends.csv",exportButtonLabel:e.$t("settings.follow_export_button")}})],1),e._v(" "),i("div",{staticClass:"setting-item"},[i("h2",[e._v(e._s(e.$t("settings.block_import")))]),e._v(" "),i("p",[e._v(e._s(e.$t("settings.import_blocks_from_a_csv_file")))]),e._v(" "),i("Importer",{attrs:{submitHandler:e.importBlocks,successMessage:e.$t("settings.blocks_imported"),errorMessage:e.$t("settings.block_import_error")}})],1),e._v(" "),i("div",{staticClass:"setting-item"},[i("h2",[e._v(e._s(e.$t("settings.block_export")))]),e._v(" "),i("Exporter",{attrs:{getContent:e.getBlocksContent,filename:"blocks.csv",exportButtonLabel:e.$t("settings.block_export_button")}})],1)]):e._e(),e._v(" "),i("div",{attrs:{label:e.$t("settings.blocks_tab")}},[i("div",{staticClass:"profile-edit-usersearch-wrapper"},[i("Autosuggest",{attrs:{filter:e.filterUnblockedUsers,query:e.queryUserIds,placeholder:e.$t("settings.search_user_to_block")},scopedSlots:e._u([{key:"default",fn:function(e){return i("BlockCard",{attrs:{userId:e.item}})}}])})],1),e._v(" "),i("BlockList",{attrs:{refresh:!0,getKey:e.identity},scopedSlots:e._u([{key:"header",fn:function(t){var a=t.selected;return[i("div",{staticClass:"profile-edit-bulk-actions"},[a.length>0?i("ProgressButton",{staticClass:"btn btn-default",attrs:{click:function(){return e.blockUsers(a)}}},[e._v("\n "+e._s(e.$t("user_card.block"))+"\n "),i("template",{slot:"progress"},[e._v(e._s(e.$t("user_card.block_progress")))])],2):e._e(),e._v(" "),a.length>0?i("ProgressButton",{staticClass:"btn btn-default",attrs:{click:function(){return e.unblockUsers(a)}}},[e._v("\n "+e._s(e.$t("user_card.unblock"))+"\n "),i("template",{slot:"progress"},[e._v(e._s(e.$t("user_card.unblock_progress")))])],2):e._e()],1)]}},{key:"item",fn:function(e){var t=e.item;return[i("BlockCard",{attrs:{userId:t}})]}}])},[i("template",{slot:"empty"},[e._v(e._s(e.$t("settings.no_blocks")))])],2)],1),e._v(" "),i("div",{attrs:{label:e.$t("settings.mutes_tab")}},[i("div",{staticClass:"profile-edit-usersearch-wrapper"},[i("Autosuggest",{attrs:{filter:e.filterUnMutedUsers,query:e.queryUserIds,placeholder:e.$t("settings.search_user_to_mute")},scopedSlots:e._u([{key:"default",fn:function(e){return i("MuteCard",{attrs:{userId:e.item}})}}])})],1),e._v(" "),i("MuteList",{attrs:{refresh:!0,getKey:e.identity},scopedSlots:e._u([{key:"header",fn:function(t){var a=t.selected;return[i("div",{staticClass:"profile-edit-bulk-actions"},[a.length>0?i("ProgressButton",{staticClass:"btn btn-default",attrs:{click:function(){return e.muteUsers(a)}}},[e._v("\n "+e._s(e.$t("user_card.mute"))+"\n "),i("template",{slot:"progress"},[e._v(e._s(e.$t("user_card.mute_progress")))])],2):e._e(),e._v(" "),a.length>0?i("ProgressButton",{staticClass:"btn btn-default",attrs:{click:function(){return e.unmuteUsers(a)}}},[e._v("\n "+e._s(e.$t("user_card.unmute"))+"\n "),i("template",{slot:"progress"},[e._v(e._s(e.$t("user_card.unmute_progress")))])],2):e._e()],1)]}},{key:"item",fn:function(e){var t=e.item;return[i("MuteCard",{attrs:{userId:t}})]}}])},[i("template",{slot:"empty"},[e._v(e._s(e.$t("settings.no_mutes")))])],2)],1)])],1)])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("basic-user-card",{attrs:{user:e.user}},[i("div",{staticClass:"follow-request-card-content-container"},[i("button",{staticClass:"btn btn-default",on:{click:e.approveUser}},[e._v(e._s(e.$t("user_card.approve")))]),e._v(" "),i("button",{staticClass:"btn btn-default",on:{click:e.denyUser}},[e._v(e._s(e.$t("user_card.deny")))])])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"settings panel panel-default"},[t("div",{staticClass:"panel-heading"},[this._v("\n "+this._s(this.$t("nav.friend_requests"))+"\n ")]),this._v(" "),t("div",{staticClass:"panel-body"},this._l(this.requests,function(e){return t("FollowRequestCard",{key:e.id,staticClass:"list-item",attrs:{user:e}})}),1)])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this.$createElement;return(this._self._c||e)("h1",[this._v("...")])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"user-search panel panel-default"},[i("div",{staticClass:"panel-heading"},[e._v("\n "+e._s(e.$t("nav.user_search"))+"\n ")]),e._v(" "),i("div",{staticClass:"user-search-input-container"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],ref:"userSearchInput",staticClass:"user-finder-input",attrs:{placeholder:e.$t("finder.find_user")},domProps:{value:e.username},on:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.newQuery(e.username)},input:function(t){t.target.composing||(e.username=t.target.value)}}}),e._v(" "),i("button",{staticClass:"btn search-button",on:{click:function(t){e.newQuery(e.username)}}},[i("i",{staticClass:"icon-search"})])]),e._v(" "),e.loading?i("div",{staticClass:"text-center loading-icon"},[i("i",{staticClass:"icon-spin3 animate-spin"})]):i("div",{staticClass:"panel-body"},e._l(e.users,function(e){return i("FollowCard",{key:e.id,staticClass:"list-item",attrs:{user:e}})}),1)])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"login panel panel-default"},[i("div",{staticClass:"panel-heading"},[e._v(e._s(e.$t("login.login")))]),e._v(" "),i("div",{staticClass:"panel-body"},[i("form",{staticClass:"login-form",on:{submit:function(t){return t.preventDefault(),e.submit(t)}}},[e.isPasswordAuth?[i("div",{staticClass:"form-group"},[i("label",{attrs:{for:"username"}},[e._v(e._s(e.$t("login.username")))]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.user.username,expression:"user.username"}],staticClass:"form-control",attrs:{disabled:e.loggingIn,id:"username",placeholder:e.$t("login.placeholder")},domProps:{value:e.user.username},on:{input:function(t){t.target.composing||e.$set(e.user,"username",t.target.value)}}})]),e._v(" "),i("div",{staticClass:"form-group"},[i("label",{attrs:{for:"password"}},[e._v(e._s(e.$t("login.password")))]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.user.password,expression:"user.password"}],ref:"passwordInput",staticClass:"form-control",attrs:{disabled:e.loggingIn,id:"password",type:"password"},domProps:{value:e.user.password},on:{input:function(t){t.target.composing||e.$set(e.user,"password",t.target.value)}}})])]:e._e(),e._v(" "),e.isTokenAuth?i("div",{staticClass:"form-group"},[i("p",[e._v(e._s(e.$t("login.description")))])]):e._e(),e._v(" "),i("div",{staticClass:"form-group"},[i("div",{staticClass:"login-bottom"},[i("div",[e.registrationOpen?i("router-link",{staticClass:"register",attrs:{to:{name:"registration"}}},[e._v("\n "+e._s(e.$t("login.register"))+"\n ")]):e._e()],1),e._v(" "),i("button",{staticClass:"btn btn-default",attrs:{disabled:e.loggingIn,type:"submit"}},[e._v("\n "+e._s(e.$t("login.login"))+"\n ")])])])],2)]),e._v(" "),e.error?i("div",{staticClass:"form-group"},[i("div",{staticClass:"alert error"},[e._v("\n "+e._s(e.error)+"\n "),i("i",{staticClass:"button-icon icon-cancel",on:{click:e.clearError}})])]):e._e()])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"login panel panel-default"},[i("div",{staticClass:"panel-heading"},[e._v(e._s(e.$t("login.heading.recovery")))]),e._v(" "),i("div",{staticClass:"panel-body"},[i("form",{staticClass:"login-form",on:{submit:function(t){return t.preventDefault(),e.submit(t)}}},[i("div",{staticClass:"form-group"},[i("label",{attrs:{for:"code"}},[e._v(e._s(e.$t("login.recovery_code")))]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.code,expression:"code"}],staticClass:"form-control",attrs:{id:"code"},domProps:{value:e.code},on:{input:function(t){t.target.composing||(e.code=t.target.value)}}})]),e._v(" "),i("div",{staticClass:"form-group"},[i("div",{staticClass:"login-bottom"},[i("div",[i("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.requireTOTP(t)}}},[e._v("\n "+e._s(e.$t("login.enter_two_factor_code"))+"\n ")]),e._v(" "),i("br"),e._v(" "),i("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.abortMFA(t)}}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")])]),e._v(" "),i("button",{staticClass:"btn btn-default",attrs:{type:"submit"}},[e._v("\n "+e._s(e.$t("general.verify"))+"\n ")])])])])]),e._v(" "),e.error?i("div",{staticClass:"form-group"},[i("div",{staticClass:"alert error"},[e._v("\n "+e._s(e.error)+"\n "),i("i",{staticClass:"button-icon icon-cancel",on:{click:e.clearError}})])]):e._e()])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"login panel panel-default"},[i("div",{staticClass:"panel-heading"},[e._v("\n "+e._s(e.$t("login.heading.totp"))+"\n ")]),e._v(" "),i("div",{staticClass:"panel-body"},[i("form",{staticClass:"login-form",on:{submit:function(t){return t.preventDefault(),e.submit(t)}}},[i("div",{staticClass:"form-group"},[i("label",{attrs:{for:"code"}},[e._v("\n "+e._s(e.$t("login.authentication_code"))+"\n ")]),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.code,expression:"code"}],staticClass:"form-control",attrs:{id:"code"},domProps:{value:e.code},on:{input:function(t){t.target.composing||(e.code=t.target.value)}}})]),e._v(" "),i("div",{staticClass:"form-group"},[i("div",{staticClass:"login-bottom"},[i("div",[i("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.requireRecovery(t)}}},[e._v("\n "+e._s(e.$t("login.enter_recovery_code"))+"\n ")]),e._v(" "),i("br"),e._v(" "),i("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.abortMFA(t)}}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")])]),e._v(" "),i("button",{staticClass:"btn btn-default",attrs:{type:"submit"}},[e._v("\n "+e._s(e.$t("general.verify"))+"\n ")])])])])]),e._v(" "),e.error?i("div",{staticClass:"form-group"},[i("div",{staticClass:"alert error"},[e._v("\n "+e._s(e.error)+"\n "),i("i",{staticClass:"button-icon icon-cancel",on:{click:e.clearError}})])]):e._e()])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return this.collapsed&&this.floating?i("div",{staticClass:"chat-panel"},[i("div",{staticClass:"panel panel-default"},[i("div",{staticClass:"panel-heading stub timeline-heading chat-heading",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.togglePanel(t)}}},[i("div",{staticClass:"title"},[i("i",{staticClass:"icon-comment-empty"}),e._v("\n "+e._s(e.$t("chat.title"))+"\n ")])])])]):i("div",{staticClass:"chat-panel"},[i("div",{staticClass:"panel panel-default"},[i("div",{staticClass:"panel-heading timeline-heading",class:{"chat-heading":e.floating},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.togglePanel(t)}}},[i("div",{staticClass:"title"},[i("span",[e._v(e._s(e.$t("chat.title")))]),e._v(" "),e.floating?i("i",{staticClass:"icon-cancel"}):e._e()])]),e._v(" "),i("div",{directives:[{name:"chat-scroll",rawName:"v-chat-scroll"}],staticClass:"chat-window"},e._l(e.messages,function(t){return i("div",{key:t.id,staticClass:"chat-message"},[i("span",{staticClass:"chat-avatar"},[i("img",{attrs:{src:t.author.avatar}})]),e._v(" "),i("div",{staticClass:"chat-content"},[i("router-link",{staticClass:"chat-name",attrs:{to:e.userProfileLink(t.author)}},[e._v("\n "+e._s(t.author.username)+"\n ")]),e._v(" "),i("br"),e._v(" "),i("span",{staticClass:"chat-text"},[e._v("\n "+e._s(t.text)+"\n ")])],1)])}),0),e._v(" "),i("div",{staticClass:"chat-input"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.currentMessage,expression:"currentMessage"}],staticClass:"chat-input-textarea",attrs:{rows:"1"},domProps:{value:e.currentMessage},on:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.submit(e.currentMessage)},input:function(t){t.target.composing||(e.currentMessage=t.target.value)}}})])])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"panel panel-default"},[t("div",{staticClass:"panel-heading"},[this._v("\n "+this._s(this.$t("who_to_follow.who_to_follow"))+"\n ")]),this._v(" "),t("div",{staticClass:"panel-body"},this._l(this.users,function(e){return t("FollowCard",{key:e.id,staticClass:"list-item",attrs:{user:e}})}),1)])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this.$createElement,t=this._self._c||e;return this.show?t("div",{staticClass:"instance-specific-panel"},[t("div",{staticClass:"panel panel-default"},[t("div",{staticClass:"panel-body"},[t("div",{domProps:{innerHTML:this._s(this.instanceSpecificPanelContent)}})])])]):this._e()},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"features-panel"},[i("div",{staticClass:"panel panel-default base01-background"},[i("div",{staticClass:"panel-heading timeline-heading base02-background base04"},[i("div",{staticClass:"title"},[e._v("\n "+e._s(e.$t("features_panel.title"))+"\n ")])]),e._v(" "),i("div",{staticClass:"panel-body features-panel"},[i("ul",[e.chat?i("li",[e._v(e._s(e.$t("features_panel.chat")))]):e._e(),e._v(" "),e.gopher?i("li",[e._v(e._s(e.$t("features_panel.gopher")))]):e._e(),e._v(" "),e.whoToFollow?i("li",[e._v(e._s(e.$t("features_panel.who_to_follow")))]):e._e(),e._v(" "),e.mediaProxy?i("li",[e._v(e._s(e.$t("features_panel.media_proxy")))]):e._e(),e._v(" "),i("li",[e._v(e._s(e.$t("features_panel.scope_options")))]),e._v(" "),i("li",[e._v(e._s(e.$t("features_panel.text_limit"))+" = "+e._s(e.textlimit))])])])])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("div",{staticClass:"panel panel-default"},[t("div",{staticClass:"panel-body"},[t("div",{staticClass:"tos-content",domProps:{innerHTML:this._s(this.content)}})])])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"sidebar"},[t("instance-specific-panel"),this._v(" "),this.showFeaturesPanel?t("features-panel"):this._e(),this._v(" "),t("terms-of-service-panel")],1)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"user-panel"},[this.signedIn?t("div",{key:"user-panel",staticClass:"panel panel-default signed-in"},[t("UserCard",{attrs:{user:this.user,hideBio:!0,rounded:"top"}}),this._v(" "),t("div",{staticClass:"panel-footer"},[this.user?t("post-status-form"):this._e()],1)],1):t("auth-form",{key:"user-panel"})],1)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"nav-panel"},[i("div",{staticClass:"panel panel-default"},[i("ul",[e.currentUser?i("li",[i("router-link",{attrs:{to:{name:"friends"}}},[e._v("\n "+e._s(e.$t("nav.timeline"))+"\n ")])],1):e._e(),e._v(" "),e.currentUser?i("li",[i("router-link",{attrs:{to:{name:"interactions",params:{username:e.currentUser.screen_name}}}},[e._v("\n "+e._s(e.$t("nav.interactions"))+"\n ")])],1):e._e(),e._v(" "),e.currentUser?i("li",[i("router-link",{attrs:{to:{name:"dms",params:{username:e.currentUser.screen_name}}}},[e._v("\n "+e._s(e.$t("nav.dms"))+"\n ")])],1):e._e(),e._v(" "),e.currentUser&&e.currentUser.locked?i("li",[i("router-link",{attrs:{to:{name:"friend-requests"}}},[e._v("\n "+e._s(e.$t("nav.friend_requests"))+"\n "),e.followRequestCount>0?i("span",{staticClass:"badge follow-request-count"},[e._v("\n "+e._s(e.followRequestCount)+"\n ")]):e._e()])],1):e._e(),e._v(" "),i("li",[i("router-link",{attrs:{to:{name:"public-timeline"}}},[e._v("\n "+e._s(e.$t("nav.public_tl"))+"\n ")])],1),e._v(" "),i("li",[i("router-link",{attrs:{to:{name:"public-external-timeline"}}},[e._v("\n "+e._s(e.$t("nav.twkn"))+"\n ")])],1)])])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"user-finder-container"},[e.loading?i("i",{staticClass:"icon-spin4 user-finder-icon animate-spin-slow"}):e._e(),e._v(" "),e.hidden?i("a",{attrs:{href:"#",title:e.$t("finder.find_user")}},[i("i",{staticClass:"icon-user-plus user-finder-icon",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.toggleHidden(t)}}})]):[i("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],ref:"userSearchInput",staticClass:"user-finder-input",attrs:{placeholder:e.$t("finder.find_user"),id:"user-finder-input",type:"text"},domProps:{value:e.username},on:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.findUser(e.username)},input:function(t){t.target.composing||(e.username=t.target.value)}}}),e._v(" "),i("button",{staticClass:"btn search-button",on:{click:function(t){e.findUser(e.username)}}},[i("i",{staticClass:"icon-search"})]),e._v(" "),i("i",{staticClass:"button-icon icon-cancel user-finder-icon",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.toggleHidden(t)}}})]],2)])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"who-to-follow-panel"},[i("div",{staticClass:"panel panel-default base01-background"},[i("div",{staticClass:"panel-heading timeline-heading base02-background base04"},[i("div",{staticClass:"title"},[e._v("\n "+e._s(e.$t("who_to_follow.who_to_follow"))+"\n ")])]),e._v(" "),i("div",{staticClass:"who-to-follow"},[e._l(e.usersToFollow,function(t){return i("p",{staticClass:"who-to-follow-items"},[i("img",{attrs:{src:t.img}}),e._v(" "),i("router-link",{attrs:{to:e.userProfileLink(t.id,t.name)}},[e._v("\n "+e._s(t.name)+"\n ")]),i("br")],1)}),e._v(" "),i("p",{staticClass:"who-to-follow-more"},[i("router-link",{attrs:{to:{name:"who-to-follow"}}},[e._v("\n "+e._s(e.$t("who_to_follow.more"))+"\n ")])],1)],2)])])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.showing?i("div",{staticClass:"modal-view media-modal-view",on:{click:function(t){return t.preventDefault(),e.hide(t)}}},["image"===e.type?i("img",{staticClass:"modal-image",attrs:{src:e.currentMedia.url}}):e._e(),e._v(" "),"video"===e.type?i("VideoAttachment",{staticClass:"modal-image",attrs:{attachment:e.currentMedia,controls:!0},nativeOn:{click:function(e){e.stopPropagation()}}}):e._e(),e._v(" "),e.canNavigate?i("button",{staticClass:"modal-view-button-arrow modal-view-button-arrow--prev",attrs:{title:e.$t("media_modal.previous")},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.goPrev(t)}}},[i("i",{staticClass:"icon-left-open arrow-icon"})]):e._e(),e._v(" "),e.canNavigate?i("button",{staticClass:"modal-view-button-arrow modal-view-button-arrow--next",attrs:{title:e.$t("media_modal.next")},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.goNext(t)}}},[i("i",{staticClass:"icon-right-open arrow-icon"})]):e._e()],1):e._e()},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"side-drawer-container",class:{"side-drawer-container-closed":e.closed,"side-drawer-container-open":!e.closed}},[i("div",{staticClass:"side-drawer-darken",class:{"side-drawer-darken-closed":e.closed}}),e._v(" "),i("div",{staticClass:"side-drawer",class:{"side-drawer-closed":e.closed},on:{touchstart:e.touchStart,touchmove:e.touchMove}},[i("div",{staticClass:"side-drawer-heading",on:{click:e.toggleDrawer}},[e.currentUser?i("UserCard",{attrs:{user:e.currentUser,hideBio:!0}}):i("div",{staticClass:"side-drawer-logo-wrapper"},[i("img",{attrs:{src:e.logo}}),e._v(" "),i("span",[e._v(e._s(e.sitename))])])],1),e._v(" "),i("ul",[e.currentUser?e._e():i("li",{on:{click:e.toggleDrawer}},[i("router-link",{attrs:{to:{name:"login"}}},[e._v("\n "+e._s(e.$t("login.login"))+"\n ")])],1),e._v(" "),e.currentUser?i("li",{on:{click:e.toggleDrawer}},[i("router-link",{attrs:{to:{name:"dms",params:{username:e.currentUser.screen_name}}}},[e._v("\n "+e._s(e.$t("nav.dms"))+"\n ")])],1):e._e(),e._v(" "),e.currentUser?i("li",{on:{click:e.toggleDrawer}},[i("router-link",{attrs:{to:{name:"interactions",params:{username:e.currentUser.screen_name}}}},[e._v("\n "+e._s(e.$t("nav.interactions"))+"\n ")])],1):e._e()]),e._v(" "),i("ul",[e.currentUser?i("li",{on:{click:e.toggleDrawer}},[i("router-link",{attrs:{to:{name:"friends"}}},[e._v("\n "+e._s(e.$t("nav.timeline"))+"\n ")])],1):e._e(),e._v(" "),e.currentUser&&e.currentUser.locked?i("li",{on:{click:e.toggleDrawer}},[i("router-link",{attrs:{to:"/friend-requests"}},[e._v("\n "+e._s(e.$t("nav.friend_requests"))+"\n "),e.followRequestCount>0?i("span",{staticClass:"badge follow-request-count"},[e._v("\n "+e._s(e.followRequestCount)+"\n ")]):e._e()])],1):e._e(),e._v(" "),i("li",{on:{click:e.toggleDrawer}},[i("router-link",{attrs:{to:"/main/public"}},[e._v("\n "+e._s(e.$t("nav.public_tl"))+"\n ")])],1),e._v(" "),i("li",{on:{click:e.toggleDrawer}},[i("router-link",{attrs:{to:"/main/all"}},[e._v("\n "+e._s(e.$t("nav.twkn"))+"\n ")])],1),e._v(" "),e.currentUser&&e.chat?i("li",{on:{click:e.toggleDrawer}},[i("router-link",{attrs:{to:{name:"chat"}}},[e._v("\n "+e._s(e.$t("nav.chat"))+"\n ")])],1):e._e()]),e._v(" "),i("ul",[i("li",{on:{click:e.toggleDrawer}},[i("router-link",{attrs:{to:{name:"user-search"}}},[e._v("\n "+e._s(e.$t("nav.user_search"))+"\n ")])],1),e._v(" "),e.currentUser&&e.suggestionsEnabled?i("li",{on:{click:e.toggleDrawer}},[i("router-link",{attrs:{to:{name:"who-to-follow"}}},[e._v("\n "+e._s(e.$t("nav.who_to_follow"))+"\n ")])],1):e._e(),e._v(" "),i("li",{on:{click:e.toggleDrawer}},[i("router-link",{attrs:{to:{name:"settings"}}},[e._v("\n "+e._s(e.$t("settings.settings"))+"\n ")])],1),e._v(" "),i("li",{on:{click:e.toggleDrawer}},[i("router-link",{attrs:{to:{name:"about"}}},[e._v("\n "+e._s(e.$t("nav.about"))+"\n ")])],1),e._v(" "),e.currentUser?i("li",{on:{click:e.toggleDrawer}},[i("a",{attrs:{href:"#"},on:{click:e.doLogout}},[e._v("\n "+e._s(e.$t("login.logout"))+"\n ")])]):e._e()])]),e._v(" "),i("div",{staticClass:"side-drawer-click-outside",class:{"side-drawer-click-outside-closed":e.closed},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.toggleDrawer(t)}}})])},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.currentUser?i("div",[i("div",{directives:[{name:"show",rawName:"v-show",value:e.postFormOpen,expression:"postFormOpen"}],staticClass:"post-form-modal-view modal-view",on:{click:e.closePostForm}},[i("div",{staticClass:"post-form-modal-panel panel",on:{click:function(e){e.stopPropagation()}}},[i("div",{staticClass:"panel-heading"},[e._v(e._s(e.$t("post_status.new_status")))]),e._v(" "),i("PostStatusForm",{staticClass:"panel-body",on:{posted:e.closePostForm}})],1)]),e._v(" "),i("button",{staticClass:"new-status-button",class:{hidden:e.isHidden},on:{click:e.openPostForm}},[i("i",{staticClass:"icon-edit"})])]):e._e()},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("nav",{staticClass:"nav-bar container",attrs:{id:"nav"}},[i("div",{staticClass:"mobile-inner-nav",on:{click:function(t){e.scrollToTop()}}},[i("div",{staticClass:"item"},[i("a",{staticClass:"mobile-nav-button",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.toggleMobileSidebar()}}},[i("i",{staticClass:"button-icon icon-menu"})]),e._v(" "),i("router-link",{staticClass:"site-name",attrs:{to:{name:"root"},"active-class":"home"}},[e._v(e._s(e.sitename))])],1),e._v(" "),i("div",{staticClass:"item right"},[e.currentUser?i("a",{staticClass:"mobile-nav-button",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.openMobileNotifications()}}},[i("i",{staticClass:"button-icon icon-bell-alt"}),e._v(" "),e.unseenNotificationsCount?i("div",{staticClass:"alert-dot"}):e._e()]):e._e()])])]),e._v(" "),e.currentUser?i("div",{staticClass:"mobile-notifications-drawer",class:{closed:!e.notificationsOpen},on:{touchstart:function(t){return t.stopPropagation(),e.notificationsTouchStart(t)},touchmove:function(t){return t.stopPropagation(),e.notificationsTouchMove(t)}}},[i("div",{staticClass:"mobile-notifications-header"},[i("span",{staticClass:"title"},[e._v(e._s(e.$t("notifications.notifications")))]),e._v(" "),i("a",{staticClass:"mobile-nav-button",on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.closeMobileNotifications()}}},[i("i",{staticClass:"button-icon icon-cancel"})])]),e._v(" "),i("div",{staticClass:"mobile-notifications",on:{scroll:e.onScroll}},[i("Notifications",{ref:"notifications",attrs:{noHeading:!0}})],1)]):e._e(),e._v(" "),i("SideDrawer",{ref:"sideDrawer",attrs:{logout:e.logout}}),e._v(" "),i("MobilePostStatusModal")],1)},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.isOpen?i("div",{staticClass:"modal-view",on:{click:e.closeModal}},[i("div",{staticClass:"user-reporting-panel panel",on:{click:function(e){e.stopPropagation()}}},[i("div",{staticClass:"panel-heading"},[i("div",{staticClass:"title"},[e._v(e._s(e.$t("user_reporting.title",[e.user.screen_name])))])]),e._v(" "),i("div",{staticClass:"panel-body"},[i("div",{staticClass:"user-reporting-panel-left"},[i("div",[i("p",[e._v(e._s(e.$t("user_reporting.add_comment_description")))]),e._v(" "),i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.comment,expression:"comment"}],staticClass:"form-control",attrs:{placeholder:e.$t("user_reporting.additional_comments"),rows:"1"},domProps:{value:e.comment},on:{input:[function(t){t.target.composing||(e.comment=t.target.value)},e.resize]}})]),e._v(" "),e.user.is_local?e._e():i("div",[i("p",[e._v(e._s(e.$t("user_reporting.forward_description")))]),e._v(" "),i("Checkbox",{model:{value:e.forward,callback:function(t){e.forward=t},expression:"forward"}},[e._v(e._s(e.$t("user_reporting.forward_to",[e.remoteInstance])))])],1),e._v(" "),i("div",[i("button",{staticClass:"btn btn-default",attrs:{disabled:e.processing},on:{click:e.reportUser}},[e._v(e._s(e.$t("user_reporting.submit")))]),e._v(" "),e.error?i("div",{staticClass:"alert error"},[e._v("\n "+e._s(e.$t("user_reporting.generic_error"))+"\n ")]):e._e()])]),e._v(" "),i("div",{staticClass:"user-reporting-panel-right"},[i("List",{attrs:{items:e.statuses},scopedSlots:e._u([{key:"item",fn:function(t){var a=t.item;return[i("div",{staticClass:"status-fadein user-reporting-panel-sitem"},[i("Status",{attrs:{inConversation:!1,focused:!1,statusoid:a}}),e._v(" "),i("Checkbox",{attrs:{checked:e.isChecked(a.id)},on:{change:function(t){return e.toggleStatus(t,a.id)}}})],1)]}}])})],1)])])]):e._e()},o=[]},function(e,t,i){"use strict";i.d(t,"a",function(){return a}),i.d(t,"b",function(){return o});var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{style:e.bgAppStyle,attrs:{id:"app"}},[i("div",{staticClass:"app-bg-wrapper",style:e.bgStyle}),e._v(" "),e.isMobileLayout?i("MobileNav"):i("nav",{staticClass:"nav-bar container",attrs:{id:"nav"},on:{click:function(t){e.scrollToTop()}}},[i("div",{staticClass:"logo",style:e.logoBgStyle},[i("div",{staticClass:"mask",style:e.logoMaskStyle}),e._v(" "),i("img",{style:e.logoStyle,attrs:{src:e.logo}})]),e._v(" "),i("div",{staticClass:"inner-nav"},[i("div",{staticClass:"item"},[i("router-link",{staticClass:"site-name",attrs:{to:{name:"root"},"active-class":"home"}},[e._v(e._s(e.sitename))])],1),e._v(" "),i("div",{staticClass:"item right"},[i("user-finder",{staticClass:"button-icon nav-icon mobile-hidden",on:{toggled:e.onFinderToggled}}),e._v(" "),i("router-link",{staticClass:"mobile-hidden",attrs:{to:{name:"settings"}}},[i("i",{staticClass:"button-icon icon-cog nav-icon",attrs:{title:e.$t("nav.preferences")}})]),e._v(" "),e.currentUser?i("a",{staticClass:"mobile-hidden",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.logout(t)}}},[i("i",{staticClass:"button-icon icon-logout nav-icon",attrs:{title:e.$t("login.logout")}})]):e._e()],1)])]),e._v(" "),i("div",{staticClass:"container",attrs:{id:"content"}},[i("div",{staticClass:"sidebar-flexer mobile-hidden"},[i("div",{staticClass:"sidebar-bounds"},[i("div",{staticClass:"sidebar-scroller"},[i("div",{staticClass:"sidebar"},[i("user-panel"),e._v(" "),e.isMobileLayout?e._e():i("div",[i("nav-panel"),e._v(" "),e.showInstanceSpecificPanel?i("instance-specific-panel"):e._e(),e._v(" "),!e.currentUser&&e.showFeaturesPanel?i("features-panel"):e._e(),e._v(" "),e.currentUser&&e.suggestionsEnabled?i("who-to-follow-panel"):e._e(),e._v(" "),e.currentUser?i("notifications"):e._e()],1)],1)])])]),e._v(" "),i("div",{staticClass:"main"},[e.currentUser?e._e():i("div",{staticClass:"login-hint panel panel-default"},[i("router-link",{staticClass:"panel-body",attrs:{to:{name:"login"}}},[e._v("\n "+e._s(e.$t("login.hint"))+"\n ")])],1),e._v(" "),i("transition",{attrs:{name:"fade"}},[i("router-view")],1)],1),e._v(" "),i("media-modal")],1),e._v(" "),e.currentUser&&e.chat?i("chat-panel",{staticClass:"floating-chat mobile-hidden",attrs:{floating:!0}}):e._e(),e._v(" "),i("UserReportingModal"),e._v(" "),i("portal-target",{attrs:{name:"modal"}})],1)},o=[]},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=t.parseUser=function(e){var t={},i=e.hasOwnProperty("acct"),a=i&&!e.hasOwnProperty("avatar");if(t.id=String(e.id),i){if(t.screen_name=e.acct,t.statusnet_profile_url=e.url,a)return t;if(t.name=e.display_name,t.name_html=n(e.display_name,e.emojis),t.description=e.note,t.description_html=n(e.note,e.emojis),t.profile_image_url=e.avatar,t.profile_image_url_original=e.avatar,t.cover_photo=e.header,t.friends_count=e.following_count,t.bot=e.bot,e.pleroma){var o=e.pleroma.relationship;t.background_image=e.pleroma.background_image,t.token=e.pleroma.chat_token,o&&(t.follows_you=o.followed_by,t.following=o.following,t.statusnet_blocking=o.blocking,t.muted=o.muting),t.rights={moderator:e.pleroma.is_moderator,admin:e.pleroma.is_admin},t.rights.admin?t.role="admin":t.rights.moderator?t.role="moderator":t.role="member"}e.source&&(t.description=e.source.note,t.default_scope=e.source.privacy,e.source.pleroma&&(t.no_rich_text=e.source.pleroma.no_rich_text,t.show_role=e.source.pleroma.show_role)),t.is_local=!t.screen_name.includes("@")}else t.screen_name=e.screen_name,t.name=e.name,t.name_html=e.name_html,t.description=e.description,t.description_html=e.description_html,t.profile_image_url=e.profile_image_url,t.profile_image_url_original=e.profile_image_url_original,t.cover_photo=e.cover_photo,t.friends_count=e.friends_count,t.statusnet_profile_url=e.statusnet_profile_url,t.statusnet_blocking=e.statusnet_blocking,t.is_local=e.is_local,t.role=e.role,t.show_role=e.show_role,t.follows_you=e.follows_you,t.muted=e.muted,e.rights&&(t.rights={moderator:e.rights.delete_others_notice,admin:e.rights.admin}),t.no_rich_text=e.no_rich_text,t.default_scope=e.default_scope,t.hide_follows=e.hide_follows,t.hide_followers=e.hide_followers,t.background_image=e.background_image,t.following=e.following,t.token=e.token;return t.created_at=new Date(e.created_at),t.locked=e.locked,t.followers_count=e.followers_count,t.statuses_count=e.statuses_count,t.friendIds=[],t.followerIds=[],t.pinnedStatuseIds=[],e.pleroma&&(t.follow_request_count=e.pleroma.follow_request_count,t.tags=e.pleroma.tags,t.deactivated=e.pleroma.deactivated,t.notification_settings=e.pleroma.notification_settings),t.tags=t.tags||[],t.rights=t.rights||{},t.notification_settings=t.notification_settings||{},t},o=t.parseAttachment=function(e){var t={};return!e.hasOwnProperty("oembed")?(t.mimetype=e.pleroma?e.pleroma.mime_type:e.type,t.meta=e.meta,t.id=e.id):t.mimetype=e.mimetype,t.url=e.url,t.description=e.description,t},n=t.addEmojis=function(e,t){return t.reduce(function(e,t){return e.replace(new RegExp(":"+t.shortcode+":","g"),""+t.shortcode+"")},e)},s=t.parseStatus=function e(t){var i,s={},l=t.hasOwnProperty("account");if(l){if(s.favorited=t.favourited,s.fave_num=t.favourites_count,s.repeated=t.reblogged,s.repeat_num=t.reblogs_count,s.type=t.reblog?"retweet":"status",s.nsfw=t.sensitive,s.statusnet_html=n(t.content,t.emojis),s.tags=t.tags,t.pleroma){var c=t.pleroma;s.text=c.content?t.pleroma.content["text/plain"]:t.content,s.summary=c.spoiler_text?t.pleroma.spoiler_text["text/plain"]:t.spoiler_text,s.statusnet_conversation_id=t.pleroma.conversation_id,s.is_local=c.local,s.in_reply_to_screen_name=t.pleroma.in_reply_to_account_acct}else s.text=t.content,s.summary=t.spoiler_text;s.in_reply_to_status_id=t.in_reply_to_id,s.in_reply_to_user_id=t.in_reply_to_account_id,s.replies_count=t.replies_count,"retweet"===s.type&&(s.retweeted_status=e(t.reblog)),s.summary_html=n(t.spoiler_text,t.emojis),s.external_url=t.url,s.poll=t.poll,s.pinned=t.pinned}else s.favorited=t.favorited,s.fave_num=t.fave_num,s.repeated=t.repeated,s.repeat_num=t.repeat_num,s.type=(i=t).is_post_verb?"status":i.retweeted_status?"retweet":"string"==typeof i.uri&&i.uri.match(/(fave|objectType=Favourite)/)||"string"==typeof i.text&&i.text.match(/favorited/)?"favorite":i.text.match(/deleted notice {{tag/)||i.qvitter_delete_notice?"deletion":i.text.match(/started following/)||"follow"===i.activity_type?"follow":"unknown",void 0===t.nsfw?(s.nsfw=r(t),t.retweeted_status&&(s.nsfw=t.retweeted_status.nsfw)):s.nsfw=t.nsfw,s.statusnet_html=t.statusnet_html,s.text=t.text,s.in_reply_to_status_id=t.in_reply_to_status_id,s.in_reply_to_user_id=t.in_reply_to_user_id,s.in_reply_to_screen_name=t.in_reply_to_screen_name,s.statusnet_conversation_id=t.statusnet_conversation_id,"retweet"===s.type&&(s.retweeted_status=e(t.retweeted_status)),s.summary=t.summary,s.summary_html=t.summary_html,s.external_url=t.external_url,s.is_local=t.is_local;s.id=String(t.id),s.visibility=t.visibility,s.card=t.card,s.created_at=new Date(t.created_at),s.in_reply_to_status_id=s.in_reply_to_status_id?String(s.in_reply_to_status_id):null,s.in_reply_to_user_id=s.in_reply_to_user_id?String(s.in_reply_to_user_id):null,s.user=a(l?t.account:t.user),s.attentions=((l?t.mentions:t.attentions)||[]).map(a),s.attachments=((l?t.media_attachments:t.attachments)||[]).map(o);var u=l?t.reblog:t.retweeted_status;return u&&(s.retweeted_status=e(u)),s.favoritedBy=[],s.rebloggedBy=[],s},r=(t.parseNotification=function(e){var t={};if(!e.hasOwnProperty("ntype"))t.type={favourite:"like",reblog:"repeat"}[e.type]||e.type,t.seen=e.pleroma.is_seen,t.status="follow"===t.type?null:s(e.status),t.action=t.status,t.from_profile=a(e.account);else{var i=s(e.notice);t.type=e.ntype,t.seen=Boolean(e.is_seen),t.status="like"===t.type?s(e.notice.favorited_status):i,t.action=i,t.from_profile=a(e.from_profile)}return t.created_at=new Date(e.created_at),t.id=parseInt(e.id),t},function(e){return(e.tags||[]).includes("nsfw")||!!(e.text||"").match(/#nsfw/i)})},,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(i(607)),o=n(i(29));function n(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.store,i=e.credentials,n=e.timeline,s=void 0===n?"friends":n,r=e.older,l=void 0!==r&&r,c=e.showImmediately,u=void 0!==c&&c,d=e.userId,p=void 0!==d&&d,f=e.tag,m=void 0!==f&&f,h=e.until,_={timeline:s,credentials:i},v=t.rootState||t.state,g=v.statuses.timelines[(0,a.default)(s)],b=void 0===v.config.hideMutedPosts?v.instance.hideMutedPosts:v.config.hideMutedPosts;l?_.until=h||g.minId:_.since=g.maxId,_.userId=p,_.tag=m,_.withMuted=!b;var w=g.statuses.length;return o.default.fetchTimeline(_).then(function(e){return!l&&e.length>=20&&!g.loading&&w>0&&t.dispatch("queueFlush",{timeline:s,id:g.maxId}),function(e){var t=e.store,i=e.statuses,o=e.timeline,n=e.showImmediately,s=e.userId,r=(0,a.default)(o);t.dispatch("setError",{value:!1}),t.dispatch("addNewStatuses",{timeline:r,userId:s,statuses:i,showImmediately:n})}({store:t,statuses:e,timeline:s,showImmediately:u,userId:p}),e},function(){return t.dispatch("setError",{value:!0})})},r={fetchAndUpdate:s,startFetching:function(e){var t=e.timeline,i=void 0===t?"friends":t,o=e.credentials,n=e.store,r=e.userId,l=void 0!==r&&r,c=e.tag,u=void 0!==c&&c,d=(n.rootState||n.state).statuses.timelines[(0,a.default)(i)],p=0===d.visibleStatuses.length;d.userId=l,s({timeline:i,credentials:o,store:n,showImmediately:p,userId:l,tag:u});return setInterval(function(){return s({timeline:i,credentials:o,store:n,userId:l,tag:u})},1e4)}};t.default=r},,,,,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(i(24)),o=n(i(29));function n(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.store,i=e.credentials,o=e.older,n=void 0!==o&&o,s={credentials:i},l=(t.rootState||t.state).statuses.notifications;if(s.timeline="notifications",n)return l.minId!==Number.POSITIVE_INFINITY&&(s.until=l.minId),r({store:t,args:s,older:n});l.maxId!==Number.POSITIVE_INFINITY&&(s.since=l.maxId);var c=r({store:t,args:s,older:n}),u=l.data.filter(function(e){return!e.seen}).map(function(e){return e.id});return u.length&&(s.since=Math.min.apply(Math,(0,a.default)(u)),r({store:t,args:s,older:n})),c},r=function(e){var t=e.store,i=e.args,a=e.older;return o.default.fetchTimeline(i).then(function(e){return function(e){var t=e.store,i=e.notifications,a=e.older;t.dispatch("setNotificationsError",{value:!1}),t.dispatch("addNewNotifications",{notifications:i,older:a})}({store:t,notifications:e,older:a}),e},function(){return t.dispatch("setNotificationsError",{value:!0})}).catch(function(){return t.dispatch("setNotificationsError",{value:!0})})},l={fetchAndUpdate:s,startFetching:function(e){var t=e.credentials,i=e.store;s({credentials:t,store:i});return setTimeout(function(){return i.dispatch("setNotificationsSilence",!1)},1e4),setInterval(function(){return s({credentials:t,store:i})},1e4)}};t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(623),n=(a=o)&&a.__esModule?a:{default:a},s=i(384);var r={search:function(e){var t=e.query,i=e.store;return n.default.request({store:i,url:"/api/v1/accounts/search",params:{q:t,resolve:!0}}).then(function(e){return e.json()}).then(function(e){return e.map(s.parseUser)})}};t.default=r},,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={ar:i(656),ca:i(657),cs:i(658),de:i(659),en:i(660),eo:i(661),es:i(662),et:i(663),fi:i(664),fr:i(665),ga:i(666),he:i(667),hu:i(668),it:i(669),ja:i(670),ja_pedantic:i(671),ko:i(672),nb:i(673),nl:i(674),oc:i(675),pl:i(676),pt:i(677),ro:i(678),ru:i(679),zh:i(680)};t.default=a},,,,function(e,t,i){"use strict";i.r(t);var a=i(107),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(240),r=i(0);var l=function(e){i(694)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";i.r(t);var a=i(109),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(239),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=t.SECOND=1e3,o=t.MINUTE=60*a,n=t.HOUR=60*o,s=t.DAY=24*n,r=t.WEEK=7*s,l=t.MONTH=30*s,c=t.YEAR=365.25*s,u=t.relativeTime=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;"string"==typeof e&&(e=Date.parse(e));var i=Date.now()>e?Math.floor:Math.ceil,u=Math.abs(Date.now()-e),d={num:i(u/c),key:"time.years"};return u1&&void 0!==arguments[1]?arguments[1]:1,i=u(e,t);return i.key+="_short",i}},,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(i(22)),o=n(i(29));function n(e){return e&&e.__esModule?e:{default:e}}var s={postStatus:function(e){var t=e.store,i=e.status,n=e.spoilerText,s=e.visibility,r=e.sensitive,l=e.poll,c=e.media,u=void 0===c?[]:c,d=e.inReplyToStatusId,p=void 0===d?void 0:d,f=e.contentType,m=void 0===f?"text/plain":f,h=(0,a.default)(u,"id");return o.default.postStatus({credentials:t.state.users.currentUser.credentials,status:i,spoilerText:n,visibility:s,sensitive:r,mediaIds:h,inReplyToStatusId:p,contentType:m,poll:l}).then(function(e){return e.error||t.dispatch("addNewStatuses",{statuses:[e],timeline:"friends",showImmediately:!0,noIdUpdate:!0}),e}).catch(function(e){return{error:e.message}})},uploadMedia:function(e){var t=e.store,i=e.formData,a=t.state.users.currentUser.credentials;return o.default.uploadMedia({credentials:a,formData:i})}};t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={fileSizeFormat:function(e){var t,i=["B","KiB","MiB","GiB","TiB"];return e<1?e+" "+i[0]:(t=Math.min(Math.floor(Math.log(e)/Math.log(1024)),i.length-1),{num:e=1*(e/Math.pow(1024,t)).toFixed(2),unit:i[t]})}};t.default=a},function(e,t,i){"use strict";i.r(t);var a=i(118),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(248),r=i(0);var l=function(e){i(719)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";i.r(t);var a=i(119),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(249),r=i(0);var l=function(e){i(721)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var i=t[0];return":"===i&&e.emoji?a(e.emoji)(t):"@"===i&&e.users?o(e.users)(t):[]}};var a=t.suggestEmoji=function(e){return function(t){var i=t.toLowerCase().substr(1);return e.filter(function(e){return e.displayText.toLowerCase().startsWith(i)}).sort(function(e,t){var i=0,a=0;return i+=e.imageUrl?10:0,(a+=t.imageUrl?10:0)-i+(e.displayText>t.displayText?1:-1)})}},o=t.suggestUsers=function(e){return function(t){var i=t.toLowerCase().substr(1);return e.filter(function(e){return e.screen_name.toLowerCase().startsWith(i)||e.name.toLowerCase().startsWith(i)}).slice(0,20).sort(function(e,t){var a=0,o=0;return a+=e.screen_name.toLowerCase().startsWith(i)?2:0,o+=t.screen_name.toLowerCase().startsWith(i)?2:0,a+=e.name.toLowerCase().startsWith(i)?1:0,10*((o+=t.name.toLowerCase().startsWith(i)?1:0)-a)+(e.name>t.name?1:-1)+(e.screen_name>t.screen_name?1:-1)}).map(function(e){var t=e.screen_name;return{displayText:t,detailText:e.name,imageUrl:e.profile_image_url_original,replacement:"@"+t+" "}})}}},function(e,t,i){"use strict";i.r(t);var a=i(123),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(253),r=i(0);var l=function(e){i(733)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";i.r(t);var a=i(124),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(255),r=i(0);var l=function(e){i(735)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestUnfollow=t.requestFollow=void 0;var a=n(i(14)),o=n(i(13));function n(e){return e&&e.__esModule?e:{default:e}}t.requestFollow=function(e,t){return new o.default(function(i,n){t.state.api.backendInteractor.followUser(e.id).then(function(n){return t.commit("updateUserRelationship",[n]),n.locked&&i({sent:!0}),n.following&&i({sent:!1}),function e(t,i,n){return new o.default(function(e,a){setTimeout(function(){n.state.api.backendInteractor.fetchUser({id:i.id}).then(function(e){return n.commit("addNewUsers",[e])}).then(function(){return e([i.following,t])}).catch(function(e){return a(e)})},500)}).then(function(t){var o=(0,a.default)(t,2),s=o[0],r=o[1];return!s&&r<=3?e(++r,i,n):s})}(1,e,t).then(function(e){i({sent:!1})})})})},t.requestUnfollow=function(e,t){return new o.default(function(i,a){t.state.api.backendInteractor.unfollowUser(e.id).then(function(e){t.commit("updateUserRelationship",[e]),i({updated:e})})})}},,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.highlightStyle=t.highlightClass=void 0;var a=i(63);t.highlightClass=function(e){return"USER____"+e.screen_name.replace(/\./g,"_").replace(/@/g,"_AT_")},t.highlightStyle=function(e){if(void 0!==e){var t=e.color,i=e.type;if("string"==typeof t){var o=(0,a.hex2rgb)(t);if(null!=o){var n="rgb("+Math.floor(o.r)+", "+Math.floor(o.g)+", "+Math.floor(o.b)+")",s="rgba("+Math.floor(o.r)+", "+Math.floor(o.g)+", "+Math.floor(o.b)+", .1)",r="rgba("+Math.floor(o.r)+", "+Math.floor(o.g)+", "+Math.floor(o.b)+", .2)";return"striped"===i?{backgroundImage:["repeating-linear-gradient(135deg,",s+" ,",s+" 20px,",r+" 20px,",r+" 40px"].join(" "),backgroundPosition:"0 0"}:"solid"===i?{backgroundColor:r}:"side"===i?{backgroundImage:["linear-gradient(to right,",n+" ,",n+" 2px,","transparent 6px"].join(" "),backgroundPosition:"0 0"}:void 0}}}}},,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getComponentProps=t.getComponentOptions=void 0;var a,o=i(84),n=(a=o)&&a.__esModule?a:{default:a};var s=function(e){return(0,n.default)(e)?e.options:e};t.getComponentOptions=s,t.getComponentProps=function(e){return s(e).props}},function(e,t,i){"use strict";i.r(t);var a=i(143),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(283),r=i(0);var l=function(e){i(808)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";i.r(t);var a=i(144),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(276),r=i(0);var l=function(e){i(810)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";i.r(t);var a=i(146),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(278),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},,function(e,t,i){"use strict";i.r(t);var a=i(158),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(290),r=i(0);var l=function(e){i(873)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";i.r(t);var a=i(166),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(297),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=l(i(10)),o=l(i(903)),n=l(i(906)),s=l(i(907)),r=i(21);function l(e){return e&&e.__esModule?e:{default:e}}var c={name:"AuthForm",render:function(e){return e("component",{is:this.authForm})},computed:(0,a.default)({authForm:function(){return this.requiredTOTP?"MFATOTPForm":this.requiredRecovery?"MFARecoveryForm":"LoginForm"}},(0,r.mapGetters)("authFlow",["requiredTOTP","requiredRecovery"])),components:{MFARecoveryForm:n.default,MFATOTPForm:s.default,LoginForm:o.default}};t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={verifyOTPCode:function(e){var t=e.app,i=e.instance,a=e.mfaToken,o=e.code,n=i+"/oauth/mfa/challenge",s=new window.FormData;return s.append("client_id",t.client_id),s.append("client_secret",t.client_secret),s.append("mfa_token",a),s.append("code",o),s.append("challenge_type","totp"),window.fetch(n,{method:"POST",body:s}).then(function(e){return e.json()})},verifyRecoveryCode:function(e){var t=e.app,i=e.instance,a=e.mfaToken,o=e.code,n=i+"/oauth/mfa/challenge",s=new window.FormData;return s.append("client_id",t.client_id),s.append("client_secret",t.client_secret),s.append("mfa_token",a),s.append("code",o),s.append("challenge_type","recovery"),window.fetch(n,{method:"POST",body:s}).then(function(e){return e.json()})}};t.default=a},function(e,t,i){"use strict";i.r(t);var a=i(174),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(308),r=i(0);var l=function(e){i(908)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";i.r(t);var a=i(177),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(310),r=i(0);var l=function(e){i(916)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";i.r(t);var a=i(178),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(311),r=i(0);var l=function(e){i(918)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},,function(e,t,i){"use strict";i.r(t);var a=i(186),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(319),r=i(0);var l=function(e){i(946)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return[e.touches[0].screenX,e.touches[0].screenY]},o=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},n=function(e,t){return e[0]*t[0]+e[1]*t[1]},s=function(e,t){var i=n(e,t)/n(t,t);return[i*t[0],i*t[1]]},r={DIRECTION_LEFT:[-1,0],DIRECTION_RIGHT:[1,0],DIRECTION_UP:[0,-1],DIRECTION_DOWN:[0,1],swipeGesture:function(e,t){return{direction:e,onSwipe:t,threshold:arguments.length>2&&void 0!==arguments[2]?arguments[2]:30,perpendicularTolerance:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,_startPos:[0,0],_swiping:!1}},beginSwipe:function(e,t){t._startPos=a(e),t._swiping=!0},updateSwipe:function(e,t){if(t._swiping){var i,r,l=(i=t._startPos,[(r=a(e))[0]-i[0],r[1]-i[1]]);if(!(o(l)1&&void 0!==arguments[1]?arguments[1]:"";document.title=i+" "+t.instance.name},settingsSaved:function(e,t){var i=e.commit;e.dispatch;i("settingsSaved",{success:t.success,error:t.error})},setNotificationPermission:function(e,t){(0,e.commit)("setNotificationPermission",t)},setMobileLayout:function(e,t){(0,e.commit)("setMobileLayout",t)}}};t.default=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(9),o=i(80),n={state:{name:"Pleroma FE",registrationOpen:!0,safeDM:!0,textlimit:5e3,server:"http://localhost:4040/",theme:"pleroma-dark",background:"/static/aurora_borealis.jpg",logo:"/static/logo.png",logoMask:!0,logoMargin:".2em",redirectRootNoLogin:"/main/all",redirectRootLogin:"/main/friends",showInstanceSpecificPanel:!1,alwaysShowSubjectInput:!0,hideMutedPosts:!1,collapseMessageWithSubject:!1,hidePostStats:!1,hideUserStats:!1,hideFilteredStatuses:!1,disableChat:!1,scopeCopy:!0,subjectLineBehavior:"email",postContentType:"text/plain",nsfwCensorImage:void 0,vapidPublicKey:void 0,noAttachmentLinks:!1,showFeaturesPanel:!0,minimalScopesMode:!1,pleromaBackend:!0,emoji:[],customEmoji:[],restrictedNicknames:[],postFormats:[],mediaProxyAvailable:!1,chatAvailable:!1,gopherAvailable:!1,suggestionsEnabled:!1,suggestionsWeb:"",instanceSpecificPanelContent:"",tos:"",backendVersion:"",frontendVersion:"",pollsAvailable:!1,pollLimits:{max_options:4,max_option_chars:255,min_expiration:60,max_expiration:86400}},mutations:{setInstanceOption:function(e,t){var i=t.name,o=t.value;void 0!==o&&(0,a.set)(e,i,o)}},actions:{setInstanceOption:function(e,t){var i=e.commit,a=e.dispatch,o=t.name;switch(i("setInstanceOption",{name:o,value:t.value}),o){case"name":a("setPageTitle")}},setTheme:function(e,t){var i=e.commit;return i("setInstanceOption",{name:"theme",value:t}),(0,o.setPreset)(t,i)}}};t.default=n},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mutations=t.prepareStatus=t.defaultState=void 0;var a=x(i(13)),o=x(i(365)),n=x(i(14)),s=x(i(35)),r=x(i(93)),l=x(i(218)),c=x(i(561)),u=x(i(5)),d=x(i(71)),p=x(i(567)),f=x(i(222)),m=x(i(582)),h=x(i(584)),_=x(i(224)),v=x(i(225)),g=x(i(97)),b=x(i(587)),w=x(i(588)),y=i(9),k=x(i(29));function x(e){return e&&e.__esModule?e:{default:e}}var C=function(){return{statuses:[],statusesObject:{},faves:[],visibleStatuses:[],visibleStatusesObject:{},newStatusCount:0,maxId:0,minId:0,minVisibleId:0,loading:!1,followers:[],friends:[],userId:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,flushMarker:0}},S=function(){return{desktopNotificationSilence:!0,maxId:0,minId:Number.POSITIVE_INFINITY,data:[],idStore:{},loading:!1,error:!1}},P=t.defaultState=function(){return{allStatuses:[],allStatusesObject:{},conversationsObject:{},maxId:0,notifications:S(),favorites:new l.default,error:!1,timelines:{mentions:C(),public:C(),user:C(),favorites:C(),media:C(),publicAndExternal:C(),friends:C(),tag:C(),dms:C()}}},j=t.prepareStatus=function(e){return e.deleted=!1,e.attachments=e.attachments||[],e},$=function(e){return[e.config.notificationVisibility.likes&&"like",e.config.notificationVisibility.mentions&&"mention",e.config.notificationVisibility.repeats&&"repeat",e.config.notificationVisibility.follows&&"follow"].filter(function(e){return e})},L=function(e,t,i){var a=t[i.id];return a?((0,f.default)(a,(0,c.default)(i,function(e,t){return null===e||"user"===t})),a.attachments.splice(a.attachments.length),{item:a,new:!1}):(j(i),e.push(i),(0,y.set)(t,i.id,i),{item:i,new:!0})},z=function(e,t){var i=Number(e.id),a=Number(t.id),o=!(0,r.default)(i),n=!(0,r.default)(a);return o&&n?i>a?-1:1:o&&!n?1:!o&&n?-1:e.id>t.id?-1:1},T=function(e){return e.visibleStatuses=e.visibleStatuses.sort(z),e.statuses=e.statuses.sort(z),e.minVisibleId=((0,d.default)(e.visibleStatuses)||{}).id,e},A=function(e,t){var i=L(e.allStatuses,e.allStatusesObject,t);if(i.new){var a=i.item,o=e.conversationsObject,n=a.statusnet_conversation_id;o[n]?o[n].push(a):(0,y.set)(o,n,[a])}return i},O=t.mutations={addNewStatuses:function(e,t){var i=t.statuses,a=t.showImmediately,o=void 0!==a&&a,n=t.timeline,s=t.user,r=void 0===s?{}:s,l=t.noIdUpdate,c=void 0!==l&&l,d=t.userId;if(!(0,u.default)(i))return!1;var p=e.allStatuses,f=e.timelines[n],v=i.length>0?(0,h.default)(i,"id").id:0,b=i.length>0?(0,m.default)(i,"id").id:0,y=n&&(v>f.maxId||0===f.maxId)&&i.length>0,k=n&&(b0;if(!c&&y&&(f.maxId=v),!c&&k&&(f.minId=b),"user"!==n&&"media"!==n||f.userId===d){var x=function(t,i){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=A(e,t),s=o.item;if(o.new){if("status"===s.type&&(0,_.default)(s.attentions,{id:r.id})){var l=e.timelines.mentions;f!==l&&(L(l.statuses,l.statusesObject,s),l.newStatusCount+=1,T(l))}if("direct"===s.visibility){var c=e.timelines.dms;L(c.statuses,c.statusesObject,s),c.newStatusCount+=1,T(c)}}var u=void 0;return n&&a&&(u=L(f.statuses,f.statusesObject,s)),n&&i?L(f.visibleStatuses,f.visibleStatusesObject,s):n&&a&&u.new&&(f.newStatusCount+=1),s},C={status:function(e){x(e,o)},retweet:function(e){var t=x(e.retweeted_status,!1,!1),i=void 0;i=n&&(0,_.default)(f.statuses,function(e){return e.retweeted_status?e.id===t.id||e.retweeted_status.id===t.id:e.id===t.id})?x(e,!1,!1):x(e,o),i.retweeted_status=t},favorite:function(t){e.favorites.has(t.id)||(e.favorites.add(t.id),function(e,t){var i=(0,_.default)(p,{id:e.in_reply_to_status_id});i&&(e.user.id===r.id?i.favorited=!0:i.fave_num+=1)}(t))},deletion:function(t){var i=t.uri,a=(0,_.default)(p,{uri:i});a&&(function(e,t){(0,w.default)(e.allStatuses,{id:t.id}),(0,w.default)(e.notifications.data,function(e){return e.action.id===t.id});var i=t.statusnet_conversation_id;e.conversationsObject[i]&&(0,w.default)(e.conversationsObject[i],{id:t.id})}(e,a),n&&((0,w.default)(f.statuses,{uri:i}),(0,w.default)(f.visibleStatuses,{uri:i})))},follow:function(e){},default:function(e){console.log("unknown status type"),console.log(e)}};(0,g.default)(i,function(e){var t=e.type;(C[t]||C.default)(e)}),n&&T(f)}},addNewNotifications:function(e,t){t.dispatch;var i=t.notifications,a=(t.older,t.visibleNotificationTypes),o=t.rootGetters;(0,g.default)(i,function(t){if("follow"!==t.type&&(t.action=A(e,t.action).item,t.status=t.status&&A(e,t.status).item),e.notifications.idStore.hasOwnProperty(t.id))t.seen&&(e.notifications.idStore[t.id].seen=!0);else if(e.notifications.maxId=t.id>e.notifications.maxId?t.id:e.notifications.maxId,e.notifications.minId=t.id0&&!n.nsfw&&n.attachments[0].mimetype.startsWith("image/")&&(i.image=n.attachments[0].url),!t.seen&&!e.notifications.desktopNotificationSilence&&a.includes(t.type)){var l=new window.Notification(s,i);setTimeout(l.close.bind(l),5e3)}}})},removeStatus:function(e,t){var i=t.timeline,a=t.userId,o=e.timelines[i];a&&((0,w.default)(o.statuses,{user:{id:a}}),(0,w.default)(o.visibleStatuses,{user:{id:a}}),o.minVisibleId=o.visibleStatuses.length>0?(0,d.default)(o.visibleStatuses).id:0,o.maxId=o.statuses.length>0?(0,p.default)(o.statuses).id:0)},showNewStatuses:function(e,t){var i=t.timeline,a=e.timelines[i];a.newStatusCount=0,a.visibleStatuses=(0,b.default)(a.statuses,0,50),a.minVisibleId=(0,d.default)(a.visibleStatuses).id,a.minId=a.minVisibleId,a.visibleStatusesObject={},(0,g.default)(a.visibleStatuses,function(e){a.visibleStatusesObject[e.id]=e})},resetStatuses:function(e){var t=P();(0,s.default)(t).forEach(function(t){var i=(0,n.default)(t,2),a=i[0],o=i[1];e[a]=o})},clearTimeline:function(e,t){var i=t.timeline;e.timelines[i]=C(e.timelines[i].userId)},clearNotifications:function(e){e.notifications=S()},setFavorited:function(e,t){var i=t.status,a=t.value,o=e.allStatusesObject[i.id];o.favorited!==a&&(a?o.fave_num++:o.fave_num--),o.favorited=a},setFavoritedConfirm:function(e,t){var i=t.status,a=t.user,o=e.allStatusesObject[i.id];o.favorited=i.favorited,o.fave_num=i.fave_num;var n=(0,v.default)(o.favoritedBy,{id:a.id});-1===n||o.favorited?-1===n&&o.favorited&&o.favoritedBy.push(a):o.favoritedBy.splice(n,1)},setPinned:function(e,t){e.allStatusesObject[t.id].pinned=t.pinned},setRetweeted:function(e,t){var i=t.status,a=t.value,o=e.allStatusesObject[i.id];o.repeated!==a&&(a?o.repeat_num++:o.repeat_num--),o.repeated=a},setRetweetedConfirm:function(e,t){var i=t.status,a=t.user,o=e.allStatusesObject[i.id];o.repeated=i.repeated,o.repeat_num=i.repeat_num;var n=(0,v.default)(o.rebloggedBy,{id:a.id});-1===n||o.repeated?-1===n&&o.repeated&&o.rebloggedBy.push(a):o.rebloggedBy.splice(n,1)},setDeleted:function(e,t){var i=t.status;e.allStatusesObject[i.id].deleted=!0},setManyDeleted:function(e,t){(0,o.default)(e.allStatusesObject).forEach(function(e){t(e)&&(e.deleted=!0)})},setLoading:function(e,t){var i=t.timeline,a=t.value;e.timelines[i].loading=a},setNsfw:function(e,t){var i=t.id,a=t.nsfw;e.allStatusesObject[i].nsfw=a},setError:function(e,t){var i=t.value;e.error=i},setNotificationsLoading:function(e,t){var i=t.value;e.notifications.loading=i},setNotificationsError:function(e,t){var i=t.value;e.notifications.error=i},setNotificationsSilence:function(e,t){var i=t.value;e.notifications.desktopNotificationSilence=i},markNotificationsAsSeen:function(e){(0,g.default)(e.notifications.data,function(e){e.seen=!0})},queueFlush:function(e,t){var i=t.timeline,a=t.id;e.timelines[i].flushMarker=a},addFavsAndRepeats:function(e,t){var i=t.id,a=t.favoritedByUsers,o=t.rebloggedByUsers,n=e.allStatusesObject[i];n.favoritedBy=a.filter(function(e){return e}),n.rebloggedBy=o.filter(function(e){return e})},updateStatusWithPoll:function(e,t){var i=t.id,a=t.poll;e.allStatusesObject[i].poll=a}},I={state:P(),actions:{addNewStatuses:function(e,t){var i=e.rootState,a=e.commit,o=t.statuses,n=t.showImmediately,s=void 0!==n&&n,r=t.timeline,l=void 0!==r&&r,c=t.noIdUpdate,u=void 0!==c&&c,d=t.userId;a("addNewStatuses",{statuses:o,showImmediately:s,timeline:l,noIdUpdate:u,user:i.users.currentUser,userId:d})},addNewNotifications:function(e,t){var i=e.rootState,a=e.commit,o=e.dispatch,n=e.rootGetters,s=t.notifications,r=t.older;a("addNewNotifications",{visibleNotificationTypes:$(i),dispatch:o,notifications:s,older:r,rootGetters:n})},setError:function(e,t){e.rootState;(0,e.commit)("setError",{value:t.value})},setNotificationsLoading:function(e,t){e.rootState;(0,e.commit)("setNotificationsLoading",{value:t.value})},setNotificationsError:function(e,t){e.rootState;(0,e.commit)("setNotificationsError",{value:t.value})},setNotificationsSilence:function(e,t){e.rootState;(0,e.commit)("setNotificationsSilence",{value:t.value})},deleteStatus:function(e,t){var i=e.rootState;(0,e.commit)("setDeleted",{status:t}),k.default.deleteStatus({id:t.id,credentials:i.users.currentUser.credentials})},markStatusesAsDeleted:function(e,t){(0,e.commit)("setManyDeleted",t)},favorite:function(e,t){var i=e.rootState,a=e.commit;a("setFavorited",{status:t,value:!0}),i.api.backendInteractor.favorite(t.id).then(function(e){return a("setFavoritedConfirm",{status:e,user:i.users.currentUser})})},unfavorite:function(e,t){var i=e.rootState,a=e.commit;a("setFavorited",{status:t,value:!1}),i.api.backendInteractor.unfavorite(t.id).then(function(e){return a("setFavoritedConfirm",{status:e,user:i.users.currentUser})})},fetchPinnedStatuses:function(e,t){var i=e.rootState,a=e.dispatch;i.api.backendInteractor.fetchPinnedStatuses(t).then(function(e){return a("addNewStatuses",{statuses:e,timeline:"user",userId:t,showImmediately:!0,noIdUpdate:!0})})},pinStatus:function(e,t){var i=e.rootState,a=e.commit;return i.api.backendInteractor.pinOwnStatus(t).then(function(e){return a("setPinned",e)})},unpinStatus:function(e,t){var i=e.rootState,a=e.commit;i.api.backendInteractor.unpinOwnStatus(t).then(function(e){return a("setPinned",e)})},retweet:function(e,t){var i=e.rootState,a=e.commit;a("setRetweeted",{status:t,value:!0}),i.api.backendInteractor.retweet(t.id).then(function(e){return a("setRetweetedConfirm",{status:e.retweeted_status,user:i.users.currentUser})})},unretweet:function(e,t){var i=e.rootState,a=e.commit;a("setRetweeted",{status:t,value:!1}),i.api.backendInteractor.unretweet(t.id).then(function(e){return a("setRetweetedConfirm",{status:e,user:i.users.currentUser})})},queueFlush:function(e,t){e.rootState;(0,e.commit)("queueFlush",{timeline:t.timeline,id:t.id})},markNotificationsAsSeen:function(e){var t=e.rootState;(0,e.commit)("markNotificationsAsSeen"),k.default.markNotificationsAsSeen({id:t.statuses.notifications.maxId,credentials:t.users.currentUser.credentials})},fetchFavsAndRepeats:function(e,t){var i=e.rootState,o=e.commit;a.default.all([i.api.backendInteractor.fetchFavoritedByUsers(t),i.api.backendInteractor.fetchRebloggedByUsers(t)]).then(function(e){var i=(0,n.default)(e,2),a=i[0],s=i[1];return o("addFavsAndRepeats",{id:t,favoritedByUsers:a,rebloggedByUsers:s})})}},mutations:O};t.default=I},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(i(596)),o=n(i(98));function n(e){return e&&e.__esModule?e:{default:e}}function s(e,t,i,a){this.name="StatusCodeError",this.statusCode=e,this.message=e+" - "+(JSON&&o.default?(0,o.default)(t):t),this.error=t,this.options=i,this.response=a,Error.captureStackTrace&&Error.captureStackTrace(this)}t.StatusCodeError=s,s.prototype=(0,a.default)(Error.prototype),s.prototype.constructor=s},,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=t.getters=t.mutations=t.mergeOrAdd=void 0;var a=y(i(30)),o=y(i(61)),n=y(i(31)),s=y(i(14)),r=y(i(35)),l=y(i(13)),c=y(i(385)),u=y(i(382)),d=y(i(71)),p=y(i(222)),f=y(i(97)),m=y(i(22)),h=y(i(606)),_=y(i(226)),v=y(i(395)),g=i(9),b=i(624),w=i(626);function y(e){return e&&e.__esModule?e:{default:e}}var k=t.mergeOrAdd=function(e,t,i){if(!i)return!1;var a=t[i.id];return a?((0,p.default)(a,i),{item:a,new:!1}):(e.push(i),(0,g.set)(t,i.id,i),i.screen_name&&!i.screen_name.includes("@")&&(0,g.set)(t,i.screen_name.toLowerCase(),i),{item:i,new:!0})},x=function(e,t){return e.rootState.api.backendInteractor.blockUser(t).then(function(i){e.commit("updateUserRelationship",[i]),e.commit("addBlockId",t),e.commit("removeStatus",{timeline:"friends",userId:t}),e.commit("removeStatus",{timeline:"public",userId:t}),e.commit("removeStatus",{timeline:"publicAndExternal",userId:t})})},C=function(e,t){return e.rootState.api.backendInteractor.unblockUser(t).then(function(t){return e.commit("updateUserRelationship",[t])})},S=function(e,t){return e.rootState.api.backendInteractor.muteUser(t).then(function(i){e.commit("updateUserRelationship",[i]),e.commit("addMuteId",t)})},P=function(e,t){return e.rootState.api.backendInteractor.unmuteUser(t).then(function(t){return e.commit("updateUserRelationship",[t])})},j=t.mutations={setMuted:function(e,t){var i=t.user.id,a=t.muted,o=e.usersObject[i];(0,g.set)(o,"muted",a)},tagUser:function(e,t){var i=t.user.id,a=t.tag,o=e.usersObject[i],n=(o.tags||[]).concat([a]);(0,g.set)(o,"tags",n)},untagUser:function(e,t){var i=t.user.id,a=t.tag,o=e.usersObject[i],n=(o.tags||[]).filter(function(e){return e!==a});(0,g.set)(o,"tags",n)},updateRight:function(e,t){var i=t.user.id,a=t.right,o=t.value,n=e.usersObject[i],s=n.rights;s[a]=o,(0,g.set)(n,"rights",s)},updateActivationStatus:function(e,t){var i=t.user.id,a=t.status,o=e.usersObject[i];(0,g.set)(o,"deactivated",!a)},setCurrentUser:function(e,t){e.lastLoginName=t.screen_name,e.currentUser=(0,p.default)(e.currentUser||{},t)},clearCurrentUser:function(e){e.currentUser=!1,e.lastLoginName=!1},beginLogin:function(e){e.loggingIn=!0},endLogin:function(e){e.loggingIn=!1},saveFriendIds:function(e,t){var i=t.id,a=t.friendIds,o=e.usersObject[i];o.friendIds=(0,c.default)((0,u.default)(o.friendIds,a))},saveFollowerIds:function(e,t){var i=t.id,a=t.followerIds,o=e.usersObject[i];o.followerIds=(0,c.default)((0,u.default)(o.followerIds,a))},clearFriends:function(e,t){var i=e.usersObject[t];i&&(0,g.set)(i,"friendIds",[])},clearFollowers:function(e,t){var i=e.usersObject[t];i&&(0,g.set)(i,"followerIds",[])},addNewUsers:function(e,t){(0,f.default)(t,function(t){return k(e.users,e.usersObject,t)})},updateUserRelationship:function(e,t){t.forEach(function(t){var i=e.usersObject[t.id];i&&(i.follows_you=t.followed_by,i.following=t.following,i.muted=t.muting,i.statusnet_blocking=t.blocking)})},updateBlocks:function(e,t){(0,f.default)(e.users,function(e){e.statusnet_blocking=!1}),(0,f.default)(t,function(t){return k(e.users,e.usersObject,t)})},saveBlockIds:function(e,t){e.currentUser.blockIds=t},addBlockId:function(e,t){-1===e.currentUser.blockIds.indexOf(t)&&e.currentUser.blockIds.push(t)},updateMutes:function(e,t){(0,f.default)(e.users,function(e){e.muted=!1}),(0,f.default)(t,function(t){return k(e.users,e.usersObject,t)})},saveMuteIds:function(e,t){e.currentUser.muteIds=t},addMuteId:function(e,t){-1===e.currentUser.muteIds.indexOf(t)&&e.currentUser.muteIds.push(t)},setPinned:function(e,t){var i=e.usersObject[t.user.id],a=i.pinnedStatuseIds.indexOf(t.id);t.pinned&&-1===a?i.pinnedStatuseIds.push(t.id):t.pinned||-1===a||i.pinnedStatuseIds.splice(a,1)},setUserForStatus:function(e,t){t.user=e.usersObject[t.user.id]},setUserForNotification:function(e,t){"follow"!==t.type&&(t.action.user=e.usersObject[t.action.user.id]),t.from_profile=e.usersObject[t.from_profile.id]},setColor:function(e,t){var i=t.user.id,a=t.highlighted,o=e.usersObject[i];(0,g.set)(o,"highlight",a)},signUpPending:function(e){e.signUpPending=!0,e.signUpErrors=[]},signUpSuccess:function(e){e.signUpPending=!1},signUpFailure:function(e,t){e.signUpPending=!1,e.signUpErrors=t}},$=t.getters={findUser:function(e){return function(t){var i=e.usersObject[t];return i||"string"!=typeof t?i:e.usersObject[t.toLowerCase()]}}},L={state:t.defaultState={loggingIn:!1,lastLoginName:!1,currentUser:!1,users:[],usersObject:{},signUpPending:!1,signUpErrors:[]},mutations:j,getters:$,actions:{fetchUser:function(e,t){return e.rootState.api.backendInteractor.fetchUser({id:t}).then(function(t){return e.commit("addNewUsers",[t]),t})},fetchUserRelationship:function(e,t){e.state.currentUser&&e.rootState.api.backendInteractor.fetchUserRelationship({id:t}).then(function(t){return e.commit("updateUserRelationship",t)})},fetchBlocks:function(e){return e.rootState.api.backendInteractor.fetchBlocks().then(function(t){return e.commit("saveBlockIds",(0,m.default)(t,"id")),e.commit("updateBlocks",t),t})},blockUser:function(e,t){return x(e,t)},unblockUser:function(e,t){return C(e,t)},blockUsers:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return l.default.all(t.map(function(t){return x(e,t)}))},unblockUsers:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return l.default.all(t.map(function(t){return C(e,t)}))},fetchMutes:function(e){return e.rootState.api.backendInteractor.fetchMutes().then(function(t){return e.commit("updateMutes",t),e.commit("saveMuteIds",(0,m.default)(t,"id")),t})},muteUser:function(e,t){return S(e,t)},unmuteUser:function(e,t){return P(e,t)},muteUsers:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return l.default.all(t.map(function(t){return S(e,t)}))},unmuteUsers:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return l.default.all(t.map(function(t){return P(e,t)}))},fetchFriends:function(e,t){var i=e.rootState,a=e.commit,o=i.users.usersObject[t],n=(0,d.default)(o.friendIds);return i.api.backendInteractor.fetchFriends({id:t,maxId:n}).then(function(e){return a("addNewUsers",e),a("saveFriendIds",{id:t,friendIds:(0,m.default)(e,"id")}),e})},fetchFollowers:function(e,t){var i=e.rootState,a=e.commit,o=i.users.usersObject[t],n=(0,d.default)(o.followerIds);return i.api.backendInteractor.fetchFollowers({id:t,maxId:n}).then(function(e){return a("addNewUsers",e),a("saveFollowerIds",{id:t,followerIds:(0,m.default)(e,"id")}),e})},clearFriends:function(e,t){(0,e.commit)("clearFriends",t)},clearFollowers:function(e,t){(0,e.commit)("clearFollowers",t)},registerPushNotifications:function(e){var t=e.state.currentUser.credentials,i=e.rootState.instance.vapidPublicKey,a=e.rootState.config.webPushNotifications,o=e.rootState.config.notificationVisibility;(0,b.registerPushNotifications)(a,i,t,o)},unregisterPushNotifications:function(e){var t=e.state.currentUser.credentials;(0,b.unregisterPushNotifications)(t)},addNewUsers:function(e,t){(0,e.commit)("addNewUsers",t)},addNewStatuses:function(e,t){var i=t.statuses,a=(0,m.default)(i,"user"),o=(0,h.default)((0,m.default)(i,"retweeted_status.user"));e.commit("addNewUsers",a),e.commit("addNewUsers",o),(0,f.default)(i,function(t){e.commit("setUserForStatus",t),e.commit("setPinned",t)}),(0,f.default)((0,h.default)((0,m.default)(i,"retweeted_status")),function(t){e.commit("setUserForStatus",t),e.commit("setPinned",t)})},addNewNotifications:function(e,t){var i=t.notifications,a=(0,m.default)(i,"from_profile"),o=i.map(function(e){return e.id});e.commit("addNewUsers",a);var n=e.rootState.statuses.notifications.idStore,l=(0,r.default)(n).filter(function(e){var t=(0,s.default)(e,2),i=t[0];t[1];return o.includes(i)}).map(function(e){var t=(0,s.default)(e,2);t[0];return t[1]});(0,f.default)(l,function(t){e.commit("setUserForNotification",t)})},searchUsers:function(e,t){return v.default.search({query:t,store:{state:e.rootState,getters:e.rootGetters}}).then(function(t){return e.commit("addNewUsers",t),t})},signUp:function(){var e=(0,n.default)(a.default.mark(function e(t,i){var n,s,r;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.commit("signUpPending"),n=t.rootState,e.prev=2,e.next=5,n.api.backendInteractor.register(i);case 5:s=e.sent,t.commit("signUpSuccess"),t.commit("setToken",s.access_token),t.dispatch("loginUser",s.access_token),e.next=17;break;case 11:throw e.prev=11,e.t0=e.catch(2),"object"===(void 0===(r=e.t0.message)?"undefined":(0,o.default)(r))&&(r.ap_id&&(r.username=r.ap_id,delete r.ap_id),r=(0,w.humanizeErrors)(r)),t.commit("signUpFailure",r),Error(r);case 17:case"end":return e.stop()}},e,this,[[2,11]])}));return function(t,i){return e.apply(this,arguments)}}(),getCaptcha:function(){var e=(0,n.default)(a.default.mark(function e(t){return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.rootState.api.backendInteractor.getCaptcha();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),logout:function(e){e.commit("clearCurrentUser"),e.dispatch("disconnectFromChat"),e.commit("clearToken"),e.dispatch("stopFetching","friends"),e.commit("setBackendInteractor",(0,_.default)(e.getters.getToken())),e.dispatch("stopFetching","notifications"),e.commit("clearNotifications"),e.commit("resetStatuses")},loginUser:function(e,t){return new l.default(function(i,a){var o=e.commit;o("beginLogin"),e.rootState.api.backendInteractor.verifyCredentials(t).then(function(n){if(n.error){var s=n.error;o("endLogin"),401===s.status?a("Wrong username or password"):a("An error occurred, please try again")}else{var r=n;r.credentials=t,r.blockIds=[],r.muteIds=[],o("setCurrentUser",r),o("addNewUsers",[r]),(c=window.Notification,c?"default"===c.permission?c.requestPermission():l.default.resolve(c.permission):l.default.resolve(null)).then(function(e){return o("setNotificationPermission",e)}),o("setBackendInteractor",(0,_.default)(t)),r.token&&(e.dispatch("setWsToken",r.token),e.dispatch("initializeSocket")),e.dispatch("startFetchingTimeline",{timeline:"friends"}),e.dispatch("startFetchingNotifications"),e.dispatch("fetchMutes"),e.rootState.api.backendInteractor.fetchFriends({id:r.id}).then(function(e){return o("addNewUsers",e)})}var c;o("endLogin"),i()}).catch(function(e){console.log(e),o("endLogin"),a("Failed to connect to server, try again")})})}}};t.default=L},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(28),n=(a=o)&&a.__esModule?a:{default:a};var s=function(e){return(0,n.default)(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")},r=function(e){var t=e.getters.getToken();return t?{Authorization:"Bearer "+t}:{}},l={queryParams:s,request:function(e){var t=e.method,i=void 0===t?"GET":t,a=e.url,o=e.params,n=e.store,l=""+n.state.instance.server+a;return"GET"===i&&o&&(l=l+"?"+s(o)),window.fetch(l,{method:i,headers:r(n),credentials:"same-origin"})}};t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=l(i(14)),o=l(i(98)),n=l(i(13)),s=l(i(24));t.registerPushNotifications=function(e,t,i,a){c()&&u().then(function(i){return function(e,t,i){if(!t)return n.default.reject(new Error("Web Push is disabled in config"));if(!i)return n.default.reject(new Error("VAPID public key is not found"));var a={userVisibleOnly:!0,applicationServerKey:(o=i,r="=".repeat((4-o.length%4)%4),l=(o+r).replace(/-/g,"+").replace(/_/g,"/"),c=window.atob(l),Uint8Array.from([].concat((0,s.default)(c)).map(function(e){return e.charCodeAt(0)})))};var o,r,l,c;return e.pushManager.subscribe(a)}(i,e,t)}).then(function(e){return function(e,t,i){return window.fetch("/api/v1/push/subscription/",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+t},body:(0,o.default)({subscription:e,data:{alerts:{follow:i.follows,favourite:i.likes,mention:i.mentions,reblog:i.repeats}}})}).then(function(e){if(!e.ok)throw new Error("Bad status code from server.");return e.json()}).then(function(e){if(!e.id)throw new Error("Bad response from server.");return e})}(e,i,a)}).catch(function(e){return console.warn("Failed to setup Web Push Notifications: "+e.message)})},t.unregisterPushNotifications=function(e){c()&&n.default.all([d(e),u().then(function(e){return function(e){return e.pushManager.getSubscription().then(function(e){if(null!==e)return e.unsubscribe()})}(e).then(function(t){return[e,t]})}).then(function(e){var t=(0,a.default)(e,2),i=t[0],o=t[1];return o||console.warn("Push subscription cancellation wasn't successful, killing SW anyway..."),i.unregister().then(function(e){e||console.warn("Failed to kill SW")})})]).catch(function(e){return console.warn("Failed to disable Web Push Notifications: "+e.message)})};var r=l(i(625));function l(e){return e&&e.__esModule?e:{default:e}}function c(){return"serviceWorker"in navigator&&"PushManager"in window}function u(){return r.default.register().catch(function(e){return console.error("Unable to get or create a service worker.",e)})}function d(e){return window.fetch("/api/v1/push/subscription/",{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:"Bearer "+e}}).then(function(e){if(!e.ok)throw new Error("Bad status code from server.");return e})}},,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(i(24)),o=r(i(14)),n=r(i(35)),s=r(i(388));function r(e){return e&&e.__esModule?e:{default:e}}t.humanizeErrors=function(e){return(0,n.default)(e).reduce(function(e,t){var i=(0,o.default)(t,2),n=i[0],r=i[1],l=r.reduce(function(e,t){var i=(0,s.default)(n.replace(/_/g," "));return e+[i,t].join(" ")+". "},"");return[].concat((0,a.default)(e),[l])},[])}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(226),n=(a=o)&&a.__esModule?a:{default:a},s=i(628);var r={state:{backendInteractor:(0,n.default)(),fetchers:{},socket:null,chatDisabled:!1,followRequests:[]},mutations:{setBackendInteractor:function(e,t){e.backendInteractor=t},addFetcher:function(e,t){var i=t.fetcherName,a=t.fetcher;e.fetchers[i]=a},removeFetcher:function(e,t){var i=t.fetcherName;delete e.fetchers[i]},setWsToken:function(e,t){e.wsToken=t},setSocket:function(e,t){e.socket=t},setChatDisabled:function(e,t){e.chatDisabled=t},setFollowRequests:function(e,t){e.followRequests=t}},actions:{startFetchingTimeline:function(e,t){var i=t.timeline,a=void 0===i?"friends":i,o=t.tag,n=void 0!==o&&o,s=t.userId,r=void 0!==s&&s;if(!e.state.fetchers[a]){var l=e.state.backendInteractor.startFetchingTimeline({timeline:a,store:e,userId:r,tag:n});e.commit("addFetcher",{fetcherName:a,fetcher:l})}},startFetchingNotifications:function(e){if(!e.state.fetchers.notifications){var t=e.state.backendInteractor.startFetchingNotifications({store:e});e.commit("addFetcher",{fetcherName:"notifications",fetcher:t})}},stopFetching:function(e,t){var i=e.state.fetchers[t];window.clearInterval(i),e.commit("removeFetcher",{fetcherName:t})},setWsToken:function(e,t){e.commit("setWsToken",t)},initializeSocket:function(e){if(!e.state.chatDisabled){var t=e.state.wsToken,i=new s.Socket("/socket",{params:{token:t}});i.connect(),e.dispatch("initializeChat",i)}},disableChat:function(e){e.commit("setChatDisabled",!0)},removeFollowRequest:function(e,t){var i=e.state.followRequests.filter(function(e){return e!==t});e.commit("setFollowRequests",i)}}};t.default=r},,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(9),o=i(80),n={state:{colors:{},hideMutedPosts:void 0,collapseMessageWithSubject:void 0,hideAttachments:!1,hideAttachmentsInConv:!1,maxThumbnails:16,hideNsfw:!0,preloadImage:!0,loopVideo:!0,loopVideoSilentOnly:!0,autoLoad:!0,streaming:!1,hoverPreview:!0,autohideFloatingPostButton:!1,pauseOnUnfocused:!0,stopGifs:!1,replyVisibility:"all",notificationVisibility:{follows:!0,mentions:!0,likes:!0,repeats:!0},webPushNotifications:!1,muteWords:[],highlight:{},interfaceLanguage:(window.navigator.language||"en").split("-")[0],hideScopeNotice:!1,scopeCopy:void 0,subjectLineBehavior:void 0,alwaysShowSubjectInput:void 0,postContentType:void 0,minimalScopesMode:void 0},mutations:{setOption:function(e,t){var i=t.name,o=t.value;(0,a.set)(e,i,o)},setHighlight:function(e,t){var i=t.user,o=t.color,n=t.type,s=this.state.config.highlight[i];o||n?(0,a.set)(e.highlight,i,{color:o||s.color,type:n||s.type}):(0,a.delete)(e.highlight,i)}},actions:{setHighlight:function(e,t){var i=e.commit;e.dispatch;i("setHighlight",{user:t.user,color:t.color,type:t.type})},setOption:function(e,t){var i=e.commit,a=(e.dispatch,t.name),n=t.value;switch(i("setOption",{name:a,value:n}),a){case"theme":(0,o.setPreset)(n,i);break;case"customTheme":(0,o.applyTheme)(n,i)}}}};t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={state:{messages:[],channel:{state:""},socket:null},mutations:{setChannel:function(e,t){e.channel=t},setSocket:function(e,t){e.socket=t},addMessage:function(e,t){e.messages.push(t),e.messages=e.messages.slice(-19,20)},setMessages:function(e,t){e.messages=t.slice(-19,20)}},actions:{disconnectFromChat:function(e){e.state.socket&&e.state.socket.disconnect()},initializeChat:function(e,t){var i=t.channel("chat:public");e.commit("setSocket",t),i.on("new_msg",function(t){e.commit("addMessage",t)}),i.on("messages",function(t){var i=t.messages;e.commit("setMessages",i)}),i.join(),e.commit("setChannel",i)}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(9),o={state:{clientId:!1,clientSecret:!1,appToken:!1,userToken:!1},mutations:{setClientData:function(e,t){var i=t.clientId,a=t.clientSecret;e.clientId=i,e.clientSecret=a},setAppToken:function(e,t){e.appToken=t},setToken:function(e,t){e.userToken=t},clearToken:function(e){e.userToken=!1,(0,a.delete)(e,"token")}},getters:{getToken:function(e){return function(){return e.userToken||e.token||e.appToken}},getUserToken:function(e){return function(){return e.userToken||e.token}}}};t.default=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(i(30)),o=n(i(31));function n(e){return e&&e.__esModule?e:{default:e}}var s={app:null,settings:{},strategy:"password",initStrategy:"password"},r=function(e){e.strategy=e.initStrategy,e.settings={},e.app=null},l={app:function(e,t){return e.app},settings:function(e,t){return e.settings},requiredPassword:function(e,t,i){return"password"===e.strategy},requiredToken:function(e,t,i){return"token"===e.strategy},requiredTOTP:function(e,t,i){return"totp"===e.strategy},requiredRecovery:function(e,t,i){return"recovery"===e.strategy}},c={setInitialStrategy:function(e,t){t&&(e.initStrategy=t,e.strategy=t)},requirePassword:function(e){e.strategy="password"},requireToken:function(e){e.strategy="token"},requireMFA:function(e,t){var i=t.app,a=t.settings;e.settings=a,e.app=i,e.strategy="totp"},requireRecovery:function(e){e.strategy="recovery"},requireTOTP:function(e){e.strategy="totp"},abortMFA:function(e){r(e)}},u={login:function(){var e=(0,o.default)(a.default.mark(function e(t,i){var o=t.state,n=t.dispatch,s=t.commit,l=i.access_token;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s("setToken",l,{root:!0}),e.next=3,n("loginUser",l,{root:!0});case 3:r(o);case 4:case"end":return e.stop()}},e,this)}));return function(t,i){return e.apply(this,arguments)}}()};t.default={namespaced:!0,state:s,getters:l,mutations:c,actions:u}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(73),n=(a=o)&&a.__esModule?a:{default:a};var s={state:{media:[],currentIndex:0,activated:!1},mutations:{setMedia:function(e,t){e.media=t},setCurrent:function(e,t){e.activated=!0,e.currentIndex=t},close:function(e){e.activated=!1}},actions:{setMedia:function(e,t){(0,e.commit)("setMedia",t.filter(function(e){var t=n.default.fileType(e.mimetype);return"image"===t||"video"===t}))},setCurrent:function(e,t){(0,e.commit)("setCurrent",e.state.media.indexOf(t)||0)},closeMediaViewer:function(e){(0,e.commit)("close")}}};t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={state:{tokens:[]},actions:{fetchTokens:function(e){var t=e.rootState,i=e.commit;t.api.backendInteractor.fetchOAuthTokens().then(function(e){i("swapTokens",e)})},revokeToken:function(e,t){var i=e.rootState,a=e.commit,o=e.state;i.api.backendInteractor.revokeOAuthToken(t).then(function(e){201===e.status&&a("swapTokens",o.tokens.filter(function(e){return e.id!==t}))})}},mutations:{swapTokens:function(e,t){e.tokens=t}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(74),n=(a=o)&&a.__esModule?a:{default:a};var s={state:{userId:null,statuses:[],modalActivated:!1},mutations:{openUserReportingModal:function(e,t){var i=t.userId,a=t.statuses;e.userId=i,e.statuses=a,e.modalActivated=!0},closeUserReportingModal:function(e){e.modalActivated=!1}},actions:{openUserReportingModal:function(e,t){var i=e.rootState,a=e.commit,o=(0,n.default)(i.statuses.allStatuses,function(e){return e.user.id===t});a("openUserReportingModal",{userId:t,statuses:o})},closeUserReportingModal:function(e){(0,e.commit)("closeUserReportingModal")}}};t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(222),n=(a=o)&&a.__esModule?a:{default:a},s=i(9);var r={state:{trackedPolls:{},pollsObject:{}},mutations:{mergeOrAddPoll:function(e,t){var i=e.pollsObject[t.id];t.expired=Date.now()>Date.parse(t.expires_at),i?(0,s.set)(e.pollsObject,t.id,(0,n.default)(i,t)):(0,s.set)(e.pollsObject,t.id,t)},trackPoll:function(e,t){var i=e.trackedPolls[t];i?(0,s.set)(e.trackedPolls,t,i+1):(0,s.set)(e.trackedPolls,t,1)},untrackPoll:function(e,t){var i=e.trackedPolls[t];i?(0,s.set)(e.trackedPolls,t,i-1):(0,s.set)(e.trackedPolls,t,0)}},actions:{mergeOrAddPoll:function(e,t){(0,e.commit)("mergeOrAddPoll",t)},updateTrackedPoll:function(e,t){var i=e.rootState,a=e.dispatch,o=e.commit;i.api.backendInteractor.fetchPoll(t).then(function(e){setTimeout(function(){i.polls.trackedPolls[t]&&a("updateTrackedPoll",t)},3e4),o("mergeOrAddPoll",e)})},trackPoll:function(e,t){var i=e.rootState,a=e.commit,o=e.dispatch;i.polls.trackedPolls[t]||setTimeout(function(){return o("updateTrackedPoll",t)},3e4),a("trackPoll",t)},untrackPoll:function(e,t){(0,e.commit)("untrackPoll",t)},votePoll:function(e,t){var i=e.rootState,a=e.commit,o=(t.id,t.pollId),n=t.choices;return i.api.backendInteractor.vote(o,n).then(function(e){return a("mergeOrAddPoll",e),e})}}};t.default=r},,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=c(i(61)),o=c(i(13)),n=c(i(97));t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key,i=void 0===t?"vuex-lz":t,r=e.paths,l=void 0===r?[]:r,c=e.getState,m=void 0===c?function(e,t){var i=t.getItem(e);return i}:c,h=e.setState,_=void 0===h?function(e,t,i){return u?i.setItem(e,t):(console.log("waiting for old state to be loaded..."),o.default.resolve())}:h,v=e.reducer,g=void 0===v?d:v,b=e.storage,w=void 0===b?f:b,y=e.subscriber,k=void 0===y?function(e){return function(t){return e.subscribe(t)}}:y;return m(i,w).then(function(e){return function(t){try{if(null!==e&&"object"===(void 0===e?"undefined":(0,a.default)(e))){var o=e.users||{};o.usersObject={};var r=o.users||[];(0,n.default)(r,function(e){o.usersObject[e.id]=e}),e.users=o,t.replaceState((0,s.default)({},t.state,e))}u=!0}catch(e){console.log("Couldn't load state"),console.error(e),u=!0}k(t)(function(e,a){try{p.includes(e.type)&&_(i,g(a,l),w).then(function(i){void 0!==i&&("setOption"!==e.type&&"setCurrentUser"!==e.type||t.dispatch("settingsSaved",{success:i}))},function(i){"setOption"!==e.type&&"setCurrentUser"!==e.type||t.dispatch("settingsSaved",{error:i})})}catch(e){console.log("Couldn't persist state:"),console.log(e)}})}})};var s=c(i(639)),r=c(i(653)),l=c(i(654));function c(e){return e&&e.__esModule?e:{default:e}}var u=!1,d=function(e,t){return 0===t.length?e:t.reduce(function(t,i){return r.default.set(t,i,r.default.get(e,i)),t},{})},p=["markNotificationsAsSeen","clearCurrentUser","setCurrentUser","setHighlight","setOption","setClientData","setToken","clearToken"],f=l.default},,,,,,,,,,,,,,,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.subscribe(function(t,i){var a=i.instance.vapidPublicKey,o=i.config.webPushNotifications,n="granted"===i.interface.notificationPermission,s=i.users.currentUser,r="setCurrentUser"===t.type,l="setInstanceOption"===t.type&&"vapidPublicKey"===t.payload.name,c="setNotificationPermission"===t.type&&"granted"===t.payload,u="setOption"===t.type&&"webPushNotifications"===t.payload.name,d="setOption"===t.type&&"notificationVisibility"===t.payload.name;if(r||l||c||u||d){if(s&&a&&n&&o)return e.dispatch("registerPushNotifications");if(u&&!o)return e.dispatch("unregisterPushNotifications")}})}},function(e){e.exports={chat:{title:"الدردشة"},features_panel:{chat:"الدردشة",gopher:"غوفر",media_proxy:"بروكسي الوسائط",scope_options:"",text_limit:"الحد الأقصى للنص",title:"الميّزات",who_to_follow:"للمتابعة"},finder:{error_fetching_user:"خطأ أثناء جلب صفحة المستخدم",find_user:"البحث عن مستخدِم"},general:{apply:"تطبيق",submit:"إرسال"},login:{login:"تسجيل الدخول",logout:"الخروج",password:"الكلمة السرية",placeholder:"مثال lain",register:"انشاء حساب",username:"إسم المستخدم"},nav:{chat:"الدردشة المحلية",friend_requests:"طلبات المتابَعة",mentions:"الإشارات",public_tl:"الخيط الزمني العام",timeline:"الخيط الزمني",twkn:"كافة الشبكة المعروفة"},notifications:{broken_favorite:"منشور مجهول، جارٍ البحث عنه…",favorited_you:"أعجِب بمنشورك",followed_you:"يُتابعك",load_older:"تحميل الإشعارات الأقدم",notifications:"الإخطارات",read:"مقروء!",repeated_you:"شارَك منشورك"},post_status:{account_not_locked_warning:"",account_not_locked_warning_link:"مقفل",attachments_sensitive:"اعتبر المرفقات كلها كمحتوى حساس",content_type:{"text/plain":"نص صافٍ"},content_warning:"الموضوع (اختياري)",default:"وصلت للتوّ إلى لوس أنجلس.",direct_warning:"",posting:"النشر",scope:{direct:"",private:"",public:"علني - يُنشر على الخيوط الزمنية العمومية",unlisted:"غير مُدرَج - لا يُنشَر على الخيوط الزمنية العمومية"}},registration:{bio:"السيرة الذاتية",email:"عنوان البريد الإلكتروني",fullname:"الإسم المعروض",password_confirm:"تأكيد الكلمة السرية",registration:"التسجيل",token:"رمز الدعوة"},settings:{attachmentRadius:"المُرفَقات",attachments:"المُرفَقات",autoload:"",avatar:"الصورة الرمزية",avatarAltRadius:"الصور الرمزية (الإشعارات)",avatarRadius:"الصور الرمزية",background:"الخلفية",bio:"السيرة الذاتية",btnRadius:"الأزرار",cBlue:"أزرق (الرد، المتابَعة)",cGreen:"أخضر (إعادة النشر)",cOrange:"برتقالي (مفضلة)",cRed:"أحمر (إلغاء)",change_password:"تغيير كلمة السر",change_password_error:"وقع هناك خلل أثناء تعديل كلمتك السرية.",changed_password:"تم تغيير كلمة المرور بنجاح!",collapse_subject:"",confirm_new_password:"تأكيد كلمة السر الجديدة",current_avatar:"صورتك الرمزية الحالية",current_password:"كلمة السر الحالية",current_profile_banner:"الرأسية الحالية لصفحتك الشخصية",data_import_export_tab:"تصدير واستيراد البيانات",default_vis:"أسلوب العرض الافتراضي",delete_account:"حذف الحساب",delete_account_description:"حذف حسابك و كافة منشوراتك نهائيًا.",delete_account_error:"",delete_account_instructions:"يُرجى إدخال كلمتك السرية أدناه لتأكيد عملية حذف الحساب.",export_theme:"حفظ النموذج",filtering:"التصفية",filtering_explanation:"سيتم إخفاء كافة المنشورات التي تحتوي على هذه الكلمات، كلمة واحدة في كل سطر",follow_export:"تصدير الاشتراكات",follow_export_button:"تصدير الاشتراكات كملف csv",follow_export_processing:"التصدير جارٍ، سوف يُطلَب منك تنزيل ملفك بعد حين",follow_import:"استيراد الاشتراكات",follow_import_error:"خطأ أثناء استيراد المتابِعين",follows_imported:"",foreground:"الأمامية",general:"الإعدادات العامة",hide_attachments_in_convo:"إخفاء المرفقات على المحادثات",hide_attachments_in_tl:"إخفاء المرفقات على الخيط الزمني",hide_post_stats:"",hide_user_stats:"",import_followers_from_a_csv_file:"",import_theme:"تحميل نموذج",inputRadius:"",instance_default:"",interfaceLanguage:"لغة الواجهة",invalid_theme_imported:"",limited_availability:"غير متوفر على متصفحك",links:"الروابط",lock_account_description:"",loop_video:"",loop_video_silent_only:"",name:"الاسم",name_bio:"الاسم والسيرة الذاتية",new_password:"كلمة السر الجديدة",no_rich_text_description:"",notification_visibility:"نوع الإشعارات التي تريد عرضها",notification_visibility_follows:"يتابع",notification_visibility_likes:"الإعجابات",notification_visibility_mentions:"الإشارات",notification_visibility_repeats:"",nsfw_clickthrough:"",oauth_tokens:"رموز OAuth",token:"رمز",refresh_token:"رمز التحديث",valid_until:"صالح حتى",revoke_token:"سحب",panelRadius:"",pause_on_unfocused:"",presets:"النماذج",profile_background:"خلفية الصفحة الشخصية",profile_banner:"رأسية الصفحة الشخصية",profile_tab:"الملف الشخصي",radii_help:"",replies_in_timeline:"الردود على الخيط الزمني",reply_link_preview:"",reply_visibility_all:"عرض كافة الردود",reply_visibility_following:"",reply_visibility_self:"",saving_err:"خطأ أثناء حفظ الإعدادات",saving_ok:"تم حفظ الإعدادات",security_tab:"الأمان",set_new_avatar:"اختيار صورة رمزية جديدة",set_new_profile_background:"اختيار خلفية جديدة للملف الشخصي",set_new_profile_banner:"اختيار رأسية جديدة للصفحة الشخصية",settings:"الإعدادات",stop_gifs:"",streaming:"",text:"النص",theme:"المظهر",theme_help:"",tooltipRadius:"",user_settings:"إعدادات المستخدم",values:{false:"لا",true:"نعم"}},timeline:{collapse:"",conversation:"محادثة",error_fetching:"خطأ أثناء جلب التحديثات",load_older:"تحميل المنشورات القديمة",no_retweet_hint:"",repeated:"",show_new:"عرض الجديد",up_to_date:"تم تحديثه"},user_card:{approve:"قبول",block:"حظر",blocked:"تم حظره!",deny:"رفض",follow:"اتبع",followees:"",followers:"مُتابِعون",following:"",follows_you:"يتابعك!",mute:"كتم",muted:"تم كتمه",per_day:"في اليوم",remote_follow:"مُتابَعة عن بُعد",statuses:"المنشورات"},user_profile:{timeline_title:"الخيط الزمني للمستخدم"},who_to_follow:{more:"المزيد",who_to_follow:"للمتابعة"}}},function(e){e.exports={chat:{title:"Xat"},features_panel:{chat:"Xat",gopher:"Gopher",media_proxy:"Proxy per multimèdia",scope_options:"Opcions d'abast i visibilitat",text_limit:"Límit de text",title:"Funcionalitats",who_to_follow:"A qui seguir"},finder:{error_fetching_user:"No s'ha pogut carregar l'usuari/a",find_user:"Find user"},general:{apply:"Aplica",submit:"Desa"},login:{login:"Inicia sessió",logout:"Tanca la sessió",password:"Contrasenya",placeholder:"p.ex.: Maria",register:"Registra't",username:"Nom d'usuari/a"},nav:{chat:"Xat local públic",friend_requests:"Soŀlicituds de connexió",mentions:"Mencions",public_tl:"Flux públic del node",timeline:"Flux personal",twkn:"Flux de la xarxa coneguda"},notifications:{broken_favorite:"No es coneix aquest estat. S'està cercant.",favorited_you:"ha marcat un estat teu",followed_you:"ha començat a seguir-te",load_older:"Carrega més notificacions",notifications:"Notificacions",read:"Read!",repeated_you:"ha repetit el teu estat"},post_status:{account_not_locked_warning:"El teu compte no està {0}. Qualsevol persona pot seguir-te per llegir les teves entrades reservades només a seguidores.",account_not_locked_warning_link:"bloquejat",attachments_sensitive:"Marca l'adjunt com a delicat",content_type:{"text/plain":"Text pla"},content_warning:"Assumpte (opcional)",default:"Em sento…",direct_warning:"Aquesta entrada només serà visible per les usuràries que etiquetis",posting:"Publicació",scope:{direct:"Directa - Publica només per les usuàries etiquetades",private:"Només seguidors/es - Publica només per comptes que et segueixin",public:"Pública - Publica als fluxos públics",unlisted:"Silenciosa - No la mostris en fluxos públics"}},registration:{bio:"Presentació",email:"Correu",fullname:"Nom per mostrar",password_confirm:"Confirma la contrasenya",registration:"Registra't",token:"Codi d'invitació"},settings:{attachmentRadius:"Adjunts",attachments:"Adjunts",autoload:"Recarrega automàticament en arribar a sota de tot.",avatar:"Avatar",avatarAltRadius:"Avatars en les notificacions",avatarRadius:"Avatars",background:"Fons de pantalla",bio:"Presentació",btnRadius:"Botons",cBlue:"Blau (respon, segueix)",cGreen:"Verd (republica)",cOrange:"Taronja (marca com a preferit)",cRed:"Vermell (canceŀla)",change_password:"Canvia la contrasenya",change_password_error:"No s'ha pogut canviar la contrasenya",changed_password:"S'ha canviat la contrasenya",collapse_subject:"Replega les entrades amb títol",confirm_new_password:"Confirma la nova contrasenya",current_avatar:"L'avatar actual",current_password:"La contrasenya actual",current_profile_banner:"El fons de perfil actual",data_import_export_tab:"Importa o exporta dades",default_vis:"Abast per defecte de les entrades",delete_account:"Esborra el compte",delete_account_description:"Esborra permanentment el teu compte i tots els missatges",delete_account_error:"No s'ha pogut esborrar el compte. Si continua el problema, contacta amb l'administració del node",delete_account_instructions:"Confirma que vols esborrar el compte escrivint la teva contrasenya aquí sota",export_theme:"Desa el tema",filtering:"Filtres",filtering_explanation:"Es silenciaran totes les entrades que continguin aquestes paraules. Separa-les per línies",follow_export:"Exporta la llista de contactes",follow_export_button:"Exporta tots els comptes que segueixes a un fitxer CSV",follow_export_processing:"S'està processant la petició. Aviat podràs descarregar el fitxer",follow_import:"Importa els contactes",follow_import_error:"No s'ha pogut importar els contactes",follows_imported:"S'han importat els contactes. Trigaran una estoneta en ser processats.",foreground:"Primer pla",general:"General",hide_attachments_in_convo:"Amaga els adjunts en les converses",hide_attachments_in_tl:"Amaga els adjunts en el flux d'entrades",import_followers_from_a_csv_file:"Importa els contactes des d'un fitxer CSV",import_theme:"Carrega un tema",inputRadius:"Caixes d'entrada de text",instance_default:"(default: {value})",interfaceLanguage:"Llengua de la interfície",invalid_theme_imported:"No s'ha entès l'arxiu carregat perquè no és un tema vàlid de Pleroma. No s'ha fet cap canvi als temes actuals.",limited_availability:"No està disponible en aquest navegador",links:"Enllaços",lock_account_description:"Restringeix el teu compte només a seguidores aprovades.",loop_video:"Reprodueix els vídeos en bucle",loop_video_silent_only:'Reprodueix en bucles només els vídeos sense so (com els "GIF" de Mastodon)',name:"Nom",name_bio:"Nom i presentació",new_password:"Contrasenya nova",notification_visibility:"Notifica'm quan algú",notification_visibility_follows:"Comença a seguir-me",notification_visibility_likes:"Marca com a preferida una entrada meva",notification_visibility_mentions:"Em menciona",notification_visibility_repeats:"Republica una entrada meva",no_rich_text_description:"Neteja el formatat de text de totes les entrades",nsfw_clickthrough:"Amaga el contingut NSFW darrer d'una imatge clicable",oauth_tokens:"Llistats OAuth",token:"Token",refresh_token:"Actualitza el token",valid_until:"Vàlid fins",revoke_token:"Revocar",panelRadius:"Panells",pause_on_unfocused:"Pausa la reproducció en continu quan la pestanya perdi el focus",presets:"Temes",profile_background:"Fons de pantalla",profile_banner:"Fons de perfil",profile_tab:"Perfil",radii_help:"Configura l'arrodoniment de les vores (en píxels)",replies_in_timeline:"Replies in timeline",reply_link_preview:"Mostra el missatge citat en passar el ratolí per sobre de l'enllaç de resposta",reply_visibility_all:"Mostra totes les respostes",reply_visibility_following:"Mostra només les respostes a entrades meves o d'usuàries que jo segueixo",reply_visibility_self:"Mostra només les respostes a entrades meves",saving_err:"No s'ha pogut desar la configuració",saving_ok:"S'ha desat la configuració",security_tab:"Seguretat",set_new_avatar:"Canvia l'avatar",set_new_profile_background:"Canvia el fons de pantalla",set_new_profile_banner:"Canvia el fons del perfil",settings:"Configuració",stop_gifs:"Anima els GIF només en passar-hi el ratolí per sobre",streaming:"Carrega automàticament entrades noves quan estigui a dalt de tot",text:"Text",theme:"Tema",theme_help:"Personalitza els colors del tema. Escriu-los en format RGB hexadecimal (#rrggbb)",tooltipRadius:"Missatges sobreposats",user_settings:"Configuració personal",values:{false:"no",true:"sí"}},time:{day:"{0} dia",days:"{0} dies",day_short:"{0} dia",days_short:"{0} dies",hour:"{0} hour",hours:"{0} hours",hour_short:"{0}h",hours_short:"{0}h",in_future:"in {0}",in_past:"fa {0}",minute:"{0} minute",minutes:"{0} minutes",minute_short:"{0}min",minutes_short:"{0}min",month:"{0} mes",months:"{0} mesos",month_short:"{0} mes",months_short:"{0} mesos",now:"ara mateix",now_short:"ara mateix",second:"{0} second",seconds:"{0} seconds",second_short:"{0}s",seconds_short:"{0}s",week:"{0} setm.",weeks:"{0} setm.",week_short:"{0} setm.",weeks_short:"{0} setm.",year:"{0} any",years:"{0} anys",year_short:"{0} any",years_short:"{0} anys"},timeline:{collapse:"Replega",conversation:"Conversa",error_fetching:"S'ha produït un error en carregar les entrades",load_older:"Carrega entrades anteriors",no_retweet_hint:'L\'entrada és només per a seguidores o és "directa", i per tant no es pot republicar',repeated:"republicat",show_new:"Mostra els nous",up_to_date:"Actualitzat"},user_card:{approve:"Aprova",block:"Bloqueja",blocked:"Bloquejat!",deny:"Denega",follow:"Segueix",followees:"Segueixo",followers:"Seguidors/es",following:"Seguint!",follows_you:"Et segueix!",mute:"Silencia",muted:"Silenciat",per_day:"per dia",remote_follow:"Seguiment remot",statuses:"Estats"},user_profile:{timeline_title:"Flux personal"},who_to_follow:{more:"More",who_to_follow:"A qui seguir"}}},function(e){e.exports={chat:{title:"Chat"},features_panel:{chat:"Chat",gopher:"Gopher",media_proxy:"Mediální proxy",scope_options:"Možnosti rozsahů",text_limit:"Textový limit",title:"Vlastnosti",who_to_follow:"Koho sledovat"},finder:{error_fetching_user:"Chyba při načítání uživatele",find_user:"Najít uživatele"},general:{apply:"Použít",submit:"Odeslat",more:"Více",generic_error:"Vyskytla se chyba",optional:"volitelné"},image_cropper:{crop_picture:"Oříznout obrázek",save:"Uložit",cancel:"Zrušit"},login:{login:"Přihlásit",description:"Přihlásit pomocí OAuth",logout:"Odhlásit",password:"Heslo",placeholder:"např. lain",register:"Registrovat",username:"Uživatelské jméno",hint:"Chcete-li se přidat do diskuze, přihlaste se"},media_modal:{previous:"Předchozí",next:"Další"},nav:{about:"O instanci",back:"Zpět",chat:"Místní chat",friend_requests:"Požadavky o sledování",mentions:"Zmínky",dms:"Přímé zprávy",public_tl:"Veřejná časová osa",timeline:"Časová osa",twkn:"Celá známá síť",user_search:"Hledání uživatelů",who_to_follow:"Koho sledovat",preferences:"Předvolby"},notifications:{broken_favorite:"Neznámý příspěvek, hledám jej…",favorited_you:"si oblíbil/a váš příspěvek",followed_you:"vás nyní sleduje",load_older:"Načíst starší oznámení",notifications:"Oznámení",read:"Číst!",repeated_you:"zopakoval/a váš příspěvek",no_more_notifications:"Žádná další oznámení"},post_status:{new_status:"Napsat nový příspěvek",account_not_locked_warning:"Váš účet není {0}. Kdokoliv vás může sledovat a vidět vaše příspěvky pouze pro sledující.",account_not_locked_warning_link:"uzamčen",attachments_sensitive:"Označovat přílohy jako citlivé",content_type:{"text/plain":"Prostý text","text/html":"HTML","text/markdown":"Markdown","text/bbcode":"BBCode"},content_warning:"Předmět (volitelný)",default:"Právě jsem přistál v L.A.",direct_warning:"Tento příspěvek uvidí pouze všichni zmínění uživatelé.",posting:"Přispívání",scope:{direct:"Přímý - Poslat pouze zmíněným uživatelům",private:"Pouze pro sledující - Poslat pouze sledujícím",public:"Veřejný - Poslat na veřejné časové osy",unlisted:"Neuvedený - Neposlat na veřejné časové osy"}},registration:{bio:"O vás",email:"E-mail",fullname:"Zobrazované jméno",password_confirm:"Potvrzení hesla",registration:"Registrace",token:"Token pozvánky",captcha:"CAPTCHA",new_captcha:"Kliknutím na obrázek získáte novou CAPTCHA",username_placeholder:"např. lain",fullname_placeholder:"např. Lain Iwakura",bio_placeholder:"např.\nNazdar, jsem Lain\nJsem anime dívka žijící v příměstském Japonsku. Možná mě znáte z Wired.",validations:{username_required:"nemůže být prázdné",fullname_required:"nemůže být prázdné",email_required:"nemůže být prázdný",password_required:"nemůže být prázdné",password_confirmation_required:"nemůže být prázdné",password_confirmation_match:"musí být stejné jako heslo"}},settings:{app_name:"Název aplikace",attachmentRadius:"Přílohy",attachments:"Přílohy",autoload:"Povolit automatické načítání při rolování dolů",avatar:"Avatar",avatarAltRadius:"Avatary (oznámení)",avatarRadius:"Avatary",background:"Pozadí",bio:"O vás",blocks_tab:"Blokování",btnRadius:"Tlačítka",cBlue:"Modrá (Odpovědět, sledovat)",cGreen:"Zelená (Zopakovat)",cOrange:"Oranžová (Oblíbit)",cRed:"Červená (Zrušit)",change_password:"Změnit heslo",change_password_error:"Při změně vašeho hesla se vyskytla chyba.",changed_password:"Heslo bylo úspěšně změněno!",collapse_subject:"Zabalit příspěvky s předměty",composing:"Komponování",confirm_new_password:"Potvrďte nové heslo",current_avatar:"Váš současný avatar",current_password:"Současné heslo",current_profile_banner:"Váš současný profilový banner",data_import_export_tab:"Import/export dat",default_vis:"Výchozí rozsah viditelnosti",delete_account:"Smazat účet",delete_account_description:"Trvale smaže váš účet a všechny vaše příspěvky.",delete_account_error:"Při mazání vašeho účtu nastala chyba. Pokud tato chyba bude trvat, kontaktujte prosím admministrátora vaší instance.",delete_account_instructions:"Pro potvrzení smazání účtu napište své heslo do pole níže.",avatar_size_instruction:"Doporučená minimální velikost pro avatarové obrázky je 150x150 pixelů.",export_theme:"Uložit přednastavení",filtering:"Filtrování",filtering_explanation:"Všechny příspěvky obsahující tato slova budou skryty. Napište jedno slovo na každý řádek",follow_export:"Export sledovaných",follow_export_button:"Exportovat vaše sledované do souboru CSV",follow_export_processing:"Zpracovávám, brzy si budete moci stáhnout váš soubor",follow_import:"Import sledovaných",follow_import_error:"Chyba při importování sledovaných",follows_imported:"Sledovaní importováni! Jejich zpracování bude chvilku trvat.",foreground:"Popředí",general:"Obecné",hide_attachments_in_convo:"Skrývat přílohy v konverzacích",hide_attachments_in_tl:"Skrývat přílohy v časové ose",max_thumbnails:"Maximální počet miniatur na příspěvek",hide_isp:"Skrýt panel specifický pro instanci",preload_images:"Přednačítat obrázky",use_one_click_nsfw:"Otevírat citlivé přílohy pouze jedním kliknutím",hide_post_stats:"Skrývat statistiky příspěvků (např. počet oblíbení)",hide_user_stats:"Skrývat statistiky uživatelů (např. počet sledujících)",hide_filtered_statuses:"Skrývat filtrované příspěvky",import_followers_from_a_csv_file:"Importovat sledované ze souboru CSV",import_theme:"Načíst přednastavení",inputRadius:"Vstupní pole",checkboxRadius:"Zaškrtávací pole",instance_default:"(výchozí: {value})",instance_default_simple:"(výchozí)",interface:"Rozhraní",interfaceLanguage:"Jazyk rozhraní",invalid_theme_imported:"Zvolený soubor není podporovaný motiv Pleroma. Nebyly provedeny žádné změny s vaším motivem.",limited_availability:"Nedostupné ve vašem prohlížeči",links:"Odkazy",lock_account_description:"Omezit váš účet pouze na schválené sledující",loop_video:"Opakovat videa",loop_video_silent_only:"Opakovat pouze videa beze zvuku (t.j. „GIFy“ na Mastodonu)",mutes_tab:"Ignorování",play_videos_in_modal:"Přehrávat videa přímo v prohlížeči médií",use_contain_fit:"Neořezávat přílohu v miniaturách",name:"Jméno",name_bio:"Jméno a popis",new_password:"Nové heslo",notification_visibility:"Typy oznámení k zobrazení",notification_visibility_follows:"Sledující",notification_visibility_likes:"Oblíbení",notification_visibility_mentions:"Zmínky",notification_visibility_repeats:"Zopakování",no_rich_text_description:"Odstranit ze všech příspěvků formátování textu",no_blocks:"Žádná blokování",no_mutes:"Žádná ignorování",hide_follows_description:"Nezobrazovat, koho sleduji",hide_followers_description:"Nezobrazovat, kdo mě sleduje",show_admin_badge:"Zobrazovat v mém profilu odznak administrátora",show_moderator_badge:"Zobrazovat v mém profilu odznak moderátora",nsfw_clickthrough:"Povolit prokliknutelné skrývání citlivých příloh",oauth_tokens:"Tokeny OAuth",token:"Token",refresh_token:"Obnovit token",valid_until:"Platný do",revoke_token:"Odvolat",panelRadius:"Panely",pause_on_unfocused:"Pozastavit streamování, pokud není záložka prohlížeče v soustředění",presets:"Přednastavení",profile_background:"Profilové pozadí",profile_banner:"Profilový banner",profile_tab:"Profil",radii_help:"Nastavit zakulacení rohů rozhraní (v pixelech)",replies_in_timeline:"Odpovědi v časové ose",reply_link_preview:"Povolit náhledy odkazu pro odpověď při přejetí myši",reply_visibility_all:"Zobrazit všechny odpovědi",reply_visibility_following:"Zobrazit pouze odpovědi směřované na mě nebo uživatele, které sleduji",reply_visibility_self:"Zobrazit pouze odpovědi směřované na mě",saving_err:"Chyba při ukládání nastavení",saving_ok:"Nastavení uložena",security_tab:"Bezpečnost",scope_copy:"Kopírovat rozsah při odpovídání (přímé zprávy jsou vždy kopírovány)",set_new_avatar:"Nastavit nový avatar",set_new_profile_background:"Nastavit nové profilové pozadí",set_new_profile_banner:"Nastavit nový profilový banner",settings:"Nastavení",subject_input_always_show:"Vždy zobrazit pole pro předmět",subject_line_behavior:"Kopírovat předmět při odpovídání",subject_line_email:"Jako u e-mailu: „re: předmět“",subject_line_mastodon:"Jako u Mastodonu: zkopírovat tak, jak je",subject_line_noop:"Nekopírovat",post_status_content_type:"Publikovat typ obsahu příspěvku",stop_gifs:"Přehrávat GIFy při přejetí myši",streaming:"Povolit automatické streamování nových příspěvků při rolování nahoru",text:"Text",theme:"Motiv",theme_help:"Použijte hexadecimální barevné kódy (#rrggbb) pro přizpůsobení vašeho barevného motivu.",theme_help_v2_1:"Zaškrtnutím pole můžete také přepsat barvy a průhlednost některých komponentů, pro smazání všech přednastavení použijte tlačítko „Smazat vše“.",theme_help_v2_2:"Ikony pod některými položkami jsou indikátory kontrastu pozadí/textu, pro detailní informace nad nimi přejeďte myší. Prosím berte na vědomí, že při používání kontrastu průhlednosti ukazují indikátory nejhorší možný případ.",tooltipRadius:"Popisky/upozornění",upload_a_photo:"Nahrát fotku",user_settings:"Uživatelská nastavení",values:{false:"ne",true:"ano"},notifications:"Oznámení",enable_web_push_notifications:"Povolit webová push oznámení",style:{switcher:{keep_color:"Ponechat barvy",keep_shadows:"Ponechat stíny",keep_opacity:"Ponechat průhlednost",keep_roundness:"Ponechat kulatost",keep_fonts:"Keep fonts",save_load_hint:"Možnosti „Ponechat“ dočasně ponechávají aktuálně nastavené možností při volení či nahrávání motivů, také tyto možnosti ukládají při exportování motivu. Pokud není žádné pole zaškrtnuto, uloží export motivu všechno.",reset:"Resetovat",clear_all:"Vymazat vše",clear_opacity:"Vymazat průhlednost"},common:{color:"Barva",opacity:"Průhlednost",contrast:{hint:"Poměr kontrastu je {ratio}, {level} {context}",level:{aa:"splňuje směrnici úrovně AA (minimální)",aaa:"splňuje směrnici úrovně AAA (doporučováno)",bad:"nesplňuje žádné směrnice přístupnosti"},context:{"18pt":"pro velký (18+ bodů) text",text:"pro text"}}},common_colors:{_tab_label:"Obvyklé",main:"Obvyklé barvy",foreground_hint:"Pro detailnější kontrolu viz záložka „Pokročilé“",rgbo:"Ikony, odstíny, odznaky"},advanced_colors:{_tab_label:"Pokročilé",alert:"Pozadí upozornění",alert_error:"Chyba",badge:"Pozadí odznaků",badge_notification:"Oznámení",panel_header:"Záhlaví panelu",top_bar:"Vrchní pruh",borders:"Okraje",buttons:"Tlačítka",inputs:"Vstupní pole",faint_text:"Vybledlý text"},radii:{_tab_label:"Kulatost"},shadows:{_tab_label:"Stín a osvětlení",component:"Komponent",override:"Přepsat",shadow_id:"Stín #{value}",blur:"Rozmazání",spread:"Rozsah",inset:"Vsazení",hint:"Pro stíny můžete také použít --variable jako hodnotu barvy pro použití proměnných CSS3. Prosím berte na vědomí, že nastavení průhlednosti v tomto případě nebude fungovat.",filter_hint:{always_drop_shadow:"Varování, tento stín vždy používá {0}, když to prohlížeč podporuje.",drop_shadow_syntax:"{0} nepodporuje parametr {1} a klíčové slovo {2}.",avatar_inset:"Prosím berte na vědomí, že kombinování vsazených i nevsazených stínů u avatarů může u průhledných avatarů dát neočekávané výsledky.",spread_zero:"Stíny s rozsahem > 0 se zobrazí, jako kdyby byl rozsah nastaven na nulu",inset_classic:"Vsazené stíny budou používat {0}"},components:{panel:"Panel",panelHeader:"Záhlaví panelu",topBar:"Vrchní pruh",avatar:"Avatar uživatele (v zobrazení profilu)",avatarStatus:"Avatar uživatele (v zobrazení příspěvku)",popup:"Vyskakovací okna a popisky",button:"Tlačítko",buttonHover:"Tlačítko (přejetí myši)",buttonPressed:"Tlačítko (stisknuto)",buttonPressedHover:"Button (stisknuto+přejetí myši)",input:"Vstupní pole"}},fonts:{_tab_label:"Písma",help:"Zvolte písmo, které bude použito pro prvky rozhraní. U možnosti „vlastní“ musíte zadat přesný název písma tak, jak se zobrazuje v systému.",components:{interface:"Rozhraní",input:"Vstupní pole",post:"Text příspěvků",postCode:"Neproporcionální text v příspěvku (formátovaný text)"},family:"Název písma",size:"Velikost (v pixelech)",weight:"Tloušťka",custom:"Vlastní"},preview:{header:"Náhled",content:"Obsah",error:"Příklad chyby",button:"Tlačítko",text:"Spousta dalšího {0} a {1}",mono:"obsahu",input:"Právě jsem přistál v L.A.",faint_link:"pomocný manuál",fine_print:"Přečtěte si náš {0} a nenaučte se nic užitečného!",header_faint:"Tohle je v pohodě",checkbox:"Pročetl/a jsem podmínky používání",link:"hezký malý odkaz"}}},time:{day:"{0} day",days:"{0} days",day_short:"{0}d",days_short:"{0}d",hour:"{0} hour",hours:"{0} hours",hour_short:"{0}h",hours_short:"{0}h",in_future:"in {0}",in_past:"{0} ago",minute:"{0} minute",minutes:"{0} minutes",minute_short:"{0}min",minutes_short:"{0}min",month:"{0} měs",months:"{0} měs",month_short:"{0} měs",months_short:"{0} měs",now:"teď",now_short:"teď",second:"{0} second",seconds:"{0} seconds",second_short:"{0}s",seconds_short:"{0}s",week:"{0} týd",weeks:"{0} týd",week_short:"{0} týd",weeks_short:"{0} týd",year:"{0} r",years:"{0} l",year_short:"{0}r",years_short:"{0}l"},timeline:{collapse:"Zabalit",conversation:"Konverzace",error_fetching:"Chyba při načítání aktualizací",load_older:"Načíst starší příspěvky",no_retweet_hint:"Příspěvek je označen jako pouze pro sledující či přímý a nemůže být zopakován",repeated:"zopakoval/a",show_new:"Zobrazit nové",up_to_date:"Aktuální",no_more_statuses:"Žádné další příspěvky",no_statuses:"Žádné příspěvky"},status:{reply_to:"Odpověď uživateli",replies_list:"Odpovědi:"},user_card:{approve:"Schválit",block:"Blokovat",blocked:"Blokován/a!",deny:"Zamítnout",favorites:"Oblíbené",follow:"Sledovat",follow_sent:"Požadavek odeslán!",follow_progress:"Odeslílám požadavek…",follow_again:"Odeslat požadavek znovu?",follow_unfollow:"Přestat sledovat",followees:"Sledovaní",followers:"Sledující",following:"Sledujete!",follows_you:"Sleduje vás!",its_you:"Jste to vy!",media:"Média",mute:"Ignorovat",muted:"Ignorován/a",per_day:"za den",remote_follow:"Vzdálené sledování",statuses:"Příspěvky",unblock:"Odblokovat",unblock_progress:"Odblokuji…",block_progress:"Blokuji…",unmute:"Přestat ignorovat",unmute_progress:"Ruším ignorování…",mute_progress:"Ignoruji…"},user_profile:{timeline_title:"Uživatelská časová osa",profile_does_not_exist:"Omlouváme se, tento profil neexistuje.",profile_loading_error:"Omlouváme se, při načítání tohoto profilu se vyskytla chyba."},who_to_follow:{more:"Více",who_to_follow:"Koho sledovat"},tool_tip:{media_upload:"Nahrát média",repeat:"Zopakovat",reply:"Odpovědět",favorite:"Oblíbit",user_settings:"Uživatelské nastavení"},upload:{error:{base:"Nahrávání selhalo.",file_too_big:"Soubor je příliš velký [{filesize}{filesizeunit} / {allowedsize}{allowedsizeunit}]",default:"Zkuste to znovu později"},file_size_units:{B:"B",KiB:"KiB",MiB:"MiB",GiB:"GiB",TiB:"TiB"}}}},function(e){e.exports={chat:{title:"Chat"},features_panel:{chat:"Chat",gopher:"Gopher",media_proxy:"Media Proxy",scope_options:"Reichweitenoptionen",text_limit:"Textlimit",title:"Features",who_to_follow:"Who to follow"},finder:{error_fetching_user:"Fehler beim Suchen des Benutzers",find_user:"Finde Benutzer"},general:{apply:"Anwenden",submit:"Absenden"},login:{login:"Anmelden",description:"Mit OAuth anmelden",logout:"Abmelden",password:"Passwort",placeholder:"z.B. lain",register:"Registrieren",username:"Benutzername"},nav:{back:"Zurück",chat:"Lokaler Chat",friend_requests:"Followanfragen",mentions:"Erwähnungen",dms:"Direktnachrichten",public_tl:"Öffentliche Zeitleiste",timeline:"Zeitleiste",twkn:"Das gesamte bekannte Netzwerk",user_search:"Benutzersuche",preferences:"Voreinstellungen"},notifications:{broken_favorite:"Unbekannte Nachricht, suche danach...",favorited_you:"favorisierte deine Nachricht",followed_you:"folgt dir",load_older:"Ältere Benachrichtigungen laden",notifications:"Benachrichtigungen",read:"Gelesen!",repeated_you:"wiederholte deine Nachricht"},post_status:{new_status:"Neuen Status veröffentlichen",account_not_locked_warning:"Dein Profil ist nicht {0}. Wer dir folgen will, kann das jederzeit tun und dann auch deine privaten Beiträge sehen.",account_not_locked_warning_link:"gesperrt",attachments_sensitive:"Anhänge als heikel markieren",content_type:{"text/plain":"Nur Text"},content_warning:"Betreff (optional)",default:"Sitze gerade im Hofbräuhaus.",direct_warning:"Dieser Beitrag wird nur für die erwähnten Nutzer sichtbar sein.",posting:"Veröffentlichen",scope:{direct:"Direkt - Beitrag nur an erwähnte Profile",private:"Nur Follower - Beitrag nur für Follower sichtbar",public:"Öffentlich - Beitrag an öffentliche Zeitleisten",unlisted:"Nicht gelistet - Nicht in öffentlichen Zeitleisten anzeigen"}},registration:{bio:"Bio",email:"Email",fullname:"Angezeigter Name",password_confirm:"Passwort bestätigen",registration:"Registrierung",token:"Einladungsschlüssel",captcha:"CAPTCHA",new_captcha:"Zum Erstellen eines neuen Captcha auf das Bild klicken.",validations:{username_required:"darf nicht leer sein",fullname_required:"darf nicht leer sein",email_required:"darf nicht leer sein",password_required:"darf nicht leer sein",password_confirmation_required:"darf nicht leer sein",password_confirmation_match:"sollte mit dem Passwort identisch sein."}},settings:{attachmentRadius:"Anhänge",attachments:"Anhänge",autoload:"Aktiviere automatisches Laden von älteren Beiträgen beim scrollen",avatar:"Avatar",avatarAltRadius:"Avatare (Benachrichtigungen)",avatarRadius:"Avatare",background:"Hintergrund",bio:"Bio",btnRadius:"Buttons",cBlue:"Blau (Antworten, Folgt dir)",cGreen:"Grün (Retweet)",cOrange:"Orange (Favorisieren)",cRed:"Rot (Abbrechen)",change_password:"Passwort ändern",change_password_error:"Es gab ein Problem bei der Änderung des Passworts.",changed_password:"Passwort erfolgreich geändert!",collapse_subject:"Beiträge mit Betreff einklappen",composing:"Verfassen",confirm_new_password:"Neues Passwort bestätigen",current_avatar:"Dein derzeitiger Avatar",current_password:"Aktuelles Passwort",current_profile_banner:"Der derzeitige Banner deines Profils",data_import_export_tab:"Datenimport/-export",default_vis:"Standard-Sichtbarkeitsumfang",delete_account:"Account löschen",delete_account_description:"Lösche deinen Account und alle deine Nachrichten unwiderruflich.",delete_account_error:"Es ist ein Fehler beim Löschen deines Accounts aufgetreten. Tritt dies weiterhin auf, wende dich an den Administrator der Instanz.",delete_account_instructions:"Tippe dein Passwort unten in das Feld ein, um die Löschung deines Accounts zu bestätigen.",export_theme:"Farbschema speichern",filtering:"Filtern",filtering_explanation:"Alle Beiträge die diese Wörter enthalten werden ausgeblendet. Ein Wort pro Zeile.",follow_export:"Follower exportieren",follow_export_button:"Exportiere deine Follows in eine csv-Datei",follow_export_processing:"In Bearbeitung. Die Liste steht gleich zum herunterladen bereit.",follow_import:"Followers importieren",follow_import_error:"Fehler beim importieren der Follower",follows_imported:"Followers importiert! Die Bearbeitung kann eine Zeit lang dauern.",foreground:"Vordergrund",general:"Allgemein",hide_attachments_in_convo:"Anhänge in Unterhaltungen ausblenden",hide_attachments_in_tl:"Anhänge in der Zeitleiste ausblenden",hide_isp:"Instanz-spezifisches Panel ausblenden",preload_images:"Bilder vorausladen",hide_post_stats:"Beitragsstatistiken verbergen (z.B. die Anzahl der Favoriten)",hide_user_stats:"Benutzerstatistiken verbergen (z.B. die Anzahl der Follower)",hide_filtered_statuses:"Gefilterte Beiträge verbergen",import_followers_from_a_csv_file:"Importiere Follower, denen du folgen möchtest, aus einer CSV-Datei",import_theme:"Farbschema laden",inputRadius:"Eingabefelder",checkboxRadius:"Auswahlfelder",instance_default:"(Standard: {value})",instance_default_simple:"(Standard)",interface:"Oberfläche",interfaceLanguage:"Sprache der Oberfläche",invalid_theme_imported:"Die ausgewählte Datei ist kein unterstütztes Pleroma-Theme. Keine Änderungen wurden vorgenommen.",limited_availability:"In deinem Browser nicht verfügbar",links:"Links",lock_account_description:"Sperre deinen Account, um neue Follower zu genehmigen oder abzulehnen",loop_video:"Videos wiederholen",loop_video_silent_only:'Nur Videos ohne Ton wiederholen (z.B. Mastodons "gifs")',name:"Name",name_bio:"Name & Bio",new_password:"Neues Passwort",notification_visibility:"Benachrichtigungstypen, die angezeigt werden sollen",notification_visibility_follows:"Follows",notification_visibility_likes:"Favoriten",notification_visibility_mentions:"Erwähnungen",notification_visibility_repeats:"Wiederholungen",no_rich_text_description:"Rich-Text Formatierungen von allen Beiträgen entfernen",hide_follows_description:"Zeige nicht, wem ich folge",hide_followers_description:"Zeige nicht, wer mir folgt",nsfw_clickthrough:"Aktiviere ausblendbares Overlay für Anhänge, die als NSFW markiert sind",oauth_tokens:"OAuth-Token",token:"Zeichen",refresh_token:"Token aktualisieren",valid_until:"Gültig bis",revoke_token:"Widerrufen",panelRadius:"Panel",pause_on_unfocused:"Streaming pausieren, wenn das Tab nicht fokussiert ist",presets:"Voreinstellungen",profile_background:"Profilhintergrund",profile_banner:"Profilbanner",profile_tab:"Profil",radii_help:"Kantenrundung (in Pixel) der Oberfläche anpassen",replies_in_timeline:"Antworten in der Zeitleiste",reply_link_preview:"Antwortlink-Vorschau beim Überfahren mit der Maus aktivieren",reply_visibility_all:"Alle Antworten zeigen",reply_visibility_following:"Zeige nur Antworten an mich oder an Benutzer, denen ich folge",reply_visibility_self:"Nur Antworten an mich anzeigen",saving_err:"Fehler beim Speichern der Einstellungen",saving_ok:"Einstellungen gespeichert",security_tab:"Sicherheit",scope_copy:"Reichweite beim Antworten übernehmen (Direktnachrichten werden immer kopiert)",set_new_avatar:"Setze einen neuen Avatar",set_new_profile_background:"Setze einen neuen Hintergrund für dein Profil",set_new_profile_banner:"Setze einen neuen Banner für dein Profil",settings:"Einstellungen",subject_input_always_show:"Betreff-Feld immer anzeigen",subject_line_behavior:"Betreff beim Antworten kopieren",subject_line_email:'Wie Email: "re: Betreff"',subject_line_mastodon:"Wie Mastodon: unverändert kopieren",subject_line_noop:"Nicht kopieren",stop_gifs:"Play-on-hover GIFs",streaming:"Aktiviere automatisches Laden (Streaming) von neuen Beiträgen",text:"Text",theme:"Farbschema",theme_help:"Benutze HTML-Farbcodes (#rrggbb) um dein Farbschema anzupassen",theme_help_v2_1:'Du kannst auch die Farben und die Deckkraft bestimmter Komponenten überschreiben, indem du das Kontrollkästchen umschaltest. Verwende die Schaltfläche "Alle löschen", um alle Überschreibungen zurückzusetzen.',theme_help_v2_2:"Unter einigen Einträgen befinden sich Symbole für Hintergrund-/Textkontrastindikatoren, für detaillierte Informationen fahre mit der Maus darüber. Bitte beachte, dass bei der Verwendung von Transparenz Kontrastindikatoren den schlechtest möglichen Fall darstellen.",tooltipRadius:"Tooltips/Warnungen",user_settings:"Benutzereinstellungen",values:{false:"nein",true:"Ja"},notifications:"Benachrichtigungen",enable_web_push_notifications:"Web-Pushbenachrichtigungen aktivieren",style:{switcher:{keep_color:"Farben beibehalten",keep_shadows:"Schatten beibehalten",keep_opacity:"Deckkraft beibehalten",keep_roundness:"Abrundungen beibehalten",keep_fonts:"Schriften beibehalten",save_load_hint:'Die "Beibehalten"-Optionen behalten die aktuell eingestellten Optionen beim Auswählen oder Laden von Designs bei, sie speichern diese Optionen auch beim Exportieren eines Designs. Wenn alle Kontrollkästchen deaktiviert sind, wird beim Exportieren des Designs alles gespeichert.',reset:"Zurücksetzen",clear_all:"Alles leeren",clear_opacity:"Deckkraft leeren"},common:{color:"Farbe",opacity:"Deckkraft",contrast:{hint:"Das Kontrastverhältnis ist {ratio}, es {level} {context}",level:{aa:"entspricht Level AA Richtlinie (minimum)",aaa:"entspricht Level AAA Richtlinie (empfohlen)",bad:"entspricht keiner Richtlinien zur Barrierefreiheit"},context:{"18pt":"für großen (18pt+) Text",text:"für Text"}}},common_colors:{_tab_label:"Allgemein",main:"Allgemeine Farben",foreground_hint:'Siehe Reiter "Erweitert" für eine detailliertere Einstellungen',rgbo:"Symbole, Betonungen, Kennzeichnungen"},advanced_colors:{_tab_label:"Erweitert",alert:"Warnhinweis-Hintergrund",alert_error:"Fehler",badge:"Kennzeichnungs-Hintergrund",badge_notification:"Benachrichtigung",panel_header:"Panel-Kopf",top_bar:"Obere Leiste",borders:"Rahmen",buttons:"Schaltflächen",inputs:"Eingabefelder",faint_text:"Verblasster Text"},radii:{_tab_label:"Abrundungen"},shadows:{_tab_label:"Schatten und Beleuchtung",component:"Komponente",override:"Überschreiben",shadow_id:"Schatten #{value}",blur:"Unschärfe",spread:"Streuung",inset:"Einsatz",hint:"Für Schatten kannst du auch --variable als Farbwert verwenden, um CSS3-Variablen zu verwenden. Bitte beachte, dass die Einstellung der Deckkraft in diesem Fall nicht funktioniert.",filter_hint:{always_drop_shadow:"Achtung, dieser Schatten verwendet immer {0}, wenn der Browser dies unterstützt.",drop_shadow_syntax:"{0} unterstützt Parameter {1} und Schlüsselwort {2} nicht.",avatar_inset:"Bitte beachte, dass die Kombination von eingesetzten und nicht eingesetzten Schatten auf Avataren zu unerwarteten Ergebnissen bei transparenten Avataren führen kann.",spread_zero:"Schatten mit einer Streuung > 0 erscheinen so, als ob sie auf Null gesetzt wären.",inset_classic:"Eingesetzte Schatten werden mit {0} verwendet"},components:{panel:"Panel",panelHeader:"Panel-Kopf",topBar:"Obere Leiste",avatar:"Benutzer-Avatar (in der Profilansicht)",avatarStatus:"Benutzer-Avatar (in der Beitragsanzeige)",popup:"Dialogfenster und Hinweistexte",button:"Schaltfläche",buttonHover:"Schaltfläche (hover)",buttonPressed:"Schaltfläche (gedrückt)",buttonPressedHover:"Schaltfläche (gedrückt+hover)",input:"Input field"}},fonts:{_tab_label:"Schriften",help:'Wähl die Schriftart, die für Elemente der Benutzeroberfläche verwendet werden soll. Für " Benutzerdefiniert" musst du den genauen Schriftnamen eingeben, wie er im System angezeigt wird.',components:{interface:"Oberfläche",input:"Eingabefelder",post:"Beitragstext",postCode:"Dicktengleicher Text in einem Beitrag (Rich-Text)"},family:"Schriftname",size:"Größe (in px)",weight:"Gewicht (Dicke)",custom:"Benutzerdefiniert"},preview:{header:"Vorschau",content:"Inhalt",error:"Beispielfehler",button:"Schaltfläche",text:"Ein Haufen mehr von {0} und {1}",mono:"Inhalt",input:"Sitze gerade im Hofbräuhaus.",faint_link:"Hilfreiche Anleitung",fine_print:"Lies unser {0}, um nichts Nützliches zu lernen!",header_faint:"Das ist in Ordnung",checkbox:"Ich habe die Allgemeinen Geschäftsbedingungen überflogen",link:"ein netter kleiner Link"}}},timeline:{collapse:"Einklappen",conversation:"Unterhaltung",error_fetching:"Fehler beim Laden",load_older:"Lade ältere Beiträge",no_retweet_hint:"Der Beitrag ist als nur-für-Follower oder als Direktnachricht markiert und kann nicht wiederholt werden.",repeated:"wiederholte",show_new:"Zeige Neuere",up_to_date:"Aktuell"},user_card:{approve:"Genehmigen",block:"Blockieren",blocked:"Blockiert!",deny:"Ablehnen",follow:"Folgen",follow_sent:"Anfrage gesendet!",follow_progress:"Anfragen…",follow_again:"Anfrage erneut senden?",follow_unfollow:"Folgen beenden",followees:"Folgt",followers:"Followers",following:"Folgst du!",follows_you:"Folgt dir!",its_you:"Das bist du!",mute:"Stummschalten",muted:"Stummgeschaltet",per_day:"pro Tag",remote_follow:"Folgen",statuses:"Beiträge"},user_profile:{timeline_title:"Beiträge"},who_to_follow:{more:"Mehr",who_to_follow:"Wem soll ich folgen"},tool_tip:{media_upload:"Medien hochladen",repeat:"Wiederholen",reply:"Antworten",favorite:"Favorisieren",user_settings:"Benutzereinstellungen"},upload:{error:{base:"Hochladen fehlgeschlagen.",file_too_big:"Datei ist zu groß [{filesize}{filesizeunit} / {allowedsize}{allowedsizeunit}]",default:"Bitte versuche es später erneut"},file_size_units:{B:"B",KiB:"KiB",MiB:"MiB",GiB:"GiB",TiB:"TiB"}}}},function(e){e.exports={chat:{title:"Chat"},exporter:{export:"Export",processing:"Processing, you'll soon be asked to download your file"},features_panel:{chat:"Chat",gopher:"Gopher",media_proxy:"Media proxy",scope_options:"Scope options",text_limit:"Text limit",title:"Features",who_to_follow:"Who to follow"},finder:{error_fetching_user:"Error fetching user",find_user:"Find user"},general:{apply:"Apply",submit:"Submit",more:"More",generic_error:"An error occured",optional:"optional",show_more:"Show more",show_less:"Show less",cancel:"Cancel",disable:"Disable",enable:"Enable",confirm:"Confirm",verify:"Verify"},image_cropper:{crop_picture:"Crop picture",save:"Save",save_without_cropping:"Save without cropping",cancel:"Cancel"},importer:{submit:"Submit",success:"Imported successfully.",error:"An error occured while importing this file."},login:{login:"Log in",description:"Log in with OAuth",logout:"Log out",password:"Password",placeholder:"e.g. lain",register:"Register",username:"Username",hint:"Log in to join the discussion",authentication_code:"Authentication code",enter_recovery_code:"Enter a recovery code",enter_two_factor_code:"Enter a two-factor code",recovery_code:"Recovery code",heading:{totp:"Two-factor authentication",recovery:"Two-factor recovery"}},media_modal:{previous:"Previous",next:"Next"},nav:{about:"About",back:"Back",chat:"Local Chat",friend_requests:"Follow Requests",mentions:"Mentions",interactions:"Interactions",dms:"Direct Messages",public_tl:"Public Timeline",timeline:"Timeline",twkn:"The Whole Known Network",user_search:"User Search",who_to_follow:"Who to follow",preferences:"Preferences"},notifications:{broken_favorite:"Unknown status, searching for it...",favorited_you:"favorited your status",followed_you:"followed you",load_older:"Load older notifications",notifications:"Notifications",read:"Read!",repeated_you:"repeated your status",no_more_notifications:"No more notifications"},polls:{add_poll:"Add Poll",add_option:"Add Option",option:"Option",votes:"votes",vote:"Vote",type:"Poll type",single_choice:"Single choice",multiple_choices:"Multiple choices",expiry:"Poll age",expires_in:"Poll ends in {0}",expired:"Poll ended {0} ago",not_enough_options:"Too few unique options in poll"},interactions:{favs_repeats:"Repeats and Favorites",follows:"New follows",load_older:"Load older interactions"},post_status:{new_status:"Post new status",account_not_locked_warning:"Your account is not {0}. Anyone can follow you to view your follower-only posts.",account_not_locked_warning_link:"locked",attachments_sensitive:"Mark attachments as sensitive",content_type:{"text/plain":"Plain text","text/html":"HTML","text/markdown":"Markdown","text/bbcode":"BBCode"},content_warning:"Subject (optional)",default:"Just landed in L.A.",direct_warning_to_all:"This post will be visible to all the mentioned users.",direct_warning_to_first_only:"This post will only be visible to the mentioned users at the beginning of the message.",posting:"Posting",scope_notice:{public:"This post will be visible to everyone",private:"This post will be visible to your followers only",unlisted:"This post will not be visible in Public Timeline and The Whole Known Network"},scope:{direct:"Direct - Post to mentioned users only",private:"Followers-only - Post to followers only",public:"Public - Post to public timelines",unlisted:"Unlisted - Do not post to public timelines"}},registration:{bio:"Bio",email:"Email",fullname:"Display name",password_confirm:"Password confirmation",registration:"Registration",token:"Invite token",captcha:"CAPTCHA",new_captcha:"Click the image to get a new captcha",username_placeholder:"e.g. lain",fullname_placeholder:"e.g. Lain Iwakura",bio_placeholder:"e.g.\nHi, I'm Lain.\nI’m an anime girl living in suburban Japan. You may know me from the Wired.",validations:{username_required:"cannot be left blank",fullname_required:"cannot be left blank",email_required:"cannot be left blank",password_required:"cannot be left blank",password_confirmation_required:"cannot be left blank",password_confirmation_match:"should be the same as password"}},selectable_list:{select_all:"Select all"},settings:{app_name:"App name",security:"Security",enter_current_password_to_confirm:"Enter your current password to confirm your identity",mfa:{otp:"OTP",setup_otp:"Setup OTP",wait_pre_setup_otp:"presetting OTP",confirm_and_enable:"Confirm & enable OTP",title:"Two-factor Authentication",generate_new_recovery_codes:"Generate new recovery codes",warning_of_generate_new_codes:"When you generate new recovery codes, your old codes won’t work anymore.",recovery_codes:"Recovery codes.",waiting_a_recovery_codes:"Receiving backup codes...",recovery_codes_warning:"Write the codes down or save them somewhere secure - otherwise you won't see them again. If you lose access to your 2FA app and recovery codes you'll be locked out of your account.",authentication_methods:"Authentication methods",scan:{title:"Scan",desc:"Using your two-factor app, scan this QR code or enter text key:",secret_code:"Key"},verify:{desc:"To enable two-factor authentication, enter the code from your two-factor app:"}},attachmentRadius:"Attachments",attachments:"Attachments",autoload:"Enable automatic loading when scrolled to the bottom",avatar:"Avatar",avatarAltRadius:"Avatars (Notifications)",avatarRadius:"Avatars",background:"Background",bio:"Bio",block_export:"Block export",block_export_button:"Export your blocks to a csv file",block_import:"Block import",block_import_error:"Error importing blocks",blocks_imported:"Blocks imported! Processing them will take a while.",blocks_tab:"Blocks",btnRadius:"Buttons",cBlue:"Blue (Reply, follow)",cGreen:"Green (Retweet)",cOrange:"Orange (Favorite)",cRed:"Red (Cancel)",change_password:"Change Password",change_password_error:"There was an issue changing your password.",changed_password:"Password changed successfully!",collapse_subject:"Collapse posts with subjects",composing:"Composing",confirm_new_password:"Confirm new password",current_avatar:"Your current avatar",current_password:"Current password",current_profile_banner:"Your current profile banner",data_import_export_tab:"Data Import / Export",default_vis:"Default visibility scope",delete_account:"Delete Account",delete_account_description:"Permanently delete your account and all your messages.",delete_account_error:"There was an issue deleting your account. If this persists please contact your instance administrator.",delete_account_instructions:"Type your password in the input below to confirm account deletion.",avatar_size_instruction:"The recommended minimum size for avatar images is 150x150 pixels.",export_theme:"Save preset",filtering:"Filtering",filtering_explanation:"All statuses containing these words will be muted, one per line",follow_export:"Follow export",follow_export_button:"Export your follows to a csv file",follow_import:"Follow import",follow_import_error:"Error importing followers",follows_imported:"Follows imported! Processing them will take a while.",foreground:"Foreground",general:"General",hide_attachments_in_convo:"Hide attachments in conversations",hide_attachments_in_tl:"Hide attachments in timeline",hide_muted_posts:"Hide posts of muted users",max_thumbnails:"Maximum amount of thumbnails per post",hide_isp:"Hide instance-specific panel",preload_images:"Preload images",use_one_click_nsfw:"Open NSFW attachments with just one click",hide_post_stats:"Hide post statistics (e.g. the number of favorites)",hide_user_stats:"Hide user statistics (e.g. the number of followers)",hide_filtered_statuses:"Hide filtered statuses",import_blocks_from_a_csv_file:"Import blocks from a csv file",import_followers_from_a_csv_file:"Import follows from a csv file",import_theme:"Load preset",inputRadius:"Input fields",checkboxRadius:"Checkboxes",instance_default:"(default: {value})",instance_default_simple:"(default)",interface:"Interface",interfaceLanguage:"Interface language",invalid_theme_imported:"The selected file is not a supported Pleroma theme. No changes to your theme were made.",limited_availability:"Unavailable in your browser",links:"Links",lock_account_description:"Restrict your account to approved followers only",loop_video:"Loop videos",loop_video_silent_only:'Loop only videos without sound (i.e. Mastodon\'s "gifs")',mutes_tab:"Mutes",play_videos_in_modal:"Play videos directly in the media viewer",use_contain_fit:"Don't crop the attachment in thumbnails",name:"Name",name_bio:"Name & Bio",new_password:"New password",notification_visibility:"Types of notifications to show",notification_visibility_follows:"Follows",notification_visibility_likes:"Likes",notification_visibility_mentions:"Mentions",notification_visibility_repeats:"Repeats",no_rich_text_description:"Strip rich text formatting from all posts",no_blocks:"No blocks",no_mutes:"No mutes",hide_follows_description:"Don't show who I'm following",hide_followers_description:"Don't show who's following me",show_admin_badge:"Show Admin badge in my profile",show_moderator_badge:"Show Moderator badge in my profile",nsfw_clickthrough:"Enable clickthrough NSFW attachment hiding",oauth_tokens:"OAuth tokens",token:"Token",refresh_token:"Refresh Token",valid_until:"Valid Until",revoke_token:"Revoke",panelRadius:"Panels",pause_on_unfocused:"Pause streaming when tab is not focused",presets:"Presets",profile_background:"Profile Background",profile_banner:"Profile Banner",profile_tab:"Profile",radii_help:"Set up interface edge rounding (in pixels)",replies_in_timeline:"Replies in timeline",reply_link_preview:"Enable reply-link preview on mouse hover",reply_visibility_all:"Show all replies",reply_visibility_following:"Only show replies directed at me or users I'm following",reply_visibility_self:"Only show replies directed at me",autohide_floating_post_button:"Automatically hide New Post button (mobile)",saving_err:"Error saving settings",saving_ok:"Settings saved",search_user_to_block:"Search whom you want to block",search_user_to_mute:"Search whom you want to mute",security_tab:"Security",scope_copy:"Copy scope when replying (DMs are always copied)",minimal_scopes_mode:"Minimize post scope selection options",set_new_avatar:"Set new avatar",set_new_profile_background:"Set new profile background",set_new_profile_banner:"Set new profile banner",settings:"Settings",subject_input_always_show:"Always show subject field",subject_line_behavior:"Copy subject when replying",subject_line_email:'Like email: "re: subject"',subject_line_mastodon:"Like mastodon: copy as is",subject_line_noop:"Do not copy",post_status_content_type:"Post status content type",stop_gifs:"Play-on-hover GIFs",streaming:"Enable automatic streaming of new posts when scrolled to the top",text:"Text",theme:"Theme",theme_help:"Use hex color codes (#rrggbb) to customize your color theme.",theme_help_v2_1:'You can also override certain component\'s colors and opacity by toggling the checkbox, use "Clear all" button to clear all overrides.',theme_help_v2_2:"Icons underneath some entries are background/text contrast indicators, hover over for detailed info. Please keep in mind that when using transparency contrast indicators show the worst possible case.",tooltipRadius:"Tooltips/alerts",upload_a_photo:"Upload a photo",user_settings:"User Settings",values:{false:"no",true:"yes"},notifications:"Notifications",notification_setting:"Receive notifications from:",notification_setting_follows:"Users you follow",notification_setting_non_follows:"Users you do not follow",notification_setting_followers:"Users who follow you",notification_setting_non_followers:"Users who do not follow you",notification_mutes:"To stop receiving notifications from a specific user, use a mute.",notification_blocks:"Blocking a user stops all notifications as well as unsubscribes them.",enable_web_push_notifications:"Enable web push notifications",style:{switcher:{keep_color:"Keep colors",keep_shadows:"Keep shadows",keep_opacity:"Keep opacity",keep_roundness:"Keep roundness",keep_fonts:"Keep fonts",save_load_hint:'"Keep" options preserve currently set options when selecting or loading themes, it also stores said options when exporting a theme. When all checkboxes unset, exporting theme will save everything.',reset:"Reset",clear_all:"Clear all",clear_opacity:"Clear opacity"},common:{color:"Color",opacity:"Opacity",contrast:{hint:"Contrast ratio is {ratio}, it {level} {context}",level:{aa:"meets Level AA guideline (minimal)",aaa:"meets Level AAA guideline (recommended)",bad:"doesn't meet any accessibility guidelines"},context:{"18pt":"for large (18pt+) text",text:"for text"}}},common_colors:{_tab_label:"Common",main:"Common colors",foreground_hint:'See "Advanced" tab for more detailed control',rgbo:"Icons, accents, badges"},advanced_colors:{_tab_label:"Advanced",alert:"Alert background",alert_error:"Error",badge:"Badge background",badge_notification:"Notification",panel_header:"Panel header",top_bar:"Top bar",borders:"Borders",buttons:"Buttons",inputs:"Input fields",faint_text:"Faded text"},radii:{_tab_label:"Roundness"},shadows:{_tab_label:"Shadow and lighting",component:"Component",override:"Override",shadow_id:"Shadow #{value}",blur:"Blur",spread:"Spread",inset:"Inset",hint:"For shadows you can also use --variable as a color value to use CSS3 variables. Please note that setting opacity won't work in this case.",filter_hint:{always_drop_shadow:"Warning, this shadow always uses {0} when browser supports it.",drop_shadow_syntax:"{0} does not support {1} parameter and {2} keyword.",avatar_inset:"Please note that combining both inset and non-inset shadows on avatars might give unexpected results with transparent avatars.",spread_zero:"Shadows with spread > 0 will appear as if it was set to zero",inset_classic:"Inset shadows will be using {0}"},components:{panel:"Panel",panelHeader:"Panel header",topBar:"Top bar",avatar:"User avatar (in profile view)",avatarStatus:"User avatar (in post display)",popup:"Popups and tooltips",button:"Button",buttonHover:"Button (hover)",buttonPressed:"Button (pressed)",buttonPressedHover:"Button (pressed+hover)",input:"Input field"}},fonts:{_tab_label:"Fonts",help:'Select font to use for elements of UI. For "custom" you have to enter exact font name as it appears in system.',components:{interface:"Interface",input:"Input fields",post:"Post text",postCode:"Monospaced text in a post (rich text)"},family:"Font name",size:"Size (in px)",weight:"Weight (boldness)",custom:"Custom"},preview:{header:"Preview",content:"Content",error:"Example error",button:"Button",text:"A bunch of more {0} and {1}",mono:"content",input:"Just landed in L.A.",faint_link:"helpful manual",fine_print:"Read our {0} to learn nothing useful!",header_faint:"This is fine",checkbox:"I have skimmed over terms and conditions",link:"a nice lil' link"}},version:{title:"Version",backend_version:"Backend Version",frontend_version:"Frontend Version"}},time:{day:"{0} day",days:"{0} days",day_short:"{0}d",days_short:"{0}d",hour:"{0} hour",hours:"{0} hours",hour_short:"{0}h",hours_short:"{0}h",in_future:"in {0}",in_past:"{0} ago",minute:"{0} minute",minutes:"{0} minutes",minute_short:"{0}min",minutes_short:"{0}min",month:"{0} month",months:"{0} months",month_short:"{0}mo",months_short:"{0}mo",now:"just now",now_short:"now",second:"{0} second",seconds:"{0} seconds",second_short:"{0}s",seconds_short:"{0}s",week:"{0} week",weeks:"{0} weeks",week_short:"{0}w",weeks_short:"{0}w",year:"{0} year",years:"{0} years",year_short:"{0}y",years_short:"{0}y"},timeline:{collapse:"Collapse",conversation:"Conversation",error_fetching:"Error fetching updates",load_older:"Load older statuses",no_retweet_hint:"Post is marked as followers-only or direct and cannot be repeated",repeated:"repeated",show_new:"Show new",up_to_date:"Up-to-date",no_more_statuses:"No more statuses",no_statuses:"No statuses"},status:{favorites:"Favorites",repeats:"Repeats",delete:"Delete status",pin:"Pin on profile",unpin:"Unpin from profile",pinned:"Pinned",delete_confirm:"Do you really want to delete this status?",reply_to:"Reply to",replies_list:"Replies:"},user_card:{approve:"Approve",block:"Block",blocked:"Blocked!",deny:"Deny",favorites:"Favorites",follow:"Follow",follow_sent:"Request sent!",follow_progress:"Requesting…",follow_again:"Send request again?",follow_unfollow:"Unfollow",followees:"Following",followers:"Followers",following:"Following!",follows_you:"Follows you!",its_you:"It's you!",media:"Media",mute:"Mute",muted:"Muted",per_day:"per day",remote_follow:"Remote follow",report:"Report",statuses:"Statuses",unblock:"Unblock",unblock_progress:"Unblocking...",block_progress:"Blocking...",unmute:"Unmute",unmute_progress:"Unmuting...",mute_progress:"Muting...",admin_menu:{moderation:"Moderation",grant_admin:"Grant Admin",revoke_admin:"Revoke Admin",grant_moderator:"Grant Moderator",revoke_moderator:"Revoke Moderator",activate_account:"Activate account",deactivate_account:"Deactivate account",delete_account:"Delete account",force_nsfw:"Mark all posts as NSFW",strip_media:"Remove media from posts",force_unlisted:"Force posts to be unlisted",sandbox:"Force posts to be followers-only",disable_remote_subscription:"Disallow following user from remote instances",disable_any_subscription:"Disallow following user at all",quarantine:"Disallow user posts from federating",delete_user:"Delete user",delete_user_confirmation:"Are you absolutely sure? This action cannot be undone."}},user_profile:{timeline_title:"User Timeline",profile_does_not_exist:"Sorry, this profile does not exist.",profile_loading_error:"Sorry, there was an error loading this profile."},user_reporting:{title:"Reporting {0}",add_comment_description:"The report will be sent to your instance moderators. You can provide an explanation of why you are reporting this account below:",additional_comments:"Additional comments",forward_description:"The account is from another server. Send a copy of the report there as well?",forward_to:"Forward to {0}",submit:"Submit",generic_error:"An error occurred while processing your request."},who_to_follow:{more:"More",who_to_follow:"Who to follow"},tool_tip:{media_upload:"Upload Media",repeat:"Repeat",reply:"Reply",favorite:"Favorite",user_settings:"User Settings"},upload:{error:{base:"Upload failed.",file_too_big:"File too big [{filesize}{filesizeunit} / {allowedsize}{allowedsizeunit}]",default:"Try again later"},file_size_units:{B:"B",KiB:"KiB",MiB:"MiB",GiB:"GiB",TiB:"TiB"}}}},function(e){e.exports={chat:{title:"Babilejo"},features_panel:{chat:"Babilejo",gopher:"Gopher",media_proxy:"Aŭdvidaĵa prokurilo",scope_options:"Agordoj de amplekso",text_limit:"Teksta limo",title:"Funkcioj",who_to_follow:"Kiun aboni"},finder:{error_fetching_user:"Eraro alportante uzanton",find_user:"Trovi uzanton"},general:{apply:"Apliki",submit:"Sendi",more:"Pli",generic_error:"Eraro okazis",optional:"Malnepra"},image_cropper:{crop_picture:"Tondi bildon",save:"Konservi",cancel:"Nuligi"},login:{login:"Saluti",description:"Saluti per OAuth",logout:"Adiaŭi",password:"Pasvorto",placeholder:"ekz. lain",register:"Registriĝi",username:"Salutnomo",hint:"Salutu por partopreni la diskutadon"},media_modal:{previous:"Antaŭa",next:"Sekva"},nav:{about:"Pri",back:"Reen",chat:"Loka babilejo",friend_requests:"Abonaj petoj",mentions:"Mencioj",dms:"Rektaj mesaĝoj",public_tl:"Publika tempolinio",timeline:"Tempolinio",twkn:"La tuta konata reto",user_search:"Serĉi uzantojn",who_to_follow:"Kiun aboni",preferences:"Agordoj"},notifications:{broken_favorite:"Nekonata stato, serĉante ĝin…",favorited_you:"ŝatis vian staton",followed_you:"ekabonis vin",load_older:"Enlegi pli malnovajn sciigojn",notifications:"Sciigoj",read:"Legite!",repeated_you:"ripetis vian staton",no_more_notifications:"Neniuj pliaj sciigoj"},post_status:{new_status:"Afiŝi novan staton",account_not_locked_warning:"Via konto ne estas {0}. Iu ajn povas vin aboni por vidi viajn afiŝoj nur por abonantoj.",account_not_locked_warning_link:"ŝlosita",attachments_sensitive:"Marki kunsendaĵojn kiel konsternajn",content_type:{"text/plain":"Plata teksto"},content_warning:"Temo (malnepra)",default:"Ĵus alvenis al la Universala Kongreso!",direct_warning:"Ĉi tiu afiŝo estos videbla nur por ĉiuj menciitaj uzantoj.",posting:"Afiŝante",scope:{direct:"Rekta – Afiŝi nur al menciitaj uzantoj",private:"Nur abonantoj – Afiŝi nur al abonantoj",public:"Publika – Afiŝi al publikaj tempolinioj",unlisted:"Nelistigita – Ne afiŝi al publikaj tempolinioj"}},registration:{bio:"Priskribo",email:"Retpoŝtadreso",fullname:"Vidiga nomo",password_confirm:"Konfirmo de pasvorto",registration:"Registriĝo",token:"Invita ĵetono",captcha:"TESTO DE HOMECO",new_captcha:"Alklaku la bildon por akiri novan teston",username_placeholder:"ekz. lain",fullname_placeholder:"ekz. Lain Iwakura",bio_placeholder:"ekz.\nSaluton, mi estas Lain\nMi estas animea knabino vivante en Japanujo. Eble vi konas min de la retejo « Wired ».",validations:{username_required:"ne povas resti malplena",fullname_required:"ne povas resti malplena",email_required:"ne povas resti malplena",password_required:"ne povas resti malplena",password_confirmation_required:"ne povas resti malplena",password_confirmation_match:"samu la pasvorton"}},settings:{app_name:"Nomo de aplikaĵo",attachmentRadius:"Kunsendaĵoj",attachments:"Kunsendaĵoj",autoload:"Ŝalti memfaran enlegadon ĉe subo de paĝo",avatar:"Profilbildo",avatarAltRadius:"Profilbildoj (sciigoj)",avatarRadius:"Profilbildoj",background:"Fono",bio:"Priskribo",blocks_tab:"Baroj",btnRadius:"Butonoj",cBlue:"Blua (Respondo, abono)",cGreen:"Verda (Kunhavigo)",cOrange:"Oranĝa (Ŝato)",cRed:"Ruĝa (Nuligo)",change_password:"Ŝanĝi pasvorton",change_password_error:"Okazis eraro dum ŝanĝo de via pasvorto.",changed_password:"Pasvorto sukcese ŝanĝiĝis!",collapse_subject:"Maletendi afiŝojn kun temoj",composing:"Verkante",confirm_new_password:"Konfirmu novan pasvorton",current_avatar:"Via nuna profilbildo",current_password:"Nuna pasvorto",current_profile_banner:"Via nuna profila rubando",data_import_export_tab:"Enporto / Elporto de datenoj",default_vis:"Implicita videbleca amplekso",delete_account:"Forigi konton",delete_account_description:"Por ĉiam forigi vian konton kaj ĉiujn viajn mesaĝojn",delete_account_error:"Okazis eraro dum forigo de via kanto. Se tio daŭre okazados, bonvolu kontakti la administranton de via nodo.",delete_account_instructions:"Entajpu sube vian pasvorton por konfirmi forigon de konto.",avatar_size_instruction:"La rekomendata malpleja grando de profilbildoj estas 150×150 bilderoj.",export_theme:"Konservi antaŭagordon",filtering:"Filtrado",filtering_explanation:"Ĉiuj statoj kun tiuj ĉi vortoj silentiĝos, po unu linio",follow_export:"Abona elporto",follow_export_button:"Elporti viajn abonojn al CSV-dosiero",follow_export_processing:"Traktante; baldaŭ vi ricevos peton elŝuti la dosieron",follow_import:"Abona enporto",follow_import_error:"Eraro enportante abonojn",follows_imported:"Abonoj enportiĝis! Traktado daŭros iom.",foreground:"Malfono",general:"Ĝenerala",hide_attachments_in_convo:"Kaŝi kunsendaĵojn en interparoloj",hide_attachments_in_tl:"Kaŝi kunsendaĵojn en tempolinio",max_thumbnails:"Plej multa nombro da bildetoj po afiŝo",hide_isp:"Kaŝi nodo-propran breton",preload_images:"Antaŭ-enlegi bildojn",use_one_click_nsfw:"Malfermi konsternajn kunsendaĵojn per nur unu klako",hide_post_stats:"Kaŝi statistikon de afiŝoj (ekz. nombron da ŝatoj)",hide_user_stats:"Kaŝi statistikon de uzantoj (ekz. nombron da abonantoj)",hide_filtered_statuses:"Kaŝi filtritajn statojn",import_followers_from_a_csv_file:"Enporti abonojn el CSV-dosiero",import_theme:"Enlegi antaŭagordojn",inputRadius:"Enigaj kampoj",checkboxRadius:"Markbutonoj",instance_default:"(implicita: {value})",instance_default_simple:"(implicita)",interface:"Fasado",interfaceLanguage:"Lingvo de fasado",invalid_theme_imported:"La elektita dosiero ne estas subtenata haŭto de Pleromo. Neniuj ŝanĝoj al via haŭto okazis.",limited_availability:"Nehavebla en via foliumilo",links:"Ligiloj",lock_account_description:"Limigi vian konton al nur abonantoj aprobitaj",loop_video:"Ripetadi filmojn",loop_video_silent_only:'Ripetadi nur filmojn sen sono (ekz. la "GIF-ojn" de Mastodon)',mutes_tab:"Silentigoj",play_videos_in_modal:"Ludi filmojn rekte en la aŭdvidaĵa spektilo",use_contain_fit:"Ne tondi la kunsendaĵon en bildetoj",name:"Nomo",name_bio:"Nomo kaj priskribo",new_password:"Nova pasvorto",notification_visibility:"Montrotaj specoj de sciigoj",notification_visibility_follows:"Abonoj",notification_visibility_likes:"Ŝatoj",notification_visibility_mentions:"Mencioj",notification_visibility_repeats:"Ripetoj",no_rich_text_description:"Forigi riĉtekstajn formojn de ĉiuj afiŝoj",no_blocks:"Neniuj baroj",no_mutes:"Neniuj silentigoj",hide_follows_description:"Ne montri kiun mi sekvas",hide_followers_description:"Ne montri kiu min sekvas",show_admin_badge:"Montri la insignon de administranto en mia profilo",show_moderator_badge:"Montri la insignon de kontrolanto en mia profilo",nsfw_clickthrough:"Ŝalti traklakan kaŝon de konsternaj kunsendaĵoj",oauth_tokens:"Ĵetonoj de OAuth",token:"Ĵetono",refresh_token:"Ĵetono de novigo",valid_until:"Valida ĝis",revoke_token:"Senvalidigi",panelRadius:"Bretoj",pause_on_unfocused:"Paŭzigi elsendfluon kiam langeto ne estas fokusata",presets:"Antaŭagordoj",profile_background:"Profila fono",profile_banner:"Profila rubando",profile_tab:"Profilo",radii_help:"Agordi fasadan rondigon de randoj (bildere)",replies_in_timeline:"Respondoj en tempolinio",reply_link_preview:"Ŝalti respond-ligilan antaŭvidon dum musa ŝvebo",reply_visibility_all:"Montri ĉiujn respondojn",reply_visibility_following:"Montri nur respondojn por mi aŭ miaj abonatoj",reply_visibility_self:"Montri nur respondojn por mi",saving_err:"Eraro dum konservo de agordoj",saving_ok:"Agordoj konserviĝis",security_tab:"Sekureco",scope_copy:"Kopii amplekson por respondo (rektaj mesaĝoj ĉiam kopiiĝas)",set_new_avatar:"Agordi novan profilbildon",set_new_profile_background:"Agordi novan profilan fonon",set_new_profile_banner:"Agordi novan profilan rubandon",settings:"Agordoj",subject_input_always_show:"Ĉiam montri teman kampon",subject_line_behavior:"Kopii temon por respondo",subject_line_email:'Kiel retpoŝto: "re: temo"',subject_line_mastodon:"Kiel Mastodon: kopii senŝanĝe",subject_line_noop:"Ne kopii",post_status_content_type:"Afiŝi specon de la enhavo de la stato",stop_gifs:"Movi GIF-bildojn dum musa ŝvebo",streaming:"Ŝalti memfaran fluigon de novaj afiŝoj ĉe la supro de la paĝo",text:"Teksto",theme:"Haŭto",theme_help:"Uzu deksesumajn kolorkodojn (#rrvvbb) por adapti vian koloran haŭton.",theme_help_v2_1:'Vi ankaŭ povas superagordi la kolorojn kaj travideblecon de kelkaj eroj per marko de la markbutono; uzu la butonon "Vakigi ĉion" por forigi ĉîujn superagordojn.',theme_help_v2_2:"Bildsimboloj sub kelkaj eroj estas indikiloj de kontrasto inter fono kaj teksto; muse ŝvebu por detalaj informoj. Bonvolu memori, ke la indikilo montras la plej malbonan okazeblon dum sia uzo.",tooltipRadius:"Ŝpruchelpiloj/avertoj",upload_a_photo:"Alŝuti foton",user_settings:"Agordoj de uzanto",values:{false:"ne",true:"jes"},notifications:"Sciigoj",enable_web_push_notifications:"Ŝalti retajn puŝajn sciigojn",style:{switcher:{keep_color:"Konservi kolorojn",keep_shadows:"Konservi ombrojn",keep_opacity:"Konservi maltravideblecon",keep_roundness:"Konservi rondecon",keep_fonts:"Konservi tiparojn",save_load_hint:'Elektebloj de "konservi" konservas la nuntempajn agordojn dum elektado aŭ enlegado de haŭtoj. Ĝi ankaŭ konservas tiujn agordojn dum elportado de haŭto. Kun ĉiuj markbutonoj nemarkitaj, elporto de la haŭto ĉion konservos.',reset:"Restarigi",clear_all:"Vakigi ĉion",clear_opacity:"Vakigi maltravideblecon"},common:{color:"Koloro",opacity:"Maltravidebleco",contrast:{hint:"Proporcio de kontrasto estas {ratio}, ĝi {level} {context}",level:{aa:"plenumas la gvidilon je nivelo AA (malpleja)",aaa:"plenumas la gvidilon je nivela AAA (rekomendita)",bad:"plenumas neniujn faciluzajn gvidilojn"},context:{"18pt":"por granda (18pt+) teksto",text:"por teksto"}}},common_colors:{_tab_label:"Komunaj",main:"Komunaj koloroj",foreground_hint:'Vidu langeton "Specialaj" por pli detalaj agordoj',rgbo:"Bildsimboloj, emfazoj, insignoj"},advanced_colors:{_tab_label:"Specialaj",alert:"Averta fono",alert_error:"Eraro",badge:"Insigna fono",badge_notification:"Sciigo",panel_header:"Kapo de breto",top_bar:"Supra breto",borders:"Limoj",buttons:"Butonoj",inputs:"Enigaj kampoj",faint_text:"Malvigla teksto"},radii:{_tab_label:"Rondeco"},shadows:{_tab_label:"Ombro kaj lumo",component:"Ero",override:"Transpasi",shadow_id:"Ombro #{value}",blur:"Malklarigo",spread:"Vastigo",inset:"Internigo",hint:"Por ombroj vi ankaŭ povas uzi --variable kiel koloran valoron, por uzi variantojn de CSS3. Bonvolu rimarki, ke tiuokaze agordoj de maltravidebleco ne funkcios.",filter_hint:{always_drop_shadow:"Averto: ĉi tiu ombro ĉiam uzas {0} kiam la foliumilo ĝin subtenas.",drop_shadow_syntax:"{0} ne subtenas parametron {1} kaj ŝlosilvorton {2}.",avatar_inset:"Bonvolu rimarki, ke agordi ambaŭ internajn kaj eksterajn ombrojn por profilbildoj povas redoni neatenditajn rezultojn ĉe profilbildoj travideblaj.",spread_zero:"Ombroj kun vastigo > 0 aperos kvazaŭ ĝi estus fakte nulo",inset_classic:"Internaj ombroj uzos {0}"},components:{panel:"Breto",panelHeader:"Kapo de breto",topBar:"Supra breto",avatar:"Profilbildo de uzanto (en profila vido)",avatarStatus:"Profilbildo de uzanto (en afiŝa vido)",popup:"Ŝprucaĵoj",button:"Butono",buttonHover:"Butono (je ŝvebo)",buttonPressed:"Butono (premita)",buttonPressedHover:"Butono (premita je ŝvebo)",input:"Eniga kampo"}},fonts:{_tab_label:"Tiparoj",help:'Elektu tiparon uzotan por eroj de la fasado. Por "propra" vi devas enigi la precizan nomon de tiparo tiel, kiel ĝi aperas en la sistemo',components:{interface:"Fasado",input:"Enigaj kampoj",post:"Teksto de afiŝo",postCode:"Egallarĝa teksto en afiŝo (riĉteksto)"},family:"Nomo de tiparo",size:"Grando (en bilderoj)",weight:"Pezo (graseco)",custom:"Propra"},preview:{header:"Antaŭrigardo",content:"Enhavo",error:"Ekzempla eraro",button:"Butono",text:"Kelko da pliaj {0} kaj {1}",mono:"enhavo",input:"Ĵus alvenis al la Universala Kongreso!",faint_link:"helpan manlibron",fine_print:"Legu nian {0} por nenion utilan ekscii!",header_faint:"Tio estas en ordo",checkbox:"Mi legetis la kondiĉojn de uzado",link:"bela eta ligil’"}}},timeline:{collapse:"Maletendi",conversation:"Interparolo",error_fetching:"Eraro dum ĝisdatigo",load_older:"Montri pli malnovajn statojn",no_retweet_hint:"Afiŝo estas markita kiel rekta aŭ nur por abonantoj, kaj ne eblas ĝin ripeti",repeated:"ripetita",show_new:"Montri novajn",up_to_date:"Ĝisdata",no_more_statuses:"Neniuj pliaj statoj",no_statuses:"Neniuj statoj"},user_card:{approve:"Aprobi",block:"Bari",blocked:"Barita!",deny:"Rifuzi",favorites:"Ŝatataj",follow:"Aboni",follow_sent:"Peto sendiĝis!",follow_progress:"Petanta…",follow_again:"Ĉu sendi peton denove?",follow_unfollow:"Malaboni",followees:"Abonatoj",followers:"Abonantoj",following:"Abonanta!",follows_you:"Abonas vin!",its_you:"Tio estas vi!",media:"Aŭdvidaĵoj",mute:"Silentigi",muted:"Silentigitaj",per_day:"tage",remote_follow:"Fore aboni",statuses:"Statoj",unblock:"Malbari",unblock_progress:"Malbaranta…",block_progress:"Baranta…",unmute:"Malsilentigi",unmute_progress:"Malsilentiganta…",mute_progress:"Silentiganta…"},user_profile:{timeline_title:"Uzanta tempolinio",profile_does_not_exist:"Pardonu, ĉi tiu profilo ne ekzistas.",profile_loading_error:"Pardonu, eraro okazis dum enlegado de ĉi tiu profilo."},who_to_follow:{more:"Pli",who_to_follow:"Kiun aboni"},tool_tip:{media_upload:"Alŝuti aŭdvidaĵon",repeat:"Ripeti",reply:"Respondi",favorite:"Ŝati",user_settings:"Agordoj de uzanto"},upload:{error:{base:"Alŝuto malsukcesis.",file_too_big:"Dosiero estas tro granda [{filesize}{filesizeunit} / {allowedsize}{allowedsizeunit}]",default:"Reprovu pli poste"},file_size_units:{B:"B",KiB:"KiB",MiB:"MiB",GiB:"GiB",TiB:"TiB"}}}},function(e){e.exports={chat:{title:"Chat"},exporter:{export:"Exportar",processing:"Procesando. Pronto se te pedirá que descargues tu archivo"},features_panel:{chat:"Chat",gopher:"Gopher",media_proxy:"Media proxy",scope_options:"Opciones del alcance de la visibilidad",text_limit:"Límite de carácteres",title:"Características",who_to_follow:"A quién seguir"},finder:{error_fetching_user:"Error al buscar usuario",find_user:"Encontrar usuario"},general:{apply:"Aplicar",submit:"Enviar",more:"Más",generic_error:"Ha ocurrido un error",optional:"opcional",show_more:"Mostrar más",show_less:"Mostrar menos",cancel:"Cancelar"},image_cropper:{crop_picture:"Recortar la foto",save:"Guardar",save_without_cropping:"Guardar sin recortar",cancel:"Cancelar"},importer:{submit:"Enviar",success:"Importado con éxito",error:"Se ha producido un error al importar el archivo."},login:{login:"Identificación",description:"Identificación con OAuth",logout:"Salir",password:"Contraseña",placeholder:"p.ej. lain",register:"Registrar",username:"Usuario",hint:"Inicia sesión para unirte a la discusión"},media_modal:{previous:"Anterior",next:"Siguiente"},nav:{about:"Sobre",back:"Volver",chat:"Chat Local",friend_requests:"Solicitudes de amistad",mentions:"Menciones",dms:"Mensajes Directo",public_tl:"Línea Temporal Pública",timeline:"Línea Temporal",twkn:"Toda La Red Conocida",user_search:"Búsqueda de Usuarios",who_to_follow:"A quién seguir",preferences:"Preferencias"},notifications:{broken_favorite:"Estado desconocido, buscándolo...",favorited_you:"le gusta tu estado",followed_you:"empezó a seguirte",load_older:"Cargar notificaciones antiguas",notifications:"Notificaciones",read:"¡Leído!",repeated_you:"repite tu estado",no_more_notifications:"No hay más notificaciones"},post_status:{new_status:"Publicar un nuevo estado",account_not_locked_warning:"Tu cuenta no está {0}. Cualquiera puede seguirte y leer las entradas para Solo-Seguidores.",account_not_locked_warning_link:"bloqueada",attachments_sensitive:"Contenido sensible",content_type:{"text/plain":"Texto Plano","text/html":"HTML","text/markdown":"Markdown","text/bbcode":"BBCode"},content_warning:"Tema (opcional)",default:"Acabo de aterrizar en L.A.",direct_warning:"Esta publicación solo será visible para los usuarios mencionados.",direct_warning_to_first_only:"Esta publicación solo será visible para los usuarios mencionados al comienzo del mensaje.",posting:"Publicando",scope:{direct:"Directo - Solo para los usuarios mencionados.",private:"Solo-Seguidores - Solo tus seguidores leeran la publicación",public:"Público - Entradas visibles en las Líneas Temporales Públicas",unlisted:"Sin Listar - Entradas no visibles en las Líneas Temporales Públicas"}},registration:{bio:"Biografía",email:"Correo electrónico",fullname:"Nombre a mostrar",password_confirm:"Confirmación de contraseña",registration:"Registro",token:"Token de invitación",captcha:"CAPTCHA",new_captcha:"Click en la imagen para obtener un nuevo captca",username_placeholder:"p.ej. lain",fullname_placeholder:"p.ej. Lain Iwakura",bio_placeholder:"e.g.\nHola, soy un ejemplo.\nAquí puedes poner algo representativo tuyo... o no.",validations:{username_required:"no puede estar vacío",fullname_required:"no puede estar vacío",email_required:"no puede estar vacío",password_required:"no puede estar vacío",password_confirmation_required:"no puede estar vacío",password_confirmation_match:"la contraseña no coincide"}},selectable_list:{select_all:"Seleccionarlo todo"},settings:{app_name:"Nombre de la aplicación",attachmentRadius:"Adjuntos",attachments:"Adjuntos",autoload:"Activar carga automática al llegar al final de la página",avatar:"Avatar",avatarAltRadius:"Avatares (Notificaciones)",avatarRadius:"Avatares",background:"Fondo",bio:"Biografía",block_export:"Exportar usuarios bloqueados",block_export_button:"Exporta la lista de tus usarios bloqueados a un archivo csv",block_import:"Importar usuarios bloqueados",block_import_error:"Error importando la lista de usuarios bloqueados",blocks_imported:"¡Lista de usuarios bloqueados importada! El procesado puede tardar un poco.",blocks_tab:"Bloqueados",btnRadius:"Botones",cBlue:"Azul (Responder, seguir)",cGreen:"Verde (Retweet)",cOrange:"Naranja (Favorito)",cRed:"Rojo (Cancelar)",change_password:"Cambiar contraseña",change_password_error:"Hubo un problema cambiando la contraseña.",changed_password:"Contraseña cambiada correctamente!",collapse_subject:"Colapsar entradas con tema",composing:"Redactando",confirm_new_password:"Confirmar la nueva contraseña",current_avatar:"Tu avatar actual",current_password:"Contraseña actual",current_profile_banner:"Tu cabecera actual",data_import_export_tab:"Importar / Exportar Datos",default_vis:"Alcance de visibilidad por defecto",delete_account:"Eliminar la cuenta",delete_account_description:"Eliminar para siempre la cuenta y todos los mensajes.",delete_account_error:"Hubo un error al eliminar tu cuenta. Si el fallo persiste, ponte en contacto con el administrador de tu instancia.",delete_account_instructions:"Escribe tu contraseña para confirmar la eliminación de tu cuenta.",avatar_size_instruction:"El tamaño mínimo recomendado para el avatar es de 150X150 píxeles.",export_theme:"Exportar tema",filtering:"Filtros",filtering_explanation:"Todos los estados que contengan estas palabras serán silenciados, una por línea",follow_export:"Exportar personas que tú sigues",follow_export_button:"Exporta tus seguidores a un archivo csv",follow_import:"Importar personas que tú sigues",follow_import_error:"Error al importal el archivo",follows_imported:"¡Importado! Procesarlos llevará tiempo.",foreground:"Primer plano",general:"General",hide_attachments_in_convo:"Ocultar adjuntos en las conversaciones",hide_attachments_in_tl:"Ocultar adjuntos en la línea temporal",hide_muted_posts:"Ocultar las publicaciones de los usuarios silenciados",max_thumbnails:"Cantidad máxima de miniaturas por publicación",hide_isp:"Ocultar el panel específico de la instancia",preload_images:"Precargar las imágenes",use_one_click_nsfw:"Abrir los adjuntos NSFW con un solo click.",hide_post_stats:"Ocultar las estadísticas de las entradas (p.ej. el número de favoritos)",hide_user_stats:"Ocultar las estadísticas del usuario (p.ej. el número de seguidores)",hide_filtered_statuses:"Ocultar estados filtrados",import_blocks_from_a_csv_file:"Importar lista de usuarios bloqueados dese un archivo csv",import_followers_from_a_csv_file:"Importar personas que tú sigues a partir de un archivo csv",import_theme:"Importar tema",inputRadius:"Campos de entrada",checkboxRadius:"Casillas de verificación",instance_default:"(por defecto: {value})",instance_default_simple:"(por defecto)",interface:"Interfaz",interfaceLanguage:"Idioma",invalid_theme_imported:"El archivo importado no es un tema válido de Pleroma. No se han realizado cambios.",limited_availability:"No disponible en tu navegador",links:"Enlaces",lock_account_description:"Restringir el acceso a tu cuenta solo a seguidores admitidos",loop_video:"Vídeos en bucle",loop_video_silent_only:'Bucle solo en vídeos sin sonido (p.ej. "gifs" de Mastodon)',mutes_tab:"Silenciados",play_videos_in_modal:"Reproducir los vídeos directamente en el visor de medios",use_contain_fit:"No recortar los adjuntos en miniaturas",name:"Nombre",name_bio:"Nombre y Biografía",new_password:"Nueva contraseña",notification_visibility:"Tipos de notificaciones a mostrar",notification_visibility_follows:"Nuevos seguidores",notification_visibility_likes:"Me gustan (Likes)",notification_visibility_mentions:"Menciones",notification_visibility_repeats:"Repeticiones (Repeats)",no_rich_text_description:"Eliminar el formato de texto enriquecido de todas las entradas",no_blocks:"No hay usuarios bloqueados",no_mutes:"No hay usuarios sinlenciados",hide_follows_description:"No mostrar a quién sigo",hide_followers_description:"No mostrar quién me sigue",show_admin_badge:"Mostrar la placa de administrador en mi perfil",show_moderator_badge:"Mostrar la placa de moderador en mi perfil",nsfw_clickthrough:"Activar el clic para ocultar los adjuntos NSFW",oauth_tokens:"Tokens de OAuth",token:"Token",refresh_token:"Actualizar el token",valid_until:"Válido hasta",revoke_token:"Revocar",panelRadius:"Paneles",pause_on_unfocused:"Parar la transmisión cuando no estés en foco.",presets:"Por defecto",profile_background:"Fondo del Perfil",profile_banner:"Cabecera del Perfil",profile_tab:"Perfil",radii_help:"Estable el redondeo de las esquinas del interfaz (en píxeles)",replies_in_timeline:"Réplicas en la línea temporal",reply_link_preview:"Activar la previsualización del enlace de responder al pasar el ratón por encim",reply_visibility_all:"Mostrar todas las réplicas",reply_visibility_following:"Solo mostrar réplicas para mí o usuarios a los que sigo",reply_visibility_self:"Solo mostrar réplicas para mí",saving_err:"Error al guardar los ajustes",saving_ok:"Ajustes guardados",search_user_to_block:"Buscar usuarios a bloquear",search_user_to_mute:"Buscar usuarios a silenciar",security_tab:"Seguridad",scope_copy:"Copiar la visibilidad de la publicación cuando contestamos (En los mensajes directos (MDs) siempre se copia)",minimal_scopes_mode:"Minimizar las opciones de publicación",set_new_avatar:"Cambiar avatar",set_new_profile_background:"Cambiar fondo del perfil",set_new_profile_banner:"Cambiar cabecera del perfil",settings:"Ajustes",subject_input_always_show:"Mostrar siempre el campo del tema",subject_line_behavior:"Copiar el tema en las contestaciones",subject_line_email:'Tipo email: "re: tema"',subject_line_mastodon:"Tipo mastodon: copiar como es",subject_line_noop:"No copiar",post_status_content_type:"Formato de publicación",stop_gifs:"Iniciar GIFs al pasar el ratón",streaming:"Habilite la transmisión automática de nuevas publicaciones cuando se desplaza hacia la parte superior",text:"Texto",theme:"Tema",theme_help:"Use códigos de color hexadecimales (#rrggbb) para personalizar su tema de colores.",theme_help_v2_1:'También puede invalidar los colores y la opacidad de ciertos componentes si activa la casilla de verificación, use el botón "Borrar todo" para deshacer los cambios.',theme_help_v2_2:"Los iconos debajo de algunas entradas son indicadores de contraste de fondo/texto, desplace el ratón para obtener información detallada. Tenga en cuenta que cuando se utilizan indicadores de contraste de transparencia se muestra el peor caso posible.",tooltipRadius:"Información/alertas",upload_a_photo:"Subir una foto",user_settings:"Ajustes de Usuario",values:{false:"no",true:"sí"},notifications:"Notificaciones",enable_web_push_notifications:"Habilitar las notificiaciones en el navegador",style:{switcher:{keep_color:"Mantener colores",keep_shadows:"Mantener sombras",keep_opacity:"Mantener opacidad",keep_roundness:"Mantener redondeces",keep_fonts:"Mantener fuentes",save_load_hint:'Las opciones "Mantener" conservan las opciones configuradas actualmente al seleccionar o cargar temas, también almacena dichas opciones al exportar un tema. Cuando se desactiven todas las casillas de verificación, el tema de exportación lo guardará todo.',reset:"Reiniciar",clear_all:"Limpiar todo",clear_opacity:"Limpiar opacidad"},common:{color:"Color",opacity:"Opacidad",contrast:{hint:"El ratio de contraste es {ratio}. {level} {context}",level:{aa:"Cumple con la pauta de nivel AA (mínimo)",aaa:"Cumple con la pauta de nivel AAA (recomendado)",bad:"No cumple con las pautas de accesibilidad"},context:{"18pt":"para textos grandes (+18pt)",text:"para textos"}}},common_colors:{_tab_label:"Común",main:"Colores comunes",foreground_hint:'Vea la pestaña "Avanzado" para un control más detallado',rgbo:"Iconos, acentos, insignias"},advanced_colors:{_tab_label:"Avanzado",alert:"Fondo de Alertas",alert_error:"Error",badge:"Fondo de Insignias",badge_notification:"Notificaciones",panel_header:"Cabecera del panel",top_bar:"Barra superior",borders:"Bordes",buttons:"Botones",inputs:"Campos de entrada",faint_text:"Texto desvanecido"},radii:{_tab_label:"Redondez"},shadows:{_tab_label:"Sombra e iluminación",component:"Componente",override:"Sobreescribir",shadow_id:"Sombra #{value}",blur:"Difuminar",spread:"Cantidad",inset:"Insertada",hint:"Para las sombras, también puede usar --variable como un valor de color para usar las variables CSS3. Tenga en cuenta que establecer la opacidad no funcionará en este caso.",filter_hint:{always_drop_shadow:"Advertencia, esta sombra siempre usa {0} cuando el navegador lo soporta.",drop_shadow_syntax:"{0} no soporta el parámetro {1} y la palabra clave {2}.",avatar_inset:"Tenga en cuenta que la combinación de sombras insertadas como no-insertadas en los avatares, puede dar resultados inesperados con los avatares transparentes.",spread_zero:"Sombras con una cantidad > 0 aparecerá como si estuviera puesto a cero",inset_classic:"Las sombras insertadas estarán usando {0}"},components:{panel:"Panel",panelHeader:"Cabecera del panel",topBar:"Barra superior",avatar:"Avatar del usuario (en la vista del perfil)",avatarStatus:"Avatar del usuario (en la vista de la entrada)",popup:"Ventanas y textos emergentes (popups & tooltips)",button:"Botones",buttonHover:"Botón (encima)",buttonPressed:"Botón (presionado)",buttonPressedHover:"Botón (presionado+encima)",input:"Campo de entrada"}},fonts:{_tab_label:"Fuentes",help:'Seleccione la fuente para utilizar para los elementos de la interfaz de usuario. Para "personalizado", debe ingresar el nombre exacto de la fuente tal como aparece en el sistema.',components:{interface:"Interfaz",input:"Campos de entrada",post:"Texto de publicaciones",postCode:"Texto monoespaciado en publicación (texto enriquecido)"},family:"Nombre de la fuente",size:"Tamaño (en px)",weight:"Peso (negrita)",custom:"Personalizado"},preview:{header:"Vista previa",content:"Contenido",error:"Ejemplo de error",button:"Botón",text:"Un montón de {0} y {1}",mono:"contenido",input:"Acaba de aterrizar en L.A.",faint_link:"manual útil",fine_print:"¡Lea nuestro {0} para aprender nada útil!",header_faint:"Esto está bien",checkbox:"He revisado los términos y condiciones",link:"un bonito enlace"}},version:{title:"Versión",backend_version:"Versión del Backend",frontend_version:"Versión del Frontend"}},timeline:{collapse:"Colapsar",conversation:"Conversación",error_fetching:"Error al cargar las actualizaciones",load_older:"Cargar actualizaciones anteriores",no_retweet_hint:"La publicación está marcada como solo para seguidores o directa y no se puede repetir",repeated:"repetida",show_new:"Mostrar lo nuevo",up_to_date:"Actualizado",no_more_statuses:"No hay más estados",no_statuses:"Sin estados"},status:{favorites:"Favoritos",repeats:"Repetidos",reply_to:"Responder a",replies_list:"Respuestas:"},user_card:{approve:"Aprovar",block:"Bloquear",blocked:"¡Bloqueado!",deny:"Denegar",favorites:"Favoritos",follow:"Seguir",follow_sent:"¡Solicitud enviada!",follow_progress:"Solicitando…",follow_again:"¿Enviar solicitud de nuevo?",follow_unfollow:"Dejar de seguir",followees:"Siguiendo",followers:"Seguidores",following:"¡Siguiendo!",follows_you:"¡Te sigue!",its_you:"¡Eres tú!",media:"Media",mute:"Silenciar",muted:"Silenciado",per_day:"por día",remote_follow:"Seguir",report:"Reportar",statuses:"Estados",unblock:"Desbloquear",unblock_progress:"Desbloqueando...",block_progress:"Bloqueando...",unmute:"Desenmudecer",unmute_progress:"Sesenmudeciendo...",mute_progress:"Silenciando...",admin_menu:{moderation:"Moderación",grant_admin:"Conceder permisos de Administrador",revoke_admin:"Revocar permisos de Administrador",grant_moderator:"Conceder permisos de Moderador",revoke_moderator:"Revocar permisos de Moderador",activate_account:"Activar cuenta",deactivate_account:"Desactivar cuenta",delete_account:"Borrar cuenta",force_nsfw:"Marcar todas las publicaciones como NSFW (no es seguro/apropiado para el trabajo)",strip_media:"Eliminar archivos multimedia de las publicaciones",force_unlisted:"Forzar que se publique en el modo -Sin Listar-",sandbox:"Forzar que se publique solo para tus seguidores",disable_remote_subscription:"No permitir que usuarios de instancias remotas te siga.",disable_any_subscription:"No permitir que ningún usuario te siga",quarantine:"No permitir publicaciones de usuarios de instancias remotas",delete_user:"Borrar usuario",delete_user_confirmation:"¿Estás completamente seguro? Esta acción no se puede deshacer."}},user_profile:{timeline_title:"Linea temporal del usuario",profile_does_not_exist:"Lo sentimos, este perfil no existe.",profile_loading_error:"Lo sentimos, hubo un error al cargar este perfil."},user_reporting:{title:"Reportando a {0}",add_comment_description:"El informe será enviado a los moderadores de su instancia. Puedes proporcionar una explicación de por qué estás reportando esta cuenta a continuación:",additional_comments:"Comentarios adicionales",forward_description:"La cuenta es de otro servidor. ¿Enviar una copia del informe allí también?",forward_to:"Reenviar a {0}",submit:"Enviar",generic_error:"Se produjo un error al procesar la solicitud."},who_to_follow:{more:"Más",who_to_follow:"A quién seguir"},tool_tip:{media_upload:"Subir Medios",repeat:"Repetir",reply:"Contestar",favorite:"Favorito",user_settings:"Ajustes de usuario"},upload:{error:{base:"Subida fallida.",file_too_big:"Archivo demasiado grande [{filesize}{filesizeunit} / {allowedsize}{allowedsizeunit}]",default:"Inténtalo más tarde"},file_size_units:{B:"B",KiB:"KiB",MiB:"MiB",GiB:"GiB",TiB:"TiB"}}}},function(e){e.exports={finder:{error_fetching_user:"Viga kasutaja leidmisel",find_user:"Otsi kasutajaid"},general:{submit:"Postita"},login:{login:"Logi sisse",logout:"Logi välja",password:"Parool",placeholder:"nt lain",register:"Registreeru",username:"Kasutajanimi"},nav:{mentions:"Mainimised",public_tl:"Avalik Ajajoon",timeline:"Ajajoon",twkn:"Kogu Teadaolev Võrgustik"},notifications:{followed_you:"alustas sinu jälgimist",notifications:"Teavitused",read:"Loe!"},post_status:{default:"Just sõitsin elektrirongiga Tallinnast Pääskülla.",posting:"Postitan"},registration:{bio:"Bio",email:"E-post",fullname:"Kuvatav nimi",password_confirm:"Parooli kinnitamine",registration:"Registreerimine"},settings:{attachments:"Manused",autoload:"Luba ajajoone automaatne uuendamine kui ajajoon on põhja keritud",avatar:"Profiilipilt",bio:"Bio",current_avatar:"Sinu praegune profiilipilt",current_profile_banner:"Praegune profiilibänner",filtering:"Sisu filtreerimine",filtering_explanation:"Kõiki staatuseid, mis sisaldavad neid sõnu, ei kuvata. Üks sõna reale.",hide_attachments_in_convo:"Peida manused vastlustes",hide_attachments_in_tl:"Peida manused ajajoonel",name:"Nimi",name_bio:"Nimi ja Bio",nsfw_clickthrough:"Peida tööks-mittesobivad(NSFW) manuste hiireklõpsu taha",profile_background:"Profiilitaust",profile_banner:"Profiilibänner",reply_link_preview:"Luba algpostituse kuvamine vastustes",set_new_avatar:"Vali uus profiilipilt",set_new_profile_background:"Vali uus profiilitaust",set_new_profile_banner:"Vali uus profiilibänner",settings:"Sätted",theme:"Teema",user_settings:"Kasutaja sätted"},timeline:{conversation:"Vestlus",error_fetching:"Viga uuenduste laadimisel",load_older:"Kuva vanemaid staatuseid",show_new:"Näita uusi",up_to_date:"Uuendatud"},user_card:{block:"Blokeeri",blocked:"Blokeeritud!",follow:"Jälgi",followees:"Jälgitavaid",followers:"Jälgijaid",following:"Jälgin!",follows_you:"Jälgib sind!",mute:"Vaigista",muted:"Vaigistatud",per_day:"päevas",statuses:"Staatuseid"}}},function(e){e.exports={chat:{title:"Chat"},features_panel:{chat:"Chat",gopher:"Gopher",media_proxy:"Media-välityspalvelin",scope_options:"Näkyvyyden rajaus",text_limit:"Tekstin pituusraja",title:"Ominaisuudet",who_to_follow:"Seurausehdotukset"},finder:{error_fetching_user:"Virhe hakiessa käyttäjää",find_user:"Hae käyttäjä"},general:{apply:"Aseta",submit:"Lähetä",more:"Lisää",generic_error:"Virhe tapahtui"},login:{login:"Kirjaudu sisään",description:"Kirjaudu sisään OAuthilla",logout:"Kirjaudu ulos",password:"Salasana",placeholder:"esim. Seppo",register:"Rekisteröidy",username:"Käyttäjänimi"},nav:{about:"Tietoja",back:"Takaisin",chat:"Paikallinen Chat",friend_requests:"Seurauspyynnöt",mentions:"Maininnat",interactions:"Interaktiot",dms:"Yksityisviestit",public_tl:"Julkinen Aikajana",timeline:"Aikajana",twkn:"Koko Tunnettu Verkosto",user_search:"Käyttäjähaku",who_to_follow:"Seurausehdotukset",preferences:"Asetukset"},notifications:{broken_favorite:"Viestiä ei löydetty...",favorited_you:"tykkäsi viestistäsi",followed_you:"seuraa sinua",load_older:"Lataa vanhempia ilmoituksia",notifications:"Ilmoitukset",read:"Lue!",repeated_you:"toisti viestisi",no_more_notifications:"Ei enempää ilmoituksia"},polls:{add_poll:"Lisää äänestys",add_option:"Lisää vaihtoehto",option:"Vaihtoehto",votes:"ääntä",vote:"Äänestä",type:"Äänestyksen tyyppi",single_choice:"Yksi valinta",multiple_choices:"Monivalinta",expiry:"Äänestyksen kesto",expires_in:"Päättyy {0} päästä",expired:"Päättyi {0} sitten",not_enough_option:"Liian vähän uniikkeja vaihtoehtoja äänestyksessä"},interactions:{favs_repeats:"Toistot ja tykkäykset",follows:"Uudet seuraukset",load_older:"Lataa vanhempia interaktioita"},post_status:{new_status:"Uusi viesti",account_not_locked_warning:"Tilisi ei ole {0}. Kuka vain voi seurata sinua nähdäksesi 'vain-seuraajille' -viestisi",account_not_locked_warning_link:"lukittu",attachments_sensitive:"Merkkaa liitteet arkaluonteisiksi",content_type:{"text/plain":"Tavallinen teksti"},content_warning:"Aihe (valinnainen)",default:"Tulin juuri saunasta.",direct_warning:"Tämä viesti näkyy vain mainituille käyttäjille.",posting:"Lähetetään",scope:{direct:"Yksityisviesti - Näkyy vain mainituille käyttäjille",private:"Vain-seuraajille - Näkyy vain seuraajillesi",public:"Julkinen - Näkyy julkisilla aikajanoilla",unlisted:"Listaamaton - Ei näy julkisilla aikajanoilla"}},registration:{bio:"Kuvaus",email:"Sähköposti",fullname:"Koko nimi",password_confirm:"Salasanan vahvistaminen",registration:"Rekisteröityminen",token:"Kutsuvaltuus",captcha:"Varmenne",new_captcha:"Paina kuvaa saadaksesi uuden varmenteen",validations:{username_required:"ei voi olla tyhjä",fullname_required:"ei voi olla tyhjä",email_required:"ei voi olla tyhjä",password_required:"ei voi olla tyhjä",password_confirmation_required:"ei voi olla tyhjä",password_confirmation_match:"pitää vastata salasanaa"}},settings:{attachmentRadius:"Liitteet",attachments:"Liitteet",autoload:"Lataa vanhempia viestejä automaattisesti ruudun pohjalla",avatar:"Profiilikuva",avatarAltRadius:"Profiilikuvat (ilmoitukset)",avatarRadius:"Profiilikuvat",background:"Tausta",bio:"Kuvaus",btnRadius:"Napit",cBlue:"Sininen (Vastaukset, seuraukset)",cGreen:"Vihreä (Toistot)",cOrange:"Oranssi (Tykkäykset)",cRed:"Punainen (Peruminen)",change_password:"Vaihda salasana",change_password_error:"Virhe vaihtaessa salasanaa.",changed_password:"Salasana vaihdettu!",collapse_subject:"Minimoi viestit, joille on asetettu aihe",composing:"Viestien laatiminen",confirm_new_password:"Vahvista uusi salasana",current_avatar:"Nykyinen profiilikuvasi",current_password:"Nykyinen salasana",current_profile_banner:"Nykyinen julisteesi",data_import_export_tab:"Tietojen tuonti / vienti",default_vis:"Oletusnäkyvyysrajaus",delete_account:"Poista tili",delete_account_description:"Poista tilisi ja viestisi pysyvästi.",delete_account_error:"Virhe poistaessa tiliäsi. Jos virhe jatkuu, ota yhteyttä palvelimesi ylläpitoon.",delete_account_instructions:"Syötä salasanasi vahvistaaksesi tilin poiston.",export_theme:"Tallenna teema",filtering:"Suodatus",filtering_explanation:"Kaikki viestit, jotka sisältävät näitä sanoja, suodatetaan. Yksi sana per rivi.",follow_export:"Seurausten vienti",follow_export_button:"Vie seurauksesi CSV-tiedostoon",follow_export_processing:"Käsitellään, sinua pyydetään lataamaan tiedosto hetken päästä",follow_import:"Seurausten tuonti",follow_import_error:"Virhe tuodessa seuraksia",follows_imported:"Seuraukset tuotu! Niiden käsittely vie hetken.",foreground:"Korostus",general:"Yleinen",hide_attachments_in_convo:"Piilota liitteet keskusteluissa",hide_attachments_in_tl:"Piilota liitteet aikajanalla",max_thumbnails:"Suurin sallittu määrä liitteitä esikatselussa",hide_isp:"Piilota palvelimenkohtainen ruutu",preload_images:"Esilataa kuvat",use_one_click_nsfw:"Avaa NSFW-liitteet yhdellä painalluksella",hide_post_stats:"Piilota viestien statistiikka (esim. tykkäysten määrä)",hide_user_stats:"Piilota käyttäjien statistiikka (esim. seuraajien määrä)",import_followers_from_a_csv_file:"Tuo seuraukset CSV-tiedostosta",import_theme:"Tuo tallennettu teema",inputRadius:"Syöttökentät",checkboxRadius:"Valintalaatikot",instance_default:"(oletus: {value})",instance_default_simple:"(oletus)",interface:"Käyttöliittymä",interfaceLanguage:"Käyttöliittymän kieli",invalid_theme_imported:"Tuotu tallennettu teema on epäkelpo, muutoksia ei tehty nykyiseen teemaasi.",limited_availability:"Ei saatavilla selaimessasi",links:"Linkit",lock_account_description:"Vain erikseen hyväksytyt käyttäjät voivat seurata tiliäsi",loop_video:"Uudelleentoista videot",loop_video_silent_only:'Uudelleentoista ainoastaan äänettömät videot (Video-"giffit")',play_videos_in_modal:"Toista videot modaalissa",use_contain_fit:"Älä rajaa liitteitä esikatselussa",name:"Nimi",name_bio:"Nimi ja kuvaus",new_password:"Uusi salasana",notification_visibility:"Ilmoitusten näkyvyys",notification_visibility_follows:"Seuraukset",notification_visibility_likes:"Tykkäykset",notification_visibility_mentions:"Maininnat",notification_visibility_repeats:"Toistot",no_rich_text_description:"Älä näytä tekstin muotoilua.",hide_network_description:"Älä näytä seurauksiani tai seuraajiani",nsfw_clickthrough:"Piilota NSFW liitteet klikkauksen taakse",oauth_tokens:"OAuth-merkit",token:"Token",refresh_token:"Päivitä token",valid_until:"Voimassa asti",revoke_token:"Peruuttaa",panelRadius:"Ruudut",pause_on_unfocused:"Pysäytä automaattinen viestien näyttö välilehden ollessa pois fokuksesta",presets:"Valmiit teemat",profile_background:"Taustakuva",profile_banner:"Juliste",profile_tab:"Profiili",radii_help:"Aseta reunojen pyöristys (pikseleinä)",replies_in_timeline:"Keskustelut aikajanalla",reply_link_preview:"Keskusteluiden vastauslinkkien esikatselu",reply_visibility_all:"Näytä kaikki vastaukset",reply_visibility_following:"Näytä vain vastaukset minulle tai seuraamilleni käyttäjille",reply_visibility_self:"Näytä vain vastaukset minulle",saving_err:"Virhe tallentaessa asetuksia",saving_ok:"Asetukset tallennettu",security_tab:"Tietoturva",scope_copy:"Kopioi näkyvyysrajaus vastatessa (Yksityisviestit aina kopioivat)",set_new_avatar:"Aseta uusi profiilikuva",set_new_profile_background:"Aseta uusi taustakuva",set_new_profile_banner:"Aseta uusi juliste",settings:"Asetukset",subject_input_always_show:"Näytä aihe-kenttä",subject_line_behavior:"Aihe-kentän kopiointi",subject_line_email:'Kuten sähköposti: "re: aihe"',subject_line_mastodon:"Kopioi sellaisenaan",subject_line_noop:"Älä kopioi",stop_gifs:"Toista giffit vain kohdistaessa",streaming:"Näytä uudet viestit automaattisesti ollessasi ruudun huipulla",text:"Teksti",theme:"Teema",theme_help:"Käytä heksadesimaalivärejä muokataksesi väriteemaasi.",theme_help_v2_1:'Voit asettaa tiettyjen osien värin tai läpinäkyvyyden täyttämällä valintalaatikon, käytä "Tyhjennä kaikki"-nappia tyhjentääksesi kaiken.',theme_help_v2_2:"Ikonit kenttien alla ovat kontrasti-indikaattoreita, lisätietoa kohdistamalla. Käyttäessä läpinäkyvyyttä ne näyttävät pahimman skenaarion.",tooltipRadius:"Ohje- tai huomioviestit",user_settings:"Käyttäjän asetukset",values:{false:"pois päältä",true:"päällä"}},time:{day:"{0} päivä",days:"{0} päivää",day_short:"{0}pv",days_short:"{0}pv",hour:"{0} tunti",hours:"{0} tuntia",hour_short:"{0}t",hours_short:"{0}t",in_future:"{0} tulevaisuudessa",in_past:"{0} sitten",minute:"{0} minuutti",minutes:"{0} minuuttia",minute_short:"{0}min",minutes_short:"{0}min",month:"{0} kuukausi",months:"{0} kuukautta",month_short:"{0}kk",months_short:"{0}kk",now:"nyt",now_short:"juuri nyt",second:"{0} sekunti",seconds:"{0} sekuntia",second_short:"{0}s",seconds_short:"{0}s",week:"{0} viikko",weeks:"{0} viikkoa",week_short:"{0}vk",weeks_short:"{0}vk",year:"{0} vuosi",years:"{0} vuotta",year_short:"{0}v",years_short:"{0}v"},timeline:{collapse:"Sulje",conversation:"Keskustelu",error_fetching:"Virhe ladatessa viestejä",load_older:"Lataa vanhempia viestejä",no_retweet_hint:"Viesti ei ole julkinen, eikä sitä voi toistaa",repeated:"toisti",show_new:"Näytä uudet",up_to_date:"Ajantasalla",no_more_statuses:"Ei enempää viestejä"},status:{favorites:"Tykkäykset",repeats:"Toistot",reply_to:"Vastaus",replies_list:"Vastaukset:"},user_card:{approve:"Hyväksy",block:"Estä",blocked:"Estetty!",deny:"Älä hyväksy",follow:"Seuraa",follow_sent:"Pyyntö lähetetty!",follow_progress:"Pyydetään...",follow_again:"Lähetä pyyntö uudestaan",follow_unfollow:"Älä seuraa",followees:"Seuraa",followers:"Seuraajat",following:"Seuraat!",follows_you:"Seuraa sinua!",its_you:"Sinun tili!",mute:"Hiljennä",muted:"Hiljennetty",per_day:"päivässä",remote_follow:"Seuraa muualta",statuses:"Viestit"},user_profile:{timeline_title:"Käyttäjän aikajana"},who_to_follow:{more:"Lisää",who_to_follow:"Seurausehdotukset"},tool_tip:{media_upload:"Lataa tiedosto",repeat:"Toista",reply:"Vastaa",favorite:"Tykkää",user_settings:"Käyttäjäasetukset"},upload:{error:{base:"Lataus epäonnistui.",file_too_big:"Tiedosto liian suuri [{filesize}{filesizeunit} / {allowedsize}{allowedsizeunit}]",default:"Yritä uudestaan myöhemmin"},file_size_units:{B:"tavua",KiB:"kt",MiB:"Mt",GiB:"Gt",TiB:"Tt"}}}},function(e){e.exports={chat:{title:"Chat"},exporter:{export:"Exporter",processing:"En cours de traitement, vous pourrez bientôt télécharger votre fichier"},features_panel:{chat:"Chat",gopher:"Gopher",media_proxy:"Proxy média",scope_options:"Options de visibilité",text_limit:"Limite de texte",title:"Caractéristiques",who_to_follow:"Personnes à suivre"},finder:{error_fetching_user:"Erreur lors de la recherche de l'utilisateur·ice",find_user:"Chercher un-e utilisateur·ice"},general:{apply:"Appliquer",submit:"Envoyer",more:"Plus",generic_error:"Une erreur s'est produite",optional:"optionnel",show_more:"Montrer plus",show_less:"Montrer moins",cancel:"Annuler",disable:"Désactiver",enable:"Activer",confirm:"Confirmer",verify:"Vérifier"},image_cropper:{crop_picture:"Rogner l'image",save:"Sauvegarder",save_without_cropping:"Sauvegarder sans rogner",cancel:"Annuler"},importer:{submit:"Soumettre",success:"Importé avec succès.",error:"Une erreur est survenue pendant l'import de ce fichier."},login:{login:"Connexion",description:"Connexion avec OAuth",logout:"Déconnexion",password:"Mot de passe",placeholder:"p.e. lain",register:"S'inscrire",username:"Identifiant",hint:"Connectez-vous pour rejoindre la discussion",authentication_code:"Code d'authentification",enter_recovery_code:"Entrez un code de récupération",enter_two_factor_code:"Entrez un code à double authentification",recovery_code:"Code de récupération",heading:{totp:"Authentification à double authentification",recovery:"Récuperation de la double authentification"}},media_modal:{previous:"Précédent",next:"Suivant"},nav:{about:"À propos",back:"Retour",chat:"Chat local",friend_requests:"Demandes de suivi",mentions:"Notifications",interactions:"Interactions",dms:"Messages directs",public_tl:"Fil d'actualité public",timeline:"Fil d'actualité",twkn:"Ensemble du réseau connu",user_search:"Recherche d'utilisateur·ice",who_to_follow:"Qui suivre",preferences:"Préférences"},notifications:{broken_favorite:"Chargement d'un message inconnu…",favorited_you:"a aimé votre statut",followed_you:"a commencé à vous suivre",load_older:"Charger les notifications précédentes",notifications:"Notifications",read:"Lu !",repeated_you:"a partagé votre statut",no_more_notifications:"Aucune notification supplémentaire"},interactions:{favs_repeats:"Partages et favoris",follows:"Nouveaux⋅elles abonné⋅e⋅s ?",load_older:"Chargez d'anciennes interactions"},post_status:{new_status:"Poster un nouveau statut",account_not_locked_warning:"Votre compte n'est pas {0}. N'importe qui peut vous suivre pour voir vos billets en Abonné·e·s uniquement.",account_not_locked_warning_link:"verrouillé",attachments_sensitive:"Marquer le média comme sensible",content_type:{"text/plain":"Texte brut","text/html":"HTML","text/markdown":"Markdown","text/bbcode":"BBCode"},content_warning:"Sujet (optionnel)",default:"Écrivez ici votre prochain statut.",direct_warning_to_all:"Ce message sera visible pour toutes les personnes mentionnées.",direct_warning_to_first_only:"Ce message sera visible uniquement pour personnes mentionnées au début du message.",posting:"Envoi en cours",scope_notice:{public:"Ce statut sera visible par tout le monde",private:"Ce statut sera visible par seulement vos abonné⋅e⋅s",unlisted:"Ce statut ne sera pas visible dans le Fil d'actualité public et l'Ensemble du réseau connu"},scope:{direct:"Direct - N'envoyer qu'aux personnes mentionnées",private:"Abonné·e·s uniquement - Seul·e·s vos abonné·e·s verront vos billets",public:"Publique - Afficher dans les fils publics",unlisted:"Non-Listé - Ne pas afficher dans les fils publics"}},registration:{bio:"Biographie",email:"Adresse mail",fullname:"Pseudonyme",password_confirm:"Confirmation du mot de passe",registration:"Inscription",token:"Jeton d'invitation",captcha:"CAPTCHA",new_captcha:"Cliquez sur l'image pour avoir un nouveau captcha",username_placeholder:"p.e. lain",fullname_placeholder:"p.e. Lain Iwakura",bio_placeholder:"p.e.\nSalut, je suis Lain\nJe suis une héroïne d'animé qui vit dans une banlieue japonaise. Vous me connaissez peut-être du Wired.",validations:{username_required:"ne peut pas être laissé vide",fullname_required:"ne peut pas être laissé vide",email_required:"ne peut pas être laissé vide",password_required:"ne peut pas être laissé vide",password_confirmation_required:"ne peut pas être laissé vide",password_confirmation_match:"doit être identique au mot de passe"}},selectable_list:{select_all:"Tout selectionner"},settings:{app_name:"Nom de l'application",security:"Sécurité",enter_current_password_to_confirm:"Entrez votre mot de passe actuel pour confirmer votre identité",mfa:{otp:"OTP",setup_otp:"Configurer OTP",wait_pre_setup_otp:"préconfiguration OTP",confirm_and_enable:"Confirmer & activer OTP",title:"Double authentification",generate_new_recovery_codes:"Générer de nouveaux codes de récupération",warning_of_generate_new_codes:"Quand vous générez de nouveauc codes de récupération, vos anciens codes ne fonctionnerons plus.",recovery_codes:"Codes de récupération.",waiting_a_recovery_codes:"Récéption des codes de récupération…",recovery_codes_warning:"Écrivez les codes ou sauvez les quelquepart sécurisé - sinon vous ne les verrez plus jamais. Si vous perdez l'accès à votre application de double authentification et codes de récupération vous serez vérouillé en dehors de votre compte.",authentication_methods:"Methodes d'authentification",scan:{title:"Scanner",desc:"En utilisant votre application de double authentification, scannez ce QR code ou entrez la clé textuelle :",secret_code:"Clé"},verify:{desc:"Pour activer la double authentification, entrez le code depuis votre application:"}},attachmentRadius:"Pièces jointes",attachments:"Pièces jointes",autoload:"Charger la suite automatiquement une fois le bas de la page atteint",avatar:"Avatar",avatarAltRadius:"Avatars (Notifications)",avatarRadius:"Avatars",background:"Arrière-plan",bio:"Biographie",block_export:"Export des comptes bloqués",block_export_button:"Export des comptes bloqués vers un fichier csv",block_import:"Import des comptes bloqués",block_import_error:"Erreur lors de l'import des comptes bloqués",blocks_imported:"Blocks importés! Le traitement va prendre un moment.",blocks_tab:"Bloqué·e·s",btnRadius:"Boutons",cBlue:"Bleu (répondre, suivre)",cGreen:"Vert (partager)",cOrange:"Orange (aimer)",cRed:"Rouge (annuler)",change_password:"Changez votre mot de passe",change_password_error:"Il y a eu un problème pour changer votre mot de passe.",changed_password:"Mot de passe modifié avec succès !",collapse_subject:"Réduire les messages avec des sujets",composing:"Composition",confirm_new_password:"Confirmation du nouveau mot de passe",current_avatar:"Avatar actuel",current_password:"Mot de passe actuel",current_profile_banner:"Bannière de profil actuelle",data_import_export_tab:"Import / Export des Données",default_vis:"Visibilité par défaut",delete_account:"Supprimer le compte",delete_account_description:"Supprimer définitivement votre compte et tous vos statuts.",delete_account_error:"Il y a eu un problème lors de la tentative de suppression de votre compte. Si le problème persiste, contactez l'administrateur⋅ice de cette instance.",delete_account_instructions:"Indiquez votre mot de passe ci-dessous pour confirmer la suppression de votre compte.",avatar_size_instruction:"La taille minimale recommandée pour l'image de l'avatar est de 150x150 pixels.",export_theme:"Enregistrer le thème",filtering:"Filtre",filtering_explanation:"Tous les statuts contenant ces mots seront masqués. Un mot par ligne",follow_export:"Exporter les abonnements",follow_export_button:"Exporter les abonnements en csv",follow_import:"Importer des abonnements",follow_import_error:"Erreur lors de l'importation des abonnements",follows_imported:"Abonnements importés ! Le traitement peut prendre un moment.",foreground:"Premier plan",general:"Général",hide_attachments_in_convo:"Masquer les pièces jointes dans les conversations",hide_attachments_in_tl:"Masquer les pièces jointes dans le journal",hide_muted_posts:"Masquer les statuts des utilisateurs masqués",max_thumbnails:"Nombre maximum de miniatures par statuts",hide_isp:"Masquer le panneau spécifique a l'instance",preload_images:"Précharger les images",use_one_click_nsfw:"Ouvrir les pièces-jointes NSFW avec un seul clic",hide_post_stats:"Masquer les statistiques de publication (le nombre de favoris)",hide_user_stats:"Masquer les statistiques de profil (le nombre d'amis)",hide_filtered_statuses:"Masquer les statuts filtrés",import_blocks_from_a_csv_file:"Importer les blocages depuis un fichier csv",import_followers_from_a_csv_file:"Importer des abonnements depuis un fichier csv",import_theme:"Charger le thème",inputRadius:"Champs de texte",checkboxRadius:"Cases à cocher",instance_default:"(default: {value})",instance_default_simple:"(default)",interface:"Interface",interfaceLanguage:"Langue de l'interface",invalid_theme_imported:"Le fichier sélectionné n'est pas un thème Pleroma pris en charge. Aucun changement n'a été apporté à votre thème.",limited_availability:"Non disponible dans votre navigateur",links:"Liens",lock_account_description:"Limitez votre compte aux abonnés acceptés uniquement",loop_video:"Vidéos en boucle",loop_video_silent_only:"Boucle uniquement les vidéos sans le son (les « gifs » de Mastodon)",mutes_tab:"Comptes silenciés",play_videos_in_modal:"Jouer les vidéos directement dans le visionneur de médias",use_contain_fit:"Ne pas rogner les miniatures des pièces-jointes",name:"Nom",name_bio:"Nom & Bio",new_password:"Nouveau mot de passe",notification_visibility:"Types de notifications à afficher",notification_visibility_follows:"Abonnements",notification_visibility_likes:"J'aime",notification_visibility_mentions:"Mentionnés",notification_visibility_repeats:"Partages",no_rich_text_description:"Ne formatez pas le texte",no_blocks:"Aucun bloqués",no_mutes:"Aucun masqués",hide_follows_description:"Ne pas afficher à qui je suis abonné",hide_followers_description:"Ne pas afficher qui est abonné à moi",show_admin_badge:"Afficher le badge d'Administrateur⋅ice sur mon profil",show_moderator_badge:"Afficher le badge de Modérateur⋅ice sur mon profil",nsfw_clickthrough:"Masquer les images marquées comme contenu adulte ou sensible",oauth_tokens:"Jetons OAuth",token:"Jeton",refresh_token:"Refresh Token",valid_until:"Valable jusque",revoke_token:"Révoquer",panelRadius:"Fenêtres",pause_on_unfocused:"Suspendre le streaming lorsque l'onglet n'est pas actif",presets:"Thèmes prédéfinis",profile_background:"Image de fond",profile_banner:"Bannière de profil",profile_tab:"Profil",radii_help:"Vous pouvez ici choisir le niveau d'arrondi des angles de l'interface (en pixels)",replies_in_timeline:"Réponses au journal",reply_link_preview:"Afficher un aperçu lors du survol de liens vers une réponse",reply_visibility_all:"Montrer toutes les réponses",reply_visibility_following:"Afficher uniquement les réponses adressées à moi ou aux personnes que je suis",reply_visibility_self:"Afficher uniquement les réponses adressées à moi",autohide_floating_post_button:"Automatiquement cacher le bouton de Nouveau Statut (sur mobile)",saving_err:"Erreur lors de l'enregistrement des paramètres",saving_ok:"Paramètres enregistrés",search_user_to_block:"Rechercher qui vous voulez bloquer",search_user_to_mute:"Rechercher qui vous voulez masquer",security_tab:"Sécurité",scope_copy:"Garder la même visibilité en répondant (les DMs restent toujours des DMs)",minimal_scopes_mode:"Rétrécir les options de séléction de la portée",set_new_avatar:"Changer d'avatar",set_new_profile_background:"Changer d'image de fond",set_new_profile_banner:"Changer de bannière",settings:"Paramètres",subject_input_always_show:"Toujours copier le champ de sujet",subject_line_behavior:"Copier le sujet en répondant",subject_line_email:"Comme les mails: « re: sujet »",subject_line_mastodon:"Comme mastodon: copier tel quel",subject_line_noop:"Ne pas copier",post_status_content_type:"Type de contenu du statuts",stop_gifs:"N'animer les GIFS que lors du survol du curseur de la souris",streaming:"Charger automatiquement les nouveaux statuts lorsque vous êtes au haut de la page",text:"Texte",theme:"Thème",theme_help:"Spécifiez des codes couleur hexadécimaux (#rrvvbb) pour personnaliser les couleurs du thème.",theme_help_v2_1:"Vous pouvez aussi surcharger certaines couleurs de composants et transparence via la case à cocher, utilisez le bouton « Vider tout » pour effacer toutes les surcharges.",theme_help_v2_2:"Les icônes sous certaines des entrées ont un indicateur de contraste du fond/texte, survolez les pour plus d'informations détailles. Veuillez garder a l'esprit que lors de l'utilisation de transparence l'indicateur de contraste indique le pire des cas.",tooltipRadius:"Info-bulles/alertes",upload_a_photo:"Envoyer une photo",user_settings:"Paramètres utilisateur",values:{false:"non",true:"oui"},notifications:"Notifications",notification_setting:"Reçevoir les notifications de:",notification_setting_follows:"Utilisateurs que vous suivez",notification_setting_non_follows:"Utilisateurs que vous ne suivez pas",notification_setting_followers:"Utilisateurs qui vous suivent",notification_setting_non_followers:"Utilisateurs qui ne vous suivent pas",notification_mutes:"Pour stopper la récéption de notifications d'un utilisateur particulier, utilisez un masquage.",notification_blocks:"Bloquer un utilisateur stoppe toute notification et se désabonne de lui.",enable_web_push_notifications:"Activer les notifications de push web",style:{switcher:{keep_color:"Garder les couleurs",keep_shadows:"Garder les ombres",keep_opacity:"Garder la transparence",keep_roundness:"Garder la rondeur",keep_fonts:"Garder les polices",save_load_hint:"L'option « Garder » préserve les options activés en cours lors de la séléction ou chargement des thèmes, il sauve aussi les dites options lors de l'export d'un thème. Quand toutes les cases sont décochés, exporter un thème sauvera tout.",reset:"Remise à zéro",clear_all:"Tout vider",clear_opacity:"Vider la transparence"},common:{color:"Couleur",opacity:"Transparence",contrast:{hint:"Le ratio de contraste est {ratio}, il {level} {context}",level:{aa:"répond aux directives de niveau AA (minimum)",aaa:"répond aux directives de niveau AAA (recommandé)",bad:"ne réponds à aucune directive d'accessibilité"},context:{"18pt":"pour texte large (19pt+)",text:"pour texte"}}},common_colors:{_tab_label:"Commun",main:"Couleurs communes",foreground_hint:"Voir l'onglet « Avancé » pour plus de contrôle détaillé",rgbo:"Icônes, accents, badges"},advanced_colors:{_tab_label:"Avancé",alert:"Fond d'alerte",alert_error:"Erreur",badge:"Fond de badge",badge_notification:"Notification",panel_header:"Entête de panneau",top_bar:"Barre du haut",borders:"Bordures",buttons:"Boutons",inputs:"Champs de saisie",faint_text:"Texte en fondu"},radii:{_tab_label:"Rondeur"},shadows:{_tab_label:"Ombres et éclairage",component:"Composant",override:"Surcharger",shadow_id:"Ombre #{value}",blur:"Flou",spread:"Dispersion",inset:"Interne",hint:"Pour les ombres, vous pouvez aussi utiliser --variable comme valeur de couleur en CSS3. Veuillez noter que spécifier la transparence ne fonctionnera pas dans ce cas.",filter_hint:{always_drop_shadow:"Attention, cette ombre utilise toujours {0} quand le navigateur le supporte.",drop_shadow_syntax:"{0} ne supporte pas le paramètre {1} et mot-clé {2}.",avatar_inset:"Veuillez noter que combiner a la fois les ombres internes et non-internes sur les avatars peut fournir des résultats innatendus avec la transparence des avatars.",spread_zero:"Les ombres avec une dispersion > 0 apparaitrons comme si ils étaient à zéro",inset_classic:"L'ombre interne utilisera toujours {0}"},components:{panel:"Panneau",panelHeader:"En-tête de panneau",topBar:"Barre du haut",avatar:"Avatar utilisateur⋅ice (dans la vue de profil)",avatarStatus:"Avatar utilisateur⋅ice (dans la vue de statuts)",popup:"Popups et infobulles",button:"Bouton",buttonHover:"Bouton (survol)",buttonPressed:"Bouton (cliqué)",buttonPressedHover:"Bouton (cliqué+survol)",input:"Champ de saisie"}},fonts:{_tab_label:"Polices",help:"Sélectionnez la police à utiliser pour les éléments de l'UI. Pour « personnalisé » vous avez à entrer le nom exact de la police comme il apparaît dans le système.",components:{interface:"Interface",input:"Champs de saisie",post:"Post text",postCode:"Texte à taille fixe dans un article (texte enrichi)"},family:"Nom de la police",size:"Taille (en px)",weight:"Poid (gras)",custom:"Personnalisé"},preview:{header:"Prévisualisation",content:"Contenu",error:"Exemple d'erreur",button:"Bouton",text:"Un certain nombre de {0} et {1}",mono:"contenu",input:"Je viens juste d’atterrir à L.A.",faint_link:"manuel utile",fine_print:"Lisez notre {0} pour n'apprendre rien d'utile !",header_faint:"Tout va bien",checkbox:"J'ai survolé les conditions d'utilisation",link:"un petit lien sympa"}},version:{title:"Version",backend_version:"Version du Backend",frontend_version:"Version du Frontend"}},timeline:{collapse:"Fermer",conversation:"Conversation",error_fetching:"Erreur en cherchant les mises à jour",load_older:"Afficher plus",no_retweet_hint:"Le message est marqué en abonnés-seulement ou direct et ne peut pas être partagé",repeated:"a partagé",show_new:"Afficher plus",up_to_date:"À jour",no_more_statuses:"Pas plus de statuts",no_statuses:"Aucun statuts"},status:{favorites:"Favoris",repeats:"Partages",delete:"Supprimer statuts",pin:"Agraffer sur le profil",unpin:"Dégraffer du profil",pinned:"Agraffé",delete_confirm:"Voulez-vous vraiment supprimer ce statuts ?",reply_to:"Réponse à",replies_list:"Réponses:"},user_card:{approve:"Accepter",block:"Bloquer",blocked:"Bloqué !",deny:"Rejeter",favorites:"Favoris",follow:"Suivre",follow_sent:"Demande envoyée !",follow_progress:"Demande en cours…",follow_again:"Renvoyer la demande ?",follow_unfollow:"Désabonner",followees:"Suivis",followers:"Vous suivent",following:"Suivi !",follows_you:"Vous suit !",its_you:"C'est vous !",media:"Media",mute:"Masquer",muted:"Masqué",per_day:"par jour",remote_follow:"Suivre d'une autre instance",report:"Signalement",statuses:"Statuts",unblock:"Débloquer",unblock_progress:"Déblocage…",block_progress:"Blocage…",unmute:"Démasquer",unmute_progress:"Démasquage…",mute_progress:"Masquage…",admin_menu:{moderation:"Moderation",grant_admin:"Promouvoir Administrateur⋅ice",revoke_admin:"Dégrader Administrateur⋅ice",grant_moderator:"Promouvoir Modérateur⋅ice",revoke_moderator:"Dégrader Modérateur⋅ice",activate_account:"Activer le compte",deactivate_account:"Désactiver le compte",delete_account:"Supprimer le compte",force_nsfw:"Marquer tous les statuts comme NSFW",strip_media:"Supprimer les medias des statuts",force_unlisted:"Forcer les statuts à être délistés",sandbox:"Forcer les statuts à être visibles seuleument pour les abonné⋅e⋅s",disable_remote_subscription:"Interdir de s'abonner a l'utilisateur depuis l'instance distante",disable_any_subscription:"Interdir de s'abonner à l'utilisateur tout court",quarantine:"Interdir les statuts de l'utilisateur à fédérer",delete_user:"Supprimer l'utilisateur",delete_user_confirmation:"Êtes-vous absolument-sûr⋅e ? Cette action ne peut être annulée."}},user_profile:{timeline_title:"Journal de l'utilisateur⋅ice",profile_does_not_exist:"Désolé, ce profil n'existe pas.",profile_loading_error:"Désolé, il y a eu une erreur au chargement du profil."},user_reporting:{title:"Signaler {0}",add_comment_description:"Ce signalement sera envoyé aux modérateur⋅ice⋅s de votre instance. Vous pouvez fournir une explication de pourquoi vous signalez ce compte ci-dessous :",additional_comments:"Commentaires additionnels",forward_description:"Le compte vient d'un autre serveur. Envoyer une copie du signalement à celui-ci aussi ?",forward_to:"Transmettre à {0}",submit:"Envoyer",generic_error:"Une erreur est survenue lors du traitement de votre requête."},who_to_follow:{more:"Plus",who_to_follow:"À qui s'abonner"},tool_tip:{media_upload:"Envoyer un media",repeat:"Répéter",reply:"Répondre",favorite:"Favoriser",user_settings:"Paramètres utilisateur"},upload:{error:{base:"L'envoi a échoué.",file_too_big:"Fichier trop gros [{filesize}{filesizeunit} / {allowedsize}{allowedsizeunit}]",default:"Réessayez plus tard"},file_size_units:{B:"O",KiB:"KiO",MiB:"MiO",GiB:"GiO",TiB:"TiO"}}}},function(e){e.exports={chat:{title:"Comhrá"},features_panel:{chat:"Comhrá",gopher:"Gófar",media_proxy:"Seachfhreastalaí meáin",scope_options:"Rogha scóip",text_limit:"Teorainn Téacs",title:"Gnéithe",who_to_follow:"Daoine le leanúint"},finder:{error_fetching_user:"Earráid a aimsiú d'úsáideoir",find_user:"Aimsigh úsáideoir"},general:{apply:"Feidhmigh",submit:"Deimhnigh"},login:{login:"Logáil isteach",logout:"Logáil amach",password:"Pasfhocal",placeholder:"m.sh. Daire",register:"Clárú",username:"Ainm Úsáideora"},nav:{chat:"Comhrá Áitiúil",friend_requests:"Iarratas ar Cairdeas",mentions:"Tagairt",public_tl:"Amlíne Poiblí",timeline:"Amlíne",twkn:"An Líonra Iomlán"},notifications:{broken_favorite:"Post anaithnid. Cuardach dó...",favorited_you:"toghadh le do phost",followed_you:"lean tú",load_older:"Luchtaigh fógraí aosta",notifications:"Fógraí",read:"Léigh!",repeated_you:"athphostáil tú"},post_status:{account_not_locked_warning:"Níl do chuntas {0}. Is féidir le duine ar bith a leanúint leat chun do phoist leantacha amháin a fheiceáil.",account_not_locked_warning_link:"faoi glas",attachments_sensitive:"Marcáil ceangaltán mar íogair",content_type:{"text/plain":"Gnáth-théacs"},content_warning:"Teideal (roghnach)",default:"Lá iontach anseo i nGaillimh",direct_warning:"Ní bheidh an post seo le feiceáil ach amháin do na húsáideoirí atá luaite.",posting:"Post nua",scope:{direct:"Díreach - Post chuig úsáideoirí luaite amháin",private:"Leanúna amháin - Post chuig lucht leanúna amháin",public:"Poiblí - Post chuig amlínte poiblí",unlisted:"Neamhliostaithe - Ná cuir post chuig amlínte poiblí"}},registration:{bio:"Scéal saoil",email:"Ríomhphost",fullname:"Ainm taispeána'",password_confirm:"Deimhnigh do pasfhocal",registration:"Clárú",token:"Cód cuireadh"},settings:{attachmentRadius:"Ceangaltáin",attachments:"Ceangaltáin",autoload:"Cumasaigh luchtú uathoibríoch nuair a scrollaítear go bun",avatar:"Phictúir phrófíle",avatarAltRadius:"Phictúirí phrófíle (Fograí)",avatarRadius:"Phictúirí phrófíle",background:"Cúlra",bio:"Scéal saoil",btnRadius:"Cnaipí",cBlue:"Gorm (Freagra, lean)",cGreen:"Glas (Athphóstail)",cOrange:"Oráiste (Cosúil)",cRed:"Dearg (Cealaigh)",change_password:"Athraigh do pasfhocal",change_password_error:"Bhí fadhb ann ag athrú do pasfhocail",changed_password:"Athraigh an pasfhocal go rathúil!",collapse_subject:"Poist a chosc le teidil",confirm_new_password:"Deimhnigh do pasfhocal nua",current_avatar:"Phictúir phrófíle",current_password:"Pasfhocal reatha",current_profile_banner:"Phictúir ceanntáisc",data_import_export_tab:"Iompórtáil / Easpórtáil Sonraí",default_vis:"Scóip infheicthe réamhshocraithe",delete_account:"Scrios cuntas",delete_account_description:"Do chuntas agus do chuid teachtaireachtaí go léir a scriosadh go buan.",delete_account_error:"Bhí fadhb ann a scriosadh do chuntas. Má leanann sé seo, téigh i dteagmháil le do riarthóir.",delete_account_instructions:"Scríobh do phasfhocal san ionchur thíos chun deimhniú a scriosadh.",export_theme:"Sábháil Téama",filtering:"Scagadh",filtering_explanation:"Beidh gach post ina bhfuil na focail seo i bhfolach, ceann in aghaidh an líne",follow_export:"Easpórtáil do leanann",follow_export_button:"Easpórtáil do leanann chuig comhad csv",follow_export_processing:"Próiseáil. Iarrtar ort go luath an comhad a íoslódáil.",follow_import:"Iompórtáil do leanann",follow_import_error:"Earráid agus do leanann a iompórtáil",follows_imported:"Do leanann iompórtáil! Tógfaidh an próiseas iad le tamall.",foreground:"Tulra",general:"Ginearálta",hide_attachments_in_convo:"Folaigh ceangaltáin i comhráite",hide_attachments_in_tl:"Folaigh ceangaltáin sa amlíne",hide_post_stats:"Folaigh staitisticí na bpost (m.sh. líon na n-athrá)",hide_user_stats:"Folaigh na staitisticí úsáideora (m.sh. líon na leantóiri)",import_followers_from_a_csv_file:"Iompórtáil leanann ó chomhad csv",import_theme:"Luchtaigh Téama",inputRadius:"Limistéar iontrála",instance_default:"(Réamhshocrú: {value})",interfaceLanguage:"Teanga comhéadain",invalid_theme_imported:"Ní téama bailí é an comhad dícheangailte. Níor rinneadh aon athruithe.",limited_availability:"Níl sé ar fáil i do bhrabhsálaí",links:"Naisc",lock_account_description:"Srian a chur ar do chuntas le lucht leanúna ceadaithe amháin",loop_video:"Lúb físeáin",loop_video_silent_only:'Lúb físeáin amháin gan fuaim (i.e. Mastodon\'s "gifs")',name:"Ainm",name_bio:"Ainm ⁊ Scéal",new_password:"Pasfhocal nua'",notification_visibility:"Cineálacha fógraí a thaispeáint",notification_visibility_follows:"Leana",notification_visibility_likes:"Thaithin",notification_visibility_mentions:"Tagairt",notification_visibility_repeats:"Atphostáil",no_rich_text_description:"Bain formáidiú téacs saibhir ó gach post",nsfw_clickthrough:"Cumasaigh an ceangaltán NSFW cliceáil ar an gcnaipe",oauth_tokens:"Tocanna OAuth",token:"Token",refresh_token:"Athnuachan Comórtas",valid_until:"Bailí Go dtí",revoke_token:"Athghairm",panelRadius:"Painéil",pause_on_unfocused:"Sruthú ar sos nuair a bhíonn an fócas caillte",presets:"Réamhshocruithe",profile_background:"Cúlra Próifíl",profile_banner:"Phictúir Ceanntáisc",profile_tab:"Próifíl",radii_help:"Cruinniú imeall comhéadan a chumrú (i bpicteilíní)",replies_in_timeline:"Freagraí sa amlíne",reply_link_preview:"Cumasaigh réamhamharc nasc freagartha ar chlár na luiche",reply_visibility_all:"Taispeáin gach freagra",reply_visibility_following:"Taispeáin freagraí amháin atá dírithe ar mise nó ar úsáideoirí atá mé ag leanúint",reply_visibility_self:"Taispeáin freagraí amháin atá dírithe ar mise",saving_err:"Earráid socruithe a shábháil",saving_ok:"Socruithe sábháilte",security_tab:"Slándáil",set_new_avatar:"Athraigh do phictúir phrófíle",set_new_profile_background:"Athraigh do cúlra próifíl",set_new_profile_banner:"Athraigh do phictúir ceanntáisc",settings:"Socruithe",stop_gifs:"Seinn GIFs ar an scáileán",streaming:"Cumasaigh post nua a shruthú uathoibríoch nuair a scrollaítear go barr an leathanaigh",text:"Téacs",theme:"Téama",theme_help:"Úsáid cód daith hex (#rrggbb) chun do schéim a saincheapadh",tooltipRadius:"Bileoga eolais",user_settings:"Socruithe úsáideora",values:{false:"níl",true:"tá"}},time:{day:"{0} lá",days:"{0} lá",day_short:"{0}l",days_short:"{0}l",hour:"{0} uair",hours:"{0} uair",hour_short:"{0}u",hours_short:"{0}u",in_future:"in {0}",in_past:"{0} ago",minute:"{0} nóimeád",minutes:"{0} nóimeád",minute_short:"{0}n",minutes_short:"{0}n",month:"{0} mí",months:"{0} mí",month_short:"{0}m",months_short:"{0}m",now:"Anois",now_short:"Anois",second:"{0} s",seconds:"{0} s",second_short:"{0}s",seconds_short:"{0}s",week:"{0} seachtain",weeks:"{0} seachtaine",week_short:"{0}se",weeks_short:"{0}se",year:"{0} bliainta",years:"{0} bliainta",year_short:"{0}b",years_short:"{0}b"},timeline:{collapse:"Folaigh",conversation:"Cómhra",error_fetching:"Earráid a thabhairt cothrom le dáta",load_older:"Luchtaigh níos mó",no_retweet_hint:"Tá an post seo marcáilte mar lucht leanúna amháin nó díreach agus ní féidir é a athphostáil",repeated:"athphostáil",show_new:"Taispeáin nua",up_to_date:"Nuashonraithe"},user_card:{approve:"Údaraigh",block:"Cosc",blocked:"Cuireadh coisc!",deny:"Diúltaigh",follow:"Lean",followees:"Leantóirí",followers:"Á Leanúint",following:"Á Leanúint",follows_you:"Leanann tú",mute:"Cuir i mód ciúin",muted:"Mód ciúin",per_day:"laethúil",remote_follow:"Leaníunt iargúlta",statuses:"Poist"},user_profile:{timeline_title:"Amlíne úsáideora"},who_to_follow:{more:"Feach uile",who_to_follow:"Daoine le leanúint"}}},function(e){e.exports={chat:{title:"צ'אט"},exporter:{export:"ייצוא",processing:"מעבד, בקרוב תופיע אפשרות להוריד את הקובץ"},features_panel:{chat:"צ'אט",gopher:"גופר",media_proxy:"מדיה פרוקסי",scope_options:"אפשרויות טווח",text_limit:"מגבלת טקסט",title:"מאפיינים",who_to_follow:"אחרי מי לעקוב"},finder:{error_fetching_user:"שגיאה במציאת משתמש",find_user:"מציאת משתמש"},general:{apply:"החל",submit:"שלח",more:"עוד",generic_error:"קרתה שגיאה",optional:"לבחירה",show_more:"הראה עוד",show_less:"הראה פחות",cancel:"בטל"},image_cropper:{crop_picture:"חתוך תמונה",save:"שמור",save_without_cropping:"שמור בלי לחתוך",cancel:"בטל"},importer:{submit:"שלח",success:"ייובא בהצלחה.",error:"אירעתה שגיאה בזמן ייבוא קובץ זה."},login:{login:"התחבר",description:"היכנס עם OAuth",logout:"התנתק",password:"סיסמה",placeholder:"למשל lain",register:"הירשם",username:"שם המשתמש",hint:"הירשם על מנת להצטרף לדיון"},media_modal:{previous:"הקודם",next:"הבא"},nav:{about:"על-אודות",back:"חזור",chat:"צ'אט מקומי",friend_requests:"בקשות עקיבה",mentions:"אזכורים",interactions:"אינטרקציות",dms:"הודעות ישירות",public_tl:"ציר הזמן הציבורי",timeline:"ציר הזמן",twkn:"כל הרשת הידועה",user_search:"חיפוש משתמש",who_to_follow:"אחרי מי לעקוב",preferences:"העדפות"},notifications:{broken_favorite:"סטאטוס לא ידוע, מחפש...",favorited_you:"אהב את הסטטוס שלך",followed_you:"עקב אחריך!",load_older:"טען התראות ישנות",notifications:"התראות",read:"קרא!",repeated_you:"חזר על הסטטוס שלך",no_more_notifications:"לא עוד התראות"},interactions:{favs_repeats:"חזרות ומועדפים",follows:"עוקבים חדשים",load_older:"טען אינטרקציות ישנות"},post_status:{new_status:"פרסם סטאטוס חדש",account_not_locked_warning:"המשתמש שלך אינו {0}. כל אחד יכול לעקוב אחריך ולראות את ההודעות לעוקבים-בלבד שלך.",account_not_locked_warning_link:"נעול",attachments_sensitive:"סמן מסמכים מצורפים כלא בטוחים לצפייה",content_type:{"text/plain":"טקסט פשוט","text/html":"HTML","text/markdown":"Markdown","text/bbcode":"BBCode"},content_warning:"נושא (נתון לבחירה)",default:"הרגע נחת ב-ל.א.",direct_warning_to_all:"הודעה זו תהיה נראית לכל המשתמשים המוזכרים.",direct_warning_to_first_only:"הודעה זו תהיה נראית לכל המשתמשים במוזכרים בתחילת ההודעה בלבד.",posting:"מפרסם",scope_notice:{public:"הודעה זו תהיה נראית לכולם",private:"הודעה זו תהיה נראית לעוקבים שלך בלבד",unlisted:"הודעה זו לא תהיה נראית בציר זמן הציבורי או בכל הרשת הידועה"},scope:{direct:"ישיר - שלח לאנשים המוזכרים בלבד",private:"עוקבים-בלבד - שלח לעוקבים בלבד",public:"ציבורי - שלח לציר הזמן הציבורי",unlisted:"מחוץ לרשימה - אל תשלח לציר הזמן הציבורי"}},registration:{bio:"אודות",email:"אימייל",fullname:"שם תצוגה",password_confirm:"אישור סיסמה",registration:"הרשמה",token:"טוקן הזמנה",captcha:"אימות אנוש",new_captcha:"לחץ על התמונה על מנת לקבל אימות אנוש חדש",username_placeholder:"למשל lain",fullname_placeholder:"למשל Lain Iwakura",bio_placeholder:"למשל\nהיי, אני ליין.\nאני ילדת אנימה שגרה בפרוורי יפן. אולי אתם מכירים אותי מהWired.",validations:{username_required:"לא יכול להישאר ריק",fullname_required:"לא יכול להישאר ריק",email_required:"לא יכול להישאר ריק",password_required:"לא יכול להישאר ריק",password_confirmation_required:"לא יכול להישאר ריק",password_confirmation_match:"צריך להיות דומה לסיסמה"}},selectable_list:{select_all:"בחר הכל"},settings:{app_name:"שם האפליקציה",attachmentRadius:"צירופים",attachments:"צירופים",autoload:"החל טעינה אוטומטית בגלילה לתחתית הדף",avatar:"תמונת פרופיל",avatarAltRadius:"תמונות פרופיל (התראות)",avatarRadius:"תמונות פרופיל",background:"רקע",bio:"אודות",block_export:"ייצוא חסימות",block_export_button:"ייצוא חסימות אל קובץ csv",block_import:"ייבוא חסימות",block_import_error:"שגיאה בייבוא החסימות",blocks_imported:"החסימות יובאו! ייקח מעט זמן לעבד אותן.",blocks_tab:"חסימות",btnRadius:"כפתורים",cBlue:"כחול (תגובה, עקיבה)",cGreen:"ירוק (חזרה)",cOrange:"כתום (לייק)",cRed:"אדום (ביטול)",change_password:"שנה סיסמה",change_password_error:"הייתה בעיה בשינוי סיסמתך.",changed_password:"סיסמה שונתה בהצלחה!",collapse_subject:"מזער הודעות עם נושאים",composing:"מרכיב",confirm_new_password:"אשר סיסמה",current_avatar:"תמונת הפרופיל הנוכחית שלך",current_password:"סיסמה נוכחית",current_profile_banner:"כרזת הפרופיל הנוכחית שלך",data_import_export_tab:"ייבוא או ייצוא מידע",default_vis:"ברירת מחדל לטווח הנראות",delete_account:"מחק משתמש",delete_account_description:"מחק לצמיתות את המשתמש שלך ואת כל הודעותיך.",delete_account_error:"הייתה בעיה במחיקת המשתמש. אם זה ממשיך, אנא עדכן את מנהל השרת שלך.",delete_account_instructions:"הכנס את סיסמתך בקלט למטה על מנת לאשר מחיקת משתמש.",avatar_size_instruction:"הגודל המינימלי המומלץ לתמונות פרופיל הוא 150x150 פיקסלים.",export_theme:"שמור ערכים",filtering:"סינון",filtering_explanation:"כל הסטטוסים הכוללים את המילים הללו יושתקו, אחד לשורה",follow_export:"יצוא עקיבות",follow_export_button:"ייצא את הנעקבים שלך לקובץ csv",follow_import:"יבוא עקיבות",follow_import_error:"שגיאה בייבוא נעקבים.",follows_imported:"נעקבים יובאו! ייקח זמן מה לעבד אותם.",foreground:"חזית",general:"כללי",hide_attachments_in_convo:"החבא צירופים בשיחות",hide_attachments_in_tl:"החבא צירופים בציר הזמן",hide_muted_posts:"הסתר הודעות של משתמשים מושתקים",max_thumbnails:"מספר מירבי של תמונות ממוזערות להודעה",hide_isp:"הסתר פאנל-צד",preload_images:"טען תמונות מראש",use_one_click_nsfw:"פתח תמונות לא-בטוחות-לעבודה עם לחיצה אחת בלבד",hide_post_stats:"הסתר נתוני הודעה (למשל, מספר החזרות)",hide_user_stats:"הסתר נתוני משתמש (למשל, מספר העוקבים)",hide_filtered_statuses:"מסתר סטטוסים מסוננים",import_blocks_from_a_csv_file:"ייבא חסימות מקובץ csv",import_followers_from_a_csv_file:"ייבא את הנעקבים שלך מקובץ csv",import_theme:"טען ערכים",inputRadius:"שדות קלט",checkboxRadius:"תיבות סימון",instance_default:"(default: {value})",instance_default_simple:"(default)",interface:"ממשק",interfaceLanguage:"שפת הממשק",invalid_theme_imported:'הקובץ הנבחר אינו תמה הנתמכת ע"י פלרומה. שום שינויים לא נעשו לתמה שלך.',limited_availability:"לא זמין בדפדפן שלך",links:"לינקים",lock_account_description:"הגבל את המשתמש לעוקבים מאושרים בלבד",loop_video:"נגן סרטונים ללא הפסקה",loop_video_silent_only:"נגן רק סרטונים חסרי קול ללא הפסקה",mutes_tab:"השתקות",play_videos_in_modal:"נגן סרטונים ישירות בנגן המדיה",use_contain_fit:"אל תחתוך את הצירוף בתמונות הממוזערות",name:"שם",name_bio:"שם ואודות",new_password:"סיסמה חדשה",notification_visibility:"סוג ההתראות שתרצו לראות",notification_visibility_follows:"עקיבות",notification_visibility_likes:"לייקים",notification_visibility_mentions:"אזכורים",notification_visibility_repeats:"חזרות",no_rich_text_description:"הסר פורמט טקסט עשיר מכל ההודעות",no_blocks:"ללא חסימות",no_mutes:"ללא השתקות",hide_follows_description:"אל תראה אחרי מי אני עוקב",hide_followers_description:"אל תראה מי עוקב אחרי",show_admin_badge:"הראה סמל מנהל בפרופיל שלי",show_moderator_badge:"הראה סמל צוות בפרופיל שלי",nsfw_clickthrough:"החל החבאת צירופים לא בטוחים לצפיה בעת עבודה בעזרת לחיצת עכבר",oauth_tokens:"אסימוני OAuth",token:"אסימון",refresh_token:"רענון האסימון",valid_until:"בתוקף עד",revoke_token:"בטל",panelRadius:"פאנלים",pause_on_unfocused:"השהה זרימת הודעות כשהחלון לא בפוקוס",presets:"ערכים קבועים מראש",profile_background:"רקע הפרופיל",profile_banner:"כרזת הפרופיל",profile_tab:"פרופיל",radii_help:"קבע מראש עיגול פינות לממשק (בפיקסלים)",replies_in_timeline:"תגובות בציר הזמן",reply_link_preview:"החל תצוגה מקדימה של לינק-תגובה בעת ריחוף עם העכבר",reply_visibility_all:"הראה את כל התגובות",reply_visibility_following:"הראה תגובות שמופנות אליי או לעקובים שלי בלבד",reply_visibility_self:"הראה תגובות שמופנות אליי בלבד",autohide_floating_post_button:"החבא אוטומטית את הכפתור הודעה חדשה (נייד)",saving_err:"שגיאה בשמירת הגדרות",saving_ok:"הגדרות נשמרו",search_user_to_block:"חפש משתמש לחסימה",search_user_to_mute:"חפש משתמש להשתקה",security_tab:"ביטחון",scope_copy:"העתק תחום הודעה בתגובה להודעה (הודעות ישירות תמיד מועתקות)",minimal_scopes_mode:"צמצם אפשרויות בחירה לתחום הודעה",set_new_avatar:"קבע תמונת פרופיל חדשה",set_new_profile_background:"קבע רקע פרופיל חדש",set_new_profile_banner:"קבע כרזת פרופיל חדשה",settings:"הגדרות",subject_input_always_show:"תמיד הראה את שדה הנושא",subject_line_behavior:"העתק נושא בתגובה",subject_line_email:'כמו אימייל: "re: נושא"',subject_line_mastodon:"כמו מסטודון: העתק כפי שזה",subject_line_noop:"אל תעתיק",post_status_content_type:"שלח את סוג תוכן ההודעה",stop_gifs:"נגן-בעת-ריחוף GIFs",streaming:"החל זרימת הודעות אוטומטית בעת גלילה למעלה הדף",text:"טקסט",theme:"תמה",theme_help:"השתמש בקודי צבע הקס (#אדום-אדום-ירוק-ירוק-כחול-כחול) על מנת להתאים אישית את תמת הצבע שלך.",tooltipRadius:"טולטיפ \\ התראות",upload_a_photo:"העלה תמונה",user_settings:"הגדרות משתמש",values:{false:"לא",true:"כן"},notifications:"התראות",enable_web_push_notifications:"אפשר התראות web push",version:{title:"גרסה",backend_version:"גרסת קצה אחורי",frontend_version:"גרסת קצה קדמי"}},timeline:{collapse:"מוטט",conversation:"שיחה",error_fetching:"שגיאה בהבאת הודעות",load_older:"טען סטטוסים חדשים",no_retweet_hint:'ההודעה מסומנת כ"לעוקבים-בלבד" ולא ניתן לחזור עליה',repeated:"חזר",show_new:"הראה חדש",up_to_date:"עדכני",no_more_statuses:"אין עוד סטטוסים",no_statuses:"אין סטטוסים"},status:{favorites:"מועדפים",repeats:"חזרות",delete:"מחק סטטוס",pin:"הצמד לפרופיל",unpin:"הסר הצמדה מהפרופיל",pinned:"מוצמד",delete_confirm:"האם באמת למחוק סטטוס זה?",reply_to:"הגב ל",replies_list:"תגובות:"},user_card:{approve:"אשר",block:"חסימה",blocked:"חסום!",deny:"דחה",favorites:"מועדפים",follow:"עקוב",follow_sent:"בקשה נשלחה!",follow_progress:"מבקש...",follow_again:"שלח בקשה שוב?",follow_unfollow:"בטל עקיבה",followees:"נעקבים",followers:"עוקבים",following:"עוקב!",follows_you:"עוקב אחריך!",its_you:"זה אתה!",media:"מדיה",mute:"השתק",muted:"מושתק",per_day:"ליום",remote_follow:"עקיבה מרחוק",report:"דווח",statuses:"סטטוסים",unblock:"הסר חסימה",unblock_progress:"מסיר חסימה...",block_progress:"חוסם...",unmute:"הסר השתקה",unmute_progress:"מסיר השתקה...",mute_progress:"משתיק...",admin_menu:{moderation:"ניהול (צוות)",grant_admin:"הפוך למנהל",revoke_admin:"הסר מנהל",grant_moderator:"הפוך לצוות",revoke_moderator:"הסר צוות",activate_account:"הפעל משתמש",deactivate_account:"השבת משתמש",delete_account:"מחק משתמש",force_nsfw:"סמן את כל ההודעות בתור לא-מתאימות-לעבודה",strip_media:"הסר מדיה מההודעות",force_unlisted:"הפוך הודעות ללא רשומות",sandbox:"הפוך הודעות לנראות לעוקבים-בלבד",disable_remote_subscription:"אל תאפשר עקיבה של המשתמש מאינסטנס אחר",disable_any_subscription:"אל תאפשר עקיבה של המשתמש בכלל",quarantine:"אל תאפשר פדרציה של ההודעות של המשתמש",delete_user:"מחק משתמש",delete_user_confirmation:"בטוח? פעולה זו הינה בלתי הפיכה."}},user_profile:{timeline_title:"ציר זמן המשתמש",profile_does_not_exist:"סליחה, פרופיל זה אינו קיים.",profile_loading_error:"סליחה, הייתה שגיאה בטעינת הפרופיל."},user_reporting:{title:"מדווח על {0}",add_comment_description:"הדיווח ישלח לצוות האינסטנס. אפשר להסביר למה הנך מדווחים על משתמש זה למטה:",additional_comments:"תגובות נוספות",forward_description:"המשתמש משרת אחר. לשלוח לשם עותק של הדיווח?",forward_to:"העבר ל {0}",submit:"הגש",generic_error:"קרתה שגיאה בעת עיבוד הבקשה."},who_to_follow:{more:"עוד",who_to_follow:"אחרי מי לעקוב"},tool_tip:{media_upload:"העלה מדיה",repeat:"חזור",reply:"הגב",favorite:"מועדף",user_settings:"הגדרות משתמש"},upload:{error:{base:"העלאה נכשלה.",file_too_big:"קובץ גדול מדי [{filesize}{filesizeunit} / {allowedsize}{allowedsizeunit}]",default:"נסה שוב אחר כך"},file_size_units:{B:"B",KiB:"KiB",MiB:"MiB",GiB:"GiB",TiB:"TiB"}}}},function(e){e.exports={finder:{error_fetching_user:"Hiba felhasználó beszerzésével",find_user:"Felhasználó keresése"},general:{submit:"Elküld"},login:{login:"Bejelentkezés",logout:"Kijelentkezés",password:"Jelszó",placeholder:"e.g. lain",register:"Feliratkozás",username:"Felhasználó név"},nav:{mentions:"Említéseim",public_tl:"Publikus Idővonal",timeline:"Idővonal",twkn:"Az Egész Ismert Hálózat"},notifications:{followed_you:"követ téged",notifications:"Értesítések",read:"Olvasva!"},post_status:{default:"Most érkeztem L.A.-be",posting:"Küldés folyamatban"},registration:{bio:"Bio",email:"Email",fullname:"Teljes név",password_confirm:"Jelszó megerősítése",registration:"Feliratkozás"},settings:{attachments:"Csatolmányok",autoload:"Autoatikus betöltés engedélyezése lap aljára görgetéskor",avatar:"Avatár",bio:"Bio",current_avatar:"Jelenlegi avatár",current_profile_banner:"Jelenlegi profil banner",filtering:"Szűrés",filtering_explanation:"Minden tartalom mely ezen szavakat tartalmazza némítva lesz, soronként egy",hide_attachments_in_convo:"Csatolmányok elrejtése a társalgásokban",hide_attachments_in_tl:"Csatolmányok elrejtése az idővonalon",name:"Név",name_bio:"Név és Bio",nsfw_clickthrough:"NSFW átkattintási tartalom elrejtésének engedélyezése",profile_background:"Profil háttérkép",profile_banner:"Profil Banner",reply_link_preview:"Válasz-link előzetes mutatása egér rátételkor",set_new_avatar:"Új avatár",set_new_profile_background:"Új profil háttér beállítása",set_new_profile_banner:"Új profil banner",settings:"Beállítások",theme:"Téma",user_settings:"Felhasználói beállítások"},timeline:{conversation:"Társalgás",error_fetching:"Hiba a frissítések beszerzésénél",load_older:"Régebbi állapotok betöltése",show_new:"Újak mutatása",up_to_date:"Naprakész"},user_card:{block:"Letilt",blocked:"Letiltva!",follow:"Követ",followees:"Követettek",followers:"Követők",following:"Követve!",follows_you:"Követ téged!",mute:"Némít",muted:"Némított",per_day:"naponta",statuses:"Állapotok"}}},function(e){e.exports={general:{submit:"Invia",apply:"Applica"},nav:{mentions:"Menzioni",public_tl:"Sequenza temporale pubblica",timeline:"Sequenza temporale",twkn:"L'intera rete conosciuta",chat:"Chat Locale",friend_requests:"Richieste di Seguirti"},notifications:{followed_you:"ti segue",notifications:"Notifiche",read:"Leggi!",broken_favorite:"Stato sconosciuto, lo sto cercando...",favorited_you:"ha messo mi piace al tuo stato",load_older:"Carica notifiche più vecchie",repeated_you:"ha condiviso il tuo stato"},settings:{attachments:"Allegati",autoload:"Abilita caricamento automatico quando si raggiunge fondo pagina",avatar:"Avatar",bio:"Introduzione",current_avatar:"Il tuo avatar attuale",current_profile_banner:"Il tuo banner attuale",filtering:"Filtri",filtering_explanation:"Tutti i post contenenti queste parole saranno silenziati, uno per linea",hide_attachments_in_convo:"Nascondi gli allegati presenti nelle conversazioni",hide_attachments_in_tl:"Nascondi gli allegati presenti nella sequenza temporale",name:"Nome",name_bio:"Nome & Introduzione",nsfw_clickthrough:"Abilita il click per visualizzare gli allegati segnati come NSFW",profile_background:"Sfondo della tua pagina",profile_banner:"Banner del tuo profilo",reply_link_preview:"Abilita il link per la risposta al passaggio del mouse",set_new_avatar:"Scegli un nuovo avatar",set_new_profile_background:"Scegli un nuovo sfondo per la tua pagina",set_new_profile_banner:"Scegli un nuovo banner per il tuo profilo",settings:"Impostazioni",theme:"Tema",user_settings:"Impostazioni Utente",attachmentRadius:"Allegati",avatarAltRadius:"Avatar (Notifiche)",avatarRadius:"Avatar",background:"Sfondo",btnRadius:"Pulsanti",cBlue:"Blu (Rispondere, seguire)",cGreen:"Verde (Condividi)",cOrange:"Arancio (Mi piace)",cRed:"Rosso (Annulla)",change_password:"Cambia Password",change_password_error:"C'è stato un problema durante il cambiamento della password.",changed_password:"Password cambiata correttamente!",collapse_subject:"Riduci post che hanno un oggetto",confirm_new_password:"Conferma la nuova password",current_password:"Password attuale",data_import_export_tab:"Importa / Esporta Dati",default_vis:"Visibilità predefinita dei post",delete_account:"Elimina Account",delete_account_description:"Elimina definitivamente il tuo account e tutti i tuoi messaggi.",delete_account_error:"C'è stato un problema durante l'eliminazione del tuo account. Se il problema persiste contatta l'amministratore della tua istanza.",delete_account_instructions:"Digita la tua password nel campo sottostante per confermare l'eliminazione dell'account.",export_theme:"Salva settaggi",follow_export:"Esporta la lista di chi segui",follow_export_button:"Esporta la lista di chi segui in un file csv",follow_export_processing:"Sto elaborando, presto ti sarà chiesto di scaricare il tuo file",follow_import:"Importa la lista di chi segui",follow_import_error:"Errore nell'importazione della lista di chi segui",follows_imported:"Importazione riuscita! L'elaborazione richiederà un po' di tempo.",foreground:"In primo piano",general:"Generale",hide_post_stats:"Nascondi statistiche dei post (es. il numero di mi piace)",hide_user_stats:"Nascondi statistiche dell'utente (es. il numero di chi ti segue)",import_followers_from_a_csv_file:"Importa una lista di chi segui da un file csv",import_theme:"Carica settaggi",inputRadius:"Campi di testo",instance_default:"(predefinito: {value})",interfaceLanguage:"Linguaggio dell'interfaccia",invalid_theme_imported:"Il file selezionato non è un file di tema per Pleroma supportato. Il tuo tema non è stato modificato.",limited_availability:"Non disponibile nel tuo browser",links:"Collegamenti",lock_account_description:"Limita il tuo account solo per contatti approvati",loop_video:"Riproduci video in ciclo continuo",loop_video_silent_only:"Riproduci solo video senza audio in ciclo continuo (es. le gif di Mastodon)",new_password:"Nuova password",notification_visibility:"Tipi di notifiche da mostrare",notification_visibility_follows:"Nuove persone ti seguono",notification_visibility_likes:"Mi piace",notification_visibility_mentions:"Menzioni",notification_visibility_repeats:"Condivisioni",no_rich_text_description:"Togli la formattazione del testo da tutti i post",oauth_tokens:"Token OAuth",token:"Token",refresh_token:"Aggiorna token",valid_until:"Valido fino a",revoke_token:"Revocare",panelRadius:"Pannelli",pause_on_unfocused:"Metti in pausa l'aggiornamento continuo quando la scheda non è in primo piano",presets:"Valori predefiniti",profile_tab:"Profilo",radii_help:"Imposta l'arrotondamento dei bordi (in pixel)",replies_in_timeline:"Risposte nella sequenza temporale",reply_visibility_all:"Mostra tutte le risposte",reply_visibility_following:"Mostra solo le risposte dirette a me o agli utenti che seguo",reply_visibility_self:"Mostra solo risposte dirette a me",saving_err:"Errore nel salvataggio delle impostazioni",saving_ok:"Impostazioni salvate",security_tab:"Sicurezza",stop_gifs:"Riproduci GIF al passaggio del cursore del mouse",streaming:"Abilita aggiornamento automatico dei nuovi post quando si è in alto alla pagina",text:"Testo",theme_help:"Usa codici colore esadecimali (#rrggbb) per personalizzare il tuo schema di colori.",tooltipRadius:"Descrizioni/avvisi",values:{false:"no",true:"si"}},timeline:{error_fetching:"Errore nel prelievo aggiornamenti",load_older:"Carica messaggi più vecchi",show_new:"Mostra nuovi",up_to_date:"Aggiornato",collapse:"Riduci",conversation:"Conversazione",no_retweet_hint:"La visibilità del post è impostata solo per chi ti segue o messaggio diretto e non può essere condiviso",repeated:"condiviso"},user_card:{follow:"Segui",followees:"Chi stai seguendo",followers:"Chi ti segue",following:"Lo stai seguendo!",follows_you:"Ti segue!",mute:"Silenzia",muted:"Silenziato",per_day:"al giorno",statuses:"Messaggi",approve:"Approva",block:"Blocca",blocked:"Bloccato!",deny:"Nega",remote_follow:"Segui da remoto"},chat:{title:"Chat"},features_panel:{chat:"Chat",gopher:"Gopher",media_proxy:"Media proxy",scope_options:"Opzioni di visibilità",text_limit:"Lunghezza limite",title:"Caratteristiche",who_to_follow:"Chi seguire"},finder:{error_fetching_user:"Errore nel recupero dell'utente",find_user:"Trova utente"},login:{login:"Accedi",logout:"Disconnettiti",password:"Password",placeholder:"es. lain",register:"Registrati",username:"Nome utente"},post_status:{account_not_locked_warning:"Il tuo account non è {0}. Chiunque può seguirti e vedere i tuoi post riservati a chi ti segue.",account_not_locked_warning_link:"bloccato",attachments_sensitive:"Segna allegati come sensibili",content_type:{"text/plain":"Testo normale"},content_warning:"Oggetto (facoltativo)",default:"Appena atterrato in L.A.",direct_warning:"Questo post sarà visibile solo dagli utenti menzionati.",posting:"Pubblica",scope:{direct:"Diretto - Pubblicato solo per gli utenti menzionati",private:"Solo per chi ti segue - Visibile solo da chi ti segue",public:"Pubblico - Visibile sulla sequenza temporale pubblica",unlisted:"Non elencato - Non visibile sulla sequenza temporale pubblica"}},registration:{bio:"Introduzione",email:"Email",fullname:"Nome visualizzato",password_confirm:"Conferma password",registration:"Registrazione",token:"Codice d'invito"},user_profile:{timeline_title:"Sequenza Temporale dell'Utente"},who_to_follow:{more:"Più",who_to_follow:"Chi seguire"}}},function(e){e.exports={chat:{title:"チャット"},exporter:{export:"エクスポート",processing:"おまちください。しばらくすると、あなたのファイルをダウンロードするように、メッセージがでます。"},features_panel:{chat:"チャット",gopher:"Gopher",media_proxy:"メディアプロクシ",scope_options:"こうかいはんいせんたく",text_limit:"もじのかず",title:"ゆうこうなきのう",who_to_follow:"おすすめユーザー"},finder:{error_fetching_user:"ユーザーけんさくがエラーになりました。",find_user:"ユーザーをさがす"},general:{apply:"てきよう",submit:"そうしん",more:"つづき",generic_error:"エラーになりました",optional:"かかなくてもよい",show_more:"つづきをみる",show_less:"たたむ",cancel:"キャンセル"},image_cropper:{crop_picture:"がぞうをきりぬく",save:"セーブ",save_without_cropping:"きりぬかずにセーブ",cancel:"キャンセル"},importer:{submit:"そうしん",success:"インポートできました。",error:"インポートがエラーになりました。"},login:{login:"ログイン",description:"OAuthでログイン",logout:"ログアウト",password:"パスワード",placeholder:"れい: lain",register:"はじめる",username:"ユーザーめい",hint:"はなしあいにくわわるには、ログインしてください"},media_modal:{previous:"まえ",next:"つぎ"},nav:{about:"これはなに?",back:"もどる",chat:"ローカルチャット",friend_requests:"フォローリクエスト",mentions:"メンション",interactions:"やりとり",dms:"ダイレクトメッセージ",public_tl:"パブリックタイムライン",timeline:"タイムライン",twkn:"つながっているすべてのネットワーク",user_search:"ユーザーをさがす",who_to_follow:"おすすめユーザー",preferences:"せってい"},notifications:{broken_favorite:"ステータスがみつかりません。さがしています...",favorited_you:"あなたのステータスがおきにいりされました",followed_you:"フォローされました",load_older:"ふるいつうちをみる",notifications:"つうち",read:"よんだ!",repeated_you:"あなたのステータスがリピートされました",no_more_notifications:"つうちはありません"},interactions:{favs_repeats:"リピートとおきにいり",follows:"あたらしいフォロー",load_older:"ふるいやりとりをみる"},post_status:{new_status:"とうこうする",account_not_locked_warning:"あなたのアカウントは {0} ではありません。あなたをフォローすれば、だれでも、フォロワーげんていのステータスをよむことができます。",account_not_locked_warning_link:"ロックされたアカウント",attachments_sensitive:"ファイルをNSFWにする",content_type:{"text/plain":"プレーンテキスト","text/html":"HTML","text/markdown":"Markdown","text/bbcode":"BBCode"},content_warning:"せつめい (かかなくてもよい)",default:"はねだくうこうに、つきました。",direct_warning_to_all:"このとうこうは、メンションされたすべてのユーザーが、みることができます。",direct_warning_to_first_only:"このとうこうは、メッセージのはじめでメンションされたユーザーだけが、みることができます。",direct_warning:"このステータスは、メンションされたユーザーだけが、よむことができます。",posting:"とうこう",scope_notice:{public:"このとうこうは、だれでもみることができます",private:"このとうこうは、あなたのフォロワーだけが、みることができます",unlisted:"このとうこうは、パブリックタイムラインと、つながっているすべてのネットワークでは、みることができません"},scope:{direct:"ダイレクト: メンションされたユーザーのみにとどきます。",private:"フォロワーげんてい: フォロワーのみにとどきます。",public:"パブリック: パブリックタイムラインにとどきます。",unlisted:"アンリステッド: パブリックタイムラインにとどきません。"}},registration:{bio:"プロフィール",email:"Eメール",fullname:"スクリーンネーム",password_confirm:"パスワードのかくにん",registration:"はじめる",token:"しょうたいトークン",captcha:"CAPTCHA",new_captcha:"もじがよめないときは、がぞうをクリックすると、あたらしいがぞうになります",username_placeholder:"れい: lain",fullname_placeholder:"れい: いわくら れいん",bio_placeholder:"れい:\nごきげんよう。わたしはれいん。\nわたしはアニメのおんなのこで、にほんのベッドタウンにすんでいます。ワイヤードで、わたしにあったことが、あるかもしれませんね。",validations:{username_required:"なにかかいてください",fullname_required:"なにかかいてください",email_required:"なにかかいてください",password_required:"なにかかいてください",password_confirmation_required:"なにかかいてください",password_confirmation_match:"パスワードがちがいます"}},selectable_list:{select_all:"すべてえらぶ"},settings:{app_name:"アプリのなまえ",attachmentRadius:"ファイル",attachments:"ファイル",autoload:"したにスクロールしたとき、じどうてきによみこむ。",avatar:"アバター",avatarAltRadius:"つうちのアバター",avatarRadius:"アバター",background:"バックグラウンド",bio:"プロフィール",block_export:"ブロックのエクスポート",block_export_button:"ブロックをCSVファイルにエクスポート",block_import:"ブロックのインポート",block_import_error:"ブロックのインポートがエラーになりました",blocks_imported:"ブロックをインポートしました! じっさいにブロックするまでには、もうしばらくかかります。",blocks_tab:"ブロック",btnRadius:"ボタン",cBlue:"リプライとフォロー",cGreen:"リピート",cOrange:"おきにいり",cRed:"キャンセル",change_password:"パスワードをかえる",change_password_error:"パスワードをかえることが、できなかったかもしれません。",changed_password:"パスワードが、かわりました!",collapse_subject:"せつめいのあるとうこうをたたむ",composing:"とうこう",confirm_new_password:"あたらしいパスワードのかくにん",current_avatar:"いまのアバター",current_password:"いまのパスワード",current_profile_banner:"いまのプロフィールバナー",data_import_export_tab:"インポートとエクスポート",default_vis:"デフォルトのこうかいはんい",delete_account:"アカウントをけす",delete_account_description:"あなたのアカウントとメッセージが、きえます。",delete_account_error:"アカウントをけすことが、できなかったかもしれません。インスタンスのかんりしゃに、れんらくしてください。",delete_account_instructions:"ほんとうにアカウントをけしてもいいなら、パスワードをかいてください。",avatar_size_instruction:"アバターのおおきさは、150×150ピクセルか、それよりもおおきくするといいです。",export_theme:"セーブ",filtering:"フィルタリング",filtering_explanation:"これらのことばをふくむすべてのものがミュートされます。1ぎょうに1つのことばをかいてください。",follow_export:"フォローのエクスポート",follow_export_button:"エクスポート",follow_export_processing:"おまちください。まもなくファイルをダウンロードできます。",follow_import:"フォローインポート",follow_import_error:"フォローのインポートがエラーになりました。",follows_imported:"フォローがインポートされました! すこしじかんがかかるかもしれません。",foreground:"フォアグラウンド",general:"ぜんぱん",hide_attachments_in_convo:"スレッドのファイルをかくす",hide_attachments_in_tl:"タイムラインのファイルをかくす",hide_muted_posts:"ミュートしたユーザーのとうこうをかくす",max_thumbnails:"ひとつのとうこうにいれられるサムネイルのかず",hide_isp:"インスタンススペシフィックパネルをかくす",preload_images:"がぞうをさきよみする",use_one_click_nsfw:"NSFWなファイルを1クリックでひらく",hide_post_stats:"とうこうのとうけいをかくす (れい: おきにいりのかず)",hide_user_stats:"ユーザーのとうけいをかくす (れい: フォロワーのかず)",hide_filtered_statuses:"フィルターされたとうこうをかくす",import_blocks_from_a_csv_file:"CSVファイルからブロックをインポートする",import_followers_from_a_csv_file:"CSVファイルからフォローをインポートする",import_theme:"ロード",inputRadius:"インプットフィールド",checkboxRadius:"チェックボックス",instance_default:"(デフォルト: {value})",instance_default_simple:"(デフォルト)",interface:"インターフェース",interfaceLanguage:"インターフェースのことば",invalid_theme_imported:"このファイルはPleromaのテーマではありません。テーマはへんこうされませんでした。",limited_availability:"あなたのブラウザではできません",links:"リンク",lock_account_description:"あなたがみとめたひとだけ、あなたのアカウントをフォローできる",loop_video:"ビデオをくりかえす",loop_video_silent_only:"おとのないビデオだけくりかえす",mutes_tab:"ミュート",play_videos_in_modal:"ビデオをメディアビューアーでみる",use_contain_fit:"がぞうのサムネイルを、きりぬかない",name:"なまえ",name_bio:"なまえとプロフィール",new_password:"あたらしいパスワード",notification_visibility:"ひょうじするつうち",notification_visibility_follows:"フォロー",notification_visibility_likes:"おきにいり",notification_visibility_mentions:"メンション",notification_visibility_repeats:"リピート",no_rich_text_description:"リッチテキストをつかわない",no_blocks:"ブロックしていません",no_mutes:"ミュートしていません",hide_follows_description:"フォローしているひとをみせない",hide_followers_description:"フォロワーをみせない",show_admin_badge:"アドミンのしるしをみせる",show_moderator_badge:"モデレーターのしるしをみせる",nsfw_clickthrough:"NSFWなファイルをかくす",oauth_tokens:"OAuthトークン",token:"トークン",refresh_token:"トークンをリフレッシュ",valid_until:"おわりのとき",revoke_token:"とりけす",panelRadius:"パネル",pause_on_unfocused:"タブにフォーカスがないときストリーミングをとめる",presets:"プリセット",profile_background:"プロフィールのバックグラウンド",profile_banner:"プロフィールバナー",profile_tab:"プロフィール",radii_help:"インターフェースのまるさをせっていする。",replies_in_timeline:"タイムラインのリプライ",reply_link_preview:"カーソルをかさねたとき、リプライのプレビューをみる",reply_visibility_all:"すべてのリプライをみる",reply_visibility_following:"わたしにあてられたリプライと、フォローしているひとからのリプライをみる",reply_visibility_self:"わたしにあてられたリプライをみる",autohide_floating_post_button:"あたらしいとうこうのボタンを、じどうてきにかくす (モバイル)",saving_err:"せっていをセーブできませんでした",saving_ok:"せっていをセーブしました",search_user_to_block:"ブロックしたいひとを、ここでけんさくできます",search_user_to_mute:"ミュートしたいひとを、ここでけんさくできます",security_tab:"セキュリティ",scope_copy:"リプライするとき、こうかいはんいをコピーする (DMのこうかいはんいは、つねにコピーされます)",minimal_scopes_mode:"こうかいはんいせんたくオプションを、ちいさくする",set_new_avatar:"あたらしいアバターをせっていする",set_new_profile_background:"あたらしいプロフィールのバックグラウンドをせっていする",set_new_profile_banner:"あたらしいプロフィールバナーを設定する",settings:"せってい",subject_input_always_show:"サブジェクトフィールドをいつでもひょうじする",subject_line_behavior:"リプライするときサブジェクトをコピーする",subject_line_email:'メールふう: "re: サブジェクト"',subject_line_mastodon:"マストドンふう: そのままコピー",subject_line_noop:"コピーしない",post_status_content_type:"とうこうのコンテントタイプ",stop_gifs:"カーソルをかさねたとき、GIFをうごかす",streaming:"うえまでスクロールしたとき、じどうてきにストリーミングする",text:"もじ",theme:"テーマ",theme_help:"カラーテーマをカスタマイズできます",theme_help_v2_1:"チェックボックスをONにすると、コンポーネントごとに、いろと、とうめいどを、オーバーライドできます。「すべてクリア」ボタンをおすと、すべてのオーバーライドを、やめます。",theme_help_v2_2:"バックグラウンドとテキストのコントラストをあらわすアイコンがあります。マウスをホバーすると、くわしいせつめいがでます。とうめいないろをつかっているときは、もっともわるいばあいのコントラストがしめされます。",upload_a_photo:"がぞうをアップロード",tooltipRadius:"ツールチップとアラート",user_settings:"ユーザーせってい",values:{false:"いいえ",true:"はい"},notifications:"つうち",notification_setting:"つうちをうけとる:",notification_setting_follows:"あなたがフォローしているひとから",notification_setting_non_follows:"あなたがフォローしていないひとから",notification_setting_followers:"あなたをフォローしているひとから",notification_setting_non_followers:"あなたをフォローしていないひとから",notification_mutes:"あるユーザーからのつうちをとめるには、ミュートしてください。",notification_blocks:"ブロックしているユーザーからのつうちは、すべてとまります。",enable_web_push_notifications:"ウェブプッシュつうちをゆるす",style:{switcher:{keep_color:"いろをのこす",keep_shadows:"かげをのこす",keep_opacity:"とうめいどをのこす",keep_roundness:"まるさをのこす",keep_fonts:"フォントをのこす",save_load_hint:"「のこす」オプションをONにすると、テーマをえらんだときとロードしたとき、いまのせっていをのこします。また、テーマをエクスポートするとき、これらのオプションをストアします。すべてのチェックボックスをOFFにすると、テーマをエクスポートしたとき、すべてのせっていをセーブします。",reset:"リセット",clear_all:"すべてクリア",clear_opacity:"とうめいどをクリア"},common:{color:"いろ",opacity:"とうめいど",contrast:{hint:"コントラストは {ratio} です。{level}。({context})",level:{aa:"AAレベルガイドライン (ミニマル) をみたします",aaa:"AAAレベルガイドライン (レコメンデッド) をみたします。",bad:"ガイドラインをみたしません。"},context:{"18pt":"おおきい (18ポイントいじょう) テキスト",text:"テキスト"}}},common_colors:{_tab_label:"きょうつう",main:"きょうつうのいろ",foreground_hint:"「くわしく」タブで、もっとこまかくせっていできます",rgbo:"アイコンとアクセントとバッジ"},advanced_colors:{_tab_label:"くわしく",alert:"アラートのバックグラウンド",alert_error:"エラー",badge:"バッジのバックグラウンド",badge_notification:"つうち",panel_header:"パネルヘッダー",top_bar:"トップバー",borders:"さかいめ",buttons:"ボタン",inputs:"インプットフィールド",faint_text:"うすいテキスト"},radii:{_tab_label:"まるさ"},shadows:{_tab_label:"ひかりとかげ",component:"コンポーネント",override:"オーバーライド",shadow_id:"かげ #{value}",blur:"ぼかし",spread:"ひろがり",inset:"うちがわ",hint:"かげのせっていでは、いろのあたいとして --variable をつかうことができます。これはCSS3へんすうです。ただし、とうめいどのせっていは、きかなくなります。",filter_hint:{always_drop_shadow:"ブラウザーがサポートしていれば、つねに {0} がつかわれます。",drop_shadow_syntax:"{0} は、{1} パラメーターと {2} キーワードをサポートしていません。",avatar_inset:"うちがわのかげと、そとがわのかげを、いっしょにつかうと、とうめいなアバターが、へんなみためになります。",spread_zero:"ひろがりが 0 よりもおおきなかげは、0 とおなじです。",inset_classic:"うちがわのかげは {0} をつかいます。"},components:{panel:"パネル",panelHeader:"パネルヘッダー",topBar:"トップバー",avatar:"ユーザーアバター (プロフィール)",avatarStatus:"ユーザーアバター (とうこう)",popup:"ポップアップとツールチップ",button:"ボタン",buttonHover:"ボタン (ホバー)",buttonPressed:"ボタン (おされているとき)",buttonPressedHover:"ボタン (ホバー、かつ、おされているとき)",input:"インプットフィールド"}},fonts:{_tab_label:"フォント",help:"「カスタム」をえらんだときは、システムにあるフォントのなまえを、ただしくにゅうりょくしてください。",components:{interface:"インターフェース",input:"インプットフィールド",post:"とうこう",postCode:"モノスペース (とうこうがリッチテキストであるとき)"},family:"フォントめい",size:"おおきさ (px)",weight:"ふとさ",custom:"カスタム"},preview:{header:"プレビュー",content:"ほんぶん",error:"エラーのれい",button:"ボタン",text:"これは{0}と{1}のれいです。",mono:"monospace",input:"はねだくうこうに、つきました。",faint_link:"とてもたすけになるマニュアル",fine_print:"わたしたちの{0}を、よまないでください!",header_faint:"エラーではありません",checkbox:"りようきやくを、よみました",link:"ハイパーリンク"}},version:{title:"バージョン",backend_version:"バックエンドのバージョン",frontend_version:"フロントエンドのバージョン"}},time:{day:"{0}日",days:"{0}日",day_short:"{0}日",days_short:"{0}日",hour:"{0}時間",hours:"{0}時間",hour_short:"{0}時間",hours_short:"{0}時間",in_future:"{0}で",in_past:"{0}前",minute:"{0}分",minutes:"{0}分",minute_short:"{0}分",minutes_short:"{0}分",month:"{0}ヶ月前",months:"{0}ヶ月前",month_short:"{0}ヶ月前",months_short:"{0}ヶ月前",now:"たった今",now_short:"たった今",second:"{0}秒",seconds:"{0}秒",second_short:"{0}秒",seconds_short:"{0}秒",week:"{0}週間",weeks:"{0}週間",week_short:"{0}週間",weeks_short:"{0}週間",year:"{0}年",years:"{0}年",year_short:"{0}年",years_short:"{0}年"},timeline:{collapse:"たたむ",conversation:"スレッド",error_fetching:"よみこみがエラーになりました",load_older:"ふるいステータス",no_retweet_hint:"とうこうを「フォロワーのみ」または「ダイレクト」にすると、リピートできなくなります",repeated:"リピート",show_new:"よみこみ",up_to_date:"さいしん",no_more_statuses:"これでおわりです",no_statuses:"ありません"},status:{favorites:"おきにいり",repeats:"リピート",delete:"ステータスをけす",pin:"プロフィールにピンどめする",unpin:"プロフィールにピンどめするのをやめる",pinned:"ピンどめ",delete_confirm:"ほんとうに、このステータスを、けしてもいいですか?",reply_to:"へんしん:",replies_list:"へんしん:"},user_card:{approve:"うけいれ",block:"ブロック",blocked:"ブロックしています!",deny:"おことわり",favorites:"おきにいり",follow:"フォロー",follow_sent:"リクエストを、おくりました!",follow_progress:"リクエストしています…",follow_again:"ふたたびリクエストをおくりますか?",follow_unfollow:"フォローをやめる",followees:"フォロー",followers:"フォロワー",following:"フォローしています!",follows_you:"フォローされました!",its_you:"これはあなたです!",media:"メディア",mute:"ミュート",muted:"ミュートしています!",per_day:"/日",remote_follow:"リモートフォロー",report:"つうほう",statuses:"ステータス",unblock:"ブロックをやめる",unblock_progress:"ブロックをとりけしています...",block_progress:"ブロックしています...",unmute:"ミュートをやめる",unmute_progress:"ミュートをとりけしています...",mute_progress:"ミュートしています...",admin_menu:{moderation:"モデレーション",grant_admin:"アドミンにする",revoke_admin:"アドミンをやめさせる",grant_moderator:"モデレーターにする",revoke_moderator:"モデレーターをやめさせる",activate_account:"アカウントをアクティブにする",deactivate_account:"アカウントをアクティブでなくする",delete_account:"アカウントをけす",force_nsfw:"すべてのとうこうをNSFWにする",strip_media:"とうこうからメディアをなくす",force_unlisted:"とうこうをアンリステッドにする",sandbox:"とうこうをフォロワーのみにする",disable_remote_subscription:"ほかのインスタンスからフォローされないようにする",disable_any_subscription:"フォローされないようにする",quarantine:"ほかのインスタンスのユーザーのとうこうをとめる",delete_user:"ユーザーをけす",delete_user_confirmation:"あなたは、ほんとうに、きはたしかですか? これは、とりけすことが、できません。"}},user_profile:{timeline_title:"ユーザータイムライン",profile_does_not_exist:"ごめんなさい。このプロフィールは、そんざいしません。",profile_loading_error:"ごめんなさい。プロフィールのロードがエラーになりました。"},user_reporting:{title:"つうほうする: {0}",add_comment_description:"このつうほうは、あなたのインスタンスのモデレーターに、おくられます。このアカウントを、つうほうするりゆうを、せつめいすることができます:",additional_comments:"ついかのコメント",forward_description:"このアカウントは、ほかのインスタンスのものです。そのインスタンスにも、このつうほうのコピーを、おくりますか?",forward_to:"コピーをおくる: {0}",submit:"そうしん",generic_error:"あなたのリクエストをうけつけようとしましたが、エラーになってしまいました。"},who_to_follow:{more:"くわしく",who_to_follow:"おすすめユーザー"},tool_tip:{media_upload:"メディアをアップロード",repeat:"リピート",reply:"リプライ",favorite:"おきにいり",user_settings:"ユーザーせってい"},upload:{error:{base:"アップロードにしっぱいしました。",file_too_big:"ファイルがおおきすぎます [{filesize} {filesizeunit} / {allowedsize} {allowedsizeunit}]",default:"しばらくしてから、ためしてください"},file_size_units:{B:"B",KiB:"KiB",MiB:"MiB",GiB:"GiB",TiB:"TiB"}}}},function(e){e.exports={chat:{title:"チャット"},exporter:{export:"エクスポート",processing:"処理中です。処理が完了すると、ファイルをダウンロードするよう指示があります。"},features_panel:{chat:"チャット",gopher:"Gopher",media_proxy:"メディアプロクシ",scope_options:"公開範囲選択",text_limit:"文字の数",title:"有効な機能",who_to_follow:"おすすめユーザー"},finder:{error_fetching_user:"ユーザー検索がエラーになりました。",find_user:"ユーザーを探す"},general:{apply:"適用",submit:"送信",more:"続き",generic_error:"エラーになりました",optional:"省略可",show_more:"もっと見る",show_less:"たたむ",cancel:"キャンセル"},image_cropper:{crop_picture:"画像を切り抜く",save:"保存",save_without_cropping:"切り抜かずに保存",cancel:"キャンセル"},importer:{submit:"送信",success:"正常にインポートされました。",error:"このファイルをインポートするとき、エラーが発生しました。"},login:{login:"ログイン",description:"OAuthでログイン",logout:"ログアウト",password:"パスワード",placeholder:"例: lain",register:"登録",username:"ユーザー名",hint:"会話に加わるには、ログインしてください"},media_modal:{previous:"前",next:"次"},nav:{about:"このインスタンスについて",back:"戻る",chat:"ローカルチャット",friend_requests:"フォローリクエスト",mentions:"通知",interactions:"インタラクション",dms:"ダイレクトメッセージ",public_tl:"パブリックタイムライン",timeline:"タイムライン",twkn:"接続しているすべてのネットワーク",user_search:"ユーザーを探す",who_to_follow:"おすすめユーザー",preferences:"設定"},notifications:{broken_favorite:"ステータスが見つかりません。探しています...",favorited_you:"あなたのステータスがお気に入りされました",followed_you:"フォローされました",load_older:"古い通知をみる",notifications:"通知",read:"読んだ!",repeated_you:"あなたのステータスがリピートされました",no_more_notifications:"通知はありません"},interactions:{favs_repeats:"リピートとお気に入り",follows:"新しいフォロワー",load_older:"古いインタラクションを見る"},post_status:{new_status:"投稿する",account_not_locked_warning:"あなたのアカウントは {0} ではありません。あなたをフォローすれば、誰でも、フォロワー限定のステータスを読むことができます。",account_not_locked_warning_link:"ロックされたアカウント",attachments_sensitive:"ファイルをNSFWにする",content_type:{"text/plain":"プレーンテキスト","text/html":"HTML","text/markdown":"Markdown","text/bbcode":"BBCode"},content_warning:"説明 (省略可)",default:"羽田空港に着きました。",direct_warning_to_all:"この投稿は、メンションされたすべてのユーザーが、見ることができます。",direct_warning_to_first_only:"この投稿は、メッセージの冒頭でメンションされたユーザーだけが、見ることができます。",direct_warning:"このステータスは、メンションされたユーザーだけが、読むことができます。",posting:"投稿",scope_notice:{public:"この投稿は、誰でも見ることができます",private:"この投稿は、あなたのフォロワーだけが、見ることができます。",unlisted:"この投稿は、パブリックタイムラインと、接続しているすべてのネットワークには、表示されません。"},scope:{direct:"ダイレクト: メンションされたユーザーのみに届きます。",private:"フォロワーげんてい: フォロワーのみに届きます。",public:"パブリック: パブリックタイムラインに届きます。",unlisted:"アンリステッド: パブリックタイムラインに届きません。"}},registration:{bio:"プロフィール",email:"Eメール",fullname:"スクリーンネーム",password_confirm:"パスワードの確認",registration:"登録",token:"招待トークン",captcha:"CAPTCHA",new_captcha:"文字が読めないときは、画像をクリックすると、新しい画像になります",username_placeholder:"例: lain",fullname_placeholder:"例: 岩倉玲音",bio_placeholder:"例:\nこんにちは。私は玲音。\n私はアニメのキャラクターで、日本の郊外に住んでいます。私をWiredで見たことがあるかもしれません。",validations:{username_required:"必須",fullname_required:"必須",email_required:"必須",password_required:"必須",password_confirmation_required:"必須",password_confirmation_match:"パスワードが違います"}},selectable_list:{select_all:"すべて選択"},settings:{app_name:"アプリの名称",attachmentRadius:"ファイル",attachments:"ファイル",autoload:"下にスクロールしたとき、自動的に読み込む。",avatar:"アバター",avatarAltRadius:"通知のアバター",avatarRadius:"アバター",background:"バックグラウンド",bio:"プロフィール",block_export:"ブロックのエクスポート",block_export_button:"ブロックをCSVファイルにエクスポートする",block_import:"ブロックのインポート",block_import_error:"ブロックのインポートに失敗しました",blocks_imported:"ブロックをインポートしました! 実際に処理されるまでに、しばらく時間がかかります。",blocks_tab:"ブロック",btnRadius:"ボタン",cBlue:"返信とフォロー",cGreen:"リピート",cOrange:"お気に入り",cRed:"キャンセル",change_password:"パスワードを変える",change_password_error:"パスワードを変えることが、できなかったかもしれません。",changed_password:"パスワードが、変わりました!",collapse_subject:"説明のある投稿をたたむ",composing:"投稿",confirm_new_password:"新しいパスワードの確認",current_avatar:"現在のアバター",current_password:"現在のパスワード",current_profile_banner:"現在のプロフィールバナー",data_import_export_tab:"インポートとエクスポート",default_vis:"デフォルトの公開範囲",delete_account:"アカウントを消す",delete_account_description:"あなたのアカウントとメッセージが、消えます。",delete_account_error:"アカウントを消すことが、できなかったかもしれません。インスタンスの管理者に、連絡してください。",delete_account_instructions:"本当にアカウントを消してもいいなら、パスワードを入力してください。",avatar_size_instruction:"アバターの大きさは、150×150ピクセルか、それよりも大きくするといいです。",export_theme:"保存",filtering:"フィルタリング",filtering_explanation:"これらの言葉を含むすべてのものがミュートされます。1行に1つの言葉を書いてください。",follow_export:"フォローのエクスポート",follow_export_button:"エクスポート",follow_export_processing:"お待ちください。まもなくファイルをダウンロードできます。",follow_import:"フォローのインポート",follow_import_error:"フォローのインポートがエラーになりました。",follows_imported:"フォローがインポートされました! 少し時間がかかるかもしれません。",foreground:"フォアグラウンド",general:"全般",hide_attachments_in_convo:"スレッドのファイルを隠す",hide_attachments_in_tl:"タイムラインのファイルを隠す",hide_muted_posts:"ミュートしているユーザーの投稿を隠す",max_thumbnails:"投稿に含まれるサムネイルの最大数",hide_isp:"インスタンス固有パネルを隠す",preload_images:"画像を先読みする",use_one_click_nsfw:"NSFWなファイルを1クリックで開く",hide_post_stats:"投稿の統計を隠す (例: お気に入りの数)",hide_user_stats:"ユーザーの統計を隠す (例: フォロワーの数)",hide_filtered_statuses:"フィルターされた投稿を隠す",import_blocks_from_a_csv_file:"CSVファイルからブロックをインポートする",import_followers_from_a_csv_file:"CSVファイルからフォローをインポートする",import_theme:"ロード",inputRadius:"インプットフィールド",checkboxRadius:"チェックボックス",instance_default:"(デフォルト: {value})",instance_default_simple:"(デフォルト)",interface:"インターフェース",interfaceLanguage:"インターフェースの言語",invalid_theme_imported:"このファイルはPleromaのテーマではありません。テーマは変更されませんでした。",limited_availability:"あなたのブラウザではできません",links:"リンク",lock_account_description:"あなたが認めた人だけ、あなたのアカウントをフォローできる",loop_video:"ビデオを繰り返す",loop_video_silent_only:"音のないビデオだけ繰り返す",mutes_tab:"ミュート",play_videos_in_modal:"ビデオをメディアビューアーで見る",use_contain_fit:"画像のサムネイルを、切り抜かない",name:"名前",name_bio:"名前とプロフィール",new_password:"新しいパスワード",notification_visibility:"表示する通知",notification_visibility_follows:"フォロー",notification_visibility_likes:"お気に入り",notification_visibility_mentions:"メンション",notification_visibility_repeats:"リピート",no_rich_text_description:"リッチテキストを使わない",no_blocks:"ブロックはありません",no_mutes:"ミュートはありません",hide_follows_description:"フォローしている人を見せない",hide_followers_description:"フォロワーを見せない",show_admin_badge:"管理者のバッジを見せる",show_moderator_badge:"モデレーターのバッジを見せる",nsfw_clickthrough:"NSFWなファイルを隠す",oauth_tokens:"OAuthトークン",token:"トークン",refresh_token:"トークンを更新",valid_until:"まで有効",revoke_token:"取り消す",panelRadius:"パネル",pause_on_unfocused:"タブにフォーカスがないときストリーミングを止める",presets:"プリセット",profile_background:"プロフィールのバックグラウンド",profile_banner:"プロフィールバナー",profile_tab:"プロフィール",radii_help:"インターフェースの丸さを設定する。",replies_in_timeline:"タイムラインのリプライ",reply_link_preview:"カーソルを重ねたとき、リプライのプレビューを見る",reply_visibility_all:"すべてのリプライを見る",reply_visibility_following:"私に宛てられたリプライと、フォローしている人からのリプライを見る",reply_visibility_self:"私に宛てられたリプライを見る",autohide_floating_post_button:"新しい投稿ボタンを自動的に隠す (モバイル)",saving_err:"設定を保存できませんでした",saving_ok:"設定を保存しました",search_user_to_block:"ブロックしたいユーザーを検索",search_user_to_mute:"ミュートしたいユーザーを検索",security_tab:"セキュリティ",scope_copy:"返信するとき、公開範囲をコピーする (DMの公開範囲は、常にコピーされます)",minimal_scopes_mode:"公開範囲選択オプションを最小にする",set_new_avatar:"新しいアバターを設定する",set_new_profile_background:"新しいプロフィールのバックグラウンドを設定する",set_new_profile_banner:"新しいプロフィールバナーを設定する",settings:"設定",subject_input_always_show:"サブジェクトフィールドをいつでも表示する",subject_line_behavior:"返信するときサブジェクトをコピーする",subject_line_email:'メール風: "re: サブジェクト"',subject_line_mastodon:"マストドン風: そのままコピー",subject_line_noop:"コピーしない",post_status_content_type:"投稿のコンテントタイプ",stop_gifs:"カーソルを重ねたとき、GIFを動かす",streaming:"上までスクロールしたとき、自動的にストリーミングする",text:"文字",theme:"テーマ",theme_help:"カラーテーマをカスタマイズできます",theme_help_v2_1:"チェックボックスをONにすると、コンポーネントごとに、色と透明度をオーバーライドできます。「すべてクリア」ボタンを押すと、すべてのオーバーライドをやめます。",theme_help_v2_2:"バックグラウンドとテキストのコントラストを表すアイコンがあります。マウスをホバーすると、詳しい説明が出ます。透明な色を使っているときは、最悪の場合のコントラストが示されます。",tooltipRadius:"ツールチップとアラート",upload_a_photo:"画像をアップロード",user_settings:"ユーザー設定",values:{false:"いいえ",true:"はい"},notifications:"通知",notification_setting:"通知を受け取る:",notification_setting_follows:"あなたがフォローしているユーザーから",notification_setting_non_follows:"あなたがフォローしていないユーザーから",notification_setting_followers:"あなたをフォローしているユーザーから",notification_setting_non_followers:"あなたをフォローしていないユーザーから",notification_mutes:"特定のユーザーからの通知を止めるには、ミュートしてください。",notification_blocks:"ブロックしているユーザーからの通知は、すべて止まります。",enable_web_push_notifications:"ウェブプッシュ通知を許可する",style:{switcher:{keep_color:"色を残す",keep_shadows:"影を残す",keep_opacity:"透明度を残す",keep_roundness:"丸さを残す",keep_fonts:"フォントを残す",save_load_hint:"「残す」オプションをONにすると、テーマを選んだときとロードしたとき、現在の設定を残します。また、テーマをエクスポートするとき、これらのオプションを維持します。すべてのチェックボックスをOFFにすると、テーマをエクスポートしたとき、すべての設定を保存します。",reset:"リセット",clear_all:"すべてクリア",clear_opacity:"透明度をクリア"},common:{color:"色",opacity:"透明度",contrast:{hint:"コントラストは {ratio} です。{level}。({context})",level:{aa:"AAレベルガイドライン (ミニマル) を満たします",aaa:"AAAレベルガイドライン (レコメンデッド) を満たします。",bad:"ガイドラインを満たしません。"},context:{"18pt":"大きい (18ポイント以上) テキスト",text:"テキスト"}}},common_colors:{_tab_label:"共通",main:"共通の色",foreground_hint:"「詳細」タブで、もっと細かく設定できます",rgbo:"アイコンとアクセントとバッジ"},advanced_colors:{_tab_label:"詳細",alert:"アラートのバックグラウンド",alert_error:"エラー",badge:"バッジのバックグラウンド",badge_notification:"通知",panel_header:"パネルヘッダー",top_bar:"トップバー",borders:"境界",buttons:"ボタン",inputs:"インプットフィールド",faint_text:"薄いテキスト"},radii:{_tab_label:"丸さ"},shadows:{_tab_label:"光と影",component:"コンポーネント",override:"オーバーライド",shadow_id:"影 #{value}",blur:"ぼかし",spread:"広がり",inset:"内側",hint:"影の設定では、色の値として --variable を使うことができます。これはCSS3変数です。ただし、透明度の設定は、効かなくなります。",filter_hint:{always_drop_shadow:"ブラウザーがサポートしていれば、常に {0} が使われます。",drop_shadow_syntax:"{0} は、{1} パラメーターと {2} キーワードをサポートしていません。",avatar_inset:"内側の影と外側の影を同時に使うと、透明なアバターの表示が乱れます。",spread_zero:"広がりが 0 よりも大きな影は、0 と同じです。",inset_classic:"内側の影は {0} を使います。"},components:{panel:"パネル",panelHeader:"パネルヘッダー",topBar:"トップバー",avatar:"ユーザーアバター (プロフィール)",avatarStatus:"ユーザーアバター (投稿)",popup:"ポップアップとツールチップ",button:"ボタン",buttonHover:"ボタン (ホバー)",buttonPressed:"ボタン (押されているとき)",buttonPressedHover:"ボタン (ホバー、かつ、押されているとき)",input:"インプットフィールド"}},fonts:{_tab_label:"フォント",help:"「カスタム」を選んだときは、システムにあるフォントの名前を、正しく入力してください。",components:{interface:"インターフェース",input:"インプットフィールド",post:"投稿",postCode:"等幅 (投稿がリッチテキストであるとき)"},family:"フォント名",size:"大きさ (px)",weight:"太さ",custom:"カスタム"},preview:{header:"プレビュー",content:"本文",error:"エラーの例",button:"ボタン",text:"これは{0}と{1}の例です。",mono:"monospace",input:"羽田空港に着きました。",faint_link:"とても助けになるマニュアル",fine_print:"私たちの{0}を、読まないでください!",header_faint:"エラーではありません",checkbox:"利用規約を読みました",link:"ハイパーリンク"}},version:{title:"バージョン",backend_version:"バックエンドのバージョン",frontend_version:"フロントエンドのバージョン"}},time:{day:"{0}日",days:"{0}日",day_short:"{0}日",days_short:"{0}日",hour:"{0}時間",hours:"{0}時間",hour_short:"{0}時間",hours_short:"{0}時間",in_future:"{0}で",in_past:"{0}前",minute:"{0}分",minutes:"{0}分",minute_short:"{0}分",minutes_short:"{0}分",month:"{0}ヶ月前",months:"{0}ヶ月前",month_short:"{0}ヶ月前",months_short:"{0}ヶ月前",now:"たった今",now_short:"たった今",second:"{0}秒",seconds:"{0}秒",second_short:"{0}秒",seconds_short:"{0}秒",week:"{0}週間",weeks:"{0}週間",week_short:"{0}週間",weeks_short:"{0}週間",year:"{0}年",years:"{0}年",year_short:"{0}年",years_short:"{0}年"},timeline:{collapse:"たたむ",conversation:"スレッド",error_fetching:"読み込みがエラーになりました",load_older:"古いステータス",no_retweet_hint:"投稿を「フォロワーのみ」または「ダイレクト」にすると、リピートできなくなります",repeated:"リピート",show_new:"読み込み",up_to_date:"最新",no_more_statuses:"これで終わりです",no_statuses:"ステータスはありません"},status:{favorites:"お気に入り",repeats:"リピート",delete:"ステータスを削除",pin:"プロフィールにピン留め",unpin:"プロフィールのピン留めを外す",pinned:"ピン留め",delete_confirm:"本当にこのステータスを削除してもよろしいですか?",reply_to:"返信",replies_list:"返信:"},user_card:{approve:"受け入れ",block:"ブロック",blocked:"ブロックしています!",deny:"お断り",favorites:"お気に入り",follow:"フォロー",follow_sent:"リクエストを送りました!",follow_progress:"リクエストしています…",follow_again:"再びリクエストを送りますか?",follow_unfollow:"フォローをやめる",followees:"フォロー",followers:"フォロワー",following:"フォローしています!",follows_you:"フォローされました!",its_you:"これはあなたです!",media:"メディア",mute:"ミュート",muted:"ミュートしています!",per_day:"/日",remote_follow:"リモートフォロー",report:"通報",statuses:"ステータス",unblock:"ブロック解除",unblock_progress:"ブロックを解除しています...",block_progress:"ブロックしています...",unmute:"ミュート解除",unmute_progress:"ミュートを解除しています...",mute_progress:"ミュートしています...",admin_menu:{moderation:"モデレーション",grant_admin:"管理者権限を付与",revoke_admin:"管理者権限を解除",grant_moderator:"モデレーター権限を付与",revoke_moderator:"モデレーター権限を解除",activate_account:"アカウントをアクティブにする",deactivate_account:"アカウントをアクティブでなくする",delete_account:"アカウントを削除",force_nsfw:"すべての投稿をNSFWにする",strip_media:"投稿からメディアを除去する",force_unlisted:"投稿を未収載にする",sandbox:"投稿をフォロワーのみにする",disable_remote_subscription:"他のインスタンスからフォローされないようにする",disable_any_subscription:"フォローされないようにする",quarantine:"他のインスタンスからの投稿を止める",delete_user:"ユーザーを削除",delete_user_confirmation:"あなたの精神状態に何か問題はございませんか? この操作を取り消すことはできません。"}},user_profile:{timeline_title:"ユーザータイムライン",profile_does_not_exist:"申し訳ない。このプロフィールは存在しません。",profile_loading_error:"申し訳ない。プロフィールの読み込みがエラーになりました。"},user_reporting:{title:"通報する: {0}",add_comment_description:"この通報は、あなたのインスタンスのモデレーターに送られます。このアカウントを通報する理由を説明することができます:",additional_comments:"追加のコメント",forward_description:"このアカウントは他のサーバーに置かれています。この通報のコピーをリモートのサーバーに送りますか?",forward_to:"転送する: {0}",submit:"送信",generic_error:"あなたのリクエストを処理しようとしましたが、エラーになりました。"},who_to_follow:{more:"詳細",who_to_follow:"おすすめユーザー"},tool_tip:{media_upload:"メディアをアップロード",repeat:"リピート",reply:"返信",favorite:"お気に入り",user_settings:"ユーザー設定"},upload:{error:{base:"アップロードに失敗しました。",file_too_big:"ファイルが大きすぎます [{filesize} {filesizeunit} / {allowedsize} {allowedsizeunit}]",default:"しばらくしてから試してください"},file_size_units:{B:"B",KiB:"KiB",MiB:"MiB",GiB:"GiB",TiB:"TiB"}}}},function(e){e.exports={chat:{title:"챗"},features_panel:{chat:"챗",gopher:"고퍼",media_proxy:"미디어 프록시",scope_options:"범위 옵션",text_limit:"텍스트 제한",title:"기능",who_to_follow:"팔로우 추천"},finder:{error_fetching_user:"사용자 정보 불러오기 실패",find_user:"사용자 찾기"},general:{apply:"적용",submit:"보내기"},login:{login:"로그인",description:"OAuth로 로그인",logout:"로그아웃",password:"암호",placeholder:"예시: lain",register:"가입",username:"사용자 이름"},nav:{about:"About",back:"뒤로",chat:"로컬 챗",friend_requests:"팔로우 요청",mentions:"멘션",dms:"다이렉트 메시지",public_tl:"공개 타임라인",timeline:"타임라인",twkn:"모든 알려진 네트워크",user_search:"사용자 검색",preferences:"환경설정"},notifications:{broken_favorite:"알 수 없는 게시물입니다, 검색 합니다...",favorited_you:"당신의 게시물을 즐겨찾기",followed_you:"당신을 팔로우",load_older:"오래 된 알림 불러오기",notifications:"알림",read:"읽음!",repeated_you:"당신의 게시물을 리핏"},post_status:{new_status:"새 게시물 게시",account_not_locked_warning:"당신의 계정은 {0} 상태가 아닙니다. 누구나 당신을 팔로우 하고 팔로워 전용 게시물을 볼 수 있습니다.",account_not_locked_warning_link:"잠김",attachments_sensitive:"첨부물을 민감함으로 설정",content_type:{"text/plain":"평문"},content_warning:"주제 (필수 아님)",default:"LA에 도착!",direct_warning:"이 게시물을 멘션 된 사용자들에게만 보여집니다",posting:"게시",scope:{direct:"다이렉트 - 멘션 된 사용자들에게만",private:"팔로워 전용 - 팔로워들에게만",public:"공개 - 공개 타임라인으로",unlisted:"비공개 - 공개 타임라인에 게시 안 함"}},registration:{bio:"소개",email:"이메일",fullname:"표시 되는 이름",password_confirm:"암호 확인",registration:"가입하기",token:"초대 토큰",captcha:"캡차",new_captcha:"이미지를 클릭해서 새로운 캡차",validations:{username_required:"공백으로 둘 수 없습니다",fullname_required:"공백으로 둘 수 없습니다",email_required:"공백으로 둘 수 없습니다",password_required:"공백으로 둘 수 없습니다",password_confirmation_required:"공백으로 둘 수 없습니다",password_confirmation_match:"패스워드와 일치해야 합니다"}},settings:{attachmentRadius:"첨부물",attachments:"첨부물",autoload:"최하단에 도착하면 자동으로 로드 활성화",avatar:"아바타",avatarAltRadius:"아바타 (알림)",avatarRadius:"아바타",background:"배경",bio:"소개",btnRadius:"버튼",cBlue:"파랑 (답글, 팔로우)",cGreen:"초록 (리트윗)",cOrange:"주황 (즐겨찾기)",cRed:"빨강 (취소)",change_password:"암호 바꾸기",change_password_error:"암호를 바꾸는 데 몇 가지 문제가 있습니다.",changed_password:"암호를 바꾸었습니다!",collapse_subject:"주제를 가진 게시물 접기",composing:"작성",confirm_new_password:"새 패스워드 확인",current_avatar:"현재 아바타",current_password:"현재 패스워드",current_profile_banner:"현재 프로필 배너",data_import_export_tab:"데이터 불러오기 / 내보내기",default_vis:"기본 공개 범위",delete_account:"계정 삭제",delete_account_description:"계정과 메시지를 영구히 삭제.",delete_account_error:"계정을 삭제하는데 문제가 있습니다. 계속 발생한다면 인스턴스 관리자에게 문의하세요.",delete_account_instructions:"계정 삭제를 확인하기 위해 아래에 패스워드 입력.",export_theme:"프리셋 저장",filtering:"필터링",filtering_explanation:"아래의 단어를 가진 게시물들은 뮤트 됩니다, 한 줄에 하나씩 적으세요",follow_export:"팔로우 내보내기",follow_export_button:"팔로우 목록을 csv로 내보내기",follow_export_processing:"진행 중입니다, 곧 다운로드 가능해 질 것입니다",follow_import:"팔로우 불러오기",follow_import_error:"팔로우 불러오기 실패",follows_imported:"팔로우 목록을 불러왔습니다! 처리에는 시간이 걸립니다.",foreground:"전경",general:"일반",hide_attachments_in_convo:"대화의 첨부물 숨기기",hide_attachments_in_tl:"타임라인의 첨부물 숨기기",hide_isp:"인스턴스 전용 패널 숨기기",preload_images:"이미지 미리 불러오기",hide_post_stats:"게시물 통계 숨기기 (즐겨찾기 수 등)",hide_user_stats:"사용자 통계 숨기기 (팔로워 수 등)",import_followers_from_a_csv_file:"csv 파일에서 팔로우 목록 불러오기",import_theme:"프리셋 불러오기",inputRadius:"입력 칸",checkboxRadius:"체크박스",instance_default:"(기본: {value})",instance_default_simple:"(기본)",interface:"인터페이스",interfaceLanguage:"인터페이스 언어",invalid_theme_imported:"선택한 파일은 지원하는 플레로마 테마가 아닙니다. 아무런 변경도 일어나지 않았습니다.",limited_availability:"이 브라우저에서 사용 불가",links:"링크",lock_account_description:"계정을 승인 된 팔로워들로 제한",loop_video:"비디오 반복재생",loop_video_silent_only:'소리가 없는 비디오만 반복 재생 (마스토돈의 "gifs" 같은 것들)',name:"이름",name_bio:"이름 & 소개",new_password:"새 암호",notification_visibility:"보여 줄 알림 종류",notification_visibility_follows:"팔로우",notification_visibility_likes:"좋아함",notification_visibility_mentions:"멘션",notification_visibility_repeats:"반복",no_rich_text_description:"모든 게시물의 서식을 지우기",hide_follows_description:"내가 팔로우하는 사람을 표시하지 않음",hide_followers_description:"나를 따르는 사람을 보여주지 마라.",nsfw_clickthrough:'NSFW 이미지 "클릭해서 보이기"를 활성화',oauth_tokens:"OAuth 토큰",token:"토큰",refresh_token:"토큰 새로 고침",valid_until:"까지 유효하다",revoke_token:"취소",panelRadius:"패널",pause_on_unfocused:"탭이 활성 상태가 아닐 때 스트리밍 멈추기",presets:"프리셋",profile_background:"프로필 배경",profile_banner:"프로필 배너",profile_tab:"프로필",radii_help:"인터페이스 모서리 둥글기 (픽셀 단위)",replies_in_timeline:"답글을 타임라인에",reply_link_preview:"마우스를 올려서 답글 링크 미리보기 활성화",reply_visibility_all:"모든 답글 보기",reply_visibility_following:"나에게 직접 오는 답글이나 내가 팔로우 중인 사람에게서 오는 답글만 표시",reply_visibility_self:"나에게 직접 전송 된 답글만 보이기",saving_err:"설정 저장 실패",saving_ok:"설정 저장 됨",security_tab:"보안",scope_copy:"답글을 달 때 공개 범위 따라가리 (다이렉트 메시지는 언제나 따라감)",set_new_avatar:"새 아바타 설정",set_new_profile_background:"새 프로필 배경 설정",set_new_profile_banner:"새 프로필 배너 설정",settings:"설정",subject_input_always_show:"항상 주제 칸 보이기",subject_line_behavior:"답글을 달 때 주제 복사하기",subject_line_email:'이메일처럼: "re: 주제"',subject_line_mastodon:"마스토돈처럼: 그대로 복사",subject_line_noop:"복사 안 함",stop_gifs:"GIF파일에 마우스를 올려서 재생",streaming:"최상단에 도달하면 자동으로 새 게시물 스트리밍",text:"텍스트",theme:"테마",theme_help:"16진수 색상코드(#rrggbb)를 사용해 색상 테마를 커스터마이즈.",theme_help_v2_1:'체크박스를 통해 몇몇 컴포넌트의 색상과 불투명도를 조절 가능, "모두 지우기" 버튼으로 덮어 씌운 것을 모두 취소.',theme_help_v2_2:"몇몇 입력칸 밑의 아이콘은 전경/배경 대비 관련 표시등입니다, 마우스를 올려 자세한 정보를 볼 수 있습니다. 투명도 대비 표시등이 가장 최악의 경우를 나타낸다는 것을 유의하세요.",tooltipRadius:"툴팁/경고",user_settings:"사용자 설정",values:{false:"아니오",true:"네"},notifications:"알림",enable_web_push_notifications:"웹 푸시 알림 활성화",style:{switcher:{keep_color:"색상 유지",keep_shadows:"그림자 유지",keep_opacity:"불투명도 유지",keep_roundness:"둥글기 유지",keep_fonts:"글자체 유지",save_load_hint:'"유지" 옵션들은 다른 테마를 고르거나 불러 올 때 현재 설정 된 옵션들을 건드리지 않게 합니다, 테마를 내보내기 할 때도 이 옵션에 따라 저장합니다. 아무 것도 체크 되지 않았다면 모든 설정을 내보냅니다.',reset:"초기화",clear_all:"모두 지우기",clear_opacity:"불투명도 지우기"},common:{color:"색상",opacity:"불투명도",contrast:{hint:"대비율이 {ratio}입니다, 이것은 {context} {level}",level:{aa:"AA등급 가이드라인에 부합합니다 (최소한도)",aaa:"AAA등급 가이드라인에 부합합니다 (권장)",bad:"아무런 가이드라인 등급에도 미치지 못합니다"},context:{"18pt":"큰 (18pt 이상) 텍스트에 대해",text:"텍스트에 대해"}}},common_colors:{_tab_label:"일반",main:"일반 색상",foreground_hint:'"고급" 탭에서 더 자세한 설정이 가능합니다',rgbo:"아이콘, 강조, 배지"},advanced_colors:{_tab_label:"고급",alert:"주의 배경",alert_error:"에러",badge:"배지 배경",badge_notification:"알림",panel_header:"패널 헤더",top_bar:"상단 바",borders:"테두리",buttons:"버튼",inputs:"입력칸",faint_text:"흐려진 텍스트"},radii:{_tab_label:"둥글기"},shadows:{_tab_label:"그림자와 빛",component:"컴포넌트",override:"덮어쓰기",shadow_id:"그림자 #{value}",blur:"흐리기",spread:"퍼지기",inset:"안쪽으로",hint:"그림자에는 CSS3 변수를 --variable을 통해 색상 값으로 사용할 수 있습니다. 불투명도에는 적용 되지 않습니다.",filter_hint:{always_drop_shadow:"경고, 이 그림자는 브라우저가 지원하는 경우 항상 {0}을 사용합니다.",drop_shadow_syntax:"{0}는 {1} 파라미터와 {2} 키워드를 지원하지 않습니다.",avatar_inset:"안쪽과 안쪽이 아닌 그림자를 모두 설정하는 경우 투명 아바타에서 예상치 못 한 결과가 나올 수 있다는 것에 주의해 주세요.",spread_zero:"퍼지기가 0보다 큰 그림자는 0으로 설정한 것과 동일하게 보여집니다",inset_classic:"안쪽 그림자는 {0}를 사용합니다"},components:{panel:"패널",panelHeader:"패널 헤더",topBar:"상단 바",avatar:"사용자 아바타 (프로필 뷰에서)",avatarStatus:"사용자 아바타 (게시물에서)",popup:"팝업과 툴팁",button:"버튼",buttonHover:"버튼 (마우스 올렸을 때)",buttonPressed:"버튼 (눌렸을 때)",buttonPressedHover:"Button (마우스 올림 + 눌림)",input:"입력칸"}},fonts:{_tab_label:"글자체",help:'인터페이스의 요소에 사용 될 글자체를 고르세요. "커스텀"은 시스템에 있는 폰트 이름을 정확히 입력해야 합니다.',components:{interface:"인터페이스",input:"입력칸",post:"게시물 텍스트",postCode:"게시물의 고정폭 텍스트 (서식 있는 텍스트)"},family:"글자체 이름",size:"크기 (px 단위)",weight:"굵기",custom:"커스텀"},preview:{header:"미리보기",content:"내용",error:"에러 예시",button:"버튼",text:"더 많은 {0} 그리고 {1}",mono:"내용",input:"LA에 막 도착!",faint_link:"도움 되는 설명서",fine_print:"우리의 {0} 를 읽고 도움 되지 않는 것들을 배우자!",header_faint:"이건 괜찮아",checkbox:"나는 약관을 대충 훑어보았습니다",link:"작고 귀여운 링크"}}},timeline:{collapse:"접기",conversation:"대화",error_fetching:"업데이트 불러오기 실패",load_older:"더 오래 된 게시물 불러오기",no_retweet_hint:"팔로워 전용, 다이렉트 메시지는 반복할 수 없습니다",repeated:"반복 됨",show_new:"새로운 것 보기",up_to_date:"최신 상태"},user_card:{approve:"승인",block:"차단",blocked:"차단 됨!",deny:"거부",follow:"팔로우",follow_sent:"요청 보내짐!",follow_progress:"요청 중…",follow_again:"요청을 다시 보낼까요?",follow_unfollow:"팔로우 중지",followees:"팔로우 중",followers:"팔로워",following:"팔로우 중!",follows_you:"당신을 팔로우 합니다!",its_you:"당신입니다!",mute:"침묵",muted:"침묵 됨",per_day:" / 하루",remote_follow:"원격 팔로우",statuses:"게시물"},user_profile:{timeline_title:"사용자 타임라인"},who_to_follow:{more:"더 보기",who_to_follow:"팔로우 추천"},tool_tip:{media_upload:"미디어 업로드",repeat:"반복",reply:"답글",favorite:"즐겨찾기",user_settings:"사용자 설정"},upload:{error:{base:"업로드 실패.",file_too_big:"파일이 너무 커요 [{filesize}{filesizeunit} / {allowedsize}{allowedsizeunit}]",default:"잠시 후에 다시 시도해 보세요"},file_size_units:{B:"바이트",KiB:"키비바이트",MiB:"메비바이트",GiB:"기비바이트",TiB:"테비바이트"}}}},function(e){e.exports={chat:{title:"Nettprat"},features_panel:{chat:"Nettprat",gopher:"Gopher",media_proxy:"Media proxy",scope_options:"Velg mottakere",text_limit:"Tekst-grense",title:"Egenskaper",who_to_follow:"Hvem å følge"},finder:{error_fetching_user:"Feil ved henting av bruker",find_user:"Finn bruker"},general:{apply:"Bruk",submit:"Send"},login:{login:"Logg inn",logout:"Logg ut",password:"Passord",placeholder:"f. eks lain",register:"Registrer",username:"Brukernavn"},nav:{chat:"Lokal nettprat",friend_requests:"Følgeforespørsler",mentions:"Nevnt",public_tl:"Offentlig Tidslinje",timeline:"Tidslinje",twkn:"Det hele kjente nettverket"},notifications:{broken_favorite:"Ukjent status, leter etter den...",favorited_you:"likte din status",followed_you:"fulgte deg",load_older:"Last eldre varsler",notifications:"Varslinger",read:"Les!",repeated_you:"Gjentok din status"},post_status:{account_not_locked_warning:"Kontoen din er ikke {0}. Hvem som helst kan følge deg for å se dine statuser til følgere",account_not_locked_warning_link:"låst",attachments_sensitive:"Merk vedlegg som sensitive",content_type:{"text/plain":"Klar tekst"},content_warning:"Tema (valgfritt)",default:"Landet akkurat i L.A.",direct_warning:"Denne statusen vil kun bli sett av nevnte brukere",posting:"Publiserer",scope:{direct:"Direkte, publiser bare til nevnte brukere",private:"Bare følgere, publiser bare til brukere som følger deg",public:"Offentlig, publiser til offentlige tidslinjer",unlisted:"Uoppført, ikke publiser til offentlige tidslinjer"}},registration:{bio:"Biografi",email:"Epost-adresse",fullname:"Visningsnavn",password_confirm:"Bekreft passord",registration:"Registrering",token:"Invitasjons-bevis"},settings:{attachmentRadius:"Vedlegg",attachments:"Vedlegg",autoload:"Automatisk lasting når du blar ned til bunnen",avatar:"Profilbilde",avatarAltRadius:"Profilbilde (Varslinger)",avatarRadius:"Profilbilde",background:"Bakgrunn",bio:"Biografi",btnRadius:"Knapper",cBlue:"Blå (Svar, følg)",cGreen:"Grønn (Gjenta)",cOrange:"Oransje (Lik)",cRed:"Rød (Avbryt)",change_password:"Endre passord",change_password_error:"Feil ved endring av passord",changed_password:"Passord endret",collapse_subject:"Sammenfold statuser med tema",confirm_new_password:"Bekreft nytt passord",current_avatar:"Ditt nåværende profilbilde",current_password:"Nåværende passord",current_profile_banner:"Din nåværende profil-banner",data_import_export_tab:"Data import / eksport",default_vis:"Standard visnings-omfang",delete_account:"Slett konto",delete_account_description:"Slett din konto og alle dine statuser",delete_account_error:"Det oppsto et problem ved sletting av kontoen din, hvis dette problemet forblir kontakt din administrator",delete_account_instructions:"Skriv inn ditt passord i feltet nedenfor for å bekrefte sletting av konto",export_theme:"Lagre tema",filtering:"Filtrering",filtering_explanation:"Alle statuser som inneholder disse ordene vil bli dempet, en kombinasjon av tegn per linje",follow_export:"Eksporter følginger",follow_export_button:"Eksporter følgingene dine til en .csv fil",follow_export_processing:"Jobber, du vil snart bli spurt om å laste ned filen din.",follow_import:"Importer følginger",follow_import_error:"Feil ved importering av følginger.",follows_imported:"Følginger importert! Behandling vil ta litt tid.",foreground:"Forgrunn",general:"Generell",hide_attachments_in_convo:"Gjem vedlegg i samtaler",hide_attachments_in_tl:"Gjem vedlegg på tidslinje",import_followers_from_a_csv_file:"Importer følginger fra en csv fil",import_theme:"Last tema",inputRadius:"Input felt",instance_default:"(standard: {value})",interfaceLanguage:"Grensesnitt-språk",invalid_theme_imported:"Den valgte filen er ikke ett støttet Pleroma-tema, ingen endringer til ditt tema ble gjort",limited_availability:"Ikke tilgjengelig i din nettleser",links:"Linker",lock_account_description:"Begrens din konto til bare godkjente følgere",loop_video:"Gjenta videoer",loop_video_silent_only:'Gjenta bare videoer uten lyd, (for eksempel Mastodon sine "gifs")',name:"Navn",name_bio:"Navn & Biografi",new_password:"Nytt passord",notification_visibility:"Typer varsler som skal vises",notification_visibility_follows:"Følginger",notification_visibility_likes:"Likes",notification_visibility_mentions:"Nevnt",notification_visibility_repeats:"Gjentakelser",no_rich_text_description:"Fjern all formatering fra statuser",nsfw_clickthrough:"Krev trykk for å vise statuser som kan være upassende",oauth_tokens:"OAuth Tokens",token:"Pollett",refresh_token:"Refresh Token",valid_until:"Gyldig til",revoke_token:"Tilbakekall",panelRadius:"Panel",pause_on_unfocused:"Stopp henting av poster når vinduet ikke er i fokus",presets:"Forhåndsdefinerte tema",profile_background:"Profil-bakgrunn",profile_banner:"Profil-banner",profile_tab:"Profil",radii_help:"Bestem hvor runde hjørnene i brukergrensesnittet skal være (i piksler)",replies_in_timeline:"Svar på tidslinje",reply_link_preview:"Vis en forhåndsvisning når du holder musen over svar til en status",reply_visibility_all:"Vis alle svar",reply_visibility_following:"Vis bare svar som er til meg eller folk jeg følger",reply_visibility_self:"Vis bare svar som er til meg",saving_err:"Feil ved lagring av innstillinger",saving_ok:"Innstillinger lagret",security_tab:"Sikkerhet",set_new_avatar:"Rediger profilbilde",set_new_profile_background:"Rediger profil-bakgrunn",set_new_profile_banner:"Sett ny profil-banner",settings:"Innstillinger",stop_gifs:"Spill av GIFs når du holder over dem",streaming:"Automatisk strømming av nye statuser når du har bladd til toppen",text:"Tekst",theme:"Tema",theme_help:"Bruk heksadesimale fargekoder (#rrggbb) til å endre farge-temaet ditt.",tooltipRadius:"Verktøytips/advarsler",user_settings:"Brukerinstillinger",values:{false:"nei",true:"ja"}},timeline:{collapse:"Sammenfold",conversation:"Samtale",error_fetching:"Feil ved henting av oppdateringer",load_older:"Last eldre statuser",no_retweet_hint:"Status er markert som bare til følgere eller direkte og kan ikke gjentas",repeated:"gjentok",show_new:"Vis nye",up_to_date:"Oppdatert"},user_card:{approve:"Godkjenn",block:"Blokker",blocked:"Blokkert!",deny:"Avslå",follow:"Følg",followees:"Følger",followers:"Følgere",following:"Følger!",follows_you:"Følger deg!",mute:"Demp",muted:"Dempet",per_day:"per dag",remote_follow:"Følg eksternt",statuses:"Statuser"},user_profile:{timeline_title:"Bruker-tidslinje"},who_to_follow:{more:"Mer",who_to_follow:"Hvem å følge"}}},function(e){e.exports={chat:{title:"Chat"},features_panel:{chat:"Chat",gopher:"Gopher",media_proxy:"Media proxy",scope_options:"Zichtbaarheidsopties",text_limit:"Tekst limiet",title:"Features",who_to_follow:"Wie te volgen"},finder:{error_fetching_user:"Fout tijdens ophalen gebruiker",find_user:"Gebruiker zoeken"},general:{apply:"toepassen",submit:"Verzend"},login:{login:"Log in",description:"Log in met OAuth",logout:"Log uit",password:"Wachtwoord",placeholder:"bv. lain",register:"Registreer",username:"Gebruikersnaam"},nav:{about:"Over",back:"Terug",chat:"Locale Chat",friend_requests:"Volgverzoek",mentions:"Vermeldingen",dms:"Directe Berichten",public_tl:"Publieke Tijdlijn",timeline:"Tijdlijn",twkn:"Het Geheel Gekende Netwerk",user_search:"Zoek Gebruiker",who_to_follow:"Wie te volgen",preferences:"Voorkeuren"},notifications:{broken_favorite:"Onbekende status, aan het zoeken...",favorited_you:"vond je status leuk",followed_you:"volgt jou",load_older:"Laad oudere meldingen",notifications:"Meldingen",read:"Gelezen!",repeated_you:"Herhaalde je status"},post_status:{new_status:"Post nieuwe status",account_not_locked_warning:"Je account is niet {0}. Iedereen die je volgt kan enkel-volgers posts lezen.",account_not_locked_warning_link:"gesloten",attachments_sensitive:"Markeer bijlage als gevoelig",content_type:{"text/plain":"Gewone tekst"},content_warning:"Onderwerp (optioneel)",default:"Tijd voor een pauze!",direct_warning:"Deze post zal enkel zichtbaar zijn voor de personen die genoemd zijn.",posting:"Plaatsen",scope:{direct:"Direct - Post enkel naar genoemde gebruikers",private:"Enkel volgers - Post enkel naar volgers",public:"Publiek - Post op publieke tijdlijnen",unlisted:"Unlisted - Toon niet op publieke tijdlijnen"}},registration:{bio:"Bio",email:"Email",fullname:"Weergave naam",password_confirm:"Wachtwoord bevestiging",registration:"Registratie",token:"Uitnodigingstoken",captcha:"CAPTCHA",new_captcha:"Klik op de afbeelding voor een nieuwe captcha",validations:{username_required:"moet ingevuld zijn",fullname_required:"moet ingevuld zijn",email_required:"moet ingevuld zijn",password_required:"moet ingevuld zijn",password_confirmation_required:"moet ingevuld zijn",password_confirmation_match:"komt niet overeen met het wachtwoord"}},settings:{attachmentRadius:"Bijlages",attachments:"Bijlages",autoload:"Automatisch laden wanneer tot de bodem gescrold inschakelen",avatar:"Avatar",avatarAltRadius:"Avatars (Meldingen)",avatarRadius:"Avatars",background:"Achtergrond",bio:"Bio",btnRadius:"Knoppen",cBlue:"Blauw (Antwoord, volgen)",cGreen:"Groen (Herhaal)",cOrange:"Oranje (Vind ik leuk)",cRed:"Rood (Annuleer)",change_password:"Verander Wachtwoord",change_password_error:"Er was een probleem bij het aanpassen van je wachtwoord.",changed_password:"Wachtwoord succesvol aangepast!",collapse_subject:"Klap posts met onderwerp in",composing:"Samenstellen",confirm_new_password:"Bevestig nieuw wachtwoord",current_avatar:"Je huidige avatar",current_password:"Huidig wachtwoord",current_profile_banner:"Je huidige profiel banner",data_import_export_tab:"Data Import / Export",default_vis:"Standaard zichtbaarheidsscope",delete_account:"Verwijder Account",delete_account_description:"Verwijder je account en berichten permanent.",delete_account_error:"Er was een probleem bij het verwijderen van je account. Indien dit probleem blijft, gelieve de administratie van deze instantie te verwittigen.",delete_account_instructions:"Typ je wachtwoord in de input hieronder om het verwijderen van je account te bevestigen.",export_theme:"Sla preset op",filtering:"Filtering",filtering_explanation:"Alle statussen die deze woorden bevatten worden genegeerd, één filter per lijn.",follow_export:"Volgers export",follow_export_button:"Exporteer je volgers naar een csv file",follow_export_processing:"Aan het verwerken, binnen enkele ogenblikken wordt je gevraagd je bestand te downloaden",follow_import:"Volgers import",follow_import_error:"Fout bij importeren volgers",follows_imported:"Volgers geïmporteerd! Het kan even duren om ze allemaal te verwerken.",foreground:"Voorgrond",general:"Algemeen",hide_attachments_in_convo:"Verberg bijlages in conversaties",hide_attachments_in_tl:"Verberg bijlages in de tijdlijn",hide_isp:"Verberg instantie-specifiek paneel",preload_images:"Afbeeldingen voorladen",hide_post_stats:"Verberg post statistieken (bv. het aantal vind-ik-leuks)",hide_user_stats:"Verberg post statistieken (bv. het aantal volgers)",import_followers_from_a_csv_file:"Importeer volgers uit een csv file",import_theme:"Laad preset",inputRadius:"Invoer velden",checkboxRadius:"Checkboxen",instance_default:"(standaard: {value})",instance_default_simple:"(standaard)",interface:"Interface",interfaceLanguage:"Interface taal",invalid_theme_imported:"Het geselecteerde thema is geen door Pleroma ondersteund thema. Er zijn geen aanpassingen gedaan.",limited_availability:"Onbeschikbaar in je browser",links:"Links",lock_account_description:"Laat volgers enkel toe na expliciete toestemming",loop_video:"Speel videos af in een lus",loop_video_silent_only:'Speel enkel videos zonder geluid af in een lus (bv. Mastodon\'s "gifs")',name:"Naam",name_bio:"Naam & Bio",new_password:"Nieuw wachtwoord",notification_visibility:"Type meldingen die getoond worden",notification_visibility_follows:"Volgers",notification_visibility_likes:"Vind-ik-leuks",notification_visibility_mentions:"Vermeldingen",notification_visibility_repeats:"Herhalingen",no_rich_text_description:"Strip rich text formattering van alle posts",hide_network_description:"Toon niet wie mij volgt en wie ik volg.",nsfw_clickthrough:"Schakel doorklikbaar verbergen van NSFW bijlages in",oauth_tokens:"OAuth-tokens",token:"Token",refresh_token:"Token vernieuwen",valid_until:"Geldig tot",revoke_token:"Intrekken",panelRadius:"Panelen",pause_on_unfocused:"Pauzeer streamen wanneer de tab niet gefocused is",presets:"Presets",profile_background:"Profiel Achtergrond",profile_banner:"Profiel Banner",profile_tab:"Profiel",radii_help:"Stel afronding van hoeken in de interface in (in pixels)",replies_in_timeline:"Antwoorden in tijdlijn",reply_link_preview:"Schakel antwoordlink preview in bij over zweven met muisaanwijzer",reply_visibility_all:"Toon alle antwoorden",reply_visibility_following:"Toon enkel antwoorden naar mij of andere gebruikers gericht",reply_visibility_self:"Toon enkel antwoorden naar mij gericht",saving_err:"Fout tijdens opslaan van instellingen",saving_ok:"Instellingen opgeslagen",security_tab:"Veiligheid",scope_copy:"Neem scope over bij antwoorden (Directe Berichten blijven altijd Direct)",set_new_avatar:"Zet nieuwe avatar",set_new_profile_background:"Zet nieuwe profiel achtergrond",set_new_profile_banner:"Zet nieuwe profiel banner",settings:"Instellingen",subject_input_always_show:"Maak onderwerpveld altijd zichtbaar",subject_line_behavior:"Kopieer onderwerp bij antwoorden",subject_line_email:'Zoals email: "re: onderwerp"',subject_line_mastodon:"Zoals Mastodon: kopieer zoals het is",subject_line_noop:"Kopieer niet",stop_gifs:"Speel GIFs af bij zweven",streaming:"Schakel automatisch streamen van posts in wanneer tot boven gescrold.",text:"Tekst",theme:"Thema",theme_help:"Gebruik hex color codes (#rrggbb) om je kleurschema te wijzigen.",theme_help_v2_1:'Je kan ook de kleur en transparantie van bepaalde componenten overschrijven door de checkbox aan te vinken, gebruik de "Wis alles" knop om alle overschrijvingen te annuleren.',theme_help_v2_2:"Iconen onder sommige items zijn achtergrond/tekst contrast indicators, zweef er over voor gedetailleerde info. Hou er rekening mee dat bij doorzichtigheid de ergst mogelijke situatie wordt weer gegeven.",tooltipRadius:"Gereedschapstips/alarmen",user_settings:"Gebruikers Instellingen",values:{false:"nee",true:"ja"},notifications:"Meldingen",enable_web_push_notifications:"Schakel web push meldingen in",style:{switcher:{keep_color:"Behoud kleuren",keep_shadows:"Behoud schaduwen",keep_opacity:"Behoud transparantie",keep_roundness:"Behoud afrondingen",keep_fonts:"Behoud lettertypes",save_load_hint:"\"Behoud\" opties behouden de momenteel ingestelde opties bij het selecteren of laden van thema's, maar slaan ook de genoemde opties op bij het exporteren van een thema. Wanneer alle selectievakjes zijn uitgeschakeld, zal het exporteren van thema's alles opslaan.",reset:"Reset",clear_all:"Wis alles",clear_opacity:"Wis transparantie"},common:{color:"Kleur",opacity:"Transparantie",contrast:{hint:"Contrast ratio is {ratio}, {level} {context}",level:{aa:"voldoet aan de richtlijn van niveau AA (minimum)",aaa:"voldoet aan de richtlijn van niveau AAA (aangeraden)",bad:"voldoet aan geen enkele toegankelijkheidsrichtlijn"},context:{"18pt":"voor grote (18pt+) tekst",text:"voor tekst"}}},common_colors:{_tab_label:"Gemeenschappelijk",main:"Gemeenschappelijke kleuren",foreground_hint:'Zie "Geavanceerd" tab voor meer gedetailleerde controle',rgbo:"Iconen, accenten, badges"},advanced_colors:{_tab_label:"Geavanceerd",alert:"Alarm achtergrond",alert_error:"Fout",badge:"Badge achtergrond",badge_notification:"Meldingen",panel_header:"Paneel hoofding",top_bar:"Top bar",borders:"Randen",buttons:"Knoppen",inputs:"Invoervelden",faint_text:"Vervaagde tekst"},radii:{_tab_label:"Rondheid"},shadows:{_tab_label:"Schaduw en belichting",component:"Component",override:"Overschrijven",shadow_id:"Schaduw #{value}",blur:"Vervagen",spread:"Spreid",inset:"Inzet",hint:"Voor schaduw kan je ook --variable gebruiken als een kleur waarde om CSS3 variabelen te gebruiken. Houd er rekening mee dat het instellen van opaciteit in dit geval niet werkt.",filter_hint:{always_drop_shadow:"Waarschuwing, deze schaduw gebruikt altijd {0} als de browser dit ondersteund.",drop_shadow_syntax:"{0} ondersteund niet de {1} parameter en {2} sleutelwoord.",avatar_inset:"Houd er rekening mee dat het combineren van zowel inzet and niet-inzet schaduwen op transparante avatars onverwachte resultaten kan opleveren.",spread_zero:"Schaduw met spreiding > 0 worden weergegeven alsof ze op nul staan",inset_classic:"Inzet schaduw zal {0} gebruiken"},components:{panel:"Paneel",panelHeader:"Paneel hoofding",topBar:"Top bar",avatar:"Gebruiker avatar (in profiel weergave)",avatarStatus:"Gebruiker avatar (in post weergave)",popup:"Popups en gereedschapstips",button:"Knop",buttonHover:"Knop (zweven)",buttonPressed:"Knop (ingedrukt)",buttonPressedHover:"Knop (ingedrukt+zweven)",input:"Invoerveld"}},fonts:{_tab_label:"Lettertypes",help:'Selecteer het lettertype om te gebruiken voor elementen van de UI.Voor "aangepast" moet je de exacte naam van het lettertype invoeren zoals die in het systeem wordt weergegeven.',components:{interface:"Interface",input:"Invoervelden",post:"Post tekst",postCode:"Monospaced tekst in een post (rich text)"},family:"Naam lettertype",size:"Grootte (in px)",weight:"Gewicht (vetheid)",custom:"Aangepast"},preview:{header:"Voorvertoning",content:"Inhoud",error:"Voorbeeld fout",button:"Knop",text:"Nog een boel andere {0} en {1}",mono:"inhoud",input:"Tijd voor een pauze!",faint_link:"handige gebruikershandleiding",fine_print:"Lees onze {0} om niets nuttig te leren!",header_faint:"Alles komt goed",checkbox:"Ik heb de gebruikersvoorwaarden eens van ver bekeken",link:"een link"}}},timeline:{collapse:"Inklappen",conversation:"Conversatie",error_fetching:"Fout bij ophalen van updates",load_older:"Laad oudere Statussen",no_retweet_hint:"Post is gemarkeerd als enkel volgers of direct en kan niet worden herhaald",repeated:"herhaalde",show_new:"Toon nieuwe",up_to_date:"Up-to-date"},user_card:{approve:"Goedkeuren",block:"Blokkeren",blocked:"Geblokkeerd!",deny:"Ontzeggen",favorites:"Vind-ik-leuks",follow:"Volgen",follow_sent:"Aanvraag verzonden!",follow_progress:"Aanvragen…",follow_again:"Aanvraag opnieuw zenden?",follow_unfollow:"Stop volgen",followees:"Aan het volgen",followers:"Volgers",following:"Aan het volgen!",follows_you:"Volgt jou!",its_you:"'t is jij!",mute:"Dempen",muted:"Gedempt",per_day:"per dag",remote_follow:"Volg vanop afstand",statuses:"Statussen"},user_profile:{timeline_title:"Gebruikers Tijdlijn"},who_to_follow:{more:"Meer",who_to_follow:"Wie te volgen"},tool_tip:{media_upload:"Upload Media",repeat:"Herhaal",reply:"Antwoord",favorite:"Vind-ik-leuk",user_settings:"Gebruikers Instellingen"},upload:{error:{base:"Upload gefaald.",file_too_big:"Bestand is te groot [{filesize}{filesizeunit} / {allowedsize}{allowedsizeunit}]",default:"Probeer later opnieuw"},file_size_units:{B:"B",KiB:"KiB",MiB:"MiB",GiB:"GiB",TiB:"TiB"}}}},function(e){e.exports={chat:{title:"Messatjariá"},exporter:{export:"Exportar",processing:"Tractament, vos demandarem lèu de telecargar lo fichièr"},features_panel:{chat:"Chat",gopher:"Gopher",media_proxy:"Servidor mandatari mèdia",scope_options:"Nivèls de confidencialitat",text_limit:"Limita de tèxte",title:"Foncionalitats",who_to_follow:"Qual seguir"},finder:{error_fetching_user:"Error pendent la cèrca d’un utilizaire",find_user:"Cercar un utilizaire"},general:{apply:"Aplicar",submit:"Mandar",more:"Mai",generic_error:"Una error s’es producha",optional:"opcional",show_more:"Mostrar mai",show_less:"Mostrar mens",cancel:"Anullar"},image_cropper:{crop_picture:"Talhar l’imatge",save:"Salvar",save_without_cropping:"Salvar sens talhada",cancel:"Anullar"},importer:{submit:"Mandar",success:"Corrèctament importat.",error:"Una error s’es producha pendent l’importacion d’aqueste fichièr."},login:{login:"Connexion",description:"Connexion via OAuth",logout:"Desconnexion",password:"Senhal",placeholder:"e.g. lain",register:"Se marcar",username:"Nom d’utilizaire",hint:"Connectatz-vos per participar a la discutida"},media_modal:{previous:"Precedent",next:"Seguent"},nav:{about:"A prepaus",back:"Tornar",chat:"Chat local",friend_requests:"Demandas de seguiment",mentions:"Notificacions",dms:"Messatges privats",public_tl:"Estatuts locals",timeline:"Flux d’actualitat",twkn:"Lo malhum conegut",user_search:"Cèrca d’utilizaires",who_to_follow:"Qual seguir",preferences:"Preferéncias"},notifications:{broken_favorite:"Estatut desconegut, sèm a lo cercar...",favorited_you:"a aimat vòstre estatut",followed_you:"vos a seguit",load_older:"Cargar las notificacions mai ancianas",notifications:"Notficacions",read:"Legit !",repeated_you:"a repetit vòstre estatut",no_more_notifications:"Pas mai de notificacions"},post_status:{new_status:"Publicar d’estatuts novèls",account_not_locked_warning:"Vòstre compte es pas {0}. Qual que siá pòt vos seguir per veire vòstras publicacions destinadas pas qu’a vòstres seguidors.",account_not_locked_warning_link:"clavat",attachments_sensitive:"Marcar las pèças juntas coma sensiblas",content_type:{"text/plain":"Tèxte brut","text/html":"HTML","text/markdown":"Markdown","text/bbcode":"BBCode"},content_warning:"Avís de contengut (opcional)",default:"Escrivètz aquí vòstre estatut.",direct_warning_to_all:"Aquesta publicacion serà pas que visibla pels utilizaires mencionats.",direct_warning_to_first_only:"Aquesta publicacion serà pas que visibla pels utilizaires mencionats a la debuta del messatge.",posting:"Mandadís",scope:{direct:"Dirècte - Publicar pels utilizaires mencionats solament",private:"Seguidors solament - Publicar pels sols seguidors",public:"Public - Publicar pel flux d’actualitat public",unlisted:"Pas listat - Publicar pas pel flux public"}},registration:{bio:"Biografia",email:"Adreça de corrièl",fullname:"Nom complèt",password_confirm:"Confirmar lo senhal",registration:"Inscripcion",token:"Geton de convidat",captcha:"CAPTCHA",new_captcha:"Clicatz l’imatge per obténer una nòva captcha",username_placeholder:"e.g. lain",fullname_placeholder:"e.g. Lain Iwakura",bio_placeholder:"e.g.\nHi, Soi lo Lain\nSoi afocada d’animes e vivi al Japan. Benlèu que me coneissètz de the Wired.",validations:{username_required:"pòt pas èsser void",fullname_required:"pòt pas èsser void",email_required:"pòt pas èsser void",password_required:"pòt pas èsser void",password_confirmation_required:"pòt pas èsser void",password_confirmation_match:"deu èsser lo meteis senhal"}},selectable_list:{select_all:"O seleccionar tot"},settings:{app_name:"Nom de l’aplicacion",attachmentRadius:"Pèças juntas",attachments:"Pèças juntas",autoload:"Activar lo cargament automatic un còp arribat al cap de la pagina",avatar:"Avatar",avatarAltRadius:"Avatars (Notificacions)",avatarRadius:"Avatars",background:"Rèire plan",bio:"Biografia",block_export:"Exportar los blocatges",block_export_button:"Exportar los blocatges dins un fichièr csv",block_import:"Impòrt de blocatges",block_import_error:"Error en importar los blocatges",blocks_imported:"Blocatges importats ! Lo tractament tardarà un pauc.",blocks_tab:"Blocatges",btnRadius:"Botons",cBlue:"Blau (Respondre, seguir)",cGreen:"Verd (Repertir)",cOrange:"Irange (Aimar)",cRed:"Roge (Anullar)",change_password:"Cambiar lo senhal",change_password_error:"Una error s’es producha en cambiant lo senhal.",changed_password:"Senhal corrèctament cambiat !",collapse_subject:"Replegar las publicacions amb de subjèctes",composing:"Escritura",confirm_new_password:"Confirmatz lo nòu senhal",current_avatar:"Vòstre avatar actual",current_password:"Senhal actual",current_profile_banner:"Bandièra actuala del perfil",data_import_export_tab:"Importar / Exportar las donadas",default_vis:"Nivèl de visibilitat per defaut",delete_account:"Suprimir lo compte",delete_account_description:"Suprimir vòstre compte e los messatges per sempre.",delete_account_error:"Una error s’es producha en suprimir lo compte. S’aquò ten d’arribar mercés de contactar vòstre administrator d’instància.",delete_account_instructions:"Picatz vòstre senhal dins lo camp tèxte çai-jos per confirmar la supression del compte.",avatar_size_instruction:"La talha minimum recomandada pels imatges d’avatar es 150x150 pixèls.",export_theme:"Enregistrar la preconfiguracion",filtering:"Filtratge",filtering_explanation:"Totes los estatuts amb aqueles mots seràn en silenci, un mot per linha",follow_export:"Exportar los abonaments",follow_export_button:"Exportar vòstres abonaments dins un fichièr csv",follow_import:"Importar los abonaments",follow_import_error:"Error en important los seguidors",follows_imported:"Seguidors importats. Lo tractament pòt trigar una estona.",foreground:"Endavant",general:"General",hide_attachments_in_convo:"Rescondre las pèças juntas dins las conversacions",hide_attachments_in_tl:"Rescondre las pèças juntas",hide_muted_posts:"Rescondre las publicacions del monde rescondut",max_thumbnails:"Nombre maximum de vinhetas per publicacion",hide_isp:"Amagar lo panèl especial instància",preload_images:"Precargar los imatges",use_one_click_nsfw:"Dobrir las pèças juntas NSFW amb un clic",hide_post_stats:"Amagar las estatisticas de publicacion (ex. lo nombre de favorits)",hide_user_stats:"Amagar las estatisticas de l’utilizaire (ex. lo nombre de seguidors)",hide_filtered_statuses:"Amagar los estatuts filtrats",import_followers_from_a_csv_file:"Importar los seguidors d’un fichièr csv",import_theme:"Cargar un tèma",inputRadius:"Camps tèxte",checkboxRadius:"Casas de marcar",instance_default:"(defaut : {value})",instance_default_simple:"(defaut)",interface:"Interfàcia",interfaceLanguage:"Lenga de l’interfàcia",invalid_theme_imported:"Lo fichièr seleccionat es pas un tèma Pleroma valid. Cap de cambiament es estat fach a vòstre tèma.",limited_availability:"Pas disponible per vòstre navigador",links:"Ligams",lock_account_description:"Limitar vòstre compte als seguidors acceptats solament",loop_video:"Bocla vidèo",loop_video_silent_only:"Legir en bocla solament las vidèos sens son (coma los « Gifs » de Mastodon)",mutes_tab:"Agamats",play_videos_in_modal:"Legir las vidèos dirèctament dins la visualizaira mèdia",use_contain_fit:"Talhar pas las pèças juntas per las vinhetas",name:"Nom",name_bio:"Nom & Bio",new_password:"Nòu senhal",notification_visibility_follows:"Abonaments",notification_visibility_likes:"Aimar",notification_visibility_mentions:"Mencions",notification_visibility_repeats:"Repeticions",notification_visibility:"Tipes de notificacion de mostrar",no_rich_text_description:"Netejar lo format tèxte de totas las publicacions",no_blocks:"Cap de blocatge",no_mutes:"Cap d’amagat",hide_follows_description:"Mostrar pas qual seguissi",hide_followers_description:"Mostrar pas qual me seguisson",show_admin_badge:"Mostrar lo badge Admin badge al perfil meu",show_moderator_badge:"Mostrar lo badge Moderator al perfil meu",nsfw_clickthrough:"Activar lo clic per mostrar los imatges marcats coma pels adults o sensibles",oauth_tokens:"Listats OAuth",token:"Geton",refresh_token:"Actualizar lo geton",valid_until:"Valid fins a",revoke_token:"Revocar",panelRadius:"Panèls",pause_on_unfocused:"Pausar la difusion quand l’onglet es pas seleccionat",presets:"Pre-enregistrats",profile_background:"Imatge de fons",profile_banner:"Bandièra del perfil",profile_tab:"Perfil",radii_help:"Configurar los caires arredondits de l’interfàcia (en pixèls)",replies_in_timeline:"Responsas del flux",reply_link_preview:"Activar l’apercebut en passar la mirga",reply_visibility_all:"Mostrar totas las responsas",reply_visibility_following:"Mostrar pas que las responsas que me son destinada a ieu o un utilizaire que seguissi",reply_visibility_self:"Mostrar pas que las responsas que me son destinadas",saving_err:"Error en enregistrant los paramètres",saving_ok:"Paramètres enregistrats",search_user_to_block:"Cercatz qual volètz blocar",search_user_to_mute:"Cercatz qual volètz rescondre",security_tab:"Seguretat",scope_copy:"Copiar lo nivèl de confidencialitat per las responsas (Totjorn aissí pels Messatges Dirèctes)",minimal_scopes_mode:"Minimizar lo nombre d’opcions per publicacion",set_new_avatar:"Definir un nòu avatar",set_new_profile_background:"Definir un nòu fons de perfil",set_new_profile_banner:"Definir una nòva bandièra de perfil",settings:"Paramètres",subject_input_always_show:"Totjorn mostrar lo camp de subjècte",subject_line_behavior:"Copiar lo subjècte per las responsas",subject_line_email:'Coma los corrièls : "re: subjècte"',subject_line_mastodon:"Coma mastodon : copiar tal coma es",subject_line_noop:"Copiar pas",post_status_content_type:"Publicar lo tipe de contengut dels estatuts",stop_gifs:"Lançar los GIFs al subrevòl",streaming:"Activar lo cargament automatic dels novèls estatus en anar amont",text:"Tèxte",theme:"Tèma",theme_help_v2_1:'You can also override certain component\'s colors and opacity by toggling the checkbox, use "Clear all" button to clear all overrides.',theme_help_v2_2:"Icons underneath some entries are background/text contrast indicators, hover over for detailed info. Please keep in mind that when using transparency contrast indicators show the worst possible case.",theme_help:"Emplegatz los còdis de color hex (#rrggbb) per personalizar vòstre tèma de color.",tooltipRadius:"Astúcias/alèrtas",upload_a_photo:"Enviar una fotografia",user_settings:"Paramètres utilizaire",values:{false:"non",true:"òc"},notifications:"Notificacions",enable_web_push_notifications:"Activar las notificacions web push",style:{switcher:{keep_color:"Gardar las colors",keep_shadows:"Gardar las ombras",keep_opacity:"Gardar l’opacitat",keep_roundness:"Gardar la redondetat",keep_fonts:"Gardar las polissas",save_load_hint:"Las opcions « Gardar » permeton de servar las opcions configuradas actualament quand seleccionatz o cargatz un tèma, permeton tanben d’enregistrar aquelas opcions quand exportatz un tèma. Quand totas las casas son pas marcadas, l’exportacion de tèma o enregistrarà tot.",reset:"Restablir",clear_all:"O escafar tot",clear_opacity:"Escafar l’opacitat"},common:{color:"Color",opacity:"Opacitat",contrast:{hint:"Lo coeficient de contraste es de {ratio}. Dòna {level} {context}",level:{aa:"un nivèl AA minimum recomandat",aaa:"un nivèl AAA recomandat",bad:"pas un nivèl d’accessibilitat recomandat"},context:{"18pt":"pel tèxte grand (18pt+)",text:"pel tèxte"}}},common_colors:{_tab_label:"Comun",main:"Colors comunas",foreground_hint:"Vejatz « Avançat » per mai de paramètres detalhats",rgbo:"Icònas, accents, badges"},advanced_colors:{_tab_label:"Avançat",alert:"Rèire plan d’alèrtas",alert_error:"Error",badge:"Rèire plan dels badges",badge_notification:"Notificacion",panel_header:"Bandièra del tablèu de bòrd",top_bar:"Barra amont",borders:"Caires",buttons:"Botons",inputs:"Camps tèxte",faint_text:"Tèxte descolorit"},radii:{_tab_label:"Redondetat"},shadows:{_tab_label:"Ombra e luminositat",component:"Compausant",override:"Subrecargar",shadow_id:"Ombra #{value}",blur:"Fosc",spread:"Espandiment",inset:"Incrustacion",hint:"Per las ombras podètz tanben utilizar --variable coma valor de color per emplegar una variable CSS3. Notatz que lo paramètre d’opacitat foncionarà pas dins aquel cas.",filter_hint:{always_drop_shadow:"Avertiment, aquel ombra utiliza totjorn {0} quand lo navigator es compatible.",drop_shadow_syntax:"{0} es pas compatible amb lo paramètre {1} e lo mot clau {2}.",avatar_inset:"Notatz que combinar d’ombras incrustadas e pas incrustadas pòt donar de resultats inesperats amb los avatars transparents.",spread_zero:"L’ombra amb un espandiment de > 0 apareisserà coma reglat a zèro",inset_classic:"L’ombra d’incrustacion utilizarà {0}"},components:{panel:"Tablèu",panelHeader:"Bandièra del tablèu",topBar:"Barra amont",avatar:"Utilizar l’avatar (vista perfil)",avatarStatus:"Avatar de l’utilizaire (afichatge publicacion)",popup:"Fenèstras sorgissentas e astúcias",button:"Boton",buttonHover:"Boton (en passar la mirga)",buttonPressed:"Boton (en quichar)",buttonPressedHover:"Boton (en quichar e passar)",input:"Camp tèxte"}},fonts:{_tab_label:"Polissas",help:"Selecionatz la polissa d’utilizar pels elements de l’UI. Per « Personalizada » vos cal picar lo nom exacte tal coma apareis sul sistèma.",components:{interface:"Interfàcia",input:"Camps tèxte",post:"Tèxte de publicacion",postCode:"Tèxte Monospaced dins las publicacion (tèxte formatat)"},family:"Nom de la polissa",size:"Talha (en px)",weight:"Largor (gras)",custom:"Personalizada"},preview:{header:"Apercebut",content:"Contengut",error:"Error d’exemple",button:"Boton",text:"A tròç de mai de {0} e {1}",mono:"contengut",input:"arribada al país.",faint_link:"manual d’ajuda",fine_print:"Legissètz nòstre {0} per legir pas res d’util !",header_faint:"Va plan",checkbox:"Ai legit los tèrmes e condicions d’utilizacion",link:"un pichon ligam simpatic"}},version:{title:"Version",backend_version:"Version Backend",frontend_version:"Version Frontend"}},time:{day:"{0} jorn",days:"{0} jorns",day_short:"{0} jorn",days_short:"{0} jorns",hour:"{0} hour",hours:"{0} hours",hour_short:"{0}h",hours_short:"{0}h",in_future:"in {0}",in_past:"fa {0}",minute:"{0} minute",minutes:"{0} minutes",minute_short:"{0}min",minutes_short:"{0}min",month:"{0} mes",months:"{0} meses",month_short:"{0} mes",months_short:"{0} meses",now:"ara meteis",now_short:"ara meteis",second:"{0} second",seconds:"{0} seconds",second_short:"{0}s",seconds_short:"{0}s",week:"{0} setm.",weeks:"{0} setm.",week_short:"{0} setm.",weeks_short:"{0} setm.",year:"{0} an",years:"{0} ans",year_short:"{0} an",years_short:"{0} ans"},timeline:{collapse:"Tampar",conversation:"Conversacion",error_fetching:"Error en cercant de mesas a jorn",load_older:"Ne veire mai",no_retweet_hint:"Las publicacions marcadas pels seguidors solament o dirèctas se pòdon pas repetir",repeated:"repetit",show_new:"Ne veire mai",up_to_date:"A jorn",no_more_statuses:"Pas mai d’estatuts",no_statuses:"Cap d’estatuts"},status:{favorites:"Li a agradat",repeats:"A repetit",reply_to:"Respond a",replies_list:"Responsas :"},user_card:{approve:"Validar",block:"Blocar",blocked:"Blocat !",deny:"Refusar",favorites:"Favorits",follow:"Seguir",follow_sent:"Demanda enviada !",follow_progress:"Demanda…",follow_again:"Tornar enviar la demanda ?",follow_unfollow:"Quitar de seguir",followees:"Abonaments",followers:"Seguidors",following:"Seguit !",follows_you:"Vos sèc !",its_you:"Sètz vos !",media:"Mèdia",mute:"Amagar",muted:"Amagat",per_day:"per jorn",remote_follow:"Seguir a distància",statuses:"Estatuts",unblock:"Desblocar",unblock_progress:"Desblocatge...",block_progress:"Blocatge...",unmute:"Tornar mostrar",unmute_progress:"Afichatge...",mute_progress:"A amagar...",admin_menu:{moderation:"Moderacion",grant_admin:"Passar Admin",revoke_admin:"Revocar Admin",grant_moderator:"Passar Moderator",revoke_moderator:"Revocar Moderator",activate_account:"Activar lo compte",deactivate_account:"Desactivar lo compte",delete_account:"Suprimir lo compte",force_nsfw:"Marcar totas las publicacions coma sensiblas",strip_media:"Tirar los mèdias de las publicacions",force_unlisted:"Forçar las publicacions en pas-listadas",sandbox:"Forçar las publicacions en seguidors solament",disable_remote_subscription:"Desactivar lo seguiment d’utilizaire d’instàncias alonhadas",disable_any_subscription:"Desactivar tot seguiment",quarantine:"Defendre la federacion de las publicacions de l’utilizaire",delete_user:"Suprimir l’utilizaire",delete_user_confirmation:"Volètz vertadièrament far aquò ? Aquesta accion se pòt pas anullar."}},user_profile:{timeline_title:"Flux utilizaire",profile_does_not_exist:"Aqueste perfil existís pas.",profile_loading_error:"Una error s’es producha en cargant aqueste perfil."},who_to_follow:{more:"Mai",who_to_follow:"Qual seguir"},tool_tip:{media_upload:"Enviar un mèdia",repeat:"Repetir",reply:"Respondre",favorite:"aimar",user_settings:"Paramètres utilizaire"},upload:{error:{base:"Mandadís fracassat.",file_too_big:"Fichièr tròp grand [{filesize}{filesizeunit} / {allowedsize}{allowedsizeunit}]",default:"Tornatz ensajar mai tard"},file_size_units:{B:"o",KiB:"Kio",MiB:"Mio",GiB:"Gio",TiB:"Tio"}}}},function(e){e.exports={chat:{title:"Czat"},features_panel:{chat:"Czat",gopher:"Gopher",media_proxy:"Proxy mediów",scope_options:"Ustawienia zakresu",text_limit:"Limit tekstu",title:"Funkcje",who_to_follow:"Propozycje obserwacji"},finder:{error_fetching_user:"Błąd przy pobieraniu profilu",find_user:"Znajdź użytkownika"},general:{apply:"Zastosuj",submit:"Wyślij",more:"Więcej",generic_error:"Wystąpił błąd",optional:"nieobowiązkowe"},image_cropper:{crop_picture:"Przytnij obrazek",save:"Zapisz",save_without_cropping:"Zapisz bez przycinania",cancel:"Anuluj"},login:{login:"Zaloguj",description:"Zaloguj używając OAuth",logout:"Wyloguj",password:"Hasło",placeholder:"n.p. lain",register:"Zarejestruj",username:"Użytkownik",hint:"Zaloguj się, aby dołączyć do dyskusji"},media_modal:{previous:"Poprzednie",next:"Następne"},nav:{about:"O nas",back:"Wróć",chat:"Lokalny czat",friend_requests:"Prośby o możliwość obserwacji",mentions:"Wzmianki",dms:"Wiadomości prywatne",public_tl:"Publiczna oś czasu",timeline:"Oś czasu",twkn:"Cała znana sieć",user_search:"Wyszukiwanie użytkowników",who_to_follow:"Sugestie obserwacji",preferences:"Preferencje"},notifications:{broken_favorite:"Nieznany status, szukam go…",favorited_you:"dodał(-a) twój status do ulubionych",followed_you:"obserwuje cię",load_older:"Załaduj starsze powiadomienia",notifications:"Powiadomienia",read:"Przeczytane!",repeated_you:"powtórzył(-a) twój status",no_more_notifications:"Nie masz więcej powiadomień"},post_status:{new_status:"Dodaj nowy status",account_not_locked_warning:"Twoje konto nie jest {0}. Każdy może cię zaobserwować aby zobaczyć wpisy tylko dla obserwujących.",account_not_locked_warning_link:"zablokowane",attachments_sensitive:"Oznacz załączniki jako wrażliwe",content_type:{"text/plain":"Czysty tekst","text/html":"HTML","text/markdown":"Markdown","text/bbcode":"BBCode"},content_warning:"Temat (nieobowiązkowy)",default:"Właśnie wróciłem z kościoła",direct_warning:"Ten wpis zobaczą tylko osoby, o których wspomniałeś(-aś).",posting:"Wysyłanie",scope:{direct:"Bezpośredni – Tylko dla wspomnianych użytkowników",private:"Tylko dla obserwujących – Umieść dla osób, które cię obserwują",public:"Publiczny – Umieść na publicznych osiach czasu",unlisted:"Niewidoczny – Nie umieszczaj na publicznych osiach czasu"}},registration:{bio:"Bio",email:"E-mail",fullname:"Wyświetlana nazwa profilu",password_confirm:"Potwierdzenie hasła",registration:"Rejestracja",token:"Token zaproszenia",captcha:"CAPTCHA",new_captcha:"Naciśnij na obrazek, aby dostać nowy kod captcha",username_placeholder:"np. lain",fullname_placeholder:"np. Lain Iwakura",bio_placeholder:"e.g.\nCześć, jestem Lain.\nJestem dziewczynką z anime żyjącą na peryferiach Japonii. Możesz znać mnie z Wired.",validations:{username_required:"nie może być pusta",fullname_required:"nie może być pusta",email_required:"nie może być pusty",password_required:"nie może być puste",password_confirmation_required:"nie może być puste",password_confirmation_match:"musi być takie jak hasło"}},settings:{app_name:"Nazwa aplikacji",attachmentRadius:"Załączniki",attachments:"Załączniki",autoload:"Włącz automatyczne ładowanie po przewinięciu do końca strony",avatar:"Awatar",avatarAltRadius:"Awatary (powiadomienia)",avatarRadius:"Awatary",background:"Tło",bio:"Bio",blocks_tab:"Bloki",btnRadius:"Przyciski",cBlue:"Niebieski (odpowiedz, obserwuj)",cGreen:"Zielony (powtórzenia)",cOrange:"Pomarańczowy (ulubione)",cRed:"Czerwony (anuluj)",change_password:"Zmień hasło",change_password_error:"Podczas zmiany hasła wystąpił problem.",changed_password:"Pomyślnie zmieniono hasło!",collapse_subject:"Zwijaj posty z tematami",composing:"Pisanie",confirm_new_password:"Potwierdź nowe hasło",current_avatar:"Twój obecny awatar",current_password:"Obecne hasło",current_profile_banner:"Twój obecny banner profilu",data_import_export_tab:"Import/eksport danych",default_vis:"Domyślny zakres widoczności",delete_account:"Usuń konto",delete_account_description:"Trwale usuń konto i wszystkie posty.",delete_account_error:"Wystąpił problem z usuwaniem twojego konta. Jeżeli problem powtarza się, poinformuj administratora swojej instancji.",delete_account_instructions:"Wprowadź swoje hasło w poniższe pole aby potwierdzić usunięcie konta.",avatar_size_instruction:"Zalecany minimalny rozmiar awatarów to 150x150 pikseli.",export_theme:"Zapisz motyw",filtering:"Filtrowanie",filtering_explanation:"Wszystkie statusy zawierające te słowa będą wyciszone. Jedno słowo na linijkę.",follow_export:"Eksport obserwowanych",follow_export_button:"Eksportuj swoją listę obserwowanych do pliku CSV",follow_export_processing:"Przetwarzanie, wkrótce twój plik zacznie się ściągać.",follow_import:"Import obserwowanych",follow_import_error:"Błąd przy importowaniu obserwowanych",follows_imported:"Obserwowani zaimportowani! Przetwarzanie może trochę potrwać.",foreground:"Pierwszy plan",general:"Ogólne",hide_attachments_in_convo:"Ukrywaj załączniki w rozmowach",hide_attachments_in_tl:"Ukrywaj załączniki w osi czasu",hide_muted_posts:"Ukrywaj wpisy wyciszonych użytkowników",max_thumbnails:"Maksymalna liczba miniatur w poście",hide_isp:"Ukryj panel informacji o instancji",preload_images:"Ładuj wstępnie obrazy",use_one_click_nsfw:"Otwieraj załączniki NSFW jednym kliknięciem",hide_post_stats:"Ukrywaj statysyki postów (np. liczbę polubień)",hide_user_stats:"Ukrywaj statysyki użytkowników (np. liczbę obserwujących)",hide_filtered_statuses:"Ukrywaj filtrowane statusy",import_followers_from_a_csv_file:"Importuj obserwowanych z pliku CSV",import_theme:"Załaduj motyw",inputRadius:"Pola tekstowe",checkboxRadius:"Pola wyboru",instance_default:"(domyślny: {value})",instance_default_simple:"(domyślny)",interface:"Interfejs",interfaceLanguage:"Język interfejsu",invalid_theme_imported:"Wybrany plik nie jest obsługiwanym motywem Pleromy. Nie dokonano zmian w twoim motywie.",limited_availability:"Niedostępne w twojej przeglądarce",links:"Łącza",lock_account_description:"Ogranicz swoje konto dla zatwierdzonych obserwowanych",loop_video:"Zapętlaj filmy",loop_video_silent_only:"Zapętlaj tylko filmy bez dźwięku (np. mastodonowe „gify”)",mutes_tab:"Wyciszenia",play_videos_in_modal:"Odtwarzaj filmy bezpośrednio w przeglądarce mediów",use_contain_fit:"Nie przycinaj załączników na miniaturach",name:"Imię",name_bio:"Imię i bio",new_password:"Nowe hasło",notification_visibility:"Rodzaje powiadomień do wyświetlania",notification_visibility_follows:"Obserwacje",notification_visibility_likes:"Ulubione",notification_visibility_mentions:"Wzmianki",notification_visibility_repeats:"Powtórzenia",no_rich_text_description:"Usuwaj formatowanie ze wszystkich postów",no_blocks:"Bez blokad",no_mutes:"Bez wyciszeń",hide_follows_description:"Nie pokazuj kogo obserwuję",hide_followers_description:"Nie pokazuj kto mnie obserwuje",show_admin_badge:"Pokazuj odznakę Administrator na moim profilu",show_moderator_badge:"Pokazuj odznakę Moderator na moim profilu",nsfw_clickthrough:"Włącz domyślne ukrywanie załączników o treści nieprzyzwoitej (NSFW)",oauth_tokens:"Tokeny OAuth",token:"Token",refresh_token:"Odśwież token",valid_until:"Ważne do",revoke_token:"Odwołać",panelRadius:"Panele",pause_on_unfocused:"Wstrzymuj strumieniowanie kiedy karta nie jest aktywna",presets:"Gotowe motywy",profile_background:"Tło profilu",profile_banner:"Banner profilu",profile_tab:"Profil",radii_help:"Ustaw zaokrąglenie krawędzi interfejsu (w pikselach)",replies_in_timeline:"Odpowiedzi na osi czasu",reply_link_preview:"Włącz dymek z podglądem postu po najechaniu na znak odpowiedzi",reply_visibility_all:"Pokazuj wszystkie odpowiedzi",reply_visibility_following:"Pokazuj tylko odpowiedzi skierowane do mnie i osób które obserwuję",reply_visibility_self:"Pokazuj tylko odpowiedzi skierowane do mnie",saving_err:"Nie udało się zapisać ustawień",saving_ok:"Zapisano ustawienia",security_tab:"Bezpieczeństwo",scope_copy:"Kopiuj zakres podczas odpowiadania (DM-y zawsze są kopiowane)",set_new_avatar:"Ustaw nowy awatar",set_new_profile_background:"Ustaw nowe tło profilu",set_new_profile_banner:"Ustaw nowy banner profilu",settings:"Ustawienia",subject_input_always_show:"Zawsze pokazuj pole tematu",subject_line_behavior:"Kopiuj temat podczas odpowiedzi",subject_line_email:"Jak w mailach – „re: temat”",subject_line_mastodon:"Jak na Mastodonie – po prostu kopiuj",subject_line_noop:"Nie kopiuj",post_status_content_type:"Post status content type",stop_gifs:"Odtwarzaj GIFy po najechaniu kursorem",streaming:"Włącz automatycznie strumieniowanie nowych postów gdy jesteś na początku strony",text:"Tekst",theme:"Motyw",theme_help:"Użyj kolorów w notacji szesnastkowej (#rrggbb), by stworzyć swój motyw.",theme_help_v2_1:"Możesz też zastąpić kolory i widoczność poszczególnych komponentów przełączając pola wyboru, użyj „Wyczyść wszystko” aby usunąć wszystkie zastąpienia.",theme_help_v2_2:"Ikony pod niektórych wpisami są wskaźnikami kontrastu pomiędzy tłem a tekstem, po najechaniu na nie otrzymasz szczegółowe informacje. Zapamiętaj, że jeżeli używasz przezroczystości, wskaźniki pokazują najgorszy możliwy przypadek.",tooltipRadius:"Etykiety/alerty",upload_a_photo:"Wyślij zdjęcie",user_settings:"Ustawienia użytkownika",values:{false:"nie",true:"tak"},notifications:"Powiadomienia",enable_web_push_notifications:"Włącz powiadomienia push",style:{switcher:{keep_color:"Zachowaj kolory",keep_shadows:"Zachowaj cienie",keep_opacity:"Zachowaj widoczność",keep_roundness:"Zachowaj zaokrąglenie",keep_fonts:"Zachowaj czcionki",save_load_hint:"Opcje „zachowaj” pozwalają na pozostanie przy obecnych opcjach po wybraniu lub załadowaniu motywu, jak i przechowywanie ich podczas eksportowania motywu. Jeżeli wszystkie są odznaczone, eksportowanie motywu spowoduje zapisanie wszystkiego.",reset:"Wyzeruj",clear_all:"Wyczyść wszystko",clear_opacity:"Wyczyść widoczność"},common:{color:"Kolor",opacity:"Widoczność",contrast:{hint:"Współczynnik kontrastu wynosi {ratio}, {level} {context}",level:{aa:"spełnia wymogi poziomu AA (minimalne)",aaa:"spełnia wymogi poziomu AAA (zalecane)",bad:"nie spełnia żadnych wymogów dostępności"},context:{"18pt":"dla dużego tekstu (18pt+)",text:"dla tekstu"}}},common_colors:{_tab_label:"Ogólne",main:"Ogólne kolory",foreground_hint:"Zajrzyj do karty „Zaawansowane”, aby uzyskać dokładniejszą kontrolę",rgbo:"Ikony, wyróżnienia, odznaki"},advanced_colors:{_tab_label:"Zaawansowane",alert:"Tło alertu",alert_error:"Błąd",badge:"Tło odznaki",badge_notification:"Powiadomienie",panel_header:"Nagłówek panelu",top_bar:"Górny pasek",borders:"Granice",buttons:"Przyciski",inputs:"Pola wejścia",faint_text:"Zanikający tekst"},radii:{_tab_label:"Zaokrąglenie"},shadows:{_tab_label:"Cień i podświetlenie",component:"Komponent",override:"Zastąp",shadow_id:"Cień #{value}",blur:"Rozmycie",spread:"Szerokość",inset:"Inset",hint:"Możesz też używać --zmiennych jako kolorów, aby wykorzystać zmienne CSS3. Pamiętaj, że ustawienie widoczności nie będzie wtedy działać.",filter_hint:{always_drop_shadow:"Ostrzeżenie, ten cień zawsze używa {0} jeżeli to obsługiwane przez przeglądarkę.",drop_shadow_syntax:"{0} nie obsługuje parametru {1} i słowa kluczowego {2}.",avatar_inset:"Pamiętaj że użycie jednocześnie cieni inset i nie inset na awatarach może daćnieoczekiwane wyniki z przezroczystymi awatarami.",spread_zero:"Cienie o ujemnej szerokości będą widoczne tak, jakby wynosiła ona zero",inset_classic:"Cienie inset będą używały {0}"},components:{panel:"Panel",panelHeader:"Nagłówek panelu",topBar:"Górny pasek",avatar:"Awatar użytkownika (w widoku profilu)",avatarStatus:"Awatar użytkownika (w widoku wpisu)",popup:"Wyskakujące okna i podpowiedzi",button:"Przycisk",buttonHover:"Przycisk (po najechaniu)",buttonPressed:"Przycisk (naciśnięty)",buttonPressedHover:"Przycisk(naciśnięty+najechany)",input:"Pole wejścia"}},fonts:{_tab_label:"Czcionki",help:"Wybierz czcionkę używaną przez elementy UI. Jeżeli wybierzesz niestandardową, musisz wpisać dokładnie tę nazwę, pod którą pojawia się w systemie.",components:{interface:"Interfejs",input:"Pola wejścia",post:"Tekst postu",postCode:"Tekst o stałej szerokości znaków w sformatowanym poście"},family:"Nazwa czcionki",size:"Rozmiar (w pikselach)",weight:"Grubość",custom:"Niestandardowa"},preview:{header:"Podgląd",content:"Zawartość",error:"Przykładowy błąd",button:"Przycisk",text:"Trochę więcej {0} i {1}",mono:"treści",input:"Właśnie wróciłem z kościoła",faint_link:"pomocny podręcznik",fine_print:"Przeczytaj nasz {0}, aby nie nauczyć się niczego przydatnego!",header_faint:"W porządku",checkbox:"Przeleciałem przez zasady użytkowania",link:"i fajny mały odnośnik"}},version:{title:"Wersja",backend_version:"Wersja back-endu",frontend_version:"Wersja front-endu"}},timeline:{collapse:"Zwiń",conversation:"Rozmowa",error_fetching:"Błąd pobierania",load_older:"Załaduj starsze statusy",no_retweet_hint:"Wpis oznaczony jako tylko dla obserwujących lub bezpośredni nie może zostać powtórzony",repeated:"powtórzył(-a)",show_new:"Pokaż nowe",up_to_date:"Na bieżąco",no_more_statuses:"Brak kolejnych statusów",no_statuses:"Brak statusów"},status:{reply_to:"Odpowiedź dla",replies_list:"Odpowiedzi:"},user_card:{approve:"Przyjmij",block:"Zablokuj",blocked:"Zablokowany!",deny:"Odrzuć",favorites:"Ulubione",follow:"Obserwuj",follow_sent:"Wysłano prośbę!",follow_progress:"Wysyłam prośbę…",follow_again:"Wysłać prośbę ponownie?",follow_unfollow:"Przestań obserwować",followees:"Obserwowani",followers:"Obserwujący",following:"Obserwowany!",follows_you:"Obserwuje cię!",its_you:"To ty!",media:"Media",mute:"Wycisz",muted:"Wyciszony(-a)",per_day:"dziennie",remote_follow:"Zdalna obserwacja",statuses:"Statusy",unblock:"Odblokuj",unblock_progress:"Odblokowuję…",block_progress:"Blokuję…",unmute:"Cofnij wyciszenie",unmute_progress:"Cofam wyciszenie…",mute_progress:"Wyciszam…"},user_profile:{timeline_title:"Oś czasu użytkownika",profile_does_not_exist:"Przepraszamy, ten profil nie istnieje.",profile_loading_error:"Przepraszamy, wystąpił błąd podczas ładowania tego profilu."},who_to_follow:{more:"Więcej",who_to_follow:"Propozycje obserwacji"},tool_tip:{media_upload:"Wyślij media",repeat:"Powtórz",reply:"Odpowiedz",favorite:"Dodaj do ulubionych",user_settings:"Ustawienia użytkownika"},upload:{error:{base:"Wysyłanie nie powiodło się.",file_too_big:"Zbyt duży plik [{filesize}{filesizeunit} / {allowedsize}{allowedsizeunit}]",default:"Spróbuj ponownie później"},file_size_units:{B:"B",KiB:"KiB",MiB:"MiB",GiB:"GiB",TiB:"TiB"}}}},function(e){e.exports={chat:{title:"Chat"},features_panel:{chat:"Chat",gopher:"Gopher",media_proxy:"Proxy de mídia",scope_options:"Opções de privacidade",text_limit:"Limite de caracteres",title:"Funções",who_to_follow:"Quem seguir"},finder:{error_fetching_user:"Erro ao procurar usuário",find_user:"Buscar usuário"},general:{apply:"Aplicar",submit:"Enviar",more:"Mais",generic_error:"Houve um erro",optional:"opcional"},image_cropper:{crop_picture:"Cortar imagem",save:"Salvar",cancel:"Cancelar"},login:{login:"Entrar",description:"Entrar com OAuth",logout:"Sair",password:"Senha",placeholder:"p.e. lain",register:"Registrar",username:"Usuário",hint:"Entre para participar da discussão"},media_modal:{previous:"Anterior",next:"Próximo"},nav:{about:"Sobre",back:"Voltar",chat:"Chat local",friend_requests:"Solicitações de seguidores",mentions:"Menções",dms:"Mensagens diretas",public_tl:"Linha do tempo pública",timeline:"Linha do tempo",twkn:"Toda a rede conhecida",user_search:"Buscar usuários",who_to_follow:"Quem seguir",preferences:"Preferências"},notifications:{broken_favorite:"Status desconhecido, buscando...",favorited_you:"favoritou sua postagem",followed_you:"seguiu você",load_older:"Carregar notificações antigas",notifications:"Notificações",read:"Lido!",repeated_you:"repetiu sua postagem",no_more_notifications:"Mais nenhuma notificação"},post_status:{new_status:"Postar novo status",account_not_locked_warning:"Sua conta não é {0}. Qualquer pessoa pode te seguir e ver seus posts privados (só para seguidores).",account_not_locked_warning_link:"restrita",attachments_sensitive:"Marcar anexos como sensíveis",content_type:{"text/plain":"Texto puro"},content_warning:"Assunto (opcional)",default:"Acabei de chegar no Rio!",direct_warning:"Este post será visível apenas para os usuários mencionados.",posting:"Publicando",scope:{direct:"Direto - Enviar somente aos usuários mencionados",private:"Apenas para seguidores - Enviar apenas para seguidores",public:"Público - Enviar a linhas do tempo públicas",unlisted:"Não listado - Não enviar a linhas do tempo públicas"}},registration:{bio:"Biografia",email:"Correio eletrônico",fullname:"Nome para exibição",password_confirm:"Confirmação de senha",registration:"Registro",token:"Código do convite",captcha:"CAPTCHA",new_captcha:"Clique na imagem para carregar um novo captcha",username_placeholder:"p. ex. lain",fullname_placeholder:"p. ex. Lain Iwakura",bio_placeholder:"e.g.\nOi, sou Lain\nSou uma garota que vive no subúrbio do Japão. Você deve me conhecer da Rede.",validations:{username_required:"não pode ser deixado em branco",fullname_required:"não pode ser deixado em branco",email_required:"não pode ser deixado em branco",password_required:"não pode ser deixado em branco",password_confirmation_required:"não pode ser deixado em branco",password_confirmation_match:"deve ser idêntica à senha"}},settings:{app_name:"Nome do aplicativo",attachmentRadius:"Anexos",attachments:"Anexos",autoload:"Habilitar carregamento automático quando a rolagem chegar ao fim.",avatar:"Avatar",avatarAltRadius:"Avatares (Notificações)",avatarRadius:"Avatares",background:"Pano de Fundo",bio:"Biografia",blocks_tab:"Bloqueios",btnRadius:"Botões",cBlue:"Azul (Responder, seguir)",cGreen:"Verde (Repetir)",cOrange:"Laranja (Favoritar)",cRed:"Vermelho (Cancelar)",change_password:"Mudar senha",change_password_error:"Houve um erro ao modificar sua senha.",changed_password:"Senha modificada com sucesso!",collapse_subject:"Esconder posts com assunto",composing:"Escrita",confirm_new_password:"Confirmar nova senha",current_avatar:"Seu avatar atual",current_password:"Sua senha atual",current_profile_banner:"Sua capa de perfil atual",data_import_export_tab:"Importação/exportação de dados",default_vis:"Opção de privacidade padrão",delete_account:"Deletar conta",delete_account_description:"Deletar sua conta e mensagens permanentemente.",delete_account_error:"Houve um problema ao deletar sua conta. Se ele persistir, por favor entre em contato com o/a administrador/a da instância.",delete_account_instructions:"Digite sua senha no campo abaixo para confirmar a exclusão da conta.",avatar_size_instruction:"O tamanho mínimo recomendado para imagens de avatar é 150x150 pixels.",export_theme:"Salvar predefinições",filtering:"Filtragem",filtering_explanation:"Todas as postagens contendo estas palavras serão silenciadas; uma palavra por linha.",follow_export:"Exportar quem você segue",follow_export_button:"Exportar quem você segue para um arquivo CSV",follow_export_processing:"Processando. Em breve você receberá a solicitação de download do arquivo",follow_import:"Importar quem você segue",follow_import_error:"Erro ao importar seguidores",follows_imported:"Seguidores importados! O processamento pode demorar um pouco.",foreground:"Primeiro Plano",general:"Geral",hide_attachments_in_convo:"Ocultar anexos em conversas",hide_attachments_in_tl:"Ocultar anexos na linha do tempo.",max_thumbnails:"Número máximo de miniaturas por post",hide_isp:"Esconder painel específico da instância",preload_images:"Pré-carregar imagens",use_one_click_nsfw:"Abrir anexos sensíveis com um clique",hide_post_stats:"Esconder estatísticas de posts (p. ex. número de favoritos)",hide_user_stats:"Esconder estatísticas do usuário (p. ex. número de seguidores)",hide_filtered_statuses:"Esconder posts filtrados",import_followers_from_a_csv_file:"Importe seguidores a partir de um arquivo CSV",import_theme:"Carregar pré-definição",inputRadius:"Campos de entrada",checkboxRadius:"Checkboxes",instance_default:"(padrão: {value})",instance_default_simple:"(padrão)",interface:"Interface",interfaceLanguage:"Idioma da interface",invalid_theme_imported:"O arquivo selecionado não é um tema compatível com o Pleroma. Nenhuma mudança no tema foi feita.",limited_availability:"Indisponível para seu navegador",links:"Links",lock_account_description:"Restringir sua conta a seguidores aprovados",loop_video:"Repetir vídeos",loop_video_silent_only:'Repetir apenas vídeos sem som (como os "gifs" do Mastodon)',mutes_tab:"Silenciados",play_videos_in_modal:"Tocar vídeos diretamente no visualizador de mídia",use_contain_fit:"Não cortar o anexo na miniatura",name:"Nome",name_bio:"Nome & Biografia",new_password:"Nova senha",notification_visibility:"Tipos de notificação para mostrar",notification_visibility_follows:"Seguidas",notification_visibility_likes:"Favoritos",notification_visibility_mentions:"Menções",notification_visibility_repeats:"Repetições",no_rich_text_description:"Remover formatação de todos os posts",no_blocks:"Sem bloqueios",no_mutes:"Sem silenciados",hide_follows_description:"Não mostrar quem estou seguindo",hide_followers_description:"Não mostrar quem me segue",show_admin_badge:"Mostrar título de Administrador em meu perfil",show_moderator_badge:"Mostrar título de Moderador em meu perfil",nsfw_clickthrough:"Habilitar clique para ocultar anexos sensíveis",oauth_tokens:"Token OAuth",token:"Token",refresh_token:"Atualizar Token",valid_until:"Válido até",revoke_token:"Revogar",panelRadius:"Paineis",pause_on_unfocused:"Parar transmissão quando a aba não estiver em primeiro plano",presets:"Predefinições",profile_background:"Pano de fundo de perfil",profile_banner:"Capa de perfil",profile_tab:"Perfil",radii_help:"Arredondar arestas da interface (em pixel)",replies_in_timeline:"Respostas na linha do tempo",reply_link_preview:"Habilitar a pré-visualização de de respostas ao passar o mouse.",reply_visibility_all:"Mostrar todas as respostas",reply_visibility_following:"Só mostrar respostas direcionadas a mim ou a usuários que sigo",reply_visibility_self:"Só mostrar respostas direcionadas a mim",saving_err:"Erro ao salvar configurações",saving_ok:"Configurações salvas",security_tab:"Segurança",scope_copy:"Copiar opções de privacidade ao responder (Mensagens diretas sempre copiam)",set_new_avatar:"Alterar avatar",set_new_profile_background:"Alterar o pano de fundo de perfil",set_new_profile_banner:"Alterar capa de perfil",settings:"Configurações",subject_input_always_show:"Sempre mostrar campo de assunto",subject_line_behavior:"Copiar assunto ao responder",subject_line_email:'Como em email: "re: assunto"',subject_line_mastodon:"Como o Mastodon: copiar como está",subject_line_noop:"Não copiar",post_status_content_type:"Tipo de conteúdo do status",stop_gifs:"Reproduzir GIFs ao passar o cursor",streaming:"Habilitar o fluxo automático de postagens no topo da página",text:"Texto",theme:"Tema",theme_help:"Use cores em código hexadecimal (#rrggbb) para personalizar seu esquema de cores.",theme_help_v2_1:'Você também pode sobrescrever as cores e opacidade de alguns componentes ao modificar o checkbox, use "Limpar todos" para limpar todas as modificações.',theme_help_v2_2:"Alguns ícones sob registros são indicadores de fundo/contraste de textos, passe por cima para informações detalhadas. Tenha ciência de que os indicadores de contraste não funcionam muito bem com transparência.",tooltipRadius:"Dicas/alertas",upload_a_photo:"Enviar uma foto",user_settings:"Configurações de Usuário",values:{false:"não",true:"sim"},notifications:"Notificações",enable_web_push_notifications:"Habilitar notificações web push",style:{switcher:{keep_color:"Manter cores",keep_shadows:"Manter sombras",keep_opacity:"Manter opacidade",keep_roundness:"Manter arredondado",keep_fonts:"Manter fontes",save_load_hint:"Manter as opções preserva as opções atuais ao selecionar ou carregar temas; também salva as opções ao exportar um tempo. Quanto todos os campos estiverem desmarcados, tudo será salvo ao exportar o tema.",reset:"Restaurar o padrão",clear_all:"Limpar tudo",clear_opacity:"Limpar opacidade"},common:{color:"Cor",opacity:"Opacidade",contrast:{hint:"A taxa de contraste é {ratio}, {level} {context}",level:{aa:"padrão Nível AA (mínimo)",aaa:"padrão Nível AAA (recomendado)",bad:"nenhum padrão de acessibilidade"},context:{"18pt":"para textos longos (18pt+)",text:"para texto"}}},common_colors:{_tab_label:"Comum",main:"Cores Comuns",foreground_hint:'Configurações mais detalhadas na aba"Avançado"',rgbo:"Ícones, acentuação, distintivos"},advanced_colors:{_tab_label:"Avançado",alert:"Fundo de alerta",alert_error:"Erro",badge:"Fundo do distintivo",badge_notification:"Notificação",panel_header:"Topo do painel",top_bar:"Barra do topo",borders:"Bordas",buttons:"Botões",inputs:"Caixas de entrada",faint_text:"Texto esmaecido"},radii:{_tab_label:"Arredondado"},shadows:{_tab_label:"Luz e sombra",component:"Componente",override:"Sobrescrever",shadow_id:"Sombra #{value}",blur:"Borrado",spread:"Difusão",inset:"Inserção",hint:"Para as sombras você também pode usar --variável como valor de cor para utilizar variáveis do CSS3. Tenha em mente que configurar a opacidade não será possível neste caso.",filter_hint:{always_drop_shadow:"Atenção, esta sombra sempre utiliza {0} quando compatível com o navegador.",drop_shadow_syntax:"{0} não é compatível com o parâmetro {1} e a palavra-chave {2}.",avatar_inset:"Tenha em mente que combinar as sombras de inserção e a não-inserção em avatares pode causar resultados inesperados em avatares transparentes.",spread_zero:"Sombras com uma difusão > 0 aparecerão como se fossem definidas como 0.",inset_classic:"Sombras de inserção utilizarão {0}"},components:{panel:"Painel",panelHeader:"Topo do painel",topBar:"Barra do topo",avatar:"Avatar do usuário (na visualização do perfil)",avatarStatus:"Avatar do usuário (na exibição de posts)",popup:"Dicas e notificações",button:"Botão",buttonHover:"Botão (em cima)",buttonPressed:"Botão (pressionado)",buttonPressedHover:"Botão (pressionado+em cima)",input:"Campo de entrada"}},fonts:{_tab_label:"Fontes",help:'Selecione as fontes dos elementos da interface. Para fonte "personalizada" você deve inserir o mesmo nome da fonte no sistema.',components:{interface:"Interface",input:"Campo de entrada",post:"Postar texto",postCode:"Texto monoespaçado em post (formatação rica)"},family:"Nome da fonte",size:"Tamanho (em px)",weight:"Peso",custom:"Personalizada"},preview:{header:"Pré-visualizar",content:"Conteúdo",error:"Erro de exemplo",button:"Botão",text:"Vários {0} e {1}",mono:"conteúdo",input:"Acabei de chegar no Rio!",faint_link:"manual útil",fine_print:"Leia nosso {0} para não aprender nada!",header_faint:"Está ok!",checkbox:"Li os termos e condições",link:"um belo link"}}},timeline:{collapse:"Esconder",conversation:"Conversa",error_fetching:"Erro ao buscar atualizações",load_older:"Carregar postagens antigas",no_retweet_hint:"Posts apenas para seguidores ou diretos não podem ser repetidos",repeated:"Repetido",show_new:"Mostrar novas",up_to_date:"Atualizado",no_more_statuses:"Sem mais posts",no_statuses:"Sem posts"},status:{reply_to:"Responder a",replies_list:"Respostas:"},user_card:{approve:"Aprovar",block:"Bloquear",blocked:"Bloqueado!",deny:"Negar",favorites:"Favoritos",follow:"Seguir",follow_sent:"Pedido enviado!",follow_progress:"Enviando…",follow_again:"Enviar solicitação novamente?",follow_unfollow:"Deixar de seguir",followees:"Seguindo",followers:"Seguidores",following:"Seguindo!",follows_you:"Segue você!",its_you:"É você!",media:"Mídia",mute:"Silenciar",muted:"Silenciado",per_day:"por dia",remote_follow:"Seguir remotamente",statuses:"Postagens",unblock:"Desbloquear",unblock_progress:"Desbloqueando...",block_progress:"Bloqueando...",unmute:"Retirar silêncio",unmute_progress:"Retirando silêncio...",mute_progress:"Silenciando..."},user_profile:{timeline_title:"Linha do tempo do usuário",profile_does_not_exist:"Desculpe, este perfil não existe.",profile_loading_error:"Desculpe, houve um erro ao carregar este perfil."},who_to_follow:{more:"Mais",who_to_follow:"Quem seguir"},tool_tip:{media_upload:"Envio de mídia",repeat:"Repetir",reply:"Responder",favorite:"Favoritar",user_settings:"Configurações do usuário"},upload:{error:{base:"Falha no envio.",file_too_big:"Arquivo grande demais [{filesize}{filesizeunit} / {allowedsize}{allowedsizeunit}]",default:"Tente novamente mais tarde"},file_size_units:{B:"B",KiB:"KiB",MiB:"MiB",GiB:"GiB",TiB:"TiB"}}}},function(e){e.exports={finder:{error_fetching_user:"Eroare la preluarea utilizatorului",find_user:"Găsește utilizator"},general:{submit:"trimite"},login:{login:"Loghează",logout:"Deloghează",password:"Parolă",placeholder:"d.e. lain",register:"Înregistrare",username:"Nume utilizator"},nav:{mentions:"Menționări",public_tl:"Cronologie Publică",timeline:"Cronologie",twkn:"Toată Reșeaua Cunoscută"},notifications:{followed_you:"te-a urmărit",notifications:"Notificări",read:"Citit!"},post_status:{default:"Nu de mult am aterizat în L.A.",posting:"Postează"},registration:{bio:"Bio",email:"Email",fullname:"Numele întreg",password_confirm:"Cofirmă parola",registration:"Îregistrare"},settings:{attachments:"Atașamente",autoload:"Permite încărcarea automată când scrolat la capăt",avatar:"Avatar",bio:"Bio",current_avatar:"Avatarul curent",current_profile_banner:"Bannerul curent al profilului",filtering:"Filtru",filtering_explanation:"Toate stările care conțin aceste cuvinte vor fi puse pe mut, una pe linie",hide_attachments_in_convo:"Ascunde atașamentele în conversații",hide_attachments_in_tl:"Ascunde atașamentele în cronologie",name:"Nume",name_bio:"Nume și Bio",nsfw_clickthrough:"Permite ascunderea al atașamentelor NSFW",profile_background:"Fundalul de profil",profile_banner:"Banner de profil",reply_link_preview:"Permite previzualizarea linkului de răspuns la planarea de mouse",set_new_avatar:"Setează avatar nou",set_new_profile_background:"Setează fundal nou",set_new_profile_banner:"Setează banner nou la profil",settings:"Setări",theme:"Temă",user_settings:"Setările utilizatorului"},timeline:{conversation:"Conversație",error_fetching:"Erare la preluarea actualizărilor",load_older:"Încarcă stări mai vechi",show_new:"Arată cele noi",up_to_date:"La zi"},user_card:{block:"Blochează",blocked:"Blocat!",follow:"Urmărește",followees:"Urmărește",followers:"Următori",following:"Urmărit!",follows_you:"Te urmărește!",mute:"Pune pe mut",muted:"Pus pe mut",per_day:"pe zi",statuses:"Stări"}}},function(e){e.exports={chat:{title:"Чат"},finder:{error_fetching_user:"Пользователь не найден",find_user:"Найти пользователя"},general:{apply:"Применить",submit:"Отправить",cancel:"Отмена",disable:"Оключить",enable:"Включить",confirm:"Подтвердить",verify:"Проверить"},login:{login:"Войти",logout:"Выйти",password:"Пароль",placeholder:"e.c. lain",register:"Зарегистрироваться",username:"Имя пользователя",authentication_code:"Код аутентификации",enter_recovery_code:"Ввести код восстановления",enter_two_factor_code:"Ввести код аутентификации",recovery_code:"Код восстановления",heading:{TotpForm:"Двухфакторная аутентификация",RecoveryForm:"Two-factor recovery"}},nav:{back:"Назад",chat:"Локальный чат",mentions:"Упоминания",interactions:"Взаимодействия",public_tl:"Публичная лента",timeline:"Лента",twkn:"Федеративная лента"},notifications:{broken_favorite:"Неизвестный статус, ищем...",favorited_you:"нравится ваш статус",followed_you:"начал(а) читать вас",load_older:"Загрузить старые уведомления",notifications:"Уведомления",read:"Прочесть",repeated_you:"повторил(а) ваш статус"},interactions:{favs_repeats:"Повторы и фавориты",follows:"Новые подписки",load_older:"Загрузить старые взаимодействия"},post_status:{account_not_locked_warning:"Ваш аккаунт не {0}. Кто угодно может зафоловить вас чтобы прочитать посты только для подписчиков",account_not_locked_warning_link:"залочен",attachments_sensitive:"Вложения содержат чувствительный контент",content_warning:"Тема (не обязательно)",default:"Что нового?",direct_warning:"Этот пост будет виден только упомянутым пользователям",posting:"Отправляется",scope_notice:{public:"Этот пост будет виден всем",private:"Этот пост будет виден только вашим подписчикам",unlisted:"Этот пост не будет виден в публичной и федеративной ленте"},scope:{direct:"Личное - этот пост видят только те кто в нём упомянут",private:"Для подписчиков - этот пост видят только подписчики",public:"Публичный - этот пост виден всем",unlisted:"Непубличный - этот пост не виден на публичных лентах"}},registration:{bio:"Описание",email:"Email",fullname:"Отображаемое имя",password_confirm:"Подтверждение пароля",registration:"Регистрация",token:"Код приглашения",validations:{username_required:"не должно быть пустым",fullname_required:"не должно быть пустым",email_required:"не должен быть пустым",password_required:"не должен быть пустым",password_confirmation_required:"не должно быть пустым",password_confirmation_match:"должно совпадать с паролем"}},settings:{enter_current_password_to_confirm:"Введите свой текущий пароль",mfa:{otp:"OTP",setup_otp:"Настройка OTP",wait_pre_setup_otp:"предварительная настройка OTP",confirm_and_enable:"Подтвердить и включить OTP",title:"Двухфакторная аутентификация",generate_new_recovery_codes:"Получить новые коды востановления",warning_of_generate_new_codes:"После получения новых кодов восстановления, старые больше не будут работать.",recovery_codes:"Коды восстановления.",waiting_a_recovery_codes:"Получение кодов восстановления ...",recovery_codes_warning:"Запишите эти коды и держите в безопасном месте - иначе вы их больше не увидите. Если вы потеряете доступ к OTP приложению - без резервных кодов вы больше не сможете залогиниться.",authentication_methods:"Методы аутентификации",scan:{title:"Сканирование",desc:"Используйте приложение для двухэтапной аутентификации для сканирования этого QR-код или введите текстовый ключ:",secret_code:"Ключ"},verify:{desc:"Чтобы включить двухэтапную аутентификации, введите код из вашего приложение для двухэтапной аутентификации:"}},attachmentRadius:"Прикреплённые файлы",attachments:"Вложения",autoload:"Включить автоматическую загрузку при прокрутке вниз",avatar:"Аватар",avatarAltRadius:"Аватары в уведомлениях",avatarRadius:"Аватары",background:"Фон",bio:"Описание",btnRadius:"Кнопки",cBlue:"Ответить, читать",cGreen:"Повторить",cOrange:"Нравится",cRed:"Отменить",change_password:"Сменить пароль",change_password_error:"Произошла ошибка при попытке изменить пароль.",changed_password:"Пароль изменён успешно.",collapse_subject:"Сворачивать посты с темой",confirm_new_password:"Подтверждение нового пароля",current_avatar:"Текущий аватар",current_password:"Текущий пароль",current_profile_banner:"Текущий баннер профиля",data_import_export_tab:"Импорт / Экспорт данных",delete_account:"Удалить аккаунт",delete_account_description:"Удалить ваш аккаунт и все ваши сообщения.",delete_account_error:"Возникла ошибка в процессе удаления вашего аккаунта. Если это повторяется, свяжитесь с администратором вашего сервера.",delete_account_instructions:"Введите ваш пароль в поле ниже для подтверждения удаления.",export_theme:"Сохранить Тему",filtering:"Фильтрация",filtering_explanation:"Все статусы, содержащие данные слова, будут игнорироваться, по одному в строке",follow_export:"Экспортировать читаемых",follow_export_button:"Экспортировать читаемых в файл .csv",follow_export_processing:"Ведётся обработка, скоро вам будет предложено загрузить файл",follow_import:"Импортировать читаемых",follow_import_error:"Ошибка при импортировании читаемых.",follows_imported:"Список читаемых импортирован. Обработка займёт некоторое время..",foreground:"Передний план",general:"Общие",hide_attachments_in_convo:"Прятать вложения в разговорах",hide_attachments_in_tl:"Прятать вложения в ленте",hide_isp:"Скрыть серверную панель",import_followers_from_a_csv_file:"Импортировать читаемых из файла .csv",import_theme:"Загрузить Тему",inputRadius:"Поля ввода",checkboxRadius:"Чекбоксы",instance_default:"(по умолчанию: {value})",instance_default_simple:"(по умолчанию)",interface:"Интерфейс",interfaceLanguage:"Язык интерфейса",limited_availability:"Не доступно в вашем браузере",links:"Ссылки",lock_account_description:"Аккаунт доступен только подтверждённым подписчикам",loop_video:"Зациливать видео",loop_video_silent_only:'Зацикливать только беззвучные видео (т.е. "гифки" с Mastodon)',name:"Имя",name_bio:"Имя и описание",new_password:"Новый пароль",notification_visibility:"Показывать уведомления",notification_visibility_follows:"Подписки",notification_visibility_likes:"Лайки",notification_visibility_mentions:"Упоминания",notification_visibility_repeats:"Повторы",no_rich_text_description:"Убрать форматирование из всех постов",hide_follows_description:"Не показывать кого я читаю",hide_followers_description:"Не показывать кто читает меня",show_admin_badge:"Показывать значок администратора в моем профиле",show_moderator_badge:"Показывать значок модератора в моем профиле",nsfw_clickthrough:"Включить скрытие NSFW вложений",oauth_tokens:"OAuth токены",token:"Токен",refresh_token:"Рефреш токен",valid_until:"Годен до",revoke_token:"Удалить",panelRadius:"Панели",pause_on_unfocused:"Приостановить загрузку когда вкладка не в фокусе",presets:"Пресеты",profile_background:"Фон профиля",profile_banner:"Баннер профиля",profile_tab:"Профиль",radii_help:"Скругление углов элементов интерфейса (в пикселях)",replies_in_timeline:"Ответы в ленте",reply_link_preview:"Включить предварительный просмотр ответа при наведении мыши",reply_visibility_all:"Показывать все ответы",reply_visibility_following:"Показывать только ответы мне и тех на кого я подписан",reply_visibility_self:"Показывать только ответы мне",autohide_floating_post_button:"Автоматически скрывать кнопку постинга (в мобильной версии)",saving_err:"Не удалось сохранить настройки",saving_ok:"Сохранено",security_tab:"Безопасность",scope_copy:"Копировать видимость поста при ответе (всегда включено для Личных Сообщений)",minimal_scopes_mode:"Минимизировать набор опций видимости поста",set_new_avatar:"Загрузить новый аватар",set_new_profile_background:"Загрузить новый фон профиля",set_new_profile_banner:"Загрузить новый баннер профиля",settings:"Настройки",subject_input_always_show:"Всегда показывать поле ввода темы",stop_gifs:"Проигрывать GIF анимации только при наведении",streaming:"Включить автоматическую загрузку новых сообщений при прокрутке вверх",text:"Текст",theme:"Тема",theme_help:"Используйте шестнадцатеричные коды цветов (#rrggbb) для настройки темы.",theme_help_v2_1:'Вы так же можете перепоределить цвета определенных компонентов нажав соотв. галочку. Используйте кнопку "Очистить всё" чтобы снять все переопределения',theme_help_v2_2:"Под некоторыми полями ввода это идикаторы контрастности, наведите на них мышью чтобы узнать больше. Приспользовании прозрачности контраст расчитывается для наихудшего варианта.",tooltipRadius:"Всплывающие подсказки/уведомления",user_settings:"Настройки пользователя",values:{false:"нет",true:"да"},style:{switcher:{keep_color:"Оставить цвета",keep_shadows:"Оставить тени",keep_opacity:"Оставить прозрачность",keep_roundness:"Оставить скругление",keep_fonts:"Оставить шрифты",save_load_hint:'Опции "оставить..." позволяют сохранить текущие настройки при выборе другой темы или импорта её из файла. Так же они влияют на то какие компоненты будут сохранены при экспорте темы. Когда все галочки сняты все компоненты будут экспортированы.',reset:"Сбросить",clear_all:"Очистить всё",clear_opacity:"Очистить прозрачность"},common:{color:"Цвет",opacity:"Прозрачность",contrast:{hint:"Уровень контраста: {ratio}, что {level} {context}",level:{aa:"соответствует гайдлайну Level AA (минимальный)",aaa:"соответствует гайдлайну Level AAA (рекомендуемый)",bad:"не соответствует каким либо гайдлайнам"},context:{"18pt":"для крупного (18pt+) текста",text:"для текста"}}},common_colors:{_tab_label:"Общие",main:"Общие цвета",foreground_hint:'См. вкладку "Дополнительно" для более детального контроля',rgbo:"Иконки, акценты, ярылки"},advanced_colors:{_tab_label:"Дополнительно",alert:"Фон уведомлений",alert_error:"Ошибки",badge:"Фон значков",badge_notification:"Уведомления",panel_header:"Заголовок панели",top_bar:"Верняя полоска",borders:"Границы",buttons:"Кнопки",inputs:"Поля ввода",faint_text:"Маловажный текст"},radii:{_tab_label:"Скругление"},shadows:{_tab_label:"Светотень",component:"Компонент",override:"Переопределить",shadow_id:"Тень №{value}",blur:"Размытие",spread:"Разброс",inset:"Внутренняя",hint:"Для теней вы так же можете использовать --variable в качестве цвета чтобы использовать CSS3-переменные. В таком случае прозрачность работать не будет.",filter_hint:{always_drop_shadow:"Внимание, эта тень всегда использует {0} когда браузер поддерживает это",drop_shadow_syntax:"{0} не поддерживает параметр {1} и ключевое слово {2}",avatar_inset:"Одновременное использование внутренних и внешних теней на (прозрачных) аватарках может дать не те результаты что вы ожидаете",spread_zero:"Тени с разбросом > 0 будут выглядеть как если бы разброс установлен в 0",inset_classic:"Внутренние тени будут использовать {0}"},components:{panel:"Панель",panelHeader:"Заголовок панели",topBar:"Верхняя полоска",avatar:"Аватарка (профиль)",avatarStatus:"Аватарка (в ленте)",popup:"Всплывающие подсказки",button:"Кнопки",buttonHover:"Кнопки (наведен курсор)",buttonPressed:"Кнопки (нажата)",buttonPressedHover:"Кнопки (нажата+наведен курсор)",input:"Поля ввода"}},fonts:{_tab_label:"Шрифты",help:'Выберите тип шрифта для использования в интерфейсе. При выборе варианта "другой" надо ввести название шрифта в точности как он называется в системе.',components:{interface:"Интерфейс",input:"Поля ввода",post:"Текст постов",postCode:"Моноширинный текст в посте (форматирование)"},family:"Шрифт",size:"Размер (в пикселях)",weight:"Ширина",custom:"Другой"},preview:{header:"Пример",content:"Контент",error:"Ошибка стоп 000",button:"Кнопка",text:"Еще немного {0} и масенькая {1}",mono:"контента",input:"Что нового?",faint_link:"Его придется убрать",fine_print:"Если проблемы остались — ваш гуртовщик мыши плохо стоит. {0}.",header_faint:"Все идет по плану",checkbox:"Я подтверждаю что не было ни единого разрыва",link:"ссылка"}}},timeline:{collapse:"Свернуть",conversation:"Разговор",error_fetching:"Ошибка при обновлении",load_older:"Загрузить старые статусы",no_retweet_hint:'Пост помечен как "только для подписчиков" или "личное" и поэтому не может быть повторён',repeated:"повторил(а)",show_new:"Показать новые",up_to_date:"Обновлено"},user_card:{block:"Заблокировать",blocked:"Заблокирован",favorites:"Понравившиеся",follow:"Читать",follow_sent:"Запрос отправлен!",follow_progress:"Запрашиваем…",follow_again:"Запросить еще заново?",follow_unfollow:"Перестать читать",followees:"Читаемые",followers:"Читатели",following:"Читаю",follows_you:"Читает вас",mute:"Игнорировать",muted:"Игнорирую",per_day:"в день",remote_follow:"Читать удалённо",statuses:"Статусы",admin_menu:{moderation:"Опции модератора",grant_admin:"Сделать администратором",revoke_admin:"Забрать права администратора",grant_moderator:"Сделать модератором",revoke_moderator:"Забрать права модератора",activate_account:"Активировать аккаунт",deactivate_account:"Деактивировать аккаунт",delete_account:"Удалить аккаунт",force_nsfw:"Отмечать посты пользователя как NSFW",strip_media:"Убирать вложения из постов пользователя",force_unlisted:"Не добавлять посты в публичные ленты",sandbox:"Посты доступны только для подписчиков",disable_remote_subscription:"Запретить подписываться с удаленных серверов",disable_any_subscription:"Запретить подписываться на пользователя",quarantine:"Не федерировать посты пользователя",delete_user:"Удалить пользователя",delete_user_confirmation:"Вы уверены? Это действие нельзя отменить."}},user_profile:{timeline_title:"Лента пользователя"}}},function(e){e.exports={chat:{title:"聊天"},features_panel:{chat:"聊天",gopher:"Gopher",media_proxy:"媒体代理",scope_options:"可见范围设置",text_limit:"文本长度限制",title:"功能",who_to_follow:"推荐关注"},finder:{error_fetching_user:"获取用户时发生错误",find_user:"寻找用户"},general:{apply:"应用",submit:"提交"},login:{login:"登录",logout:"登出",password:"密码",placeholder:"例如:lain",register:"注册",username:"用户名"},nav:{chat:"本地聊天",friend_requests:"关注请求",mentions:"提及",public_tl:"公共时间线",timeline:"时间线",twkn:"所有已知网络"},notifications:{broken_favorite:"未知的状态,正在搜索中...",favorited_you:"收藏了你的状态",followed_you:"关注了你",load_older:"加载更早的通知",notifications:"通知",read:"阅读!",repeated_you:"转发了你的状态"},post_status:{account_not_locked_warning:"你的帐号没有 {0}。任何人都可以关注你并浏览你的上锁内容。",account_not_locked_warning_link:"上锁",attachments_sensitive:"标记附件为敏感内容",content_type:{"text/plain":"纯文本"},content_warning:"主题(可选)",default:"刚刚抵达上海",direct_warning:"本条内容只有被提及的用户能够看到。",posting:"发送",scope:{direct:"私信 - 只发送给被提及的用户",private:"仅关注者 - 只有关注了你的人能看到",public:"公共 - 发送到公共时间轴",unlisted:"不公开 - 所有人可见,但不会发送到公共时间轴"}},registration:{bio:"简介",email:"电子邮箱",fullname:"全名",password_confirm:"确认密码",registration:"注册",token:"邀请码"},settings:{attachmentRadius:"附件",attachments:"附件",autoload:"启用滚动到底部时的自动加载",avatar:"头像",avatarAltRadius:"头像(通知)",avatarRadius:"头像",background:"背景",bio:"简介",btnRadius:"按钮",cBlue:"蓝色(回复,关注)",cGreen:"绿色(转发)",cOrange:"橙色(收藏)",cRed:"红色(取消)",change_password:"修改密码",change_password_error:"修改密码的时候出了点问题。",changed_password:"成功修改了密码!",collapse_subject:"折叠带主题的内容",confirm_new_password:"确认新密码",current_avatar:"当前头像",current_password:"当前密码",current_profile_banner:"您当前的横幅图片",data_import_export_tab:"数据导入/导出",default_vis:"默认可见范围",delete_account:"删除账户",delete_account_description:"永久删除你的帐号和所有消息。",delete_account_error:"删除账户时发生错误,如果一直删除不了,请联系实例管理员。",delete_account_instructions:"在下面输入你的密码来确认删除账户",export_theme:"导出预置主题",filtering:"过滤器",filtering_explanation:"所有包含以下词汇的内容都会被隐藏,一行一个",follow_export:"导出关注",follow_export_button:"将关注导出成 csv 文件",follow_export_processing:"正在处理,过一会儿就可以下载你的文件了",follow_import:"导入关注",follow_import_error:"导入关注时错误",follows_imported:"关注已导入!尚需要一些时间来处理。",foreground:"前景",general:"通用",hide_attachments_in_convo:"在对话中隐藏附件",hide_attachments_in_tl:"在时间线上隐藏附件",hide_post_stats:"隐藏推文相关的统计数据(例如:收藏的次数)",hide_user_stats:"隐藏用户的统计数据(例如:关注者的数量)",import_followers_from_a_csv_file:"从 csv 文件中导入关注",import_theme:"导入预置主题",inputRadius:"输入框",instance_default:"(默认:{value})",interfaceLanguage:"界面语言",invalid_theme_imported:"您所选择的主题文件不被 Pleroma 支持,因此主题未被修改。",limited_availability:"在您的浏览器中无法使用",links:"链接",lock_account_description:"你需要手动审核关注请求",loop_video:"循环视频",loop_video_silent_only:"只循环没有声音的视频(例如:Mastodon 里的“GIF”)",name:"名字",name_bio:"名字及简介",new_password:"新密码",notification_visibility:"要显示的通知类型",notification_visibility_follows:"关注",notification_visibility_likes:"点赞",notification_visibility_mentions:"提及",notification_visibility_repeats:"转发",no_rich_text_description:"不显示富文本格式",nsfw_clickthrough:"将不和谐附件隐藏,点击才能打开",oauth_tokens:"OAuth令牌",token:"代币",refresh_token:"刷新令牌",valid_until:"有效期至",revoke_token:"撤消",panelRadius:"面板",pause_on_unfocused:"在离开页面时暂停时间线推送",presets:"预置",profile_background:"个人资料背景图",profile_banner:"横幅图片",profile_tab:"个人资料",radii_help:"设置界面边缘的圆角 (单位:像素)",replies_in_timeline:"时间线中的回复",reply_link_preview:"启用鼠标悬停时预览回复链接",reply_visibility_all:"显示所有回复",reply_visibility_following:"只显示发送给我的回复/发送给我关注的用户的回复",reply_visibility_self:"只显示发送给我的回复",saving_err:"保存设置时发生错误",saving_ok:"设置已保存",security_tab:"安全",set_new_avatar:"设置新头像",set_new_profile_background:"设置新的个人资料背景",set_new_profile_banner:"设置新的横幅图片",settings:"设置",stop_gifs:"鼠标悬停时播放GIF",streaming:"开启滚动到顶部时的自动推送",text:"文本",theme:"主题",theme_help:"使用十六进制代码(#rrggbb)来设置主题颜色。",tooltipRadius:"提醒",user_settings:"用户设置",values:{false:"否",true:"是"}},timeline:{collapse:"折叠",conversation:"对话",error_fetching:"获取更新时发生错误",load_older:"加载更早的状态",no_retweet_hint:"这条内容仅关注者可见,或者是私信,因此不能转发。",repeated:"已转发",show_new:"显示新内容",up_to_date:"已是最新"},user_card:{approve:"允许",block:"屏蔽",blocked:"已屏蔽!",deny:"拒绝",follow:"关注",followees:"正在关注",followers:"关注者",following:"正在关注!",follows_you:"关注了你!",mute:"隐藏",muted:"已隐藏",per_day:"每天",remote_follow:"跨站关注",statuses:"状态"},user_profile:{timeline_title:"用户时间线"},who_to_follow:{more:"更多",who_to_follow:"推荐关注"}}},,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=v(i(13)),o=v(i(10)),n=v(i(24)),s=v(i(28)),r=v(i(36)),l=v(i(30)),c=v(i(31)),u=v(i(9)),d=v(i(337)),p=v(i(685)),f=v(i(923)),m=i(435),h=i(237),_=v(i(226));function v(e){return e&&e.__esModule?e:{default:e}}var g,b,w,y,k,x,C,S,P,j,$,L,z=(g=(0,c.default)(l.default.mark(function e(t){var i,a,o,n,s,r,c,u,d,p,f=t.store;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,window.fetch("/api/statusnet/config.json");case 3:if(!(i=e.sent).ok){e.next=19;break}return e.next=7,i.json();case 7:return a=e.sent,o=a.site,n=o.name,s=o.closed,r=o.textlimit,c=o.uploadlimit,u=o.server,d=o.vapidPublicKey,p=o.safeDMMentionsEnabled,f.dispatch("setInstanceOption",{name:"name",value:n}),f.dispatch("setInstanceOption",{name:"registrationOpen",value:"0"===s}),f.dispatch("setInstanceOption",{name:"textlimit",value:parseInt(r)}),f.dispatch("setInstanceOption",{name:"server",value:u}),f.dispatch("setInstanceOption",{name:"safeDM",value:"0"!==p}),c&&(f.dispatch("setInstanceOption",{name:"uploadlimit",value:parseInt(c.uploadlimit)}),f.dispatch("setInstanceOption",{name:"avatarlimit",value:parseInt(c.avatarlimit)}),f.dispatch("setInstanceOption",{name:"backgroundlimit",value:parseInt(c.backgroundlimit)}),f.dispatch("setInstanceOption",{name:"bannerlimit",value:parseInt(c.bannerlimit)})),d&&f.dispatch("setInstanceOption",{name:"vapidPublicKey",value:d}),e.abrupt("return",a.site.pleromafe);case 19:throw i;case 20:e.next=26;break;case 22:e.prev=22,e.t0=e.catch(0),console.error("Could not load statusnet config, potentially fatal"),console.error(e.t0);case 26:case"end":return e.stop()}},e,void 0,[[0,22]])})),function(e){return g.apply(this,arguments)}),T=(b=(0,c.default)(l.default.mark(function e(){var t;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,window.fetch("/static/config.json");case 3:if(!(t=e.sent).ok){e.next=8;break}return e.abrupt("return",t.json());case 8:throw t;case 9:e.next=16;break;case 11:return e.prev=11,e.t0=e.catch(0),console.warn("Failed to load static/config.json, continuing without it."),console.warn(e.t0),e.abrupt("return",{});case 16:case"end":return e.stop()}},e,void 0,[[0,11]])})),function(){return b.apply(this,arguments)}),A=(w=(0,c.default)(l.default.mark(function e(t){var i,a,o,n,s=t.apiConfig,c=t.staticConfig,u=t.store;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=window.___pleromafe_dev_overrides||{},a=window.___pleromafe_mode.NODE_ENV,o={},i.staticConfigPreference&&"development"===a?(console.warn("OVERRIDING API CONFIG WITH STATIC CONFIG"),o=(0,r.default)({},s,c)):o=(0,r.default)({},c,s),(n=function(e){u.dispatch("setInstanceOption",{name:e,value:o[e]})})("nsfwCensorImage"),n("background"),n("hidePostStats"),n("hideUserStats"),n("hideFilteredStatuses"),n("logo"),u.dispatch("setInstanceOption",{name:"logoMask",value:void 0===o.logoMask||o.logoMask}),u.dispatch("setInstanceOption",{name:"logoMargin",value:void 0===o.logoMargin?0:o.logoMargin}),u.commit("authFlow/setInitialStrategy",o.loginMethod),n("redirectRootNoLogin"),n("redirectRootLogin"),n("showInstanceSpecificPanel"),n("minimalScopesMode"),n("hideMutedPosts"),n("collapseMessageWithSubject"),n("scopeCopy"),n("subjectLineBehavior"),n("postContentType"),n("alwaysShowSubjectInput"),n("noAttachmentLinks"),n("showFeaturesPanel"),o.chatDisabled?u.dispatch("disableChat"):u.dispatch("initializeSocket"),e.abrupt("return",u.dispatch("setTheme",o.theme));case 28:case"end":return e.stop()}},e,void 0)})),function(e){return w.apply(this,arguments)}),O=(y=(0,c.default)(l.default.mark(function e(t){var i,a,o=t.store;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,window.fetch("/static/terms-of-service.html");case 3:if(!(i=e.sent).ok){e.next=11;break}return e.next=7,i.text();case 7:a=e.sent,o.dispatch("setInstanceOption",{name:"tos",value:a}),e.next=12;break;case 11:throw i;case 12:e.next=18;break;case 14:e.prev=14,e.t0=e.catch(0),console.warn("Can't load TOS"),console.warn(e.t0);case 18:case"end":return e.stop()}},e,void 0,[[0,14]])})),function(e){return y.apply(this,arguments)}),I=(k=(0,c.default)(l.default.mark(function e(t){var i,a,o=t.store;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,window.fetch("/instance/panel.html");case 3:if(!(i=e.sent).ok){e.next=11;break}return e.next=7,i.text();case 7:a=e.sent,o.dispatch("setInstanceOption",{name:"instanceSpecificPanelContent",value:a}),e.next=12;break;case 11:throw i;case 12:e.next=18;break;case 14:e.prev=14,e.t0=e.catch(0),console.warn("Can't load instance panel"),console.warn(e.t0);case 18:case"end":return e.stop()}},e,void 0,[[0,14]])})),function(e){return k.apply(this,arguments)}),M=(x=(0,c.default)(l.default.mark(function e(t){var i,a,o,n=t.store;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,window.fetch("/static/emoji.json");case 3:if(!(i=e.sent).ok){e.next=12;break}return e.next=7,i.json();case 7:a=e.sent,o=(0,s.default)(a).map(function(e){return{displayText:e,imageUrl:!1,replacement:a[e]}}),n.dispatch("setInstanceOption",{name:"emoji",value:o}),e.next=13;break;case 12:throw i;case 13:e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),console.warn("Can't load static emoji"),console.warn(e.t0);case 19:case"end":return e.stop()}},e,void 0,[[0,15]])})),function(e){return x.apply(this,arguments)}),R=(C=(0,c.default)(l.default.mark(function e(t){var i,a,o,c,u=t.store;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,window.fetch("/api/pleroma/emoji.json");case 3:if(!(i=e.sent).ok){e.next=14;break}return e.next=7,i.json();case 7:a=e.sent,o=Array.isArray(a)?r.default.apply(Object,[{}].concat((0,n.default)(a))):a,c=(0,s.default)(o).map(function(e){var t=o[e].image_url;return{displayText:e,imageUrl:t?u.state.instance.server+t:o[e],replacement:":"+e+": "}}),u.dispatch("setInstanceOption",{name:"customEmoji",value:c}),u.dispatch("setInstanceOption",{name:"pleromaBackend",value:!0}),e.next=15;break;case 14:throw i;case 15:e.next=22;break;case 17:e.prev=17,e.t0=e.catch(0),u.dispatch("setInstanceOption",{name:"pleromaBackend",value:!1}),console.warn("Can't load custom emojis, maybe not a Pleroma instance?"),console.warn(e.t0);case 22:case"end":return e.stop()}},e,void 0,[[0,17]])})),function(e){return C.apply(this,arguments)}),N=(S=(0,c.default)(l.default.mark(function e(t){var i,a,n,s,r=t.store;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.state,a=r.commit,n=i.oauth,s=i.instance,e.abrupt("return",(0,h.getOrCreateApp)((0,o.default)({},n,{instance:s.server,commit:a})).then(function(e){return(0,h.getClientToken)((0,o.default)({},e,{instance:s.server}))}).then(function(e){a("setAppToken",e.access_token),a("setBackendInteractor",(0,_.default)(r.getters.getToken()))}));case 3:case"end":return e.stop()}},e,void 0)})),function(e){return S.apply(this,arguments)}),B=(P=(0,c.default)(l.default.mark(function e(t){var i,a,o,n,s,r,c,u=t.store;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,window.fetch("/nodeinfo/2.0.json");case 3:if(!(i=e.sent).ok){e.next=27;break}return e.next=7,i.json();case 7:a=e.sent,o=a.metadata,n=o.features,u.dispatch("setInstanceOption",{name:"mediaProxyAvailable",value:n.includes("media_proxy")}),u.dispatch("setInstanceOption",{name:"chatAvailable",value:n.includes("chat")}),u.dispatch("setInstanceOption",{name:"gopherAvailable",value:n.includes("gopher")}),u.dispatch("setInstanceOption",{name:"pollsAvailable",value:n.includes("polls")}),u.dispatch("setInstanceOption",{name:"pollLimits",value:o.pollLimits}),u.dispatch("setInstanceOption",{name:"restrictedNicknames",value:o.restrictedNicknames}),u.dispatch("setInstanceOption",{name:"postFormats",value:o.postFormats}),s=o.suggestions,u.dispatch("setInstanceOption",{name:"suggestionsEnabled",value:s.enabled}),u.dispatch("setInstanceOption",{name:"suggestionsWeb",value:s.web}),r=a.software,u.dispatch("setInstanceOption",{name:"backendVersion",value:r.version}),c=window.___pleromafe_commit_hash,u.dispatch("setInstanceOption",{name:"frontendVersion",value:c}),u.dispatch("setInstanceOption",{name:"tagPolicyAvailable",value:o.federation.mrf_policies.includes("TagPolicy")}),e.next=28;break;case 27:throw i;case 28:e.next=34;break;case 30:e.prev=30,e.t0=e.catch(0),console.warn("Could not load nodeinfo"),console.warn(e.t0);case 34:case"end":return e.stop()}},e,void 0,[[0,30]])})),function(e){return P.apply(this,arguments)}),F=(j=(0,c.default)(l.default.mark(function e(t){var i,o,n,s=t.store;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.default.all([z({store:s}),T()]);case 2:return i=e.sent,o=i[0],n=i[1],e.next=7,A({store:s,apiConfig:o,staticConfig:n}).then(N({store:s}));case 7:case"end":return e.stop()}},e,void 0)})),function(e){return j.apply(this,arguments)}),E=($=(0,c.default)(l.default.mark(function e(t){var i=t.store;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new a.default(function(){var e=(0,c.default)(l.default.mark(function e(t,a){return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!i.getters.getUserToken()){e.next=9;break}return e.prev=1,e.next=4,i.dispatch("loginUser",i.getters.getUserToken());case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log(e.t0);case 9:t();case 10:case"end":return e.stop()}},e,void 0,[[1,6]])}));return function(t,i){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}},e,void 0)})),function(e){return $.apply(this,arguments)}),U=(L=(0,c.default)(l.default.mark(function e(t){var i,o,n=t.store,s=t.i18n;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.state.config.customTheme&&(window.themeLoaded=!0,n.dispatch("setOption",{name:"customTheme",value:n.state.config.customTheme})),i=(0,m.windowWidth)(),n.dispatch("setMobileLayout",i<=800),e.next=5,a.default.all([E({store:n}),F({store:n}),O({store:n}),I({store:n}),M({store:n}),R({store:n}),B({store:n})]);case 5:return o=new d.default({mode:"history",routes:(0,p.default)(n),scrollBehavior:function(e,t,i){return!e.matched.some(function(e){return e.meta.dontScroll})&&(i||{x:0,y:0})}}),e.abrupt("return",new u.default({router:o,store:n,i18n:s,el:"#app",render:function(e){return e(f.default)}}));case 7:case"end":return e.stop()}},e,void 0)})),function(e){return L.apply(this,arguments)});t.default=U},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=k(i(686)),o=k(i(772)),n=k(i(773)),s=k(i(774)),r=k(i(775)),l=k(i(776)),c=k(i(785)),u=k(i(786)),d=k(i(800)),p=k(i(827)),f=k(i(856)),m=k(i(895)),h=k(i(899)),_=k(i(900)),v=k(i(102)),g=k(i(426)),b=k(i(428)),w=k(i(910)),y=k(i(913));function k(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return[{name:"root",path:"/",redirect:function(t){return(e.state.users.currentUser?e.state.instance.redirectRootLogin:e.state.instance.redirectRootNoLogin)||"/main/all"}},{name:"public-external-timeline",path:"/main/all",component:o.default},{name:"public-timeline",path:"/main/public",component:a.default},{name:"friends",path:"/main/friends",component:n.default},{name:"tag-timeline",path:"/tag/:tag",component:s.default},{name:"conversation",path:"/notice/:id",component:r.default,meta:{dontScroll:!0}},{name:"external-user-profile",path:"/users/:id",component:u.default},{name:"interactions",path:"/users/:username/interactions",component:l.default},{name:"dms",path:"/users/:username/dms",component:c.default},{name:"settings",path:"/settings",component:d.default},{name:"registration",path:"/registration",component:p.default},{name:"registration-token",path:"/registration/:token",component:p.default},{name:"friend-requests",path:"/friend-requests",component:m.default},{name:"user-settings",path:"/user-settings",component:f.default},{name:"notifications",path:"/:username/notifications",component:v.default},{name:"login",path:"/login",component:g.default},{name:"chat",path:"/chat",component:b.default,props:function(){return{floating:!1}}},{name:"oauth-callback",path:"/oauth-callback",component:h.default,props:function(e){return{code:e.query.code}}},{name:"user-search",path:"/user-search",component:_.default,props:function(e){return{query:e.query.query}}},{name:"who-to-follow",path:"/who-to-follow",component:w.default},{name:"about",path:"/about",component:y.default},{name:"user-profile",path:"/(users/)?:name",component:u.default}]}},function(e,t,i){"use strict";i.r(t);var a=i(104),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(263),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},function(e,t,i){var a=i(688);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("0084eb3d",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".timeline .loadmore-text{opacity:1}.new-status-notification{position:relative;margin-top:-1px;font-size:1.1em;border-width:1px 0 0;border-style:solid;border-color:var(--border,#222);padding:10px;z-index:1;background-color:#182230;background-color:var(--panel,#182230)}",""])},,,function(e,t,i){var a=i(692);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("ce58e9e8",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,'.status-body{flex:1;min-width:0}.status-preview.status-el{border-color:#222;border:1px solid var(--border,#222)}.status-preview-container{position:relative;max-width:100%}.status-pin{padding:.75em .75em 0;display:flex;align-items:center;justify-content:flex-end}.status-preview{position:absolute;max-width:95%;display:flex;background-color:#121a24;background-color:var(--bg,#121a24);border-color:#222;border:1px solid var(--border,#222);border-radius:5px;border-radius:var(--tooltipRadius,5px);box-shadow:2px 2px 3px rgba(0,0,0,.5);box-shadow:var(--popupShadow);margin-top:.25em;margin-left:.5em;z-index:50}.status-preview .status{flex:1;border:0;min-width:15em}.status-preview-loading{display:block;min-width:15em;padding:1em;text-align:center;border-width:1px;border-style:solid}.status-preview-loading i{font-size:2em}.media-left{margin-right:.75em}.status-el{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;border-left-width:0;min-width:0;border-color:#222;border-color:var(--border,#222);border-left:4px red;border-left:4px var(--cRed,red)}.status-el_focused{background-color:#151e2a;background-color:var(--lightBg,#151e2a)}.timeline .status-el{border-bottom-width:1px;border-bottom-style:solid}.status-el .media-body{flex:1;padding:0}.status-el .status-usercard{margin-bottom:.75em}.status-el .user-name{white-space:nowrap;font-size:14px;overflow:hidden;flex-shrink:0;max-width:85%;font-weight:700}.status-el .user-name img{width:14px;height:14px;vertical-align:middle;object-fit:contain}.status-el .media-heading{padding:0;vertical-align:bottom;flex-basis:100%;margin-bottom:.5em}.status-el .media-heading a{display:inline-block;word-break:break-all}.status-el .media-heading small{font-weight:lighter}.status-el .media-heading .heading-name-row{padding:0;display:flex;justify-content:space-between;line-height:18px}.status-el .media-heading .heading-name-row .name-and-account-name{display:flex;min-width:0}.status-el .media-heading .heading-name-row .user-name{flex-shrink:1;margin-right:.4em;overflow:hidden;text-overflow:ellipsis}.status-el .media-heading .heading-name-row .account-name{min-width:1.6em;margin-right:.4em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1 1 0}.status-el .media-heading .heading-right{display:flex;flex-shrink:0}.status-el .media-heading .timeago{margin-right:.2em}.status-el .media-heading .heading-reply-row{align-content:baseline;font-size:12px;line-height:18px;max-width:100%;display:flex;flex-wrap:wrap;align-items:stretch}.status-el .media-heading .heading-reply-row a{max-width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.status-el .media-heading .reply-to-and-accountname{display:flex;height:18px;margin-right:.5em;overflow:hidden;max-width:100%}.status-el .media-heading .reply-to-and-accountname .icon-reply{transform:scaleX(-1)}.status-el .media-heading .reply-info,.status-el .media-heading .reply-to{display:flex}.status-el .media-heading .reply-to-text{overflow:hidden;text-overflow:ellipsis;margin:0 .4em 0 .2em}.status-el .media-heading .replies-separator{margin-left:.4em}.status-el .media-heading .replies{line-height:18px;font-size:12px;display:flex;flex-wrap:wrap}.status-el .media-heading .replies>*{margin-right:.4em}.status-el .media-heading .reply-link{height:17px}.status-el .tall-status{position:relative;height:220px;overflow-x:hidden;overflow-y:hidden}.status-el .tall-status-hider{display:inline-block;word-break:break-all;position:absolute;height:70px;margin-top:150px;width:100%;text-align:center;line-height:110px;background:linear-gradient(180deg,transparent,#121a24 80%);background:linear-gradient(180deg,transparent,var(--bg,#121a24) 80%)}.status-el .tall-status-hider_focused{background:linear-gradient(180deg,transparent,#151e2a 80%);background:linear-gradient(180deg,transparent,var(--lightBg,#151e2a) 80%)}.status-el .cw-status-hider,.status-el .status-unhider{width:100%;text-align:center;display:inline-block;word-break:break-all}.status-el .status-content{font-family:var(--postFont,sans-serif);line-height:1.4em}.status-el .status-content img,.status-el .status-content video{max-width:100%;max-height:400px;vertical-align:middle;object-fit:contain}.status-el .status-content img.emoji,.status-el .status-content video.emoji{width:32px;height:32px}.status-el .status-content blockquote{margin:.2em 0 .2em 2em;font-style:italic}.status-el .status-content pre{overflow:auto}.status-el .status-content code,.status-el .status-content kbd,.status-el .status-content pre,.status-el .status-content samp,.status-el .status-content var{font-family:var(--postCodeFont,monospace)}.status-el .status-content p{margin:0 0 1em}.status-el .status-content p:last-child{margin:0}.status-el .status-content h1{font-size:1.1em;line-height:1.2em;margin:1.4em 0}.status-el .status-content h2{font-size:1.1em;margin:1em 0}.status-el .status-content h3{font-size:1em;margin:1.2em 0}.status-el .status-content h4{margin:1.1em 0}.status-el .retweet-info{padding:.4em .75em;margin:0}.status-el .retweet-info .avatar.still-image{border-radius:10px;border-radius:var(--avatarAltRadius,10px);margin-left:28px;width:20px;height:20px}.status-el .retweet-info .media-body{font-size:1em;line-height:22px;display:flex;align-content:center;flex-wrap:wrap}.status-el .retweet-info .media-body .user-name{font-weight:700;overflow:hidden;text-overflow:ellipsis}.status-el .retweet-info .media-body .user-name img{width:14px;height:14px;vertical-align:middle;object-fit:contain}.status-el .retweet-info .media-body i{padding:0 .2em}.status-el .retweet-info .media-body a{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-fadein{animation-duration:.4s;animation-name:fadein}@keyframes fadein{0%{opacity:0}to{opacity:1}}.greentext{color:green}.status-conversation{border-left-style:solid}.status-actions{width:100%;display:flex;margin-top:.75em}.status-actions div,.status-actions favorite-button{max-width:4em;flex:1}.button-icon.icon-reply.button-icon-active,.button-icon.icon-reply:not(.button-icon-disabled):hover{color:#0095ff;color:var(--cBlue,#0095ff);cursor:pointer}.status:hover .animated.avatar canvas{display:none}.status:hover .animated.avatar img{visibility:visible}.status{display:flex;padding:.75em}.status.is-retweet{padding-top:0}.status-conversation:last-child{border-bottom:none}.muted{padding:.25em .5em}.muted button{margin-left:auto}.muted .muteWords{margin-left:10px}a.unmute{display:block;margin-left:auto}.reply-body{flex:1}.timeline :not(.panel-disabled)>.status-el:last-child{border-radius:0 0 10px 10px;border-radius:0 0 var(--panelRadius,10px) var(--panelRadius,10px);border-bottom:none}.favs-repeated-users{margin-top:.75em}.favs-repeated-users .stats{width:100%;display:flex;line-height:1em}.favs-repeated-users .stats .stat-count{margin-right:.75em}.favs-repeated-users .stats .stat-count .stat-title{color:var(--faint,hsla(240,1%,73%,.5));font-size:12px;text-transform:uppercase;position:relative}.favs-repeated-users .stats .stat-count .stat-number{font-weight:bolder;font-size:16px;line-height:1em}.favs-repeated-users .stats .avatar-row{flex:1;overflow:hidden;position:relative;display:flex;align-items:center}.favs-repeated-users .stats .avatar-row:before{content:"";position:absolute;height:100%;width:1px;left:0;background-color:var(--faint,hsla(240,1%,73%,.5))}@media (max-width:800px){.status-el .retweet-info .avatar.still-image{margin-left:20px}.status{max-width:100%}.status .avatar.still-image{width:40px;height:40px}.status .avatar.still-image.avatar-compact{width:32px;height:32px}}',""])},,function(e,t,i){var a=i(695);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("60b296ca",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".attachments{display:flex;flex-wrap:wrap}.attachments .attachment.media-upload-container{flex:0 0 auto;max-height:200px;max-width:100%;display:flex;align-items:center}.attachments .attachment.media-upload-container video{max-width:100%}.attachments .placeholder{margin-right:8px;margin-bottom:4px}.attachments .nsfw-placeholder{cursor:pointer}.attachments .nsfw-placeholder.loading{cursor:progress}.attachments .attachment{position:relative;margin-top:.5em;align-self:flex-start;line-height:0;border-radius:10px;border-radius:var(--attachmentRadius,10px);border-color:#222;border:1px solid var(--border,#222);overflow:hidden}.attachments .non-gallery.attachment.video{flex:1 0 40%}.attachments .non-gallery.attachment .nsfw{height:260px}.attachments .non-gallery.attachment .small{height:120px;flex-grow:0}.attachments .non-gallery.attachment .video{height:260px;display:flex}.attachments .non-gallery.attachment video{max-height:100%;object-fit:contain}.attachments .fullwidth{flex-basis:100%}.attachments.video{line-height:0}.attachments .video-container{display:flex;max-height:100%}.attachments .video{width:100%}.attachments .play-icon{position:absolute;font-size:64px;top:calc(50% - 32px);left:calc(50% - 32px);color:hsla(0,0%,100%,.75);text-shadow:0 0 2px rgba(0,0,0,.4)}.attachments .play-icon:before{margin:0}.attachments.html{flex-basis:90%;width:100%;display:flex}.attachments .hider{position:absolute;right:0;white-space:nowrap;margin:10px;padding:5px;background:hsla(0,0%,90%,.6);font-weight:700;z-index:4;line-height:1;border-radius:5px;border-radius:var(--tooltipRadius,5px)}.attachments video{z-index:0}.attachments audio{width:100%}.attachments img.media-upload{line-height:0;max-height:200px;max-width:100%}.attachments .oembed{line-height:1.2em;flex:1 0 100%;width:100%;margin-right:15px;display:flex}.attachments .oembed img{width:100%}.attachments .oembed .image{flex:1}.attachments .oembed .image img{border:0;border-radius:5px;height:100%;object-fit:cover}.attachments .oembed .text{flex:2;margin:8px;word-break:break-all}.attachments .oembed .text h1{font-size:14px;margin:0}.attachments .image-attachment{width:100%;height:100%}.attachments .image-attachment.hidden{display:none}.attachments .image-attachment .nsfw{object-fit:cover;width:100%;height:100%}.attachments .image-attachment img{image-orientation:from-image}",""])},function(e,t,i){var a=i(697);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("24ab97e0",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,'.still-image{position:relative;line-height:0;overflow:hidden;width:100%;height:100%}.still-image:hover canvas{display:none}.still-image img{width:100%;height:100%;object-fit:contain}.still-image.animated:hover:before,.still-image.animated img{visibility:hidden}.still-image.animated:hover img{visibility:visible}.still-image.animated:before{content:"gif";position:absolute;line-height:10px;font-size:10px;top:5px;left:5px;background:hsla(0,0%,50%,.5);color:#fff;display:block;padding:2px 4px;border-radius:5px;border-radius:var(--tooltipRadius,5px);z-index:2}.still-image canvas{position:absolute;top:0;bottom:0;left:0;right:0;width:100%;height:100%;object-fit:contain}',""])},function(e,t,i){e.exports=i.p+"static/img/nsfw.74818f9.png"},function(e,t,i){"use strict";i.r(t);var a=i(110),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(241),r=i(0);var l=function(e){i(700)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(701);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("7d4fb47f",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".fav-active{cursor:pointer;animation-duration:.6s}.fav-active:hover,.favorite-button.icon-star{color:orange;color:var(--cOrange,orange)}",""])},function(e,t,i){"use strict";i.r(t);var a=i(111),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(242),r=i(0);var l=function(e){i(703)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(704);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("2c52cbcb",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".rt-active{cursor:pointer;animation-duration:.6s}.icon-retweet.retweeted,.rt-active:hover{color:#0fa00f;color:var(--cGreen,#0fa00f)}",""])},function(e,t,i){"use strict";i.r(t);var a=i(112),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(244),r=i(0);var l=function(e){i(706)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(707);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("1a8b173f",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".poll .votes{display:flex;flex-direction:column;margin:0 0 .5em}.poll .poll-option{margin:.75em .5em}.poll .option-result{height:100%;display:flex;flex-direction:row;position:relative;color:#b9b9ba;color:var(--lightText,#b9b9ba)}.poll .option-result-label{display:flex;align-items:center;padding:.1em .25em;z-index:1}.poll .result-percentage{width:3.5em;flex-shrink:0}.poll .result-fill{height:100%;position:absolute;background-color:#151e2a;background-color:var(--linkBg,#151e2a);border-radius:10px;border-radius:var(--panelRadius,10px);top:0;left:0;transition:width .5s}.poll .option-vote{display:flex;align-items:center}.poll input{width:3.5em}.poll .footer{display:flex;align-items:center}.poll.loading *{cursor:progress}.poll .poll-vote-button{padding:0 .5em;margin-right:.5em}",""])},function(e,t,i){"use strict";i.r(t);var a=i(114),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(246),r=i(0);var l=function(e){i(709)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(710);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("0d2c533c",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".popper-wrapper{z-index:8}.popper-wrapper .popper__arrow{width:0;height:0;border-style:solid;position:absolute;margin:5px}.popper-wrapper[x-placement^=top]{margin-bottom:5px}.popper-wrapper[x-placement^=top] .popper__arrow{border-width:5px 5px 0;border-color:#121a24 transparent transparent;border-color:var(--bg,#121a24) transparent transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.popper-wrapper[x-placement^=bottom]{margin-top:5px}.popper-wrapper[x-placement^=bottom] .popper__arrow{border-width:0 5px 5px;border-color:transparent transparent #121a24;border-color:transparent transparent var(--bg,#121a24);top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.popper-wrapper[x-placement^=right]{margin-left:5px}.popper-wrapper[x-placement^=right] .popper__arrow{border-width:5px 5px 5px 0;border-color:transparent #121a24 transparent transparent;border-color:transparent var(--bg,#121a24) transparent transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.popper-wrapper[x-placement^=left]{margin-right:5px}.popper-wrapper[x-placement^=left] .popper__arrow{border-width:5px 0 5px 5px;border-color:transparent transparent transparent #121a24;border-color:transparent transparent transparent var(--bg,#121a24);right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.dropdown-menu{display:block;padding:.5rem 0;font-size:1rem;text-align:left;list-style:none;max-width:100vw;z-index:10;box-shadow:1px 1px 4px rgba(0,0,0,.6);box-shadow:var(--panelShadow);border:none;border-radius:4px;border-radius:var(--btnRadius,4px);background-color:#121a24;background-color:var(--bg,#121a24)}.dropdown-menu .dropdown-divider{height:0;margin:.5rem 0;overflow:hidden;border-top:1px solid #222;border-top:1px solid var(--border,#222)}.dropdown-menu .dropdown-item{line-height:21px;margin-right:5px;overflow:auto;display:block;padding:.25rem 1rem .25rem 1.5rem;clear:both;font-weight:400;text-align:inherit;white-space:normal;border:none;border-radius:0;background-color:transparent;box-shadow:none;width:100%;height:100%}.dropdown-menu .dropdown-item-icon{padding-left:.5rem}.dropdown-menu .dropdown-item-icon i{margin-right:.25rem}.dropdown-menu .dropdown-item:hover{background-color:#182230;background-color:var(--btn,#182230);box-shadow:none}.icon-ellipsis{cursor:pointer}.icon-ellipsis.icon-clicked,.icon-ellipsis:hover{color:#b9b9ba;color:var(--text,#b9b9ba)}",""])},,,,function(e,t,i){var a=i(715);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("ce7966a8",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".tribute-container ul{padding:0}.tribute-container ul li{display:flex;align-items:center}.tribute-container img{padding:3px;width:16px;height:16px;border-radius:10px;border-radius:var(--avatarAltRadius,10px)}.post-status-form .visibility-tray{display:flex;justify-content:space-between;flex-direction:row-reverse;padding-top:5px}.post-status-form .form-bottom{display:flex;padding:.5em;height:32px}.post-status-form .form-bottom button{width:10em}.post-status-form .form-bottom p{margin:.35em;padding:.35em;display:flex}.post-status-form .form-bottom-left{display:flex;flex:1}.post-status-form .text-format .only-format{color:hsla(240,1%,73%,.5);color:var(--faint,hsla(240,1%,73%,.5))}.post-status-form .poll-icon{font-size:26px;flex:1}.post-status-form .poll-icon .selected{color:#b9b9ba;color:var(--lightText,#b9b9ba)}.post-status-form .icon-chart-bar{cursor:pointer}.post-status-form .error{text-align:center}.post-status-form .media-upload-wrapper{flex:0 0 auto;max-width:100%;min-width:50px;margin-right:.2em;margin-bottom:.5em}.post-status-form .media-upload-wrapper .icon-cancel{display:inline-block;position:static;margin:0;padding-bottom:0;margin-left:10px;margin-left:var(--attachmentRadius,10px);background-color:#182230;background-color:var(--btn,#182230);border-bottom-left-radius:0;border-bottom-right-radius:0}.post-status-form .attachments{padding:0 .5em}.post-status-form .attachments .attachment{margin:0;position:relative;flex:0 0 auto;border:1px solid #222;border:1px solid var(--border,#222);text-align:center}.post-status-form .attachments .attachment audio{min-width:300px;flex:1 0 auto}.post-status-form .attachments .attachment a{display:block;text-align:left;line-height:1.2;padding:.5em}.post-status-form .attachments i{position:absolute;margin:10px;padding:5px;background:hsla(0,0%,90%,.6);border-radius:10px;border-radius:var(--attachmentRadius,10px);font-weight:700}.post-status-form form{display:flex;flex-direction:column;padding:.6em}.post-status-form .form-group{display:flex;flex-direction:column;padding:.25em .5em .5em;line-height:24px}.post-status-form .form-post-body,.post-status-form form textarea.form-cw{line-height:16px;resize:none;overflow:hidden;transition:min-height .2s .1s;min-height:1px}.post-status-form .form-post-body{height:16px;padding-bottom:1.75em;box-sizing:content-box}.post-status-form .form-post-body:focus{min-height:48px}.post-status-form .main-input{position:relative}.post-status-form .character-counter{position:absolute;bottom:0;right:0;padding:0;margin:0 .5em}.post-status-form .character-counter.error{color:red;color:var(--cRed,red)}.post-status-form .btn{cursor:pointer}.post-status-form .btn[disabled]{cursor:not-allowed}.post-status-form .icon-cancel{cursor:pointer;z-index:4}",""])},function(e,t,i){"use strict";i.r(t);var a=i(117),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(247),r=i(0);var l=function(e){i(717)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(718);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("1c7320f0",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".media-upload{font-size:26px;min-width:50px}.icon-upload{cursor:pointer}",""])},function(e,t,i){var a=i(720);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("770eecd8",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".scope-selector i{font-size:1.2em;cursor:pointer}.scope-selector i.selected{color:#b9b9ba;color:var(--lightText,#b9b9ba)}",""])},function(e,t,i){var a=i(722);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("54a8ac0d",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".emoji-input{display:flex;flex-direction:column}.emoji-input .autocomplete-panel{position:absolute;z-index:9;margin-top:2px}.emoji-input .autocomplete-panel.hide{display:none}.emoji-input .autocomplete-panel-body{margin:0 .5em;border-radius:5px;border-radius:var(--tooltipRadius,5px);box-shadow:1px 2px 4px rgba(0,0,0,.5);box-shadow:var(--popupShadow);min-width:75%;background:#121a24;background:var(--bg,#121a24);color:#b9b9ba;color:var(--lightText,#b9b9ba)}.emoji-input .autocomplete-item{display:flex;cursor:pointer;padding:.2em .4em;border-bottom:1px solid rgba(0,0,0,.4);height:32px}.emoji-input .autocomplete-item .image{width:32px;height:32px;line-height:32px;text-align:center;font-size:32px;margin-right:4px}.emoji-input .autocomplete-item .image img{width:32px;height:32px;object-fit:contain}.emoji-input .autocomplete-item .label{display:flex;flex-direction:column;justify-content:center;margin:0 .1em 0 .2em}.emoji-input .autocomplete-item .label .displayText{line-height:1.5}.emoji-input .autocomplete-item .label .detailText{font-size:9px;line-height:9px}.emoji-input .autocomplete-item.highlighted{background-color:#182230;background-color:var(--lightBg,#182230)}.emoji-input input,.emoji-input textarea{flex:1 0 auto}",""])},,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitIntoWords=t.addPositionToWords=t.wordAtPosition=t.replaceWord=void 0;var a=n(i(224)),o=n(i(231));function n(e){return e&&e.__esModule?e:{default:e}}var s=t.replaceWord=function(e,t,i){return e.slice(0,t.start)+i+e.slice(t.end)},r=t.wordAtPosition=function(e,t){var i=c(e),o=l(i);return(0,a.default)(o,function(e){var i=e.start,a=e.end;return i<=t&&a>t})},l=t.addPositionToWords=function(e){return(0,o.default)(e,function(e,t){var i={word:t,start:0,end:t.length};if(e.length>0){var a=e.pop();i.start+=a.end,i.end+=a.end,e.push(a)}return e.push(i),e},[])},c=t.splitIntoWords=function(e){var t=/[@#:]+$/,i=e.split(/\b/);return(0,o.default)(i,function(e,i){if(e.length>0){var a=e.pop(),o=a.match(t);o&&(a=a.replace(t,""),i=o[0]+i),e.push(a)}return e.push(i),e},[])},u={wordAtPosition:r,addPositionToWords:l,splitIntoWords:c,replaceWord:s};t.default=u},,function(e,t,i){"use strict";i.r(t);var a=i(120),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(250),r=i(0);var l=function(e){i(727)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(728);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("60db0262",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".poll-form{display:flex;flex-direction:column;padding:0 .5em .5em}.poll-form .add-option{align-self:flex-start;padding-top:.25em;cursor:pointer}.poll-form .poll-option{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:.25em}.poll-form .input-container{width:100%}.poll-form .input-container input{padding-right:2.5em;width:100%}.poll-form .icon-container{width:2em;margin-left:-2em;z-index:1}.poll-form .poll-type-expiry{margin-top:.5em;display:flex;width:100%}.poll-form .poll-type{margin-right:.75em;flex:1 1 60%}.poll-form .poll-type .select{border:none;box-shadow:none;background-color:transparent}.poll-form .poll-expiry{display:flex}.poll-form .poll-expiry .expiry-amount{width:3em;text-align:right}.poll-form .poll-expiry .expiry-unit{border:none;box-shadow:none;background-color:transparent}",""])},function(e,t,i){var a=i(730);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("0060b6a4",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".user-card{background-size:cover;overflow:hidden}.user-card .panel-heading{padding:.5em 0;text-align:center;box-shadow:none;background:transparent;flex-direction:column;align-items:stretch}.user-card .panel-body{word-wrap:break-word;background:linear-gradient(180deg,transparent,#121a24 80%);background:linear-gradient(180deg,transparent,var(--bg,#121a24) 80%)}.user-card p{margin-bottom:0}.user-card-bio{text-align:center}.user-card-bio img{object-fit:contain;vertical-align:middle;max-width:100%;max-height:400px}.user-card-bio img.emoji{width:32px;height:32px}.user-card-rounded-t{border-top-left-radius:10px;border-top-left-radius:var(--panelRadius,10px);border-top-right-radius:10px;border-top-right-radius:var(--panelRadius,10px)}.user-card-rounded{border-radius:10px;border-radius:var(--panelRadius,10px)}.user-card-bordered{border-color:#222;border:1px solid var(--border,#222)}.user-info{color:#b9b9ba;color:var(--lightText,#b9b9ba);padding:0 26px}.user-info .container{padding:16px 0 6px;display:flex;max-height:56px}.user-info .container .avatar{flex:1 0 100%;width:56px;height:56px;box-shadow:0 1px 8px rgba(0,0,0,.75);box-shadow:var(--avatarShadow);object-fit:cover}.user-info:hover .animated.avatar canvas{display:none}.user-info:hover .animated.avatar img{visibility:visible}.user-info .usersettings{color:#b9b9ba;color:var(--lightText,#b9b9ba);opacity:.8}.user-info .user-summary{display:block;margin-left:.6em;text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;z-index:1}.user-info .user-summary img{width:26px;height:26px;vertical-align:middle;object-fit:contain}.user-info .user-summary .top-line{display:flex}.user-info .user-name{text-overflow:ellipsis;overflow:hidden;flex:1 1 auto;margin-right:1em;font-size:15px}.user-info .user-name img{object-fit:contain;height:16px;width:16px;vertical-align:middle}.user-info .bottom-line{display:flex;font-weight:light;font-size:15px}.user-info .bottom-line .user-screen-name{min-width:1px;flex:0 1 auto;text-overflow:ellipsis;overflow:hidden;color:#b9b9ba;color:var(--lightText,#b9b9ba)}.user-info .bottom-line .dailyAvg{min-width:1px;flex:0 0 auto;margin-left:1em;font-size:.7em;color:#b9b9ba;color:var(--text,#b9b9ba)}.user-info .bottom-line .staff{flex:none;text-transform:capitalize;color:#b9b9ba;color:var(--btnText,#b9b9ba);background-color:#182230;background-color:var(--btn,#182230)}.user-info .user-meta{margin-bottom:.15em;display:flex;align-items:baseline;font-size:14px;line-height:22px;flex-wrap:wrap}.user-info .user-meta .following{flex:1 0 auto;margin:0;margin-bottom:.25em;text-align:left}.user-info .user-meta .highlighter{flex:0 1 auto;display:flex;flex-wrap:wrap;margin-right:-.5em;align-self:start}.user-info .user-meta .highlighter .userHighlightCl{padding:2px 10px;flex:1 0 auto}.user-info .user-meta .highlighter .userHighlightSel,.user-info .user-meta .highlighter .userHighlightSel.select{padding-top:0;padding-bottom:0;flex:1 0 auto}.user-info .user-meta .highlighter .userHighlightSel.select i{line-height:22px}.user-info .user-meta .highlighter .userHighlightText{width:70px;flex:1 0 auto}.user-info .user-meta .highlighter .userHighlightCl,.user-info .user-meta .highlighter .userHighlightSel,.user-info .user-meta .highlighter .userHighlightSel.select,.user-info .user-meta .highlighter .userHighlightText{height:22px;vertical-align:top;margin-right:.5em;margin-bottom:.25em}.user-info .user-interactions{display:flex;flex-flow:row wrap;justify-content:space-between;margin-right:-.75em}.user-info .user-interactions div{flex:1 0 0;margin-right:.75em;margin-bottom:.6em;white-space:nowrap}.user-info .user-interactions .follow,.user-info .user-interactions .mute{max-width:220px;min-height:28px}.user-info .user-interactions button{width:100%;height:100%;margin:0}.user-info .user-interactions .remote-button{height:28px!important;width:92%}.user-info .user-interactions .pressed{border-bottom-color:hsla(0,0%,100%,.2);border-top-color:rgba(0,0,0,.2)}.user-counts{display:flex;line-height:16px;padding:.5em 1.5em 0;text-align:center;justify-content:space-between;color:#b9b9ba;color:var(--lightText,#b9b9ba);flex-wrap:wrap}.user-count{flex:1 0 auto;padding:.5em 0;margin:0 .5em}.user-count h5{font-size:1em;font-weight:bolder;margin:0 0 .25em}.user-count a{text-decoration:none}",""])},function(e,t,i){var a=i(732);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("6b6f3617",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".avatar.still-image{width:48px;height:48px;box-shadow:var(--avatarStatusShadow);border-radius:4px;border-radius:var(--avatarRadius,4px)}.avatar.still-image img{width:100%;height:100%}.avatar.still-image.better-shadow{box-shadow:var(--avatarStatusShadowInset);filter:var(--avatarStatusShadowFilter)}.avatar.still-image.animated:before{display:none}.avatar.still-image.avatar-compact{width:32px;height:32px;border-radius:10px;border-radius:var(--avatarAltRadius,10px)}",""])},function(e,t,i){var a=i(734);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("4852bbb4",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".remote-follow{max-width:220px}.remote-follow .remote-button{width:100%;min-height:28px}",""])},function(e,t,i){var a=i(736);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("2c0672fc",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,'.popper-wrapper{z-index:8}.popper-wrapper .popper__arrow{width:0;height:0;border-style:solid;position:absolute;margin:5px}.popper-wrapper[x-placement^=top]{margin-bottom:5px}.popper-wrapper[x-placement^=top] .popper__arrow{border-width:5px 5px 0;border-color:#121a24 transparent transparent;border-color:var(--bg,#121a24) transparent transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.popper-wrapper[x-placement^=bottom]{margin-top:5px}.popper-wrapper[x-placement^=bottom] .popper__arrow{border-width:0 5px 5px;border-color:transparent transparent #121a24;border-color:transparent transparent var(--bg,#121a24);top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.popper-wrapper[x-placement^=right]{margin-left:5px}.popper-wrapper[x-placement^=right] .popper__arrow{border-width:5px 5px 5px 0;border-color:transparent #121a24 transparent transparent;border-color:transparent var(--bg,#121a24) transparent transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.popper-wrapper[x-placement^=left]{margin-right:5px}.popper-wrapper[x-placement^=left] .popper__arrow{border-width:5px 0 5px 5px;border-color:transparent transparent transparent #121a24;border-color:transparent transparent transparent var(--bg,#121a24);right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.dropdown-menu{display:block;padding:.5rem 0;font-size:1rem;text-align:left;list-style:none;max-width:100vw;z-index:10;box-shadow:1px 1px 4px rgba(0,0,0,.6);box-shadow:var(--panelShadow);border:none;border-radius:4px;border-radius:var(--btnRadius,4px);background-color:#121a24;background-color:var(--bg,#121a24)}.dropdown-menu .dropdown-divider{height:0;margin:.5rem 0;overflow:hidden;border-top:1px solid #222;border-top:1px solid var(--border,#222)}.dropdown-menu .dropdown-item{line-height:21px;margin-right:5px;overflow:auto;display:block;padding:.25rem 1rem .25rem 1.5rem;clear:both;font-weight:400;text-align:inherit;white-space:normal;border:none;border-radius:0;background-color:transparent;box-shadow:none;width:100%;height:100%}.dropdown-menu .dropdown-item-icon{padding-left:.5rem}.dropdown-menu .dropdown-item-icon i{margin-right:.25rem}.dropdown-menu .dropdown-item:hover{background-color:#182230;background-color:var(--btn,#182230);box-shadow:none}.menu-checkbox{float:right;min-width:22px;max-width:22px;min-height:22px;max-height:22px;line-height:22px;text-align:center;border-radius:0;background-color:#182230;background-color:var(--input,#182230);box-shadow:inset 0 0 2px #000;box-shadow:var(--inputShadow)}.menu-checkbox.menu-checkbox-checked:after{content:"\\2714"}',""])},function(e,t,i){"use strict";i.r(t);var a=i(125),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(254),r=i(0);var l=function(e){i(738)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(739);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("56d82e88",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,'.dark-overlay:before{bottom:0;content:" ";left:0;right:0;background:rgba(27,31,35,.5);z-index:99}.dark-overlay:before,.dialog-modal.panel{display:block;cursor:default;position:fixed;top:0}.dialog-modal.panel{left:50%;max-height:80vh;max-width:90vw;margin:15vh auto;transform:translateX(-50%);z-index:999;background-color:#121a24;background-color:var(--bg,#121a24)}.dialog-modal.panel .dialog-modal-heading{padding:.5em;margin-right:auto;margin-bottom:0;white-space:nowrap;color:var(--panelText);background-color:#182230;background-color:var(--panel,#182230)}.dialog-modal.panel .dialog-modal-heading .title{margin-bottom:0;text-align:center}.dialog-modal.panel .dialog-modal-content{margin:0;padding:1rem;background-color:#151e2a;background-color:var(--lightBg,#151e2a);white-space:normal}.dialog-modal.panel .dialog-modal-footer{margin:0;padding:.5em;background-color:#151e2a;background-color:var(--lightBg,#151e2a);border-top:1px solid #121a24;border-top:1px solid var(--bg,#121a24);display:flex;justify-content:flex-end}.dialog-modal.panel .dialog-modal-footer button{width:auto;margin-left:.5rem}',""])},,,,function(e,t,i){"use strict";i.r(t);var a=i(126),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(257),r=i(0);var l=function(e){i(744)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(745);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("6c9d5cbc",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".gallery-row{height:200px;width:100%;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;flex-grow:1;margin-top:.5em}.gallery-row .attachment.image{margin:0 .5em 0 0;flex-grow:1;height:100%;box-sizing:border-box;min-width:2em}.gallery-row .attachment.image:last-child{margin:0}.gallery-row .image-attachment{width:100%;height:100%}.gallery-row .video-container{height:100%}.gallery-row.contain-fit img,.gallery-row.contain-fit video{object-fit:contain}.gallery-row.cover-fit img,.gallery-row.cover-fit video{object-fit:cover}",""])},,,function(e,t,i){"use strict";i.r(t);var a=i(127),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(258),r=i(0);var l=function(e){i(749)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(750);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("c13d6bee",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".link-preview-card{display:flex;flex-direction:row;cursor:pointer;overflow:hidden;margin-top:.5em;color:#b9b9ba;color:var(--text,#b9b9ba);border-radius:10px;border-radius:var(--attachmentRadius,10px);border-color:#222;border:1px solid var(--border,#222)}.link-preview-card .card-image{flex-shrink:0;width:120px;max-width:25%}.link-preview-card .card-image img{width:100%;height:100%;object-fit:cover;border-radius:10px;border-radius:var(--attachmentRadius,10px)}.link-preview-card .small-image{width:80px}.link-preview-card .card-content{max-height:100%;margin:.5em;display:flex;flex-direction:column}.link-preview-card .card-host{font-size:12px}.link-preview-card .card-description{margin:.5em 0 0;overflow:hidden;text-overflow:ellipsis;word-break:break-word;line-height:1.2em;max-height:calc(1.2em * 3 - 1px)}",""])},function(e,t,i){"use strict";i.r(t);var a=i(128),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(259),r=i(0);var l=function(e){i(752)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(753);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("7096a06e",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".avatars{display:flex;margin:0;padding:0;flex-wrap:wrap;height:24px}.avatars .avatars-item{margin:0 0 5px 5px}.avatars .avatars-item:first-child{padding-left:5px}.avatars .avatars-item .avatar-small{border-radius:10px;border-radius:var(--avatarAltRadius,10px);height:24px;width:24px}",""])},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractTagFromUrl=t.mentionMatchesUrl=void 0;var a,o=i(14),n=(a=o)&&a.__esModule?a:{default:a};t.mentionMatchesUrl=function(e,t){if(t===e.statusnet_profile_url)return!0;var i=e.screen_name.split("@"),a=(0,n.default)(i,2),o=a[0],s=a[1],r=new RegExp("://"+s+"/.*"+o+"$","g");return!!t.match(r)},t.extractTagFromUrl=function(e){var t=/tag[s]*\/(\w+)$/g.exec(e);return!!t&&t[1]}},function(e,t,i){var a=i(756);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("93498d0a",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".timeline .panel-disabled .status-el{border-left:none;border-bottom-width:1px;border-bottom-style:solid;border-color:var(--border,#222);border-radius:0}",""])},,,,,,,,,,,,,,,,function(e,t,i){"use strict";i.r(t);var a=i(130),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(264),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},function(e,t,i){"use strict";i.r(t);var a=i(131),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(265),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},function(e,t,i){"use strict";i.r(t);var a=i(132),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(266),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},function(e,t,i){"use strict";i.r(t);var a=i(133),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(267),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},function(e,t,i){"use strict";i.r(t);var a=i(134),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(270),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},function(e,t,i){var a=i(778);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("87e1cf2e",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".notifications:not(.minimal){padding-bottom:15em}.notifications .loadmore-error{color:#b9b9ba;color:var(--text,#b9b9ba)}.notifications .notification{position:relative}.notifications .notification .notification-overlay{position:absolute;top:0;right:0;left:0;bottom:0;pointer-events:none}.notifications .notification.unseen .notification-overlay{background-image:linear-gradient(135deg,var(--badgeNotification,red) 4px,transparent 10px)}.notification{box-sizing:border-box;display:flex;border-bottom:1px solid;border-color:#222;border-color:var(--border,#222)}.notification:hover .animated.avatar canvas{display:none}.notification:hover .animated.avatar img{visibility:visible}.notification .non-mention{display:flex;flex:1;flex-wrap:nowrap;padding:.6em;min-width:0}.notification .non-mention .avatar-container{width:32px;height:32px}.notification .non-mention .status-el{padding:0}.notification .non-mention .status-el .status{padding:.25em 0;color:hsla(240,1%,73%,.5);color:var(--faint,hsla(240,1%,73%,.5))}.notification .non-mention .status-el .status a{color:var(--faintLink)}.notification .non-mention .status-el .media-body{margin:0}.notification .follow-text{padding:.5em 0}.notification .status-el{flex:1}.notification time{white-space:nowrap}.notification .notification-right{flex:1;padding-left:.8em;min-width:0}.notification .notification-details{min-width:0;word-wrap:break-word;line-height:18px;position:relative;overflow:hidden;width:100%;flex:1 1 0;display:flex;flex-wrap:nowrap;justify-content:space-between}.notification .notification-details .name-and-action{flex:1;overflow:hidden;text-overflow:ellipsis}.notification .notification-details .username{font-weight:bolder;max-width:100%;text-overflow:ellipsis;white-space:nowrap}.notification .notification-details .username img{width:14px;height:14px;vertical-align:middle;object-fit:contain}.notification .notification-details .timeago{margin-right:.2em}.notification .notification-details .icon-retweet.lit{color:#0fa00f;color:var(--cGreen,#0fa00f)}.notification .notification-details .icon-reply.lit,.notification .notification-details .icon-user-plus.lit{color:#0095ff;color:var(--cBlue,#0095ff)}.notification .notification-details .icon-star.lit{color:orange;color:var(--cOrange,orange)}.notification .notification-details .status-content{margin:0;max-height:300px}.notification .notification-details h1{word-break:break-all;margin:0 0 .3em;padding:0;font-size:1em;line-height:20px}.notification .notification-details h1 small{font-weight:lighter}.notification .notification-details p{margin:0;margin-top:0;margin-bottom:.3em}",""])},function(e,t,i){"use strict";i.r(t);var a=i(136),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(268),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},,,,,,function(e,t,i){"use strict";i.r(t);var a=i(137),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(271),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},function(e,t,i){"use strict";i.r(t);var a=i(138),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(275),r=i(0);var l=function(e){i(787)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(788);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("7563b46e",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".user-profile{flex:2;flex-basis:500px}.user-profile .userlist-placeholder{display:flex;justify-content:center;align-items:middle;padding:2em}.user-profile .timeline-heading{display:flex;justify-content:center}.user-profile .timeline-heading .alert,.user-profile .timeline-heading .loadmore-button{flex:1}.user-profile .timeline-heading .loadmore-button{height:28px;margin:10px .6em}.user-profile .timeline-heading .loadmore-text,.user-profile .timeline-heading .title{display:none}.user-profile-placeholder .panel-body{display:flex;justify-content:center;align-items:middle;padding:7em}",""])},function(e,t,i){var a=i(790);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("ae955a70",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".follow-card-content-container{flex-shrink:0;display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;line-height:1.5em}.follow-card-follow-button{margin-top:.5em;margin-left:auto;width:10em}",""])},function(e,t,i){var a=i(792);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("119ab786",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".basic-user-card{display:flex;flex:1 0;margin:0;padding:.6em 1em}.basic-user-card-collapsed-content{margin-left:.7em;text-align:left;flex:1;min-width:0}.basic-user-card-user-name img{object-fit:contain;height:16px;width:16px;vertical-align:middle}.basic-user-card-screen-name,.basic-user-card-user-name-value{display:inline-block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.basic-user-card-expanded-content{flex:1;margin-left:.7em}",""])},function(e,t,i){var a=i(794);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("33745640",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".list-item:not(:last-child){border-bottom:1px solid;border-bottom-color:#222;border-bottom-color:var(--border,#222)}.list-empty-content{text-align:center;padding:10px}",""])},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=d(i(14)),o=d(i(35)),n=d(i(417)),s=d(i(10)),r=d(i(28)),l=d(i(9)),c=d(i(418)),u=i(419);function d(e){return e&&e.__esModule?e:{default:e}}i(799);t.default=function(e){var t=e.fetch,i=e.select,d=e.destroy,p=e.childPropName,f=void 0===p?"entries":p,m=e.additionalPropNames,h=void 0===m?[]:m;return function(e){var p=(0,r.default)((0,u.getComponentProps)(e)).filter(function(e){return e!==f}).concat(h);return l.default.component("withLoadMore",{render:function(t){var i=arguments[0],r={props:(0,s.default)({},this.$props,(0,n.default)({},f,this.entries)),on:this.$listeners,scopedSlots:this.$scopedSlots},l=(0,o.default)(this.$slots).map(function(e){var i=(0,a.default)(e,2),o=i[0],n=i[1];return t("template",{slot:o},n)});return i("div",{class:"with-load-more"},[i(e,r,[l]),i("div",{class:"with-load-more-footer"},[this.error&&i("a",{on:{click:this.fetchEntries},class:"alert error"},[this.$t("general.generic_error")]),!this.error&&this.loading&&i("i",{class:"icon-spin3 animate-spin"}),!this.error&&!this.loading&&!this.bottomedOut&&i("a",{on:{click:this.fetchEntries}},[this.$t("general.more")])])])},props:p,data:function(){return{loading:!1,bottomedOut:!1,error:!1}},computed:{entries:function(){return i(this.$props,this.$store)||[]}},created:function(){window.addEventListener("scroll",this.scrollLoad),0===this.entries.length&&this.fetchEntries()},destroyed:function(){window.removeEventListener("scroll",this.scrollLoad),d&&d(this.$props,this.$store)},methods:{fetchEntries:function(){var e=this;this.loading||(this.loading=!0,this.error=!1,t(this.$props,this.$store).then(function(t){e.loading=!1,e.bottomedOut=(0,c.default)(t)}).catch(function(){e.loading=!1,e.error=!0}))},scrollLoad:function(e){var t=document.body.getBoundingClientRect(),i=Math.max(t.height,-t.y);!1===this.loading&&!1===this.bottomedOut&&this.$el.offsetHeight>0&&window.innerHeight+window.pageYOffset>=i-750&&this.fetchEntries()}}})}}},,,,function(e,t,i){},function(e,t,i){"use strict";i.r(t);var a=i(142),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(285),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},,,,,,,function(e,t,i){},function(e,t,i){var a=i(809);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("16da2560",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".style-switcher .preset-switcher{margin-right:1em}.style-switcher .style-control{display:flex;align-items:baseline;margin-bottom:5px}.style-switcher .style-control .label{flex:1}.style-switcher .style-control.disabled input:not(.exclude-disabled),.style-switcher .style-control.disabled select:not(.exclude-disabled){opacity:.5}.style-switcher .style-control input,.style-switcher .style-control select{min-width:3em;margin:0;flex:0}.style-switcher .style-control input[type=color],.style-switcher .style-control select[type=color]{padding:1px;cursor:pointer;height:29px;min-width:2em;border:none;align-self:stretch}.style-switcher .style-control input[type=number],.style-switcher .style-control select[type=number]{min-width:5em}.style-switcher .style-control input[type=range],.style-switcher .style-control select[type=range]{flex:1;min-width:3em}.style-switcher .style-control input[type=checkbox]+label,.style-switcher .style-control select[type=checkbox]+label{margin:6px 0}.style-switcher .style-control input:not([type=number]):not([type=text]),.style-switcher .style-control select:not([type=number]):not([type=text]){align-self:flex-start}.style-switcher .tab-switcher{margin:0 -1em}.style-switcher .reset-container{flex-wrap:wrap}.style-switcher .apply-container,.style-switcher .color-container,.style-switcher .fonts-container,.style-switcher .radius-container,.style-switcher .reset-container{display:flex}.style-switcher .fonts-container,.style-switcher .radius-container{flex-direction:column}.style-switcher .color-container{flex-wrap:wrap;justify-content:space-between}.style-switcher .color-container>h4{width:99%}.style-switcher .color-container,.style-switcher .fonts-container,.style-switcher .presets-container,.style-switcher .radius-container,.style-switcher .shadow-container{margin:1em 1em 0}.style-switcher .tab-header{display:flex;justify-content:space-between;align-items:baseline;width:100%;min-height:30px;margin-bottom:1em}.style-switcher .tab-header .btn{min-width:1px;flex:0 auto;padding:0 1em}.style-switcher .tab-header p{flex:1;margin:0;margin-right:.5em}.style-switcher .shadow-selector .override{flex:1;margin-left:.5em}.style-switcher .shadow-selector .select-container{margin-top:-4px;margin-bottom:-3px}.style-switcher .save-load,.style-switcher .save-load-options{display:flex;justify-content:center;align-items:baseline;flex-wrap:wrap}.style-switcher .save-load-options .import-export,.style-switcher .save-load-options .presets,.style-switcher .save-load .import-export,.style-switcher .save-load .presets{margin-bottom:.5em}.style-switcher .save-load-options .import-export,.style-switcher .save-load .import-export{display:flex}.style-switcher .save-load-options .override,.style-switcher .save-load .override{margin-left:.5em}.style-switcher .save-load-options{flex-wrap:wrap;margin-top:.5em;justify-content:center}.style-switcher .save-load-options .keep-option{margin:0 .5em .5em;min-width:25%}.style-switcher .preview-container{border-top:1px dashed;border-bottom:1px dashed;border-color:#222;border-color:var(--border,#222);margin:1em -1em 0;padding:1em;background:var(--body-background-image);background-size:cover;background-position:50% 50%}.style-switcher .preview-container .dummy .post{font-family:var(--postFont);display:flex}.style-switcher .preview-container .dummy .post .content{flex:1}.style-switcher .preview-container .dummy .post .content h4{margin-bottom:.25em}.style-switcher .preview-container .dummy .post .content .icons{margin-top:.5em;display:flex}.style-switcher .preview-container .dummy .post .content .icons i{margin-right:1em}.style-switcher .preview-container .dummy .after-post{margin-top:1em;display:flex;align-items:center}.style-switcher .preview-container .dummy .avatar,.style-switcher .preview-container .dummy .avatar-alt{background:linear-gradient(135deg,#b8e1fc,#a9d2f3 10%,#90bae4 25%,#90bcea 37%,#90bff0 50%,#6ba8e5 51%,#a2daf5 83%,#bdf3fd);color:#000;font-family:sans-serif;text-align:center;margin-right:1em}.style-switcher .preview-container .dummy .avatar-alt{flex:0 auto;margin-left:28px;font-size:12px;min-width:20px;min-height:20px;line-height:20px;border-radius:10px;border-radius:var(--avatarAltRadius,10px)}.style-switcher .preview-container .dummy .avatar{flex:0 auto;width:48px;height:48px;font-size:14px;line-height:48px}.style-switcher .preview-container .dummy .actions{display:flex;align-items:baseline}.style-switcher .preview-container .dummy .actions .checkbox{display:inline-flex;align-items:baseline;margin-right:1em;flex:1}.style-switcher .preview-container .dummy .separator{margin:1em;border-bottom:1px solid;border-color:#222;border-color:var(--border,#222)}.style-switcher .preview-container .dummy .panel-heading .alert,.style-switcher .preview-container .dummy .panel-heading .badge,.style-switcher .preview-container .dummy .panel-heading .btn,.style-switcher .preview-container .dummy .panel-heading .faint{margin-left:1em;white-space:nowrap}.style-switcher .preview-container .dummy .panel-heading .faint{text-overflow:ellipsis;min-width:2em;overflow-x:hidden}.style-switcher .preview-container .dummy .panel-heading .flex-spacer{flex:1}.style-switcher .preview-container .dummy .btn{margin-left:0;padding:0 1em;min-width:3em;min-height:30px}.style-switcher .apply-container{justify-content:center}.style-switcher .color-item,.style-switcher .radius-item{min-width:20em;margin:5px 6px 0 0;display:flex;flex-direction:column;flex:1 1 0}.style-switcher .color-item.wide,.style-switcher .radius-item.wide{min-width:60%}.style-switcher .color-item:not(.wide):nth-child(odd),.style-switcher .radius-item:not(.wide):nth-child(odd){margin-right:7px}.style-switcher .color-item .color,.style-switcher .color-item .opacity,.style-switcher .radius-item .color,.style-switcher .radius-item .opacity{display:flex;align-items:baseline}.style-switcher .radius-item{flex-basis:auto}.style-switcher .theme-color-cl,.style-switcher .theme-radius-rn{border:0;box-shadow:none;background:transparent;color:var(--faint,hsla(240,1%,73%,.5));align-self:stretch}.style-switcher .theme-color-cl,.style-switcher .theme-color-in,.style-switcher .theme-radius-in{margin-left:4px}.style-switcher .theme-radius-in{min-width:1em;max-width:7em;flex:1}.style-switcher .theme-radius-lb{max-width:50em}.style-switcher .theme-preview-content{padding:20px}.style-switcher .btn{margin-left:.25em;margin-right:.25em}",""])},function(e,t,i){var a=i(811);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("6015ac50",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".color-control input.text-input{max-width:7em;flex:1}",""])},function(e,t,i){"use strict";i.r(t);var a=i(145),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(277),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},function(e,t,i){"use strict";i.r(t);var a=i(147),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(279),r=i(0);var l=function(e){i(814)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(815);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("d219da80",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".shadow-control{display:flex;flex-wrap:wrap;justify-content:center;margin-bottom:1em}.shadow-control .shadow-preview-container,.shadow-control .shadow-tweak{margin:5px 6px 0 0}.shadow-control .shadow-preview-container{flex:0;display:flex;flex-wrap:wrap}.shadow-control .shadow-preview-container input[type=number]{width:5em;min-width:2em}.shadow-control .shadow-preview-container .x-shift-control,.shadow-control .shadow-preview-container .y-shift-control{display:flex;flex:0}.shadow-control .shadow-preview-container .x-shift-control[disabled=disabled] *,.shadow-control .shadow-preview-container .y-shift-control[disabled=disabled] *{opacity:.5}.shadow-control .shadow-preview-container .x-shift-control{align-items:flex-start}.shadow-control .shadow-preview-container .x-shift-control .wrap,.shadow-control .shadow-preview-container input[type=range]{margin:0;width:15em;height:2em}.shadow-control .shadow-preview-container .y-shift-control{flex-direction:column;align-items:flex-end}.shadow-control .shadow-preview-container .y-shift-control .wrap{width:2em;height:15em}.shadow-control .shadow-preview-container .y-shift-control input[type=range]{transform-origin:1em 1em;transform:rotate(90deg)}.shadow-control .shadow-preview-container .preview-window{flex:1;background-color:#999;display:flex;align-items:center;justify-content:center;background-image:linear-gradient(45deg,#666 25%,transparent 0),linear-gradient(-45deg,#666 25%,transparent 0),linear-gradient(45deg,transparent 75%,#666 0),linear-gradient(-45deg,transparent 75%,#666 0);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;border-radius:4px;border-radius:var(--inputRadius,4px)}.shadow-control .shadow-preview-container .preview-window .preview-block{width:33%;height:33%;background-color:#121a24;background-color:var(--bg,#121a24);border-radius:10px;border-radius:var(--panelRadius,10px)}.shadow-control .shadow-tweak{flex:1;min-width:280px}.shadow-control .shadow-tweak .id-control{align-items:stretch}.shadow-control .shadow-tweak .id-control .btn,.shadow-control .shadow-tweak .id-control .select{min-width:1px;margin-right:5px}.shadow-control .shadow-tweak .id-control .btn{padding:0 .4em;margin:0 .1em}.shadow-control .shadow-tweak .id-control .select{flex:1}.shadow-control .shadow-tweak .id-control .select select{align-self:auto}",""])},function(e,t,i){"use strict";i.r(t);var a=i(148),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(280),r=i(0);var l=function(e){i(817)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(818);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("d9c0acde",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".font-control input.custom-font{min-width:10em}.font-control.custom .select{border-top-right-radius:0;border-bottom-right-radius:0}.font-control.custom .custom-font{border-top-left-radius:0;border-bottom-left-radius:0}",""])},function(e,t,i){"use strict";i.r(t);var a=i(149),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(281),r=i(0);var l=function(e){i(820)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(821);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("b94bc120",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".contrast-ratio{display:flex;justify-content:flex-end;margin-top:-4px;margin-bottom:5px}.contrast-ratio .label{margin-right:1em}.contrast-ratio .rating{display:inline-block;text-align:center}",""])},function(e,t,i){"use strict";i.r(t);var a=i(150),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(282),r=i(0);var l=function(e){i(823)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(824);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("66a4eaba",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".import-export-container{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center}",""])},function(e,t,i){"use strict";i.r(t);var a=i(151),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(284),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.extractCommit=function(e){var t=e.match(/-g(\w+)$/i);return t?t[1]:""}},function(e,t,i){"use strict";i.r(t);var a=i(152),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(286),r=i(0);var l=function(e){i(828)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(829);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("16815f76",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,'.registration-form{display:flex;flex-direction:column;margin:.6em}.registration-form .container{display:flex;flex-direction:row}.registration-form .terms-of-service{flex:0 1 50%;margin:.8em}.registration-form .text-fields{margin-top:.6em;flex:1 0;display:flex;flex-direction:column}.registration-form textarea{min-height:100px}.registration-form .form-group{display:flex;flex-direction:column;padding:.3em 0;line-height:24px;margin-bottom:1em}.registration-form .form-group--error{animation-name:shakeError;animation-duration:.6s;animation-timing-function:ease-in-out}.registration-form .form-group--error .form--label{color:#f04124;color:var(--cRed,#f04124)}.registration-form .form-error{margin-top:-.7em;text-align:left}.registration-form .form-error span{font-size:12px}.registration-form .form-error ul{list-style:none;padding:0 0 0 5px;margin-top:0}.registration-form .form-error ul li:before{content:"\\2022 "}.registration-form form textarea{line-height:16px;resize:vertical}.registration-form .captcha{max-width:350px;margin-bottom:.4em}.registration-form .btn{margin-top:.6em;height:28px}.registration-form .error{text-align:center}@media (max-width:800px){.registration-form .container{flex-direction:column-reverse}}',""])},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){"use strict";i.r(t);var a=i(153),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(300),r=i(0);var l=function(e){i(857)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(858);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("298db8e1",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".profile-edit .bio{margin:0}.profile-edit .visibility-tray{padding-top:5px}.profile-edit input[type=file]{padding:5px;height:auto}.profile-edit .banner{max-width:100%}.profile-edit .uploading{font-size:1.5em;margin:.25em}.profile-edit .name-changer{width:100%}.profile-edit .bg{max-width:100%}.profile-edit .current-avatar{display:block;width:150px;height:150px;border-radius:4px;border-radius:var(--avatarRadius,4px)}.profile-edit .oauth-tokens{width:100%}.profile-edit .oauth-tokens th{text-align:left}.profile-edit .oauth-tokens .actions{text-align:right}.profile-edit-usersearch-wrapper{padding:1em}.profile-edit-bulk-actions{text-align:right;padding:0 1em;min-height:28px}.profile-edit-bulk-actions button{width:10em}",""])},function(e,t,i){"use strict";i.r(t);var a=i(154),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(287),r=i(0);var l=function(e){i(860)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(861);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("0dfd0b33",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".image-cropper-img-input{display:none}.image-cropper-image-container{position:relative}.image-cropper-image-container img{display:block;max-width:100%}.image-cropper-buttons-wrapper{margin-top:10px}.image-cropper-buttons-wrapper button{margin-top:5px}",""])},,,function(e,t,i){"use strict";i.r(t);var a=i(155),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(288),r=i(0);var l=function(e){i(865)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(866);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("211aa67c",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".block-card-content-container{margin-top:.5em;text-align:right}.block-card-content-container button{width:10em}",""])},function(e,t,i){"use strict";i.r(t);var a=i(156),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(289),r=i(0);var l=function(e){i(868)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(869);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("7ea980e0",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".mute-card-content-container{margin-top:.5em;text-align:right}.mute-card-content-container button{width:10em}",""])},function(e,t,i){"use strict";i.r(t);var a=i(157),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(291),r=i(0);var l=function(e){i(871)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(872);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("3724291e",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".selectable-list-item-inner{display:flex;align-items:center}.selectable-list-item-inner>*{min-width:0}.selectable-list-item-selected-inner{background-color:#151e2a;background-color:var(--lightBg,#151e2a)}.selectable-list-header{display:flex;align-items:center;padding:.6em 0;border-bottom:2px solid;border-bottom-color:#222;border-bottom-color:var(--border,#222)}.selectable-list-header-actions{flex:1}.selectable-list-checkbox-wrapper{padding:0 10px;flex:none}",""])},function(e,t,i){var a=i(874);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("002629bb",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,'.checkbox{position:relative;display:inline-block;padding-left:1.2em;min-height:1.2em}.checkbox-indicator:before{position:absolute;left:0;top:0;display:block;content:"\\2714";transition:color .2s;width:1.1em;height:1.1em;border-radius:2px;border-radius:var(--checkboxRadius,2px);box-shadow:inset 0 0 2px #000;box-shadow:var(--inputShadow);background-color:#182230;background-color:var(--input,#182230);vertical-align:top;text-align:center;line-height:1.1em;font-size:1.1em;color:transparent;overflow:hidden;box-sizing:border-box}.checkbox input[type=checkbox]{display:none}.checkbox input[type=checkbox]:checked+.checkbox-indicator:before{color:#b9b9ba;color:var(--text,#b9b9ba)}.checkbox input[type=checkbox]:indeterminate+.checkbox-indicator:before{content:"\\2013";color:#b9b9ba;color:var(--text,#b9b9ba)}.checkbox input[type=checkbox]:disabled+.checkbox-indicator:before{opacity:.5}.checkbox>span{margin-left:.5em}',""])},function(e,t,i){"use strict";i.r(t);var a=i(159),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(292),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},function(e,t,i){"use strict";i.r(t);var a=i(160),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(293),r=i(0);var l=function(e){i(877)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(878);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("3a9ec1bf",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".autosuggest{position:relative}.autosuggest-input{display:block;width:100%}.autosuggest-results{position:absolute;left:0;top:100%;right:0;max-height:400px;background-color:#151e2a;background-color:var(--lightBg,#151e2a);border-color:#222;border:1px solid var(--border,#222);border-radius:4px;border-radius:var(--inputRadius,4px);border-top-left-radius:0;border-top-right-radius:0;box-shadow:1px 1px 4px rgba(0,0,0,.6);box-shadow:var(--panelShadow);overflow-y:auto;z-index:1}",""])},function(e,t,i){"use strict";i.r(t);var a=i(161),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(294),r=i(0);var l=function(e){i(880)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(881);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("5bed876c",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".importer-uploading{font-size:1.5em;margin:.25em}",""])},function(e,t,i){"use strict";i.r(t);var a=i(162),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(295),r=i(0);var l=function(e){i(883)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(884);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("432fc7c6",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".exporter-processing{font-size:1.5em;margin:.25em}",""])},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=p(i(14)),o=p(i(35)),n=p(i(417)),s=p(i(10)),r=p(i(24)),l=p(i(28)),c=p(i(9)),u=p(i(418)),d=i(419);function p(e){return e&&e.__esModule?e:{default:e}}i(886);t.default=function(e){var t=e.fetch,i=e.select,p=e.childPropName,f=void 0===p?"content":p,m=e.additionalPropNames,h=void 0===m?[]:m;return function(e){var p=(0,l.default)((0,d.getComponentProps)(e)).filter(function(e){return e!==f}).concat(h);return c.default.component("withSubscription",{props:[].concat((0,r.default)(p),["refresh"]),render:function(t){var i=arguments[0];if(this.error||this.loading)return i("div",{class:"with-subscription-loading"},[this.error?i("a",{on:{click:this.fetchData},class:"alert error"},[this.$t("general.generic_error")]):i("i",{class:"icon-spin3 animate-spin"})]);var r={props:(0,s.default)({},this.$props,(0,n.default)({},f,this.fetchedData)),on:this.$listeners,scopedSlots:this.$scopedSlots},l=(0,o.default)(this.$slots).map(function(e){var i=(0,a.default)(e,2),o=i[0],n=i[1];return t("template",{slot:o},n)});return i("div",{class:"with-subscription"},[i(e,r,[l])])},data:function(){return{loading:!1,error:!1}},computed:{fetchedData:function(){return i(this.$props,this.$store)}},created:function(){(this.refresh||(0,u.default)(this.fetchedData))&&this.fetchData()},methods:{fetchData:function(){var e=this;this.loading||(this.loading=!0,this.error=!1,t(this.$props,this.$store).then(function(){e.loading=!1}).catch(function(){e.error=!0,e.loading=!1}))}}})}}},function(e,t,i){},function(e,t,i){"use strict";i.r(t);var a=i(163),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(299),r=i(0);var l=function(e){i(888)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(889);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("9a989dfe",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".warning{color:orange;color:var(--cOrange,orange)}.mfa-settings .method-item,.mfa-settings .mfa-heading{overflow:hidden;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline}.mfa-settings .setup-otp{display:flex;justify-content:center;flex-wrap:wrap}.mfa-settings .setup-otp .qr-code{flex:1;padding-right:10px}.mfa-settings .setup-otp .verify{flex:1}.mfa-settings .setup-otp .error{margin:4px 0 0}.mfa-settings .setup-otp .confirm-otp-actions button{width:15em;margin-top:5px}",""])},function(e,t,i){"use strict";i.r(t);var a=i(164),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(296),r=i(0);var l=function(e){i(891)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(892);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("12659079",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".warning{color:orange;color:var(--cOrange,orange)}.backup-codes{font-family:var(--postCodeFont,monospace)}",""])},function(e,t,i){"use strict";i.r(t);var a=i(165),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(298),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},,function(e,t,i){"use strict";i.r(t);var a=i(167),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(302),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},function(e,t,i){"use strict";i.r(t);var a=i(168),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(301),r=i(0);var l=function(e){i(897)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(898);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("ad510f10",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".follow-request-card-content-container{display:flex;flex-direction:row;flex-wrap:wrap}.follow-request-card-content-container button{margin-top:.5em;margin-right:.5em;flex:1 1;max-width:12em;min-width:8em}.follow-request-card-content-container button:last-child{margin-right:0}",""])},function(e,t,i){"use strict";i.r(t);var a=i(169),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(303),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},function(e,t,i){"use strict";i.r(t);var a=i(170),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(304),r=i(0);var l=function(e){i(901)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(902);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("48879f74",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".user-search-input-container{margin:.5em;display:flex;justify-content:center}.user-search-input-container .search-button{margin-left:.5em}.loading-icon{padding:1em}",""])},function(e,t,i){"use strict";i.r(t);var a=i(171),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(305),r=i(0);var l=function(e){i(904)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(905);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("42704024",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".login-form{display:flex;flex-direction:column;padding:.6em}.login-form .btn{min-height:28px;width:10em}.login-form .register{flex:1 1}.login-form .login-bottom{margin-top:1em;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.login-form .form-group{display:flex;flex-direction:column;padding:.3em .5em .6em;line-height:24px}.login-form .form-bottom{display:flex;padding:.5em;height:32px}.login-form .form-bottom button{width:10em}.login-form .form-bottom p{margin:.35em;padding:.35em;display:flex}.login-form .error{text-align:center;animation-name:shakeError;animation-duration:.4s;animation-timing-function:ease-in-out}",""])},function(e,t,i){"use strict";i.r(t);var a=i(172),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(306),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},function(e,t,i){"use strict";i.r(t);var a=i(173),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(307),r=i(0),l=Object(r.a)(o.a,s.a,s.b,!1,null,null,null);t.default=l.exports},function(e,t,i){var a=i(909);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("2c0040e1",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".floating-chat{position:fixed;right:0;bottom:0;z-index:1000;max-width:25em}.chat-heading{cursor:pointer}.chat-heading .icon-comment-empty{color:#b9b9ba;color:var(--text,#b9b9ba)}.chat-window{overflow-y:auto;overflow-x:hidden;max-height:20em}.chat-window-container{height:100%}.chat-message{display:flex;padding:.2em .5em}.chat-avatar img{height:24px;width:24px;border-radius:4px;border-radius:var(--avatarRadius,4px);margin-right:.5em;margin-top:.25em}.chat-input{display:flex}.chat-input textarea{flex:1;margin:.6em;min-height:3.5em;resize:none}.chat-panel .title{display:flex;justify-content:space-between}",""])},function(e,t,i){"use strict";i.r(t);var a=i(175),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(309),r=i(0);var l=function(e){i(911)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(912);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("c74f4f44",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,"",""])},function(e,t,i){"use strict";i.r(t);var a=i(176),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(313),r=i(0);var l=function(e){i(914)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(915);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("7dfaed97",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,"",""])},function(e,t,i){var a=i(917);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("44aff36b",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,"",""])},function(e,t,i){var a=i(919);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("55ca8508",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".features-panel li{line-height:24px}",""])},function(e,t,i){"use strict";i.r(t);var a=i(179),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(312),r=i(0);var l=function(e){i(921)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(922);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("42aabc98",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".tos-content{margin:1em}",""])},function(e,t,i){"use strict";i.r(t);var a=i(180),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(323),r=i(0);var l=function(e){i(924)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(925);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("5c806d03",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,'#app{min-height:100vh;max-width:100%;overflow:hidden}.app-bg-wrapper{position:fixed;z-index:-1;height:100%;width:100%;background-size:cover;background-repeat:no-repeat;background-position:0 50%}i{user-select:none}h4{margin:0}#content{box-sizing:border-box;padding-top:60px;margin:auto;min-height:100vh;max-width:980px;background-color:rgba(0,0,0,.15);align-content:flex-start}.text-center{text-align:center}body{font-family:sans-serif;font-family:var(--interfaceFont,sans-serif);font-size:14px;margin:0;color:#b9b9ba;color:var(--text,#b9b9ba);max-width:100vw;overflow-x:hidden;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{text-decoration:none;color:#d8a070;color:var(--link,#d8a070)}button{user-select:none;background-color:#182230;background-color:var(--btn,#182230);border:none;border-radius:4px;border-radius:var(--btnRadius,4px);cursor:pointer;box-shadow:0 0 2px 0 #000,inset 0 1px 0 0 hsla(0,0%,100%,.2),inset 0 -1px 0 0 rgba(0,0,0,.2);box-shadow:var(--buttonShadow);font-size:14px;font-family:sans-serif;font-family:var(--interfaceFont,sans-serif)}button,button i[class*=icon-]{color:#b9b9ba;color:var(--btnText,#b9b9ba)}button::-moz-focus-inner{border:none}button:hover{box-shadow:0 0 4px hsla(0,0%,100%,.3);box-shadow:var(--buttonHoverShadow)}button:active{box-shadow:0 0 4px 0 hsla(0,0%,100%,.3),inset 0 1px 0 0 rgba(0,0,0,.2),inset 0 -1px 0 0 hsla(0,0%,100%,.2);box-shadow:var(--buttonPressedShadow)}button:disabled{cursor:not-allowed;opacity:.5}button.pressed{color:hsla(240,1%,73%,.5);color:var(--faint,hsla(240,1%,73%,.5));background-color:#121a24;background-color:var(--bg,#121a24)}button.danger{color:#b9b9ba;color:var(--alertErrorPanelText,#b9b9ba);background-color:rgba(211,16,20,.5);background-color:var(--alertError,rgba(211,16,20,.5))}label.select{padding:0}.select,input,textarea{border:none;border-radius:4px;border-radius:var(--inputRadius,4px);box-shadow:inset 0 1px 0 0 rgba(0,0,0,.2),inset 0 -1px 0 0 hsla(0,0%,100%,.2),inset 0 0 2px 0 #000;box-shadow:var(--inputShadow);background-color:#182230;background-color:var(--input,#182230);color:#b9b9ba;color:var(--inputText,#b9b9ba);font-family:sans-serif;font-family:var(--inputFont,sans-serif);font-size:14px;margin:0;padding:8px .5em;box-sizing:border-box;display:inline-block;position:relative;height:28px;line-height:16px;hyphens:none}.select:disabled,.select[disabled=disabled],input:disabled,input[disabled=disabled],textarea:disabled,textarea[disabled=disabled]{cursor:not-allowed;opacity:.5}.select .icon-down-open,input .icon-down-open,textarea .icon-down-open{position:absolute;top:0;bottom:0;right:5px;height:100%;color:#b9b9ba;color:var(--text,#b9b9ba);line-height:28px;z-index:0;pointer-events:none}.select select,input select,textarea select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;color:#b9b9ba;color:var(--inputText,--text,#b9b9ba);margin:0;padding:0 2em 0 .2em;font-family:sans-serif;font-family:var(--inputFont,sans-serif);font-size:14px;width:100%;z-index:1;height:28px;line-height:16px}.select[type=range],input[type=range],textarea[type=range]{background:none;border:none;margin:0;box-shadow:none;flex:1}.select[type=radio],input[type=radio],textarea[type=radio]{display:none}.select[type=radio]:checked+label:before,input[type=radio]:checked+label:before,textarea[type=radio]:checked+label:before{box-shadow:inset 0 0 2px #000,inset 0 0 0 4px #182230;box-shadow:var(--inputShadow),0 0 0 4px var(--fg,#182230) inset;background-color:var(--link,#d8a070)}.select[type=radio]:disabled,.select[type=radio]:disabled+label,.select[type=radio]:disabled+label:before,input[type=radio]:disabled,input[type=radio]:disabled+label,input[type=radio]:disabled+label:before,textarea[type=radio]:disabled,textarea[type=radio]:disabled+label,textarea[type=radio]:disabled+label:before{opacity:.5}.select[type=radio]+label:before,input[type=radio]+label:before,textarea[type=radio]+label:before{flex-shrink:0;display:inline-block;content:"";transition:box-shadow .2s;width:1.1em;height:1.1em;border-radius:100%;box-shadow:inset 0 0 2px #000;box-shadow:var(--inputShadow);margin-right:.5em;background-color:#182230;background-color:var(--input,#182230);vertical-align:top;text-align:center;line-height:1.1em;font-size:1.1em;color:transparent;overflow:hidden;box-sizing:border-box}.select[type=checkbox],input[type=checkbox],textarea[type=checkbox]{display:none}.select[type=checkbox]:checked+label:before,input[type=checkbox]:checked+label:before,textarea[type=checkbox]:checked+label:before{color:#b9b9ba;color:var(--text,#b9b9ba)}.select[type=checkbox]:disabled,.select[type=checkbox]:disabled+label,.select[type=checkbox]:disabled+label:before,input[type=checkbox]:disabled,input[type=checkbox]:disabled+label,input[type=checkbox]:disabled+label:before,textarea[type=checkbox]:disabled,textarea[type=checkbox]:disabled+label,textarea[type=checkbox]:disabled+label:before{opacity:.5}.select[type=checkbox]+label:before,input[type=checkbox]+label:before,textarea[type=checkbox]+label:before{flex-shrink:0;display:inline-block;content:"\\2714";transition:color .2s;width:1.1em;height:1.1em;border-radius:2px;border-radius:var(--checkboxRadius,2px);box-shadow:inset 0 0 2px #000;box-shadow:var(--inputShadow);margin-right:.5em;background-color:#182230;background-color:var(--input,#182230);vertical-align:top;text-align:center;line-height:1.1em;font-size:1.1em;color:transparent;overflow:hidden;box-sizing:border-box}option{color:#b9b9ba;color:var(--text,#b9b9ba);background-color:#121a24;background-color:var(--bg,#121a24)}.hide-number-spinner{-moz-appearance:textfield}.hide-number-spinner[type=number]::-webkit-inner-spin-button,.hide-number-spinner[type=number]::-webkit-outer-spin-button{opacity:0;display:none}i[class*=icon-]{color:#666;color:var(--icon,#666)}.container{display:flex;flex-wrap:wrap;margin:0;padding:0 10px}.item{flex:1;line-height:50px;height:50px;overflow:hidden;display:flex;flex-wrap:wrap}.item .nav-icon{margin-left:.4em}.item.right{justify-content:flex-end}.auto-size{flex:1}.nav-bar{padding:0;width:100%;align-items:center;position:fixed;height:50px}.nav-bar .logo{display:flex;align-items:stretch;justify-content:center;flex:0 0 auto;z-index:-1;transition:opacity;transition-timing-function:ease-out;transition-duration:.1s}.nav-bar .logo,.nav-bar .logo .mask{position:absolute;top:0;bottom:0;left:0;right:0}.nav-bar .logo .mask{mask-repeat:no-repeat;mask-position:center;mask-size:contain;background-color:#182230;background-color:var(--topBarText,#182230)}.nav-bar .logo img{height:100%;object-fit:contain;display:block;flex:0}.nav-bar .inner-nav{margin:auto;box-sizing:border-box;padding-left:10px;padding-right:10px;display:flex;align-items:center;flex-basis:970px;height:50px}.nav-bar .inner-nav a,.nav-bar .inner-nav a i{color:#d8a070;color:var(--topBarLink,#d8a070)}main-router{flex:1}.status.compact{color:rgba(0,0,0,.42);font-weight:300}.status.compact p{margin:0;font-size:.8em}.panel{display:flex;position:relative;flex-direction:column;margin:.5em;background-color:#121a24;background-color:var(--bg,#121a24)}.panel,.panel:after{border-radius:10px;border-radius:var(--panelRadius,10px)}.panel:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;box-shadow:1px 1px 4px rgba(0,0,0,.6);box-shadow:var(--panelShadow)}.panel-body:empty:before{content:"\\AF\\\\_(\\30C4)_/\\AF";display:block;margin:1em;text-align:center}.panel-heading{display:flex;flex:none;border-radius:10px 10px 0 0;border-radius:var(--panelRadius,10px) var(--panelRadius,10px) 0 0;background-size:cover;padding:.6em;text-align:left;line-height:28px;color:var(--panelText);background-color:#182230;background-color:var(--panel,#182230);align-items:baseline;box-shadow:var(--panelHeaderShadow)}.panel-heading .title{flex:1 0 auto;font-size:1.3em}.panel-heading .faint{background-color:transparent;color:hsla(240,1%,73%,.5);color:var(--panelFaint,hsla(240,1%,73%,.5))}.panel-heading .alert{white-space:nowrap;text-overflow:ellipsis;overflow-x:hidden}.panel-heading button{flex-shrink:0}.panel-heading .alert,.panel-heading button{line-height:21px;min-height:0;box-sizing:border-box;margin:0;margin-left:.25em;min-width:1px;align-self:stretch}.panel-heading a{color:#d8a070;color:var(--panelLink,#d8a070)}.panel-heading.stub{border-radius:10px;border-radius:var(--panelRadius,10px)}.panel-footer{border-radius:0 0 10px 10px;border-radius:0 0 var(--panelRadius,10px) var(--panelRadius,10px)}.panel-footer .faint{color:hsla(240,1%,73%,.5);color:var(--panelFaint,hsla(240,1%,73%,.5))}.panel-footer a{color:#d8a070;color:var(--panelLink,#d8a070)}.panel-body>p{line-height:18px;padding:1em;margin:0}.container>*{min-width:0}.fa{color:grey}nav{z-index:1000;color:var(--topBarText);background-color:#182230;background-color:var(--topBar,#182230);color:hsla(240,1%,73%,.5);color:var(--faint,hsla(240,1%,73%,.5));box-shadow:0 0 4px rgba(0,0,0,.6);box-shadow:var(--topBarShadow)}nav .back-button{display:block;max-width:99px;transition-property:opacity,max-width;transition-duration:.3s;transition-timing-function:ease-out}nav .back-button i{margin:0 1em}nav .back-button.hidden{opacity:0;max-width:5px}.fade-enter-active,.fade-leave-active{transition:opacity .2s}.fade-enter,.fade-leave-active{opacity:0}.main{flex-basis:50%;flex-grow:1;flex-shrink:1}.sidebar-bounds{flex:0;flex-basis:35%}.sidebar-flexer{flex:1;flex-basis:345px;width:365px}.mobile-shown{display:none}@media (min-width:800px){body{overflow-y:scroll}nav .back-button{display:none}.sidebar-bounds{overflow:hidden;max-height:100vh;width:345px;position:fixed;margin-top:-10px}.sidebar-bounds .sidebar-scroller{height:96vh;width:365px;padding-top:10px;padding-right:50px;overflow-x:hidden;overflow-y:scroll}.sidebar-bounds .sidebar{width:345px}.sidebar-flexer{max-height:96vh;flex-shrink:0;flex-grow:0}}.badge{display:inline-block;border-radius:99px;min-width:22px;max-width:22px;min-height:22px;max-height:22px;font-size:15px;line-height:22px;text-align:center;vertical-align:middle;white-space:nowrap;padding:0}.badge.badge-notification{background-color:red;background-color:var(--badgeNotification,red);color:#fff;color:var(--badgeNotificationText,#fff)}.alert{margin:.35em;padding:.25em;border-radius:5px;border-radius:var(--tooltipRadius,5px);min-height:28px;line-height:28px}.alert.error{background-color:rgba(211,16,20,.5);background-color:var(--alertError,rgba(211,16,20,.5));color:#b9b9ba;color:var(--alertErrorText,#b9b9ba)}.panel-heading .alert.error{color:#b9b9ba;color:var(--alertErrorPanelText,#b9b9ba)}.faint,.faint-link{color:hsla(240,1%,73%,.5);color:var(--faint,hsla(240,1%,73%,.5))}.faint-link:hover{text-decoration:underline}@media (min-width:800px){.logo{opacity:1!important}}.item.right{text-align:right}.visibility-notice{padding:.5em;border:1px solid hsla(240,1%,73%,.5);border:1px solid var(--faint,hsla(240,1%,73%,.5));border-radius:4px;border-radius:var(--inputRadius,4px)}.notice-dismissible{padding-right:4rem;position:relative}.notice-dismissible .dismiss{position:absolute;top:0;right:0;padding:.5em;color:inherit}@keyframes modal-background-fadein{0%{background-color:transparent}to{background-color:rgba(0,0,0,.5)}}.modal-view{z-index:1000;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;overflow:auto;animation-duration:.2s;background-color:rgba(0,0,0,.5);animation-name:modal-background-fadein}.button-icon{font-size:1.2em}@keyframes shakeError{0%{transform:translateX(0)}15%{transform:translateX(.375rem)}30%{transform:translateX(-.375rem)}45%{transform:translateX(.375rem)}60%{transform:translateX(-.375rem)}75%{transform:translateX(.375rem)}90%{transform:translateX(-.375rem)}to{transform:translateX(0)}}@media (max-width:800px){.mobile-hidden{display:none}.panel-switcher{display:flex}.container{padding:0}.panel{margin:.5em 0}.menu-button{display:block;margin-right:.8em}}.setting-item{border-bottom:2px solid var(--fg,#182230);margin:1em 1em 1.4em;padding-bottom:1.4em}.setting-item>div{margin-bottom:.5em}.setting-item>div:last-child{margin-bottom:0}.setting-item:last-child{border-bottom:none;padding-bottom:0;margin-bottom:1em}.setting-item select{min-width:10em}.setting-item textarea{width:100%;max-width:100%;height:100px}.setting-item .unavailable,.setting-item .unavailable i{color:var(--cRed,red);color:red}.setting-item .btn{min-height:28px;min-width:10em;padding:0 2em}.setting-item .number-input{max-width:6em}.select-multiple{display:flex}.select-multiple .option-list{margin:0;padding-left:.5em}.option-list,.setting-list{list-style-type:none;padding-left:2em}.option-list li,.setting-list li{margin-bottom:.5em}.option-list .suboptions,.setting-list .suboptions{margin-top:.3em}.login-hint{text-align:center}@media (min-width:801px){.login-hint{display:none}}.login-hint a{display:inline-block;padding:1em 0;width:100%}.btn.btn-default{min-height:28px}',""])},function(e,t,i){"use strict";i.r(t);var a=i(181),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(314),r=i(0);var l=function(e){i(927)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(928);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("04d46dee",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".user-panel .signed-in{overflow:visible}",""])},function(e,t,i){"use strict";i.r(t);var a=i(182),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(315),r=i(0);var l=function(e){i(930)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(931);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("b030addc",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".nav-panel .panel{overflow:hidden;box-shadow:var(--panelShadow)}.nav-panel ul{list-style:none;margin:0;padding:0}.follow-request-count{margin:-6px 10px;background-color:#121a24;background-color:var(--input,hsla(240,1%,73%,.5))}.nav-panel li{border-bottom:1px solid;border-color:#222;border-color:var(--border,#222);padding:0}.nav-panel li:first-child a{border-top-right-radius:10px;border-top-right-radius:var(--panelRadius,10px);border-top-left-radius:10px;border-top-left-radius:var(--panelRadius,10px)}.nav-panel li:last-child a{border-bottom-right-radius:10px;border-bottom-right-radius:var(--panelRadius,10px);border-bottom-left-radius:10px;border-bottom-left-radius:var(--panelRadius,10px)}.nav-panel li:last-child{border:none}.nav-panel a{display:block;padding:.8em .85em}.nav-panel a.router-link-active,.nav-panel a:hover{background-color:#151e2a;background-color:var(--lightBg,#151e2a)}.nav-panel a.router-link-active{font-weight:bolder}.nav-panel a.router-link-active:hover{text-decoration:underline}",""])},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=i(29),n=(a=o)&&a.__esModule?a:{default:a};var s=function(e){var t=e.store,i=e.credentials;return n.default.fetchFollowRequests({credentials:i}).then(function(e){t.commit("setFollowRequests",e)},function(){}).catch(function(){})},r={startFetching:function(e){var t=e.credentials,i=e.store;s({credentials:t,store:i});return setInterval(function(){return s({credentials:t,store:i})},1e4)}};t.default=r},function(e,t,i){"use strict";i.r(t);var a=i(183),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(316),r=i(0);var l=function(e){i(934)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(935);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("45e8aa84",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".user-finder-container{max-width:100%;display:inline-flex;align-items:baseline;vertical-align:baseline}.user-finder-container .search-button,.user-finder-container .user-finder-input{height:29px}.user-finder-container .user-finder-input{max-width:calc(100% - 30px - 30px - 20px)}.user-finder-container .search-button{margin-left:.5em;margin-right:.5em}",""])},function(e,t,i){"use strict";i.r(t);var a=i(184),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(317),r=i(0);var l=function(e){i(937)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(938);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("2f18dd03",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".who-to-follow *{vertical-align:middle}.who-to-follow img{width:32px;height:32px}.who-to-follow{padding:0 1em;margin:0}.who-to-follow-items{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0;margin:1em 0}.who-to-follow-more{padding:0;margin:1em 0;text-align:center}",""])},,,,,function(e,t,i){"use strict";i.r(t);var a=i(185),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(318),r=i(0);var l=function(e){i(944)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(945);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("23b00cfc",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".media-modal-view{z-index:1001}.media-modal-view:hover .modal-view-button-arrow{opacity:.75}.media-modal-view:hover .modal-view-button-arrow:focus,.media-modal-view:hover .modal-view-button-arrow:hover{outline:none;box-shadow:none}.media-modal-view:hover .modal-view-button-arrow:hover{opacity:1}.modal-image{max-width:90%;max-height:90%;box-shadow:0 5px 15px 0 rgba(0,0,0,.5)}.modal-view-button-arrow{position:absolute;display:block;top:50%;margin-top:-50px;width:70px;height:100px;border:0;padding:0;opacity:0;box-shadow:none;background:none;appearance:none;overflow:visible;cursor:pointer;transition:opacity 333ms cubic-bezier(.4,0,.22,1)}.modal-view-button-arrow .arrow-icon{position:absolute;top:35px;height:30px;width:32px;font-size:14px;line-height:30px;color:#fff;text-align:center;background-color:rgba(0,0,0,.3)}.modal-view-button-arrow--prev{left:0}.modal-view-button-arrow--prev .arrow-icon{left:6px}.modal-view-button-arrow--next{right:0}.modal-view-button-arrow--next .arrow-icon{right:6px}",""])},function(e,t,i){var a=i(947);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("34992fba",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".side-drawer-container{position:fixed;z-index:1000;top:0;left:0;width:100%;height:100%;display:flex;align-items:stretch;transition-duration:0s;transition-property:transform}.side-drawer-container-open{transform:translate(0)}.side-drawer-container-closed{transition-delay:.35s;transform:translate(-100%)}.side-drawer-darken{top:0;left:0;width:100vw;height:100vh;position:fixed;z-index:-1;transition:.35s;transition-property:background-color;background-color:rgba(0,0,0,.5)}.side-drawer-darken-closed{background-color:transparent}.side-drawer-click-outside{flex:1 1 100%}.side-drawer{overflow-x:hidden;transition-timing-function:cubic-bezier(0,1,.5,1);transition:.35s;transition-property:transform;margin:0 0 0 -100px;padding:0 0 1em 100px;width:80%;max-width:20em;flex:0 0 80%;box-shadow:1px 1px 4px rgba(0,0,0,.6);box-shadow:var(--panelShadow);background-color:#121a24;background-color:var(--bg,#121a24)}.side-drawer-logo-wrapper{display:flex;align-items:center;padding:.85em}.side-drawer-logo-wrapper img{flex:none;height:50px;margin-right:.85em}.side-drawer-logo-wrapper span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-drawer-click-outside-closed{flex:0 0 0}.side-drawer-closed{transform:translate(-100%)}.side-drawer-heading{background:transparent;flex-direction:column;align-items:stretch;display:flex;padding:0;margin:0}.side-drawer ul{list-style:none;margin:0;padding:0;border-bottom:1px solid;border-color:#222;border-color:var(--border,#222);margin:.2em 0}.side-drawer ul:last-child{border:0}.side-drawer li{padding:0}.side-drawer li a{display:block;padding:.5em .85em}.side-drawer li a:hover{background-color:#151e2a;background-color:var(--lightBg,#151e2a)}",""])},function(e,t,i){var a=i(949);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("255c837c",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".post-form-modal-view{max-height:100%;display:block}.post-form-modal-panel{flex-shrink:0;margin:25% 0 4em;width:100%}.new-status-button{width:5em;height:5em;border-radius:100%;position:fixed;bottom:1.5em;right:1.5em;background-color:#182230;background-color:var(--btn,#182230);display:flex;justify-content:center;align-items:center;box-shadow:0 2px 2px rgba(0,0,0,.3),0 4px 6px rgba(0,0,0,.3);z-index:10;transition:transform .35s;transition-timing-function:cubic-bezier(0,1,.5,1)}.new-status-button.hidden{transform:translateY(150%)}.new-status-button i{font-size:1.5em;color:#b9b9ba;color:var(--text,#b9b9ba)}@media (min-width:801px){.new-status-button{display:none}}",""])},function(e,t,i){"use strict";i.r(t);var a=i(188),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(321),r=i(0);var l=function(e){i(951)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(952);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("1e0fbcf8",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".mobile-inner-nav{width:100%;display:flex;align-items:center}.mobile-nav-button{display:flex;justify-content:center;width:50px;position:relative;cursor:pointer}.alert-dot{border-radius:100%;height:8px;width:8px;position:absolute;left:calc(50% - 4px);top:calc(50% - 4px);margin-left:6px;margin-top:-6px;background-color:red;background-color:var(--badgeNotification,red)}.mobile-notifications-drawer{width:100%;height:100vh;overflow-x:hidden;position:fixed;top:0;left:0;box-shadow:1px 1px 4px rgba(0,0,0,.6);box-shadow:var(--panelShadow);transition-property:transform;transition-duration:.25s;transform:translateX(0);z-index:1001;-webkit-overflow-scrolling:touch}.mobile-notifications-drawer.closed{transform:translateX(100%)}.mobile-notifications-header{display:flex;align-items:center;justify-content:space-between;z-index:1;width:100%;height:50px;line-height:50px;position:absolute;color:var(--topBarText);background-color:#182230;background-color:var(--topBar,#182230);box-shadow:0 0 4px rgba(0,0,0,.6);box-shadow:var(--topBarShadow)}.mobile-notifications-header .title{font-size:1.3em;margin-left:.6em}.mobile-notifications{margin-top:50px;width:100vw;height:calc(100vh - 50px);overflow-x:hidden;overflow-y:scroll;color:#b9b9ba;color:var(--text,#b9b9ba);background-color:#121a24;background-color:var(--bg,#121a24)}.mobile-notifications .notifications{padding:0;border-radius:0;box-shadow:none}.mobile-notifications .notifications .panel{border-radius:0;margin:0;box-shadow:none}.mobile-notifications .notifications .panel:after{border-radius:0}.mobile-notifications .notifications .panel .panel-heading{border-radius:0;box-shadow:none}",""])},function(e,t,i){"use strict";i.r(t);var a=i(189),o=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,function(){return a[e]})}(n);var s=i(322),r=i(0);var l=function(e){i(954)},c=Object(r.a)(o.a,s.a,s.b,!1,l,null,null);t.default=c.exports},function(e,t,i){var a=i(955);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);(0,i(2).default)("10c04f96",a,!0,{})},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".user-reporting-panel{width:90vw;max-width:700px;min-height:20vh;max-height:80vh}.user-reporting-panel .panel-heading .title{text-align:center;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-reporting-panel .panel-body{display:flex;flex-direction:column-reverse;border-top:1px solid;border-color:#222;border-color:var(--border,#222);overflow:hidden}.user-reporting-panel-left{padding:1.1em .7em .7em;line-height:1.4em;box-sizing:border-box}.user-reporting-panel-left>div{margin-bottom:1em}.user-reporting-panel-left>div:last-child{margin-bottom:0}.user-reporting-panel-left p{margin-top:0}.user-reporting-panel-left textarea.form-control{line-height:16px;resize:none;overflow:hidden;transition:min-height .2s .1s;min-height:44px;width:100%}.user-reporting-panel-left .btn{min-width:10em;padding:0 2em}.user-reporting-panel-left .alert{margin:1em 0 0;line-height:1.3em}.user-reporting-panel-right{display:flex;flex-direction:column;overflow-y:auto}.user-reporting-panel-sitem{display:flex;justify-content:space-between}.user-reporting-panel-sitem>.status-el{flex:1}.user-reporting-panel-sitem>.checkbox{margin:.75em}@media (min-width:801px){.user-reporting-panel .panel-body{flex-direction:row}.user-reporting-panel-left{width:50%;max-width:320px;border-right:1px solid;border-color:#222;border-color:var(--border,#222);padding:1.1em}.user-reporting-panel-left>div{margin-bottom:2em}.user-reporting-panel-right{width:50%;flex:1 1 auto;margin-bottom:12px}}",""])},function(e,t,i){"use strict";i.r(t);var a=i(0),o=Object(a.a)(null,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"panel dummy"},[i("div",{staticClass:"panel-heading"},[i("div",{staticClass:"title"},[e._v("\n "+e._s(e.$t("settings.style.preview.header"))+"\n "),i("span",{staticClass:"badge badge-notification"},[e._v("\n 99\n ")])]),e._v(" "),i("span",{staticClass:"faint"},[e._v("\n "+e._s(e.$t("settings.style.preview.header_faint"))+"\n ")]),e._v(" "),i("span",{staticClass:"alert error"},[e._v("\n "+e._s(e.$t("settings.style.preview.error"))+"\n ")]),e._v(" "),i("button",{staticClass:"btn"},[e._v("\n "+e._s(e.$t("settings.style.preview.button"))+"\n ")])]),e._v(" "),i("div",{staticClass:"panel-body theme-preview-content"},[i("div",{staticClass:"post"},[i("div",{staticClass:"avatar"},[e._v("\n ( ͡° ͜ʖ ͡°)\n ")]),e._v(" "),i("div",{staticClass:"content"},[i("h4",[e._v("\n "+e._s(e.$t("settings.style.preview.content"))+"\n ")]),e._v(" "),i("i18n",{attrs:{path:"settings.style.preview.text"}},[i("code",{staticStyle:{"font-family":"var(--postCodeFont)"}},[e._v("\n "+e._s(e.$t("settings.style.preview.mono"))+"\n ")]),e._v(" "),i("a",{staticStyle:{color:"var(--link)"}},[e._v("\n "+e._s(e.$t("settings.style.preview.link"))+"\n ")])]),e._v(" "),e._m(0)],1)]),e._v(" "),i("div",{staticClass:"after-post"},[i("div",{staticClass:"avatar-alt"},[e._v("\n :^)\n ")]),e._v(" "),i("div",{staticClass:"content"},[i("i18n",{staticClass:"faint",attrs:{path:"settings.style.preview.fine_print",tag:"span"}},[i("a",{staticStyle:{color:"var(--faintLink)"}},[e._v("\n "+e._s(e.$t("settings.style.preview.faint_link"))+"\n ")])])],1)]),e._v(" "),i("div",{staticClass:"separator"}),e._v(" "),i("span",{staticClass:"alert error"},[e._v("\n "+e._s(e.$t("settings.style.preview.error"))+"\n ")]),e._v(" "),i("input",{attrs:{type:"text"},domProps:{value:e.$t("settings.style.preview.input")}}),e._v(" "),i("div",{staticClass:"actions"},[i("span",{staticClass:"checkbox"},[i("input",{attrs:{checked:"very yes",type:"checkbox",id:"preview_checkbox"}}),e._v(" "),i("label",{attrs:{for:"preview_checkbox"}},[e._v(e._s(e.$t("settings.style.preview.checkbox")))])]),e._v(" "),i("button",{staticClass:"btn"},[e._v("\n "+e._s(e.$t("settings.style.preview.button"))+"\n ")])])])])},[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"icons"},[t("i",{staticClass:"button-icon icon-reply",staticStyle:{color:"var(--cBlue)"}}),this._v(" "),t("i",{staticClass:"button-icon icon-retweet",staticStyle:{color:"var(--cGreen)"}}),this._v(" "),t("i",{staticClass:"button-icon icon-star",staticStyle:{color:"var(--cOrange)"}}),this._v(" "),t("i",{staticClass:"button-icon icon-cancel",staticStyle:{color:"var(--cRed)"}})])}],!1,null,null,null);t.default=o.exports}])); -//# sourceMappingURL=app.670c36c0acc42fadb4fe.js.map \ No newline at end of file diff --git a/priv/static/static/js/app.670c36c0acc42fadb4fe.js.map b/priv/static/static/js/app.670c36c0acc42fadb4fe.js.map deleted file mode 100644 index 0820fec9b..000000000 --- a/priv/static/static/js/app.670c36c0acc42fadb4fe.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/services/api/api.service.js","webpack:///./src/services/user_profile_link_generator/user_profile_link_generator.js","webpack:///./src/components/timeline/timeline.vue","webpack:///./src/components/user_card/user_card.vue","webpack:///./src/services/color_convert/color_convert.js","webpack:///./src/services/file_type/file_type.service.js","webpack:///./src/components/user_avatar/user_avatar.vue","webpack:///./src/services/style_setter/style_setter.js","webpack:///./src/components/status/status.vue","webpack:///./src/components/notifications/notifications.vue","webpack:///./src/components/basic_user_card/basic_user_card.vue","webpack:///./src/components/public_timeline/public_timeline.js","webpack:///./src/components/timeline/timeline.js","webpack:///./src/components/status/status.js","webpack:///./src/components/attachment/attachment.js","webpack:///./src/components/still-image/still-image.js","webpack:///./src/components/video_attachment/video_attachment.js","webpack:///./src/components/favorite_button/favorite_button.js","webpack:///./src/components/retweet_button/retweet_button.js","webpack:///./src/components/poll/poll.js","webpack:///src/components/timeago/timeago.vue","webpack:///./src/components/extra_buttons/extra_buttons.js","webpack:///./src/components/post_status_form/post_status_form.js","webpack:///./src/components/media_upload/media_upload.js","webpack:///./src/components/scope_selector/scope_selector.js","webpack:///./src/components/emoji-input/emoji-input.js","webpack:///./src/components/poll/poll_form.js","webpack:///./src/components/user_card/user_card.js","webpack:///./src/components/user_avatar/user_avatar.js","webpack:///./src/components/remote_follow/remote_follow.js","webpack:///./src/components/moderation_tools/moderation_tools.js","webpack:///./src/components/dialog_modal/dialog_modal.js","webpack:///./src/components/gallery/gallery.js","webpack:///./src/components/link-preview/link-preview.js","webpack:///./src/components/avatar_list/avatar_list.js","webpack:///./src/components/conversation/conversation.js","webpack:///./src/components/public_and_external_timeline/public_and_external_timeline.js","webpack:///./src/components/friends_timeline/friends_timeline.js","webpack:///./src/components/tag_timeline/tag_timeline.js","webpack:///./src/components/conversation-page/conversation-page.js","webpack:///./src/components/interactions/interactions.js","webpack:///./src/components/notifications/notifications.js","webpack:///./src/components/notification/notification.js","webpack:///./src/components/dm_timeline/dm_timeline.js","webpack:///./src/components/user_profile/user_profile.js","webpack:///./src/components/follow_card/follow_card.js","webpack:///./src/components/basic_user_card/basic_user_card.js","webpack:///src/components/list/list.vue","webpack:///./src/components/settings/settings.js","webpack:///./src/components/style_switcher/style_switcher.js","webpack:///src/components/color_input/color_input.vue","webpack:///src/components/range_input/range_input.vue","webpack:///src/components/opacity_input/opacity_input.vue","webpack:///./src/components/shadow_control/shadow_control.js","webpack:///./src/components/font_control/font_control.js","webpack:///src/components/contrast_ratio/contrast_ratio.vue","webpack:///src/components/export_import/export_import.vue","webpack:///src/components/interface_language_switcher/interface_language_switcher.vue","webpack:///./src/components/registration/registration.js","webpack:///./src/components/user_settings/user_settings.js","webpack:///./src/components/image_cropper/image_cropper.js","webpack:///./src/components/block_card/block_card.js","webpack:///./src/components/mute_card/mute_card.js","webpack:///./src/components/selectable_list/selectable_list.js","webpack:///src/components/checkbox/checkbox.vue","webpack:///src/components/progress_button/progress_button.vue","webpack:///./src/components/autosuggest/autosuggest.js","webpack:///./src/components/importer/importer.js","webpack:///./src/components/exporter/exporter.js","webpack:///./src/components/user_settings/mfa.js","webpack:///./src/components/user_settings/mfa_backup_codes.js","webpack:///./src/components/user_settings/mfa_totp.js","webpack:///./src/components/user_settings/confirm.js","webpack:///./src/components/follow_requests/follow_requests.js","webpack:///./src/components/follow_request_card/follow_request_card.js","webpack:///./src/components/oauth_callback/oauth_callback.js","webpack:///./src/components/user_search/user_search.js","webpack:///./src/components/login_form/login_form.js","webpack:///./src/components/mfa_form/recovery_form.js","webpack:///./src/components/mfa_form/totp_form.js","webpack:///./src/components/chat_panel/chat_panel.js","webpack:///./src/components/who_to_follow/who_to_follow.js","webpack:///./src/components/about/about.js","webpack:///./src/components/instance_specific_panel/instance_specific_panel.js","webpack:///./src/components/features_panel/features_panel.js","webpack:///./src/components/terms_of_service_panel/terms_of_service_panel.js","webpack:///./src/App.js","webpack:///./src/components/user_panel/user_panel.js","webpack:///./src/components/nav_panel/nav_panel.js","webpack:///./src/components/user_finder/user_finder.js","webpack:///./src/components/who_to_follow_panel/who_to_follow_panel.js","webpack:///./src/components/media_modal/media_modal.js","webpack:///./src/components/side_drawer/side_drawer.js","webpack:///./src/components/mobile_post_status_modal/mobile_post_status_modal.js","webpack:///./src/components/mobile_nav/mobile_nav.js","webpack:///./src/components/user_reporting_modal/user_reporting_modal.js","webpack:///./src/services/backend_interactor_service/backend_interactor_service.js","webpack:///./src/components/still-image/still-image.vue","webpack:///./src/components/timeago/timeago.vue","webpack:///./src/components/post_status_form/post_status_form.vue","webpack:///./src/components/conversation/conversation.vue","webpack:///./src/services/notification_utils/notification_utils.js","webpack:///./src/components/follow_card/follow_card.vue","webpack:///./src/components/list/list.vue","webpack:///./src/components/tab_switcher/tab_switcher.js","webpack:///./src/services/new_api/oauth.js","webpack:///./src/components/still-image/still-image.vue?6f45","webpack:///./src/components/video_attachment/video_attachment.vue?f607","webpack:///./src/components/attachment/attachment.vue?75bb","webpack:///./src/components/favorite_button/favorite_button.vue?6fd0","webpack:///./src/components/retweet_button/retweet_button.vue?df1f","webpack:///./src/components/timeago/timeago.vue?3145","webpack:///./src/components/poll/poll.vue?f979","webpack:///./src/components/extra_buttons/extra_buttons.vue?4097","webpack:///./src/components/media_upload/media_upload.vue?4fc5","webpack:///./src/components/scope_selector/scope_selector.vue?764c","webpack:///./src/components/emoji-input/emoji-input.vue?5cb6","webpack:///./src/components/poll/poll_form.vue?2ca1","webpack:///./src/components/post_status_form/post_status_form.vue?caed","webpack:///./src/components/user_avatar/user_avatar.vue?cc8f","webpack:///./src/components/remote_follow/remote_follow.vue?3868","webpack:///./src/components/dialog_modal/dialog_modal.vue?b5b9","webpack:///./src/components/moderation_tools/moderation_tools.vue?3080","webpack:///./src/components/user_card/user_card.vue?2f9f","webpack:///./src/components/gallery/gallery.vue?5a46","webpack:///./src/components/link-preview/link-preview.vue?6467","webpack:///./src/components/avatar_list/avatar_list.vue?464c","webpack:///./src/components/status/status.vue?9da3","webpack:///./src/components/conversation/conversation.vue?25f0","webpack:///./src/components/timeline/timeline.vue?558a","webpack:///./src/components/public_timeline/public_timeline.vue?f4fe","webpack:///./src/components/public_and_external_timeline/public_and_external_timeline.vue?e277","webpack:///./src/components/friends_timeline/friends_timeline.vue?61da","webpack:///./src/components/tag_timeline/tag_timeline.vue?6444","webpack:///./src/components/conversation-page/conversation-page.vue?a5a9","webpack:///./src/components/notification/notification.vue?2dab","webpack:///./src/components/notifications/notifications.vue?d62d","webpack:///./src/components/interactions/interactions.vue?664d","webpack:///./src/components/dm_timeline/dm_timeline.vue?ef8c","webpack:///./src/components/basic_user_card/basic_user_card.vue?3a5e","webpack:///./src/components/follow_card/follow_card.vue?c585","webpack:///./src/components/list/list.vue?611c","webpack:///./src/components/user_profile/user_profile.vue?5b79","webpack:///./src/components/color_input/color_input.vue?40da","webpack:///./src/components/range_input/range_input.vue?b1ce","webpack:///./src/components/opacity_input/opacity_input.vue?465f","webpack:///./src/components/shadow_control/shadow_control.vue?a05e","webpack:///./src/components/font_control/font_control.vue?5889","webpack:///./src/components/contrast_ratio/contrast_ratio.vue?a488","webpack:///./src/components/export_import/export_import.vue?ee43","webpack:///./src/components/style_switcher/style_switcher.vue?b070","webpack:///./src/components/interface_language_switcher/interface_language_switcher.vue?7311","webpack:///./src/components/settings/settings.vue?2f30","webpack:///./src/components/registration/registration.vue?3c38","webpack:///./src/components/image_cropper/image_cropper.vue?6561","webpack:///./src/components/block_card/block_card.vue?91c4","webpack:///./src/components/mute_card/mute_card.vue?bc66","webpack:///./src/components/checkbox/checkbox.vue?0adf","webpack:///./src/components/selectable_list/selectable_list.vue?f0b3","webpack:///./src/components/progress_button/progress_button.vue?5e3a","webpack:///./src/components/autosuggest/autosuggest.vue?02ce","webpack:///./src/components/importer/importer.vue?b956","webpack:///./src/components/exporter/exporter.vue?60fd","webpack:///./src/components/user_settings/mfa_backup_codes.vue?943d","webpack:///./src/components/user_settings/confirm.vue?5248","webpack:///./src/components/user_settings/mfa_totp.vue?5bd9","webpack:///./src/components/user_settings/mfa.vue?2717","webpack:///./src/components/user_settings/user_settings.vue?4dac","webpack:///./src/components/follow_request_card/follow_request_card.vue?05df","webpack:///./src/components/follow_requests/follow_requests.vue?0e47","webpack:///./src/components/oauth_callback/oauth_callback.vue?99e7","webpack:///./src/components/user_search/user_search.vue?3c02","webpack:///./src/components/login_form/login_form.vue?10cb","webpack:///./src/components/mfa_form/recovery_form.vue?51d3","webpack:///./src/components/mfa_form/totp_form.vue?9bd9","webpack:///./src/components/chat_panel/chat_panel.vue?4834","webpack:///./src/components/who_to_follow/who_to_follow.vue?2bb4","webpack:///./src/components/instance_specific_panel/instance_specific_panel.vue?c065","webpack:///./src/components/features_panel/features_panel.vue?955e","webpack:///./src/components/terms_of_service_panel/terms_of_service_panel.vue?d3fd","webpack:///./src/components/about/about.vue?a70d","webpack:///./src/components/user_panel/user_panel.vue?2293","webpack:///./src/components/nav_panel/nav_panel.vue?10bc","webpack:///./src/components/user_finder/user_finder.vue?3c4b","webpack:///./src/components/who_to_follow_panel/who_to_follow_panel.vue?19d0","webpack:///./src/components/media_modal/media_modal.vue?b870","webpack:///./src/components/side_drawer/side_drawer.vue?b5d6","webpack:///./src/components/mobile_post_status_modal/mobile_post_status_modal.vue?d8e3","webpack:///./src/components/mobile_nav/mobile_nav.vue?752c","webpack:///./src/components/user_reporting_modal/user_reporting_modal.vue?731e","webpack:///./src/App.vue?728c","webpack:///./src/services/entity_normalizer/entity_normalizer.service.js","webpack:///./src/services/timeline_fetcher/timeline_fetcher.service.js","webpack:///./src/services/notifications_fetcher/notifications_fetcher.service.js","webpack:///./src/services/new_api/user_search.js","webpack:///./src/i18n/messages.js","webpack:///./src/components/attachment/attachment.vue","webpack:///./src/components/video_attachment/video_attachment.vue","webpack:///./src/services/date_utils/date_utils.js","webpack:///./src/services/status_poster/status_poster.service.js","webpack:///./src/services/file_size_format/file_size_format.js","webpack:///./src/components/scope_selector/scope_selector.vue","webpack:///./src/components/emoji-input/emoji-input.vue","webpack:///./src/components/emoji-input/suggestor.js","webpack:///./src/components/remote_follow/remote_follow.vue","webpack:///./src/components/moderation_tools/moderation_tools.vue","webpack:///./src/services/follow_manipulate/follow_manipulate.js","webpack:///./src/services/user_highlighter/user_highlighter.js","webpack:///./src/services/component_utils/component_utils.js","webpack:///./src/components/style_switcher/style_switcher.vue","webpack:///./src/components/color_input/color_input.vue","webpack:///./src/components/opacity_input/opacity_input.vue","webpack:///./src/components/checkbox/checkbox.vue","webpack:///./src/components/user_settings/confirm.vue","webpack:///./src/components/auth_form/auth_form.js","webpack:///./src/services/new_api/mfa.js","webpack:///./src/components/chat_panel/chat_panel.vue","webpack:///./src/components/instance_specific_panel/instance_specific_panel.vue","webpack:///./src/components/features_panel/features_panel.vue","webpack:///./src/components/side_drawer/side_drawer.vue","webpack:///./src/services/gesture_service/gesture_service.js","webpack:///./src/components/mobile_post_status_modal/mobile_post_status_modal.vue","webpack:///./src/services/window_utils/window_utils.js","webpack:///./src/main.js","webpack:///./src/modules/interface.js","webpack:///./src/modules/instance.js","webpack:///./src/modules/statuses.js","webpack:///./src/services/errors/errors.js","webpack:///./src/modules/users.js","webpack:///./src/services/new_api/utils.js","webpack:///./src/services/push/push.js","webpack:///./src/modules/errors.js","webpack:///./src/modules/api.js","webpack:///./src/modules/config.js","webpack:///./src/modules/chat.js","webpack:///./src/modules/oauth.js","webpack:///./src/modules/auth_flow.js","webpack:///./src/modules/media_viewer.js","webpack:///./src/modules/oauth_tokens.js","webpack:///./src/modules/reports.js","webpack:///./src/modules/polls.js","webpack:///./src/lib/persisted_state.js","webpack:///./src/lib/push_notifications_plugin.js","webpack:///./src/boot/after_store.js","webpack:///./src/boot/routes.js","webpack:///./src/components/public_timeline/public_timeline.vue","webpack:///./src/components/timeline/timeline.vue?f674","webpack:///./src/components/timeline/timeline.vue?d6bb","webpack:///./src/components/status/status.vue?fa33","webpack:///./src/components/status/status.vue?733b","webpack:///./src/components/attachment/attachment.vue?4fa7","webpack:///./src/components/attachment/attachment.vue?5971","webpack:///./src/components/still-image/still-image.vue?21db","webpack:///./src/components/still-image/still-image.vue?da13","webpack:///./src/assets/nsfw.png","webpack:///./src/components/favorite_button/favorite_button.vue","webpack:///./src/components/favorite_button/favorite_button.vue?0184","webpack:///./src/components/favorite_button/favorite_button.vue?9b9b","webpack:///./src/components/retweet_button/retweet_button.vue","webpack:///./src/components/retweet_button/retweet_button.vue?8eee","webpack:///./src/components/retweet_button/retweet_button.vue?ecd9","webpack:///./src/components/poll/poll.vue","webpack:///./src/components/poll/poll.vue?7318","webpack:///./src/components/poll/poll.vue?192f","webpack:///./src/components/extra_buttons/extra_buttons.vue","webpack:///./src/components/extra_buttons/extra_buttons.vue?2134","webpack:///./src/components/extra_buttons/extra_buttons.vue?bef5","webpack:///./src/components/post_status_form/post_status_form.vue?fd6e","webpack:///./src/components/post_status_form/post_status_form.vue?5887","webpack:///./src/components/media_upload/media_upload.vue","webpack:///./src/components/media_upload/media_upload.vue?ac16","webpack:///./src/components/media_upload/media_upload.vue?d1fd","webpack:///./src/components/scope_selector/scope_selector.vue?baf6","webpack:///./src/components/scope_selector/scope_selector.vue?341e","webpack:///./src/components/emoji-input/emoji-input.vue?63fd","webpack:///./src/components/emoji-input/emoji-input.vue?dd1a","webpack:///./src/services/completion/completion.js","webpack:///./src/components/poll/poll_form.vue","webpack:///./src/components/poll/poll_form.vue?43b8","webpack:///./src/components/poll/poll_form.vue?f333","webpack:///./src/components/user_card/user_card.vue?1920","webpack:///./src/components/user_card/user_card.vue?a3c0","webpack:///./src/components/user_avatar/user_avatar.vue?aac8","webpack:///./src/components/user_avatar/user_avatar.vue?6951","webpack:///./src/components/remote_follow/remote_follow.vue?44cd","webpack:///./src/components/remote_follow/remote_follow.vue?2689","webpack:///./src/components/moderation_tools/moderation_tools.vue?3b42","webpack:///./src/components/moderation_tools/moderation_tools.vue?870b","webpack:///./src/components/dialog_modal/dialog_modal.vue","webpack:///./src/components/dialog_modal/dialog_modal.vue?66ca","webpack:///./src/components/dialog_modal/dialog_modal.vue?e653","webpack:///./src/components/gallery/gallery.vue","webpack:///./src/components/gallery/gallery.vue?ea2c","webpack:///./src/components/gallery/gallery.vue?759e","webpack:///./src/components/link-preview/link-preview.vue","webpack:///./src/components/link-preview/link-preview.vue?95df","webpack:///./src/components/link-preview/link-preview.vue?40b7","webpack:///./src/components/avatar_list/avatar_list.vue","webpack:///./src/components/avatar_list/avatar_list.vue?83d0","webpack:///./src/components/avatar_list/avatar_list.vue?4546","webpack:///./src/services/matcher/matcher.service.js","webpack:///./src/components/conversation/conversation.vue?e1e5","webpack:///./src/components/conversation/conversation.vue?e01a","webpack:///./src/components/public_and_external_timeline/public_and_external_timeline.vue","webpack:///./src/components/friends_timeline/friends_timeline.vue","webpack:///./src/components/tag_timeline/tag_timeline.vue","webpack:///./src/components/conversation-page/conversation-page.vue","webpack:///./src/components/interactions/interactions.vue","webpack:///./src/components/notifications/notifications.scss?c04f","webpack:///./src/components/notifications/notifications.scss","webpack:///./src/components/notification/notification.vue","webpack:///./src/components/dm_timeline/dm_timeline.vue","webpack:///./src/components/user_profile/user_profile.vue","webpack:///./src/components/user_profile/user_profile.vue?7fb4","webpack:///./src/components/user_profile/user_profile.vue?899c","webpack:///./src/components/follow_card/follow_card.vue?5688","webpack:///./src/components/follow_card/follow_card.vue?ad43","webpack:///./src/components/basic_user_card/basic_user_card.vue?ba41","webpack:///./src/components/basic_user_card/basic_user_card.vue?0481","webpack:///./src/components/list/list.vue?17ca","webpack:///./src/components/list/list.vue?e2c8","webpack:///./src/hocs/with_load_more/with_load_more.js","webpack:///./src/components/settings/settings.vue","webpack:///./src/components/style_switcher/style_switcher.scss?411b","webpack:///./src/components/style_switcher/style_switcher.scss","webpack:///./src/components/color_input/color_input.vue?40c0","webpack:///./src/components/color_input/color_input.vue?7583","webpack:///./src/components/range_input/range_input.vue","webpack:///./src/components/shadow_control/shadow_control.vue","webpack:///./src/components/shadow_control/shadow_control.vue?bfd4","webpack:///./src/components/shadow_control/shadow_control.vue?78ef","webpack:///./src/components/font_control/font_control.vue","webpack:///./src/components/font_control/font_control.vue?5f33","webpack:///./src/components/font_control/font_control.vue?bef4","webpack:///./src/components/contrast_ratio/contrast_ratio.vue","webpack:///./src/components/contrast_ratio/contrast_ratio.vue?a340","webpack:///./src/components/contrast_ratio/contrast_ratio.vue?32fa","webpack:///./src/components/export_import/export_import.vue","webpack:///./src/components/export_import/export_import.vue?5952","webpack:///./src/components/export_import/export_import.vue?aed6","webpack:///./src/components/interface_language_switcher/interface_language_switcher.vue","webpack:///./src/services/version/version.service.js","webpack:///./src/components/registration/registration.vue","webpack:///./src/components/registration/registration.vue?d518","webpack:///./src/components/registration/registration.vue?fd73","webpack:///./src/components/user_settings/user_settings.vue","webpack:///./src/components/user_settings/user_settings.vue?1522","webpack:///./src/components/user_settings/user_settings.vue?6575","webpack:///./src/components/image_cropper/image_cropper.vue","webpack:///./src/components/image_cropper/image_cropper.vue?f169","webpack:///./src/components/image_cropper/image_cropper.vue?6235","webpack:///./src/components/block_card/block_card.vue","webpack:///./src/components/block_card/block_card.vue?7ad7","webpack:///./src/components/block_card/block_card.vue?ddc8","webpack:///./src/components/mute_card/mute_card.vue","webpack:///./src/components/mute_card/mute_card.vue?c72f","webpack:///./src/components/mute_card/mute_card.vue?1268","webpack:///./src/components/selectable_list/selectable_list.vue","webpack:///./src/components/selectable_list/selectable_list.vue?a6e3","webpack:///./src/components/selectable_list/selectable_list.vue?c2f8","webpack:///./src/components/checkbox/checkbox.vue?3599","webpack:///./src/components/checkbox/checkbox.vue?bf55","webpack:///./src/components/progress_button/progress_button.vue","webpack:///./src/components/autosuggest/autosuggest.vue","webpack:///./src/components/autosuggest/autosuggest.vue?9908","webpack:///./src/components/autosuggest/autosuggest.vue?9383","webpack:///./src/components/importer/importer.vue","webpack:///./src/components/importer/importer.vue?7798","webpack:///./src/components/importer/importer.vue?6af6","webpack:///./src/components/exporter/exporter.vue","webpack:///./src/components/exporter/exporter.vue?dea3","webpack:///./src/components/exporter/exporter.vue?cc2b","webpack:///./src/hocs/with_subscription/with_subscription.js","webpack:///./src/components/user_settings/mfa.vue","webpack:///./src/components/user_settings/mfa.vue?6a62","webpack:///./src/components/user_settings/mfa.vue?64d1","webpack:///./src/components/user_settings/mfa_backup_codes.vue","webpack:///./src/components/user_settings/mfa_backup_codes.vue?922c","webpack:///./src/components/user_settings/mfa_backup_codes.vue?4206","webpack:///./src/components/user_settings/mfa_totp.vue","webpack:///./src/components/follow_requests/follow_requests.vue","webpack:///./src/components/follow_request_card/follow_request_card.vue","webpack:///./src/components/follow_request_card/follow_request_card.vue?c9e7","webpack:///./src/components/follow_request_card/follow_request_card.vue?b0bb","webpack:///./src/components/oauth_callback/oauth_callback.vue","webpack:///./src/components/user_search/user_search.vue","webpack:///./src/components/user_search/user_search.vue?cc34","webpack:///./src/components/user_search/user_search.vue?e47e","webpack:///./src/components/login_form/login_form.vue","webpack:///./src/components/login_form/login_form.vue?99e8","webpack:///./src/components/login_form/login_form.vue?9c6d","webpack:///./src/components/mfa_form/recovery_form.vue","webpack:///./src/components/mfa_form/totp_form.vue","webpack:///./src/components/chat_panel/chat_panel.vue?9dd9","webpack:///./src/components/chat_panel/chat_panel.vue?d094","webpack:///./src/components/who_to_follow/who_to_follow.vue","webpack:///./src/components/who_to_follow/who_to_follow.vue?6f47","webpack:///./src/components/who_to_follow/who_to_follow.vue?4eb6","webpack:///./src/components/about/about.vue","webpack:///./src/components/about/about.vue?47a2","webpack:///./src/components/about/about.vue?7cdd","webpack:///./src/components/instance_specific_panel/instance_specific_panel.vue?8aef","webpack:///./src/components/instance_specific_panel/instance_specific_panel.vue?6a74","webpack:///./src/components/features_panel/features_panel.vue?b8ab","webpack:///./src/components/features_panel/features_panel.vue?867d","webpack:///./src/components/terms_of_service_panel/terms_of_service_panel.vue","webpack:///./src/components/terms_of_service_panel/terms_of_service_panel.vue?7e97","webpack:///./src/components/terms_of_service_panel/terms_of_service_panel.vue?7643","webpack:///./src/App.vue","webpack:///./src/App.scss?b70d","webpack:///./src/App.scss","webpack:///./src/components/user_panel/user_panel.vue","webpack:///./src/components/user_panel/user_panel.vue?e12b","webpack:///./src/components/user_panel/user_panel.vue?63b4","webpack:///./src/components/nav_panel/nav_panel.vue","webpack:///./src/components/nav_panel/nav_panel.vue?7be9","webpack:///./src/components/nav_panel/nav_panel.vue?be5f","webpack:///./src/services/follow_request_fetcher/follow_request_fetcher.service.js","webpack:///./src/components/user_finder/user_finder.vue","webpack:///./src/components/user_finder/user_finder.vue?eb20","webpack:///./src/components/user_finder/user_finder.vue?5f70","webpack:///./src/components/who_to_follow_panel/who_to_follow_panel.vue","webpack:///./src/components/who_to_follow_panel/who_to_follow_panel.vue?2f6b","webpack:///./src/components/who_to_follow_panel/who_to_follow_panel.vue?1274","webpack:///./src/components/media_modal/media_modal.vue","webpack:///./src/components/media_modal/media_modal.vue?2930","webpack:///./src/components/media_modal/media_modal.vue?1d79","webpack:///./src/components/side_drawer/side_drawer.vue?472d","webpack:///./src/components/side_drawer/side_drawer.vue?fcf9","webpack:///./src/components/mobile_post_status_modal/mobile_post_status_modal.vue?8b26","webpack:///./src/components/mobile_post_status_modal/mobile_post_status_modal.vue?d990","webpack:///./src/components/mobile_nav/mobile_nav.vue","webpack:///./src/components/mobile_nav/mobile_nav.vue?46cb","webpack:///./src/components/mobile_nav/mobile_nav.vue?9a0e","webpack:///./src/components/user_reporting_modal/user_reporting_modal.vue","webpack:///./src/components/user_reporting_modal/user_reporting_modal.vue?7889","webpack:///./src/components/user_reporting_modal/user_reporting_modal.vue?1af4","webpack:///./src/components/style_switcher/preview.vue?231f","webpack:///./src/components/style_switcher/preview.vue"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","0","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","_entity_normalizerService","_errors","PERMISSION_GROUP_URL","screenName","right","MASTODON_FAVORITE_URL","id","MASTODON_UNFAVORITE_URL","MASTODON_RETWEET_URL","MASTODON_UNRETWEET_URL","MASTODON_USER_TIMELINE_URL","MASTODON_TAG_TIMELINE_URL","tag","MASTODON_MUTE_USER_URL","MASTODON_UNMUTE_USER_URL","MASTODON_STATUS_FAVORITEDBY_URL","MASTODON_STATUS_REBLOGGEDBY_URL","MASTODON_PIN_OWN_STATUS","MASTODON_UNPIN_OWN_STATUS","oldfetch","fetch","url","options","fullUrl","credentials","promisedRequest","_ref","method","payload","_ref$headers","headers","undefined","Accept","Content-Type","body","_stringify2","default","_extends3","authHeaders","then","response","_promise2","resolve","reject","json","ok","StatusCodeError","status","accessToken","Authorization","fetchFriends","_ref21","maxId","sinceId","_ref21$limit","limit","MASTODON_FOLLOWING_URL","args","filter","_","join","map","parseUser","apiService","verifyCredentials","user","error","fetchTimeline","_ref35","timeline","_ref35$since","since","_ref35$until","until","_ref35$userId","userId","_ref35$tag","_ref35$withMuted","withMuted","isNotifications","params","public","friends","dms","notifications","publicAndExternal","media","favorites","queryString","_map3","param","Error","parseNotification","parseStatus","fetchPinnedStatuses","_ref36","fetchConversation","_ref26","urlContext","MASTODON_STATUS_CONTEXT_URL","_ref27","ancestors","descendants","fetchStatus","_ref28","MASTODON_STATUS_URL","exportFriends","_ref22","_ref23","_asyncToGenerator3","_regenerator2","mark","_callee","more","users","wrap","_context","prev","next","_last3","sent","_concat3","t0","stop","_x","_x2","this","arguments","fetchFollowers","_ref24","_ref24$limit","MASTODON_FOLLOWERS_URL","followUser","_ref11","MASTODON_FOLLOW_URL","unfollowUser","_ref12","MASTODON_UNFOLLOW_URL","pinOwnStatus","_ref13","unpinOwnStatus","_ref14","blockUser","_ref15","MASTODON_BLOCK_USER_URL","unblockUser","_ref16","MASTODON_UNBLOCK_USER_URL","fetchUser","_ref19","MASTODON_USER_URL","fetchUserRelationship","_ref20","MASTODON_USER_RELATIONSHIPS_URL","favorite","_ref37","unfavorite","_ref38","retweet","_ref39","unretweet","_ref40","postStatus","_ref41","spoilerText","visibility","sensitive","poll","_ref41$mediaIds","mediaIds","inReplyToStatusId","contentType","form","FormData","pollOptions","append","forEach","val","some","option","normalizedPoll","expires_in","expiresIn","multiple","_keys2","deleteStatus","_ref42","MASTODON_DELETE_URL","uploadMedia","_ref43","formData","parseAttachment","fetchMutes","_ref53","muteUser","_ref54","unmuteUser","_ref55","fetchBlocks","_ref56","fetchOAuthTokens","_ref57","revokeOAuthToken","_ref58","tagUser","_ref29","nicknames","_objectWithoutProperties3","screen_name","tags","untagUser","_ref30","deleteUser","_ref34","ADMIN_USERS_URL","addRight","_ref31","deleteRight","_ref32","setActivationStatus","_ref33","ACTIVATION_STATUS_URL","register","_ref7","nickname","rest","locale","agreement","_ref8","_ref9","_slicedToArray3","getCaptcha","resp","updateAvatar","_ref3","avatar","updateBg","_ref4","background","updateProfile","_ref6","updateBanner","_ref5","banner","externalProfile","_ref10","profileUrl","EXTERNAL_PROFILE_URL","importBlocks","_ref44","file","importFollows","_ref45","deleteAccount","_ref46","password","changePassword","_ref47","newPassword","newPasswordConfirmation","settingsMFA","_ref48","mfaDisableOTP","_ref49","generateMfaBackupCodes","_ref52","mfaSetupOTP","_ref51","mfaConfirmOTP","_ref50","token","fetchFollowRequests","_ref25","approveUser","_ref17","APPROVE_USER_URL","denyUser","_ref18","DENY_USER_URL","suggestions","_ref59","markNotificationsAsSeen","_ref60","vote","_ref61","pollId","choices","encodeURIComponent","fetchPoll","_ref62","fetchFavoritedByUsers","_ref63","fetchRebloggedByUsers","_ref64","reportUser","_ref65","statusIds","comment","forward","account_id","status_ids","updateNotificationSettings","_ref2","settings","_each3","isExternal","includes","restrictedNicknames","complicated","_includes3","__webpack_exports__","_babel_loader_timeline_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_timeline_js__WEBPACK_IMPORTED_MODULE_0___default","__WEBPACK_IMPORT_KEY__","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_1800e336_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_timeline_vue__WEBPACK_IMPORTED_MODULE_1__","_node_modules_vue_loader_lib_runtime_component_normalizer__WEBPACK_IMPORTED_MODULE_2__","__vue_styles__","context","Component","a","_babel_loader_user_card_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_user_card_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_972257b2_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_user_card_vue__WEBPACK_IMPORTED_MODULE_1__","srgbToLinear","srgb","split","reduce","acc","bit","Math","pow","c2linear","relativeLuminance","_srgbToLinear","g","b","rgb2hex","_typeof3","_r","_map2","_map5","ceil","toString","hex2rgb","hex","exec","parseInt","mixrgb","k","invert","rgb","getContrastRatio","la","lb","alphaBlend","fg","fga","bg","fileType","mimetype","match","fileTypeService","fileMatchesSomeType","types","type","_babel_loader_user_avatar_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_user_avatar_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_60cb9afa_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_user_avatar_vue__WEBPACK_IMPORTED_MODULE_1__","_chromatism","_color_convert","rgb2rgba","rgba","getTextColor","text","preserve","bgIsLight","convert","hsl","textIsLight","base","_assign2","invertLightness","contrastRatio","applyTheme","input","commit","_generatePreset","generatePreset","rules","theme","head","document","style","display","styleEl","createElement","appendChild","styleSheet","sheet","insertRule","radii","colors","shadows","fonts","getCssShadow","usesDropShadow","inset","shad","x","y","blur","spread","concat","getCssColor","color","alpha","getCssShadowFilter","Number","startsWith","generateColors","opacity","alert","faint","_entries2","v","col","mod","lightText","brightness","link","lightBg","fgText","fgLink","border","btn","btnText","inputText","panel","panelText","panelLink","panelFaint","topBar","topBarText","topBarLink","faintLink","linkBg","icon","cBlue","cRed","cGreen","cOrange","alertError","alertErrorText","alertErrorPanelText","badgeNotification","badgeNotificationText","console","htmlColors","solid","complete","generateRadii","inputRadii","btnRadius","endsWith","e","checkbox","avatarAlt","tooltip","attachment","generateFonts","interface","family","post","postCode","generateShadows","top","shadow","buttonInsetFakeBorders","inputInsetFakeBorders","hoverGlow","popup","avatarStatus","panelHeader","button","buttonHover","buttonPressed","composePreset","getThemes","themes","all","catch","promises","setStyle","href","cssEl","setAttribute","addEventListener","baseEl","_times3","toUpperCase","getComputedStyle","getPropertyValue","removeChild","setPreset","isV1","Array","isArray","bgRgb","fgRgb","textRgb","linkRgb","cRedRgb","cGreenRgb","cBlueRgb","cOrangeRgb","themeLoaded","_babel_loader_status_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_status_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_15f4f97e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_status_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_notifications_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_notifications_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_168f6ab6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_notifications_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_basic_user_card_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_basic_user_card_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_ce0f370a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_basic_user_card_vue__WEBPACK_IMPORTED_MODULE_1__","_timeline","PublicTimeline","components","Timeline","computed","$store","state","statuses","timelines","created","dispatch","destroyed","props","paused","unfocused","bottomedOut","timelineError","newStatusCount","newStatusCountStr","flushMarker","classes","root","embedded","header","footer","Status","Conversation","store","currentUser","showImmediately","visibleStatuses","scrollLoad","api","fetchers","timelineName","timelineFetcher","fetchAndUpdate","mounted","hidden","handleVisibilityChange","handleShortKey","removeEventListener","methods","target","tagName","toLowerCase","showNewStatuses","fetchOlderStatuses","_throttle3","_this","older","bodyBRect","getBoundingClientRect","height","max","loading","config","autoLoad","$el","offsetHeight","innerHeight","pageYOffset","watch","count","streaming","doc","documentElement","scrollTop","clientTop","pauseOnUnfocused","_user_highlighter","_matcherService","replying","unmuted","userExpanded","preview","showPreview","showingTall","inConversation","focused","showingLongSubject","expandingSubject","collapseMessageWithSubject","instance","betterShadow","browserSupport","cssFilter","localCollapseSubjectDefault","muteWords","repeaterClass","statusoid","highlightClass","userClass","retweeted_status","deleted","repeaterStyle","highlight","highlightStyle","userStyle","noHeading","hideAttachments","hideAttachmentsInConv","userProfileLink","generateUserProfileLink","replyProfileLink","isReply","in_reply_to_user_id","replyToName","retweeter","retweeterHtml","name_html","retweeterProfileLink","statusFromGlobalRepository","allStatusesObject","loggedIn","muteWordHits","statusText","_filter3","muteWord","muted","hideFilteredStatuses","hideStatus","hideReply","isFocused","tallStatus","statusnet_html","longSubject","summary","in_reply_to_status_id","in_reply_to_screen_name","getters","findUser","replyVisibility","checkFollowing","attentions","following","hideSubjectStatus","hideTallStatus","showingMore","nsfwClickthrough","nsfw","replySubject","decodedSummary","_unescape3","behavior","subjectLineBehavior","startsWithRe","attachmentSize","attachments","maxThumbnails","compact","galleryTypes","playVideosInModal","galleryAttachments","nonGalleryAttachments","_this2","contentHtml","summary_html","combinedFavsAndRepeatsUsers","combinedUsers","favoritedBy","rebloggedBy","_uniqBy3","ownStatus","tagObj","Attachment","FavoriteButton","RetweetButton","ExtraButtons","PostStatusForm","Poll","UserCard","UserAvatar","Gallery","LinkPreview","AvatarList","Timeago","visibilityIcon","showError","clearError","linkClicked","event","parentNode","className","attn","find","mentionMatchesUrl","stopPropagation","preventDefault","$router","extractTagFromUrl","generateTagLink","open","toggleReplying","gotoOriginal","$emit","toggleExpanded","toggleMute","toggleUserExpanded","toggleShowMore","replyEnter","_this3","targetId","allStatuses","_find3","backendInteractor","replyLeave","_user_profile_link_generator2","setMedia","_this4","rect","scrollBy","bottom","filters","capitalize","str","charAt","nsfwImage","nsfwCensorImage","hideNsfwLocal","hideNsfw","preloadImage","img","modalOpen","showHidden","StillImage","VideoAttachment","usePlaceHolder","size","referrerpolicy","mediaProxyAvailable","isEmpty","oembed","isSmall","fullwidth","openModal","modalTypes","toggleHidden","useOneClickNsfw","onload","src","stopGifs","animated","onLoad","canvas","$refs","width","naturalWidth","naturalHeight","getContext","drawImage","onError","imageLoadError","loopVideo","onVideoDataLoad","srcElement","webkitAudioDecodedByteCount","loopVideoSilentOnly","mozHasAudio","audioTracks","hidePostStatsLocal","hidePostStats","favorited","setTimeout","icon-star-empty","icon-star","animate-spin","repeated","retweeted","retweeted-empty","polls","pollsObject","basePoll","expiresAt","expires_at","expired","showResults","voted","totalVotesCount","votes_count","containerClass","choiceIndices","entry","index","isDisabled","noChoice","percentageForOption","round","resultTitle","$t","statusId","activateOption","allElements","querySelectorAll","clickedElement","querySelector","checked","_forEach3","element","optionId","DateUtils","relativeTime","num","interval","refreshRelativeTimeObject","clearTimeout","localeDateString","time","Date","parse","toLocaleString","nowThreshold","longFormat","relativeTimeShort","autoUpdate","_popperJs","Popper","showDropDown","showPopper","refreshPopper","confirm","toggleMenu","pinStatus","err","unpinStatus","canDelete","rights","moderator","admin","canPin","enabled","MediaUpload","EmojiInput","PollForm","ScopeSelector","resize","textarea","textLength","setSelectionRange","replyTo","focus","$route","query","message","scopeCopy","allAttentions","unshift","_reject3","mentions","attention","buildMentionsString","repliedUser","scope","copyMessageScope","default_scope","postContentType","dropFiles","submitDisabled","posting","highlighted","newStatus","subject","files","caret","pollFormVisible","userDefaultScope","showAllScopes","minimalScopesMode","emojiUserSuggestor","_suggestor2","emoji","_toConsumableArray3","customEmoji","emojiSuggestor","statusLength","spoilerTextLength","statusLengthLimit","textlimit","hasStatusLengthLimit","charactersLeft","isOverLengthLimit","alwaysShowSubject","alwaysShowSubjectInput","postFormats","safeDMEnabled","safeDM","pollsAvailable","pollLimits","max_options","hideScopeNotice","pollContentError","statusPoster","mediaUpload","clearFile","clearPollForm","el","addMediaFile","fileInfo","enableSubmit","removeMediaFile","indexOf","uploadFailed","errString","templateArgs","disableSubmit","paste","clipboardData","fileDrop","dataTransfer","fileDrag","dropEffect","Element","topPaddingStr","bottomPaddingStr","vertPadding","substr","scrollHeight","changeVis","togglePollForm","setPoll","pollForm","clear","dismissScopeNotice","uploading","uploadReady","uploadFile","self","uploadlimit","filesize","fileSizeFormatService","fileSizeFormat","allowedsize","filesizeunit","unit","allowedsizeunit","statusPosterService","fileData","contains","$nextTick","change","fileInfos","currentScope","initialScope","showNothing","showPublic","showUnlisted","showPrivate","showDirect","originalScope","shouldShow","css","selected","unlisted","private","direct","showAll","userDefault","onScopeChange","suggest","required","Function","String","blurTimeout","firstchar","textAtCaret","matchedSuggestions","_take3","imageUrl","showPopup","wordAtCaret","word","Completion","wordAtPosition","slots","$slots","slot","elm","onBlur","onFocus","onPaste","onKeyUp","onKeyDown","onTransition","unmounted","replace","replacement","newValue","replaceWord","replaceText","suggestion","len","position","start","cycleBackward","cycleForward","setCaret","onClick","ctrlKey","shiftKey","onInput","selectionStart","_input$elm","offsetTop","pollType","expiryAmount","expiryUnit","maxOptions","maxLength","max_option_chars","expiryUnits","expiry","convertExpiryFromUnit","max_expiration","minExpirationInCurrentUnit","convertExpiryToUnit","min_expiration","maxExpirationInCurrentUnit","floor","nextOption","addOption","deleteOption","amount","MINUTE","HOUR","DAY","expiryAmountChange","min","updatePollToParent","_uniq3","_follow_manipulate","followRequestInProgress","followRequestSent","hideUserStatsLocal","hideUserStats","user-card-rounded-t","rounded","user-card-rounded","user-card-bordered","bordered","customTheme","tintColor","gradient","hideBio","backgroundColor","backgroundImage","cover_photo","isOtherUser","subscribeUrl","serverUrl","URL","statusnet_profile_url","protocol","host","dailyAvg","days","created_at","statuses_count","userHighlightType","set","userHighlightColor","visibleRole","validRole","roleTitle","RemoteFollow","ModerationTools","requestFollow","requestUnfollow","setProfileView","switcher","_stillImage","showPlaceholder","imgSrc","FORCE_NSFW","STRIP_MEDIA","FORCE_UNLISTED","DISABLE_REMOTE_SUBSCRIPTION","DISABLE_ANY_SUBSCRIPTION","SANDBOX","QUARANTINE","showDeleteUserDialog","DialogModal","tagsSet","_set2","hasTagPolicy","tagPolicyAvailable","hasTag","has","toggleTag","toggleRight","toggleActivationStatus","deactivated","deleteUserDialog","show","isProfile","isTargetUser","history","back","darkOverlay","Boolean","onCancel","rows","_chunk3","lastAttachment","allButLastRow","_dropRight3","rowHeight","itemsPerRow","useContainFit","useImage","card","image","useDescription","description","test","slicedUsers","sortById","idA","idB","seqA","seqB","isSeqA","_isNan2","isSeqB","conversation","expanded","isPage","conversationId","statusnet_conversation_id","isExpanded","_clone3","conversationsObject","statusIndex","_findIndex3","sort","sortAndFilterConversation","replies","_reduce3","irid","setHighlight","getReplies","getHighlight","PublicAndExternalTimeline","FriendsTimeline","TagTimeline","_conversation","conversationPage","_notifications","tabModeDict","likes+repeats","follows","Interactions","filterMode","onModeSwitch","dataset","Notifications","_notification_utils","minimalMode","mainClass","notificationsFromStore","unseenNotifications","unseenNotificationsFromStore","visibleNotifications","visibleNotificationsFromStore","unseenCount","Notification","markAsSeen","fetchOlderNotifications","notificationsFetcher","notifs","getUser","notification","usersObject","from_profile","userInStore","DMs","FollowerList","_with_load_more2","select","_get2","destroy","childPropName","additionalPropNames","List","FriendList","UserProfile","routeParams","load","cleanUp","isUs","followsTabVisible","hide_follows","followersTabVisible","hide_followers","userNameOrId","fetchTimelines","reason","errorMessage","$route.params.id","newVal","$route.params.name","tabSwitcher","activateTab","FollowCard","inProgress","requestSent","BasicUserCard","isMe","items","getKey","item","_version","hideAttachmentsLocal","hideAttachmentsInConvLocal","hideISPLocal","hideISP","hidePostStatsDefault","hideUserStatsDefault","hideFilteredStatusesLocal","hideFilteredStatusesDefault","notificationVisibilityLocal","notificationVisibility","replyVisibilityLocal","loopVideoLocal","muteWordsString","autoLoadLocal","streamingLocal","pauseOnUnfocusedLocal","hoverPreviewLocal","hoverPreview","autohideFloatingPostButtonLocal","autohideFloatingPostButton","hideMutedPostsLocal","hideMutedPosts","hideMutedPostsDefault","collapseMessageWithSubjectLocal","collapseMessageWithSubjectDefault","subjectLineBehaviorLocal","subjectLineBehaviorDefault","postContentTypeLocal","postContentTypeDefault","alwaysShowSubjectInputLocal","alwaysShowSubjectInputDefault","scopeCopyLocal","scopeCopyDefault","minimalScopesModeLocal","minimalScopesModeDefault","webPushNotificationsLocal","webPushNotifications","loopVideoSilentOnlyLocal","loopVideosSilentOnly","loopSilentAvailable","_getOwnPropertyDescriptor2","HTMLVideoElement","HTMLMediaElement","backendVersion","frontendVersion","TabSwitcher","StyleSwitcher","InterfaceLanguageSwitcher","currentSaveStateNotice","instanceSpecificPanelPresent","showInstanceSpecificPanel","frontendVersionLink","backendVersionLink","extractCommit","notificationVisibilityLocal.likes","notificationVisibilityLocal.follows","notificationVisibilityLocal.repeats","notificationVisibilityLocal.mentions","_trim3","_vue","_style_setter","v1OnlyNames","availableStyles","previewShadows","previewColors","previewRadii","previewFonts","shadowsInvalid","colorsInvalid","radiiInvalid","keepColor","keepShadows","keepOpacity","keepRoundness","keepFonts","textColorLocal","linkColorLocal","bgColorLocal","bgOpacityLocal","fgColorLocal","fgTextColorLocal","fgLinkColorLocal","btnColorLocal","btnTextColorLocal","btnOpacityLocal","inputColorLocal","inputTextColorLocal","inputOpacityLocal","panelColorLocal","panelTextColorLocal","panelLinkColorLocal","panelFaintColorLocal","panelOpacityLocal","topBarColorLocal","topBarTextColorLocal","topBarLinkColorLocal","alertErrorColorLocal","badgeOpacityLocal","badgeNotificationColorLocal","borderColorLocal","borderOpacityLocal","faintColorLocal","faintOpacityLocal","faintLinkColorLocal","cRedColorLocal","cBlueColorLocal","cGreenColorLocal","cOrangeColorLocal","shadowSelected","shadowsLocal","fontsLocal","btnRadiusLocal","inputRadiusLocal","checkboxRadiusLocal","panelRadiusLocal","avatarRadiusLocal","avatarAltRadiusLocal","attachmentRadiusLocal","tooltipRadiusLocal","themesComplete","normalizeLocalState","shadowsAvailable","selectedVersion","currentColors","currentOpacity","topBarOpacityLocal","currentRadii","previewTheme","previewContrast","fgs","red","green","blue","orange","bgs","ratios","bgText","bgLink","bgRed","bgGreen","bgBlue","bgOrange","tintText","ratio","toPrecision","aa","aaa","laa","laaa","previewRules","_values2","currentShadowOverriden","currentShadow","currentShadowFallback","delete","themeValid","exportedTheme","saveEverything","_pleroma_theme_version","ColorInput","OpacityInput","RangeInput","ContrastRatio","ShadowControl","FontControl","Preview","ExportImport","setCustomTheme","onImport","parsed","importValidator","version","clearAll","clearV1","$data","clearRoundness","clearOpacity","clearShadows","clearFonts","keys","_set3","add","warn","handler","deep","fontsInvalid","present","selectedId","cValue","fallback","del","moveUp","movable","moveDn","beforeUpdate","ready","moveUpValid","moveDnValid","usingFallback","boxShadow","lValue","availableOptions","noInherit","dValue","isCustom","preset","hint","levelVal","contrast","level","hint_18pt","importFailed","exportData","stringified","exportObject","btoa","click","importData","filePicker","reader","FileReader","JSON","validator","readAsText","languageCodes","_messages2","languageNames","getLanguageName","language","interfaceLanguage","$i18n","code","ja","ja_pedantic","zh","_iso2","getName","_vuelidate","_validators","_vuex","registration","mixins","validationMixin","email","fullname","username","captcha","validations","sameAsPassword","sameAs","registrationOpen","signedIn","setCaptcha","bioPlaceholder","mapState","isPending","signUpPending","serverValidationErrors","signUpErrors","termsOfService","tos","mapActions","submit","captcha_solution","solution","captcha_token","captcha_answer_data","answer_data","$v","$touch","$invalid","signUp","cpt","BlockList","_with_subscription2","SelectableList","MuteList","UserSettings","newName","newBio","_unescape2","newLocked","locked","newNoRichText","no_rich_text","newDefaultScope","hideFollows","hideFollowers","showRole","show_role","role","pickAvatarBtnVisible","bannerUploading","backgroundUploading","bannerPreview","backgroundPreview","bannerUploadError","backgroundUploadError","deletingAccount","deleteAccountConfirmPasswordInput","deleteAccountError","changePasswordInputs","changedPassword","changePasswordError","activeTab","notificationSettings","notification_settings","ImageCropper","Autosuggest","BlockCard","MuteCard","ProgressButton","Importer","Exporter","Mfa","pleromaBackend","vis","oauthTokens","tokens","oauthToken","appName","app_name","validUntil","valid_until","toLocaleDateString","note","display_name","readAsDataURL","submitAvatar","cropper","that","getCroppedCanvas","toBlob","clearUploadError","submitBanner","submitBg","generateExportableUsersContent","is_local","location","hostname","getFollowsContent","getBlocksContent","confirmDelete","_this5","res","_this6","logout","tabName","revokeToken","filterUnblockedUsers","userIds","_this7","_reject2","statusnet_blocking","filterUnMutedUsers","_this8","queryUserIds","_this9","userSearchApi","search","blockUsers","ids","unblockUsers","muteUsers","unmuteUsers","identity","trigger","submitHandler","cropperOptions","aspectRatio","autoCropArea","viewMode","zoomable","guides","mimes","saveButtonLabel","saveWithoutCroppingButtonlabel","cancelButtonLabel","dataUrl","filename","submitting","submitError","saveText","saveWithoutCroppingText","cancelText","submitErrorMsg","cropping","avatarUploadError","finally","pickImage","createCropper","Cropper","getTriggerDOM","readFile","fileInput","beforeDestroy","_basic_user_card","progress","blocked","Checkbox","allKeys","filteredSelected","allSelected","noneSelected","someSelected","isSelected","toggle","toggleAll","model","prop","disabled","placeholder","term","timeout","results","resultsVisible","filtered","fetchResults","onInputClick","onClickOutside","submitButtonLabel","successMessage","success","dismiss","getContent","exportButtonLabel","processingMessage","processing","process","content","fileToDownload","available","totp","setupState","setupOTPState","backupCodes","getNewCodes","codes","otpSettings","provisioning_uri","currentPassword","otpConfirmToken","readyInit","recovery-codes","RecoveryCodes","totp-item","TOTP","qrcode","VueQrcode","Confirm","canSetupOTP","setupInProgress","backupCodesPrepared","setupOTPInProgress","completedOTP","prepareOTP","confirmOTP","confirmNewBackupCodes","activateOTP","fetchBackupCodes","getBackupCodes","confirmBackupCodes","cancelBackupCodes","setupOTP","doConfirmOTP","completeSetup","fetchSettings","cancelSetup","fetchSettingsMFA","abrupt","displayTitle","deactivate","isActivated","doActivate","cancelDeactivate","doDeactivate","confirmDeactivate","cancel","_follow_request_card","FollowRequests","FollowRequestCard","requests","followRequests","_oauth","oac","_$store$state$oauth","oauth","clientId","clientSecret","getToken","server","access_token","userSearch","newV","newQuery","userSearchInput","LoginForm","isPasswordAuth","requiredPassword","isTokenAuth","requiredToken","loggingIn","mapGetters","mapMutations","login","submitToken","submitPassword","oauthApi","getOrCreateApp","app","getTokenWithCredentials","requireMFA","focusOnPasswordInput","passwordInput","authApp","authSettings","mfaToken","mfa_token","mfaApi","verifyRecoveryCode","verifyOTPCode","_user_profile_link_generator","chatPanel","currentMessage","channel","collapsed","messages","chat","togglePanel","WhoToFollow","getWhoToFollow","showWhoToFollow","reply","acct","profile_image_url","profile_image_url_original","externalUser","About","InstanceSpecificPanel","FeaturesPanel","TermsOfServicePanel","showFeaturesPanel","instanceSpecificPanelContent","chatAvailable","chatDisabled","gopher","gopherAvailable","whoToFollow","suggestionsEnabled","mediaProxy","_window_utils","UserPanel","NavPanel","UserFinder","WhoToFollowPanel","ChatPanel","MediaModal","SideDrawer","MobilePostStatusModal","MobileNav","UserReportingModal","mobileActivePanel","finderHidden","supportsMask","CSS","supports","updateMobileState","background_image","enableMask","logoMask","logoStyle","logoMaskStyle","mask-image","logo","background-color","logoBgStyle","margin","logoMargin","bgStyle","background-image","bgAppStyle","--body-background-image","sitename","isMobileLayout","mobileLayout","scrollToTop","scrollTo","onFinderToggled","windowWidth","AuthForm","_follow_request_fetcher","followRequestFetcher","startFetching","followRequestCount","usersToFollow","toFollow","shuffled","_shuffle3","fill","oldUser","showing","mediaViewer","activated","currentIndex","currentMedia","canNavigate","hide","goPrev","prevIndex","goNext","nextIndex","handleKeyupEvent","keyCode","handleKeydownEvent","closed","closeGesture","GestureService","swipeGesture","DIRECTION_LEFT","toggleDrawer","unseenNotificationsCount","doLogout","touchStart","beginSwipe","touchMove","updateSwipe","postFormOpen","scrollingDown","inputActive","oldScrollPos","amountScrolled","activateFloatingPostButtonAutohide","handleOSK","deactivateFloatingPostButtonAutohide","isHidden","isEnabled","handleScrollStart","handleScrollEnd","openPostForm","closePostForm","smallPhone","innerWidth","smallPhoneKbOpen","biggerPhoneKbOpen","_debounce3","scrollY","leading","trailing","notificationsCloseGesture","notificationsOpen","DIRECTION_RIGHT","closeMobileNotifications","toggleMobileSidebar","sideDrawer","openMobileNotifications","notificationsTouchStart","notificationsTouchMove","onScroll","_ref$target","clientHeight","statusIdsToReport","isLoggedIn","isOpen","reports","modalActivated","remoteInstance","resetState","closeModal","isChecked","toggleStatus","startFetchingTimeline","_ref8$userId","timelineFetcherService","startFetchingNotifications","_babel_loader_still_image_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_still_image_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_4ae09a58_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_still_image_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_timeago_vue__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_timeago_vue__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_96912de0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_timeago_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_post_status_form_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_post_status_form_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_57f92590_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_post_status_form_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_conversation_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_conversation_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_4beb651e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_conversation_vue__WEBPACK_IMPORTED_MODULE_1__","visibleTypes","likes","repeats","sortedNotifications","_sortBy3","seen","_babel_loader_follow_card_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_follow_card_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_6b257768_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_follow_card_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_list_vue__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_4921cfd6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_list_vue__WEBPACK_IMPORTED_MODULE_1__","Vue","component","active","findIndex","onSwitch","render","h","tabs","classesTab","classesWrapper","class","attrs","on","label","contents","renderOnlyFocused","REDIRECT_URI","origin","___pleromafe_commit_hash","toISOString","client_id","client_secret","getClientToken","response_type","redirect_uri","encoded","staticRenderFns","_vm","_h","$createElement","_c","_self","staticClass","ref","_e","_v","loop","controls","playsinline","loadeddata","_obj","_s","directives","rawName","expression","$event","small","title","large_thumb_url","allowPlay","thumb_url","domProps","innerHTML","oembedHTML","fave_num","repeat_num","datetime","_l","path","auto-update","now-threshold","append-to-body","placement","modifiers","arrow","offset","pinned","icon-clicked","drop","dragover","staticStyle","_t","displayText","detailText","maxlength","keydown","_k","composing","$set","for","$$selectedVal","_value","autocomplete","to","callback","$$v","metaKey","keyup","postFormat","visible","update-poll","drop-files","uploaded","upload-failed","_i","$$a","$$el","$$c","$$i","avatar-compact","better-shadow","alt","action","dark-overlay","currentTarget","menu-checkbox-checked","pressed","follows_you","friends_count","followers_count","description_html","row","contain-fit","cover-fit","rel","small-image","provider_name","status-el_focused","status-conversation","inlineExpanded","isPreview","showPinned","is-retweet","data-tags","nativeOn","!click","_f","external_url","expandable","aria-label","mouseenter","mouseleave","mouseout","tall-status","tall-status-hider_focused","base-poll","button-icon-active","replies_count","onSuccess","reply-to","copy-message-scope","posted","collapsable","goto","timeline-name","minimal","unseen","data-tab-dummy","data-filter","noFollowsYou","empty","viewing","statusesObject","user-id","scopedSlots","_u","fn","hardMax","hardMin","step","__r","custom","large","exportLabel","importLabel","importFailedText","no-inherit","langCode","number","_n","$forceUpdate","form-group--error","$error","trim","textContent","accept","indeterminate","selectable-list-item-selected-inner","activate","backup-codes","classname","close","followers","non_follows","non_followers","refresh","request","requireTOTP","abortMFA","requireRecovery","floating","chat-heading","author","side-drawer-container-closed","side-drawer-container-open","side-drawer-darken-closed","side-drawer-closed","touchstart","touchmove","side-drawer-click-outside-closed","active-class","scroll","toggled","output","masto","mastoShort","addEmojis","emojis","following_count","bot","pleroma","relationship","chat_token","followed_by","blocking","muting","is_moderator","is_admin","source","privacy","delete_others_notice","friendIds","followerIds","pinnedStatuseIds","follow_request_count","mime_type","meta","string","RegExp","shortcode","favourited","favourites_count","reblogged","reblogs_count","reblog","spoiler_text","conversation_id","local","in_reply_to_account_acct","in_reply_to_id","in_reply_to_account_id","is_post_verb","uri","qvitter_delete_notice","activity_type","isNsfw","account","media_attachments","retweetedStatus","favourite","is_seen","parsedNotice","notice","ntype","favorited_status","_ref2$timeline","_ref2$older","_ref2$showImmediately","_ref2$userId","_ref2$tag","rootState","timelineData","_camelCase3","minId","numStatusesBeforeFetch","ccTimeline","update","_ref3$timeline","_ref3$userId","_ref3$tag","setInterval","POSITIVE_INFINITY","fetchNotifications","unread","_utils","UserSearch","utils","q","ar","require","ca","cs","de","en","eo","es","et","fi","fr","ga","he","hu","it","ko","nb","nl","oc","pl","pt","ro","ru","_babel_loader_attachment_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_attachment_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_608c26d2_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_attachment_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_video_attachment_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_video_attachment_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_10dde0a9_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_video_attachment_vue__WEBPACK_IMPORTED_MODULE_1__","SECOND","WEEK","MONTH","YEAR","date","now","abs","_ref$media","_ref$inReplyToStatusI","_ref$contentType","noIdUpdate","exponent","units","log","toFixed","_babel_loader_scope_selector_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_scope_selector_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_ad4ca5da_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_scope_selector_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_emoji_input_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_emoji_input_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_79e9770b_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_emoji_input_vue__WEBPACK_IMPORTED_MODULE_1__","firstChar","suggestEmoji","suggestUsers","noPrefix","aScore","bScore","_babel_loader_remote_follow_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_remote_follow_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2ecbe62b_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_remote_follow_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_moderation_tools_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_moderation_tools_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_788f6147_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_moderation_tools_vue__WEBPACK_IMPORTED_MODULE_1__","updated","attempt","prefs","solidColor","tintColor2","backgroundPosition","_isFunction","getComponentOptions","_isFunction2","getComponentProps","_babel_loader_style_switcher_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_style_switcher_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_5e6c3467_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_style_switcher_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_color_input_vue__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_color_input_vue__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_5c9e43f0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_color_input_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_opacity_input_vue__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_opacity_input_vue__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_296de9c3_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_opacity_input_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_checkbox_vue__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_checkbox_vue__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_76559fdc_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_checkbox_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_confirm_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_confirm_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_7144d19e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_confirm_vue__WEBPACK_IMPORTED_MODULE_1__","is","authForm","requiredTOTP","requiredRecovery","MFARecoveryForm","MFATOTPForm","mfa","_babel_loader_chat_panel_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_chat_panel_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_18ad082c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_chat_panel_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_instance_specific_panel_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_instance_specific_panel_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_0df9e546_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_instance_specific_panel_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_features_panel_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_features_panel_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_5c3884f4_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_features_panel_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_side_drawer_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_side_drawer_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_0afaec76_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_side_drawer_vue__WEBPACK_IMPORTED_MODULE_1__","touchEventCoord","touches","screenX","screenY","vectorLength","sqrt","dotProduct","v1","v2","project","scalar","DIRECTION_UP","DIRECTION_DOWN","direction","onSwipe","threshold","perpendicularTolerance","_startPos","_swiping","gesture","oldCoord","newCoord","delta","towardsDir","perpendicularDir","towardsPerpendicular","_babel_loader_mobile_post_status_modal_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_mobile_post_status_modal_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_7060e3da_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_mobile_post_status_modal_vue__WEBPACK_IMPORTED_MODULE_1__","clientWidth","currentLocale","navigator","use","Vuex","VueRouter","VueI18n","VueChatScroll","VueClickOutside","PortalVue","i18n","fallbackLocale","persistedStateOptions","paths","persistedState","_persisted_state2","Store","interfaceModule","instanceModule","statusesModule","usersModule","apiModule","configModule","chatModule","oauthModule","authFlow","authFlowModule","mediaViewerModule","oauthTokensModule","reportsModule","pollsModule","plugins","pushNotifications","strict","_after_store2","___pleromafe_mode","COMMIT_HASH","___pleromafe_dev_overrides","DEV_OVERRIDES","interfaceMod","noticeClearTimeout","notificationPermission","mutations","settingsSaved","errorData","setNotificationPermission","permission","setMobileLayout","actions","setPageTitle","redirectRootNoLogin","redirectRootLogin","disableChat","vapidPublicKey","noAttachmentLinks","suggestionsWeb","setInstanceOption","setTheme","themeName","emptyTl","faves","visibleStatusesObject","minVisibleId","emptyNotifications","desktopNotificationSilence","idStore","defaultState","prepareStatus","visibleNotificationTypes","mergeOrAdd","arr","obj","oldItem","_merge3","_omitBy3","new","sortTimeline","addStatusToGlobalStorage","addNewStatuses","_ref2$user","_ref2$noIdUpdate","_isArray3","timelineObject","maxNew","_maxBy3","minNew","_minBy3","newer","addStatus","addToTimeline","resultForCurrentTimeline","processors","counter","favoriteStatus","deletion","_remove3","removeStatusFromGlobalStorage","follow","unknown","addNewNotifications","rootGetters","notifObj","i18nString","removeStatus","_first3","oldTimeline","_slice3","resetStatuses","emptyState","clearTimeline","clearNotifications","setFavorited","setFavoritedConfirm","setPinned","setRetweeted","setRetweetedConfirm","setDeleted","setManyDeleted","condition","setLoading","setNsfw","setError","setNotificationsLoading","setNotificationsError","setNotificationsSilence","queueFlush","addFavsAndRepeats","favoritedByUsers","rebloggedByUsers","updateStatusWithPoll","_ref24$showImmediatel","_ref24$timeline","_ref24$noIdUpdate","markStatusesAsDeleted","fetchFavsAndRepeats","statusCode","captureStackTrace","_create2","constructor","_push","setMuted","newTags","updateRight","newRights","updateActivationStatus","setCurrentUser","lastLoginName","clearCurrentUser","beginLogin","endLogin","saveFriendIds","saveFollowerIds","clearFriends","clearFollowers","addNewUsers","updateUserRelationship","relationships","updateBlocks","blockedUsers","saveBlockIds","blockIds","addBlockId","blockId","updateMutes","mutedUsers","saveMuteIds","muteIds","addMuteId","muteId","setUserForStatus","setUserForNotification","setColor","signUpSuccess","signUpFailure","errors","blocks","mutes","registerPushNotifications","unregisterPushNotifications","retweetedUsers","_compact3","notificationIds","notificationsObject","relevantNotifications","searchUsers","userInfo","ap_id","humanizeErrors","_x5","_x6","_callee2","_context2","_x7","_backend_interactor_service2","loginUser","requestPermission","queryParams","_ref$method","isPushSupported","getOrCreateServiceWorker","subscribeOptions","userVisibleOnly","applicationServerKey","base64String","padding","repeat","base64","rawData","atob","Uint8Array","from","char","charCodeAt","pushManager","subscribe","subscribePush","subscription","alerts","mention","responseData","sendSubscriptionToBackEnd","deleteSubscriptionFromBackEnd","getSubscription","subscribtion","unsubscribe","unsubscribePush","unsubResult","unregister","runtime","errs","_capitalize3","_backend_interactor_service","_phoenix","socket","setBackendInteractor","addFetcher","fetcherName","fetcher","removeFetcher","setWsToken","wsToken","setSocket","setChatDisabled","setFollowRequests","stopFetching","clearInterval","initializeSocket","Socket","connect","removeFollowRequest","setOption","setChannel","addMessage","setMessages","disconnectFromChat","disconnect","initializeChat","msg","appToken","userToken","setClientData","setAppToken","setToken","clearToken","getUserToken","strategy","initStrategy","setInitialStrategy","requirePassword","requireToken","namespaced","_file_typeService","setCurrent","current","closeMediaViewer","fetchTokens","swapTokens","_filter","openUserReportingModal","closeUserReportingModal","_filter2","trackedPolls","mergeOrAddPoll","existingPoll","trackPoll","currentValue","untrackPoll","updateTrackedPoll","votePoll","_ref$key","_ref$paths","_ref$getState","getState","storage","getItem","_ref$setState","setState","loaded","setItem","_ref$reducer","reducer","defaultReducer","_ref$storage","defaultStorage","_ref$subscriber","subscriber","savedState","usersState","replaceState","_lodash2","mutation","saveImmedeatelyActions","substate","objectPath","localforage","webPushNotification","isUserMutation","isVapidMutation","isPermMutation","isUserConfigMutation","isVisibilityMutation","getStatusnetConfig","_data$site","registrationClosed","safeDMMentionsEnabled","site","avatarlimit","backgroundlimit","bannerlimit","pleromafe","getStaticConfig","setSettings","_callee3","overrides","env","copyInstanceOption","apiConfig","staticConfig","_context3","NODE_ENV","staticConfigPreference","loginMethod","getTOS","_callee4","html","_context4","_x3","getInstancePanel","_callee5","_context5","_x4","getStaticEmoji","_callee6","values","_context6","getCustomEmoji","_callee7","_context7","image_url","getAppSecret","_callee8","_context8","getNodeInfo","_callee9","metadata","features","software","_context9","web","federation","mrf_policies","_x8","setConfig","_callee10","configInfos","_context10","_x9","checkOAuthToken","_callee12","_context12","_callee11","_context11","_x11","_x12","_x10","afterStoreSetup","_callee13","router","_context13","routes","_routes2","scrollBehavior","_from","savedPosition","matched","dontScroll","App","_x13","redirect","_to","ConversationPage","Settings","Registration","OAuthCallback","route","_babel_loader_public_timeline_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_public_timeline_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_28719980_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_public_timeline_vue__WEBPACK_IMPORTED_MODULE_1__","locals","_babel_loader_favorite_button_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_favorite_button_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_23d3a771_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_favorite_button_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_retweet_button_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_retweet_button_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_167856a9_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_retweet_button_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_poll_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_poll_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_f5da1ea4_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_poll_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_extra_buttons_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_extra_buttons_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_42a7dfa0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_extra_buttons_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_media_upload_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_media_upload_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_412e3412_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_media_upload_vue__WEBPACK_IMPORTED_MODULE_1__","toReplace","end","pos","words","splitIntoWords","wordsWithPosition","addPositionToWords","previous","pop","triggers","matches","completion","_babel_loader_poll_form_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_poll_form_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_ad3a99cc_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_poll_form_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_dialog_modal_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_dialog_modal_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_3bdb886d_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dialog_modal_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_gallery_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_gallery_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_90e08142_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_gallery_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_link_preview_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_link_preview_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_13637f5a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_link_preview_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_avatar_list_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_avatar_list_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_14c2b53d_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_avatar_list_vue__WEBPACK_IMPORTED_MODULE_1__","_attention$screen_nam","_attention$screen_nam2","namepart","instancepart","matchstring","_babel_loader_public_and_external_timeline_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_public_and_external_timeline_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_177cb5ec_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_public_and_external_timeline_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_friends_timeline_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_friends_timeline_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_6f367f8e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_friends_timeline_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_tag_timeline_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_tag_timeline_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_f05777fe_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_tag_timeline_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_conversation_page_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_conversation_page_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_3df9f4c3_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_conversation_page_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_interactions_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_interactions_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_e1d0b7b0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_interactions_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_notification_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_notification_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_5c1aabae_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_notification_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_dm_timeline_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_dm_timeline_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_8144de96_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dm_timeline_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_user_profile_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_user_profile_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_3ad3bbbf_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_user_profile_vue__WEBPACK_IMPORTED_MODULE_1__","_component_utils","_ref$childPropName","_ref$additionalPropNa","WrappedComponent","$props","_defineProperty3","entries","$listeners","$scopedSlots","children","fetchEntries","newEntries","_isEmpty2","_babel_loader_settings_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_settings_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2aa64dd8_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_settings_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_range_input_vue__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_range_input_vue__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_75e9df52_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_range_input_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_shadow_control_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_shadow_control_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2a11c3eb_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_shadow_control_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_font_control_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_font_control_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_7c447fa9_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_font_control_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_contrast_ratio_vue__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_contrast_ratio_vue__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_004f07f0_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_contrast_ratio_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_export_import_vue__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_export_import_vue__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_403e3ea7_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_export_import_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_interface_language_switcher_vue__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_interface_language_switcher_vue__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_7f711d2a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_interface_language_switcher_vue__WEBPACK_IMPORTED_MODULE_1__","versionString","_babel_loader_registration_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_registration_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_448d7218_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_registration_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_user_settings_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_user_settings_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_134d680a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_user_settings_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_image_cropper_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_image_cropper_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_351f8dc1_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_image_cropper_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_block_card_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_block_card_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_14c8ee24_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_block_card_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_mute_card_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_mute_card_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_b29ff556_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_mute_card_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_selectable_list_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_selectable_list_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_830849a2_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_selectable_list_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_progress_button_vue__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_progress_button_vue__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_0eed4b16_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_progress_button_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_autosuggest_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_autosuggest_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_28abcb08_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_autosuggest_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_importer_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_importer_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_18fdba14_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_importer_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_exporter_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_exporter_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_35653648_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_exporter_vue__WEBPACK_IMPORTED_MODULE_1__","fetchData","fetchedData","_babel_loader_mfa_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_mfa_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_395e4582_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_mfa_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_mfa_backup_codes_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_mfa_backup_codes_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2bcb205a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_mfa_backup_codes_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_mfa_totp_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_mfa_totp_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_26074bbe_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_mfa_totp_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_follow_requests_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_follow_requests_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_0175b636_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_follow_requests_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_follow_request_card_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_follow_request_card_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_310b71c4_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_follow_request_card_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_oauth_callback_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_oauth_callback_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_f514124c_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_oauth_callback_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_user_search_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_user_search_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_50212e66_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_user_search_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_login_form_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_login_form_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_beb5f2f2_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_login_form_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_recovery_form_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_recovery_form_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_3e1d0fe4_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_recovery_form_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_totp_form_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_totp_form_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_ac2e1398_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_totp_form_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_who_to_follow_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_who_to_follow_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_74383918_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_who_to_follow_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_about_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_about_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_adbbefc2_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_about_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_terms_of_service_panel_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_terms_of_service_panel_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_5f130d6f_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_terms_of_service_panel_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_App_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_App_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2671f379_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_App_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_user_panel_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_user_panel_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2ced945d_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_user_panel_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_nav_panel_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_nav_panel_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_121719ee_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_nav_panel_vue__WEBPACK_IMPORTED_MODULE_1__","_apiService","_babel_loader_user_finder_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_user_finder_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_b55526b8_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_user_finder_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_who_to_follow_panel_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_who_to_follow_panel_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_cf25eb72_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_who_to_follow_panel_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_media_modal_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_media_modal_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_3448b8dc_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_media_modal_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_mobile_nav_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_mobile_nav_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_a344c53a_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_mobile_nav_vue__WEBPACK_IMPORTED_MODULE_1__","_babel_loader_user_reporting_modal_js__WEBPACK_IMPORTED_MODULE_0__","_babel_loader_user_reporting_modal_js__WEBPACK_IMPORTED_MODULE_0___default","_node_modules_vue_loader_lib_template_compiler_index_id_data_v_6121709e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_user_reporting_modal_vue__WEBPACK_IMPORTED_MODULE_1__","component_normalizer","font-family","_m"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,GAAA,IAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG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A,WAAAzc,KAAA,WAAAtW,GAAA,sBAAgEm6D,EAAAQ,GAAA,KAAAL,EAAA,SAA0BnB,MAAA,CAAOoE,IAAA,qBAA0B,CAAApD,EAAAQ,GAAAR,EAAAc,GAAAd,EAAA3nC,GAAA,yCAAA2nC,EAAAQ,GAAA,KAAAL,EAAA,UAAyFE,YAAA,OAAkB,CAAAL,EAAAQ,GAAA,aAAAR,EAAAc,GAAAd,EAAA3nC,GAAA,uDACl8E,YAAoC,IAAa4nC,EAAb5yD,KAAa6yD,eAA0BC,EAAvC9yD,KAAuC+yD,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,SAAoB,CAAAF,EAAA,KAAUE,YAAA,yBAAAsC,YAAA,CAAkDtjD,MAAA,kBAAhKhS,KAAwLmzD,GAAA,KAAAL,EAAA,KAAsBE,YAAA,2BAAAsC,YAAA,CAAoDtjD,MAAA,mBAAlQhS,KAA2RmzD,GAAA,KAAAL,EAAA,KAAsBE,YAAA,wBAAAsC,YAAA,CAAiDtjD,MAAA,oBAAlWhS,KAA4XmzD,GAAA,KAAAL,EAAA,KAAsBE,YAAA,0BAAAsC,YAAA,CAAmDtjD,MAAA,sBCIze,EAEA,KAEA,KAEA,MAYexG,EAAA,QAAAQ,EAAiB","file":"static/js/app.670c36c0acc42fadb4fe.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t0: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([436,1]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import { each, map, concat, last } from 'lodash'\nimport { parseStatus, parseUser, parseNotification, parseAttachment } from '../entity_normalizer/entity_normalizer.service.js'\nimport 'whatwg-fetch'\nimport { StatusCodeError } from '../errors/errors'\n\n/* eslint-env browser */\nconst EXTERNAL_PROFILE_URL = '/api/externalprofile/show.json'\nconst QVITTER_USER_NOTIFICATIONS_READ_URL = '/api/qvitter/statuses/notifications/read.json'\nconst BLOCKS_IMPORT_URL = '/api/pleroma/blocks_import'\nconst FOLLOW_IMPORT_URL = '/api/pleroma/follow_import'\nconst DELETE_ACCOUNT_URL = '/api/pleroma/delete_account'\nconst CHANGE_PASSWORD_URL = '/api/pleroma/change_password'\nconst FOLLOW_REQUESTS_URL = '/api/pleroma/friend_requests'\nconst APPROVE_USER_URL = '/api/pleroma/friendships/approve'\nconst DENY_USER_URL = '/api/pleroma/friendships/deny'\nconst TAG_USER_URL = '/api/pleroma/admin/users/tag'\nconst PERMISSION_GROUP_URL = (screenName, right) => `/api/pleroma/admin/users/${screenName}/permission_group/${right}`\nconst ACTIVATION_STATUS_URL = screenName => `/api/pleroma/admin/users/${screenName}/activation_status`\nconst ADMIN_USERS_URL = '/api/pleroma/admin/users'\nconst SUGGESTIONS_URL = '/api/v1/suggestions'\nconst NOTIFICATION_SETTINGS_URL = '/api/pleroma/notification_settings'\n\nconst MFA_SETTINGS_URL = '/api/pleroma/profile/mfa'\nconst MFA_BACKUP_CODES_URL = '/api/pleroma/profile/mfa/backup_codes'\n\nconst MFA_SETUP_OTP_URL = '/api/pleroma/profile/mfa/setup/totp'\nconst MFA_CONFIRM_OTP_URL = '/api/pleroma/profile/mfa/confirm/totp'\nconst MFA_DISABLE_OTP_URL = '/api/pleroma/profile/mfa/totp'\n\nconst MASTODON_LOGIN_URL = '/api/v1/accounts/verify_credentials'\nconst MASTODON_REGISTRATION_URL = '/api/v1/accounts'\nconst MASTODON_USER_FAVORITES_TIMELINE_URL = '/api/v1/favourites'\nconst MASTODON_USER_NOTIFICATIONS_URL = '/api/v1/notifications'\nconst MASTODON_FAVORITE_URL = id => `/api/v1/statuses/${id}/favourite`\nconst MASTODON_UNFAVORITE_URL = id => `/api/v1/statuses/${id}/unfavourite`\nconst MASTODON_RETWEET_URL = id => `/api/v1/statuses/${id}/reblog`\nconst MASTODON_UNRETWEET_URL = id => `/api/v1/statuses/${id}/unreblog`\nconst MASTODON_DELETE_URL = id => `/api/v1/statuses/${id}`\nconst MASTODON_FOLLOW_URL = id => `/api/v1/accounts/${id}/follow`\nconst MASTODON_UNFOLLOW_URL = id => `/api/v1/accounts/${id}/unfollow`\nconst MASTODON_FOLLOWING_URL = id => `/api/v1/accounts/${id}/following`\nconst MASTODON_FOLLOWERS_URL = id => `/api/v1/accounts/${id}/followers`\nconst MASTODON_DIRECT_MESSAGES_TIMELINE_URL = '/api/v1/timelines/direct'\nconst MASTODON_PUBLIC_TIMELINE = '/api/v1/timelines/public'\nconst MASTODON_USER_HOME_TIMELINE_URL = '/api/v1/timelines/home'\nconst MASTODON_STATUS_URL = id => `/api/v1/statuses/${id}`\nconst MASTODON_STATUS_CONTEXT_URL = id => `/api/v1/statuses/${id}/context`\nconst MASTODON_USER_URL = '/api/v1/accounts'\nconst MASTODON_USER_RELATIONSHIPS_URL = '/api/v1/accounts/relationships'\nconst MASTODON_USER_TIMELINE_URL = id => `/api/v1/accounts/${id}/statuses`\nconst MASTODON_TAG_TIMELINE_URL = tag => `/api/v1/timelines/tag/${tag}`\nconst MASTODON_USER_BLOCKS_URL = '/api/v1/blocks/'\nconst MASTODON_USER_MUTES_URL = '/api/v1/mutes/'\nconst MASTODON_BLOCK_USER_URL = id => `/api/v1/accounts/${id}/block`\nconst MASTODON_UNBLOCK_USER_URL = id => `/api/v1/accounts/${id}/unblock`\nconst MASTODON_MUTE_USER_URL = id => `/api/v1/accounts/${id}/mute`\nconst MASTODON_UNMUTE_USER_URL = id => `/api/v1/accounts/${id}/unmute`\nconst MASTODON_POST_STATUS_URL = '/api/v1/statuses'\nconst MASTODON_MEDIA_UPLOAD_URL = '/api/v1/media'\nconst MASTODON_VOTE_URL = id => `/api/v1/polls/${id}/votes`\nconst MASTODON_POLL_URL = id => `/api/v1/polls/${id}`\nconst MASTODON_STATUS_FAVORITEDBY_URL = id => `/api/v1/statuses/${id}/favourited_by`\nconst MASTODON_STATUS_REBLOGGEDBY_URL = id => `/api/v1/statuses/${id}/reblogged_by`\nconst MASTODON_PROFILE_UPDATE_URL = '/api/v1/accounts/update_credentials'\nconst MASTODON_REPORT_USER_URL = '/api/v1/reports'\nconst MASTODON_PIN_OWN_STATUS = id => `/api/v1/statuses/${id}/pin`\nconst MASTODON_UNPIN_OWN_STATUS = id => `/api/v1/statuses/${id}/unpin`\n\nconst oldfetch = window.fetch\n\nlet fetch = (url, options) => {\n options = options || {}\n const baseUrl = ''\n const fullUrl = baseUrl + url\n options.credentials = 'same-origin'\n return oldfetch(fullUrl, options)\n}\n\nconst promisedRequest = ({ method, url, payload, credentials, headers = {} }) => {\n const options = {\n method,\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json',\n ...headers\n }\n }\n if (payload) {\n options.body = JSON.stringify(payload)\n }\n if (credentials) {\n options.headers = {\n ...options.headers,\n ...authHeaders(credentials)\n }\n }\n return fetch(url, options)\n .then((response) => {\n return new Promise((resolve, reject) => response.json()\n .then((json) => {\n if (!response.ok) {\n return reject(new StatusCodeError(response.status, json, { url, options }, response))\n }\n return resolve(json)\n }))\n })\n}\n\nconst updateNotificationSettings = ({ credentials, settings }) => {\n const form = new FormData()\n\n each(settings, (value, key) => {\n form.append(key, value)\n })\n\n return fetch(NOTIFICATION_SETTINGS_URL, {\n headers: authHeaders(credentials),\n method: 'PUT',\n body: form\n }).then((data) => data.json())\n}\n\nconst updateAvatar = ({ credentials, avatar }) => {\n const form = new FormData()\n form.append('avatar', avatar)\n return fetch(MASTODON_PROFILE_UPDATE_URL, {\n headers: authHeaders(credentials),\n method: 'PATCH',\n body: form\n }).then((data) => data.json())\n .then((data) => parseUser(data))\n}\n\nconst updateBg = ({ credentials, background }) => {\n const form = new FormData()\n form.append('pleroma_background_image', background)\n return fetch(MASTODON_PROFILE_UPDATE_URL, {\n headers: authHeaders(credentials),\n method: 'PATCH',\n body: form\n })\n .then((data) => data.json())\n .then((data) => parseUser(data))\n}\n\nconst updateBanner = ({ credentials, banner }) => {\n const form = new FormData()\n form.append('header', banner)\n return fetch(MASTODON_PROFILE_UPDATE_URL, {\n headers: authHeaders(credentials),\n method: 'PATCH',\n body: form\n }).then((data) => data.json())\n .then((data) => parseUser(data))\n}\n\nconst updateProfile = ({ credentials, params }) => {\n return promisedRequest({\n url: MASTODON_PROFILE_UPDATE_URL,\n method: 'PATCH',\n payload: params,\n credentials\n }).then((data) => parseUser(data))\n}\n\n// Params needed:\n// nickname\n// email\n// fullname\n// password\n// password_confirm\n//\n// Optional\n// bio\n// homepage\n// location\n// token\nconst register = ({ params, credentials }) => {\n const { nickname, ...rest } = params\n return fetch(MASTODON_REGISTRATION_URL, {\n method: 'POST',\n headers: {\n ...authHeaders(credentials),\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify({\n nickname,\n locale: 'en_US',\n agreement: true,\n ...rest\n })\n })\n .then((response) => [response.ok, response])\n .then(([ok, response]) => {\n if (ok) {\n return response.json()\n } else {\n return response.json().then((error) => { throw new Error(error) })\n }\n })\n}\n\nconst getCaptcha = () => fetch('/api/pleroma/captcha').then(resp => resp.json())\n\nconst authHeaders = (accessToken) => {\n if (accessToken) {\n return { 'Authorization': `Bearer ${accessToken}` }\n } else {\n return { }\n }\n}\n\nconst externalProfile = ({ profileUrl, credentials }) => {\n let url = `${EXTERNAL_PROFILE_URL}?profileurl=${profileUrl}`\n return fetch(url, {\n headers: authHeaders(credentials),\n method: 'GET'\n }).then((data) => data.json())\n}\n\nconst followUser = ({ id, credentials }) => {\n let url = MASTODON_FOLLOW_URL(id)\n return fetch(url, {\n headers: authHeaders(credentials),\n method: 'POST'\n }).then((data) => data.json())\n}\n\nconst unfollowUser = ({ id, credentials }) => {\n let url = MASTODON_UNFOLLOW_URL(id)\n return fetch(url, {\n headers: authHeaders(credentials),\n method: 'POST'\n }).then((data) => data.json())\n}\n\nconst pinOwnStatus = ({ id, credentials }) => {\n return promisedRequest({ url: MASTODON_PIN_OWN_STATUS(id), credentials, method: 'POST' })\n .then((data) => parseStatus(data))\n}\n\nconst unpinOwnStatus = ({ id, credentials }) => {\n return promisedRequest({ url: MASTODON_UNPIN_OWN_STATUS(id), credentials, method: 'POST' })\n .then((data) => parseStatus(data))\n}\n\nconst blockUser = ({ id, credentials }) => {\n return fetch(MASTODON_BLOCK_USER_URL(id), {\n headers: authHeaders(credentials),\n method: 'POST'\n }).then((data) => data.json())\n}\n\nconst unblockUser = ({ id, credentials }) => {\n return fetch(MASTODON_UNBLOCK_USER_URL(id), {\n headers: authHeaders(credentials),\n method: 'POST'\n }).then((data) => data.json())\n}\n\nconst approveUser = ({ id, credentials }) => {\n let url = `${APPROVE_USER_URL}?user_id=${id}`\n return fetch(url, {\n headers: authHeaders(credentials),\n method: 'POST'\n }).then((data) => data.json())\n}\n\nconst denyUser = ({ id, credentials }) => {\n let url = `${DENY_USER_URL}?user_id=${id}`\n return fetch(url, {\n headers: authHeaders(credentials),\n method: 'POST'\n }).then((data) => data.json())\n}\n\nconst fetchUser = ({ id, credentials }) => {\n let url = `${MASTODON_USER_URL}/${id}`\n return promisedRequest({ url, credentials })\n .then((data) => parseUser(data))\n}\n\nconst fetchUserRelationship = ({ id, credentials }) => {\n let url = `${MASTODON_USER_RELATIONSHIPS_URL}/?id=${id}`\n return fetch(url, { headers: authHeaders(credentials) })\n .then((response) => {\n return new Promise((resolve, reject) => response.json()\n .then((json) => {\n if (!response.ok) {\n return reject(new StatusCodeError(response.status, json, { url }, response))\n }\n return resolve(json)\n }))\n })\n}\n\nconst fetchFriends = ({ id, maxId, sinceId, limit = 20, credentials }) => {\n let url = MASTODON_FOLLOWING_URL(id)\n const args = [\n maxId && `max_id=${maxId}`,\n sinceId && `since_id=${sinceId}`,\n limit && `limit=${limit}`\n ].filter(_ => _).join('&')\n\n url = url + (args ? '?' + args : '')\n return fetch(url, { headers: authHeaders(credentials) })\n .then((data) => data.json())\n .then((data) => data.map(parseUser))\n}\n\nconst exportFriends = ({ id, credentials }) => {\n return new Promise(async (resolve, reject) => {\n try {\n let friends = []\n let more = true\n while (more) {\n const maxId = friends.length > 0 ? last(friends).id : undefined\n const users = await fetchFriends({id, maxId, credentials})\n friends = concat(friends, users)\n if (users.length === 0) {\n more = false\n }\n }\n resolve(friends)\n } catch (err) {\n reject(err)\n }\n })\n}\n\nconst fetchFollowers = ({ id, maxId, sinceId, limit = 20, credentials }) => {\n let url = MASTODON_FOLLOWERS_URL(id)\n const args = [\n maxId && `max_id=${maxId}`,\n sinceId && `since_id=${sinceId}`,\n limit && `limit=${limit}`\n ].filter(_ => _).join('&')\n\n url += args ? '?' + args : ''\n return fetch(url, { headers: authHeaders(credentials) })\n .then((data) => data.json())\n .then((data) => data.map(parseUser))\n}\n\nconst fetchFollowRequests = ({ credentials }) => {\n const url = FOLLOW_REQUESTS_URL\n return fetch(url, { headers: authHeaders(credentials) })\n .then((data) => data.json())\n}\n\nconst fetchConversation = ({ id, credentials }) => {\n let urlContext = MASTODON_STATUS_CONTEXT_URL(id)\n return fetch(urlContext, { headers: authHeaders(credentials) })\n .then((data) => {\n if (data.ok) {\n return data\n }\n throw new Error('Error fetching timeline', data)\n })\n .then((data) => data.json())\n .then(({ ancestors, descendants }) => ({\n ancestors: ancestors.map(parseStatus),\n descendants: descendants.map(parseStatus)\n }))\n}\n\nconst fetchStatus = ({ id, credentials }) => {\n let url = MASTODON_STATUS_URL(id)\n return fetch(url, { headers: authHeaders(credentials) })\n .then((data) => {\n if (data.ok) {\n return data\n }\n throw new Error('Error fetching timeline', data)\n })\n .then((data) => data.json())\n .then((data) => parseStatus(data))\n}\n\nconst tagUser = ({ tag, credentials, ...options }) => {\n const screenName = options.screen_name\n const form = {\n nicknames: [screenName],\n tags: [tag]\n }\n\n const headers = authHeaders(credentials)\n headers['Content-Type'] = 'application/json'\n\n return fetch(TAG_USER_URL, {\n method: 'PUT',\n headers: headers,\n body: JSON.stringify(form)\n })\n}\n\nconst untagUser = ({ tag, credentials, ...options }) => {\n const screenName = options.screen_name\n const body = {\n nicknames: [screenName],\n tags: [tag]\n }\n\n const headers = authHeaders(credentials)\n headers['Content-Type'] = 'application/json'\n\n return fetch(TAG_USER_URL, {\n method: 'DELETE',\n headers: headers,\n body: JSON.stringify(body)\n })\n}\n\nconst addRight = ({ right, credentials, ...user }) => {\n const screenName = user.screen_name\n\n return fetch(PERMISSION_GROUP_URL(screenName, right), {\n method: 'POST',\n headers: authHeaders(credentials),\n body: {}\n })\n}\n\nconst deleteRight = ({ right, credentials, ...user }) => {\n const screenName = user.screen_name\n\n return fetch(PERMISSION_GROUP_URL(screenName, right), {\n method: 'DELETE',\n headers: authHeaders(credentials),\n body: {}\n })\n}\n\nconst setActivationStatus = ({ status, credentials, ...user }) => {\n const screenName = user.screen_name\n const body = {\n status: status\n }\n\n const headers = authHeaders(credentials)\n headers['Content-Type'] = 'application/json'\n\n return fetch(ACTIVATION_STATUS_URL(screenName), {\n method: 'PUT',\n headers: headers,\n body: JSON.stringify(body)\n })\n}\n\nconst deleteUser = ({ credentials, ...user }) => {\n const screenName = user.screen_name\n const headers = authHeaders(credentials)\n\n return fetch(`${ADMIN_USERS_URL}?nickname=${screenName}`, {\n method: 'DELETE',\n headers: headers\n })\n}\n\nconst fetchTimeline = ({\n timeline,\n credentials,\n since = false,\n until = false,\n userId = false,\n tag = false,\n withMuted = false\n}) => {\n const timelineUrls = {\n public: MASTODON_PUBLIC_TIMELINE,\n friends: MASTODON_USER_HOME_TIMELINE_URL,\n dms: MASTODON_DIRECT_MESSAGES_TIMELINE_URL,\n notifications: MASTODON_USER_NOTIFICATIONS_URL,\n 'publicAndExternal': MASTODON_PUBLIC_TIMELINE,\n user: MASTODON_USER_TIMELINE_URL,\n media: MASTODON_USER_TIMELINE_URL,\n favorites: MASTODON_USER_FAVORITES_TIMELINE_URL,\n tag: MASTODON_TAG_TIMELINE_URL\n }\n const isNotifications = timeline === 'notifications'\n const params = []\n\n let url = timelineUrls[timeline]\n\n if (timeline === 'user' || timeline === 'media') {\n url = url(userId)\n }\n\n if (since) {\n params.push(['since_id', since])\n }\n if (until) {\n params.push(['max_id', until])\n }\n if (tag) {\n url = url(tag)\n }\n if (timeline === 'media') {\n params.push(['only_media', 1])\n }\n if (timeline === 'public') {\n params.push(['local', true])\n }\n if (timeline === 'public' || timeline === 'publicAndExternal') {\n params.push(['only_media', false])\n }\n\n params.push(['count', 20])\n params.push(['with_muted', withMuted])\n\n const queryString = map(params, (param) => `${param[0]}=${param[1]}`).join('&')\n url += `?${queryString}`\n\n return fetch(url, { headers: authHeaders(credentials) })\n .then((data) => {\n if (data.ok) {\n return data\n }\n throw new Error('Error fetching timeline', data)\n })\n .then((data) => data.json())\n .then((data) => data.map(isNotifications ? parseNotification : parseStatus))\n}\n\nconst fetchPinnedStatuses = ({ id, credentials }) => {\n const url = MASTODON_USER_TIMELINE_URL(id) + '?pinned=true'\n return promisedRequest({ url, credentials })\n .then((data) => data.map(parseStatus))\n}\n\nconst verifyCredentials = (user) => {\n return fetch(MASTODON_LOGIN_URL, {\n headers: authHeaders(user)\n })\n .then((response) => {\n if (response.ok) {\n return response.json()\n } else {\n return {\n error: response\n }\n }\n })\n .then((data) => data.error ? data : parseUser(data))\n}\n\nconst favorite = ({ id, credentials }) => {\n return promisedRequest({ url: MASTODON_FAVORITE_URL(id), method: 'POST', credentials })\n .then((data) => parseStatus(data))\n}\n\nconst unfavorite = ({ id, credentials }) => {\n return promisedRequest({ url: MASTODON_UNFAVORITE_URL(id), method: 'POST', credentials })\n .then((data) => parseStatus(data))\n}\n\nconst retweet = ({ id, credentials }) => {\n return promisedRequest({ url: MASTODON_RETWEET_URL(id), method: 'POST', credentials })\n .then((data) => parseStatus(data))\n}\n\nconst unretweet = ({ id, credentials }) => {\n return promisedRequest({ url: MASTODON_UNRETWEET_URL(id), method: 'POST', credentials })\n .then((data) => parseStatus(data))\n}\n\nconst postStatus = ({\n credentials,\n status,\n spoilerText,\n visibility,\n sensitive,\n poll,\n mediaIds = [],\n inReplyToStatusId,\n contentType\n}) => {\n const form = new FormData()\n const pollOptions = poll.options || []\n\n form.append('status', status)\n form.append('source', 'Pleroma FE')\n if (spoilerText) form.append('spoiler_text', spoilerText)\n if (visibility) form.append('visibility', visibility)\n if (sensitive) form.append('sensitive', sensitive)\n if (contentType) form.append('content_type', contentType)\n mediaIds.forEach(val => {\n form.append('media_ids[]', val)\n })\n if (pollOptions.some(option => option !== '')) {\n const normalizedPoll = {\n expires_in: poll.expiresIn,\n multiple: poll.multiple\n }\n Object.keys(normalizedPoll).forEach(key => {\n form.append(`poll[${key}]`, normalizedPoll[key])\n })\n\n pollOptions.forEach(option => {\n form.append('poll[options][]', option)\n })\n }\n if (inReplyToStatusId) {\n form.append('in_reply_to_id', inReplyToStatusId)\n }\n\n return fetch(MASTODON_POST_STATUS_URL, {\n body: form,\n method: 'POST',\n headers: authHeaders(credentials)\n })\n .then((response) => {\n if (response.ok) {\n return response.json()\n } else {\n return {\n error: response\n }\n }\n })\n .then((data) => data.error ? data : parseStatus(data))\n}\n\nconst deleteStatus = ({ id, credentials }) => {\n return fetch(MASTODON_DELETE_URL(id), {\n headers: authHeaders(credentials),\n method: 'DELETE'\n })\n}\n\nconst uploadMedia = ({ formData, credentials }) => {\n return fetch(MASTODON_MEDIA_UPLOAD_URL, {\n body: formData,\n method: 'POST',\n headers: authHeaders(credentials)\n })\n .then((data) => data.json())\n .then((data) => parseAttachment(data))\n}\n\nconst importBlocks = ({ file, credentials }) => {\n const formData = new FormData()\n formData.append('list', file)\n return fetch(BLOCKS_IMPORT_URL, {\n body: formData,\n method: 'POST',\n headers: authHeaders(credentials)\n })\n .then((response) => response.ok)\n}\n\nconst importFollows = ({ file, credentials }) => {\n const formData = new FormData()\n formData.append('list', file)\n return fetch(FOLLOW_IMPORT_URL, {\n body: formData,\n method: 'POST',\n headers: authHeaders(credentials)\n })\n .then((response) => response.ok)\n}\n\nconst deleteAccount = ({ credentials, password }) => {\n const form = new FormData()\n\n form.append('password', password)\n\n return fetch(DELETE_ACCOUNT_URL, {\n body: form,\n method: 'POST',\n headers: authHeaders(credentials)\n })\n .then((response) => response.json())\n}\n\nconst changePassword = ({ credentials, password, newPassword, newPasswordConfirmation }) => {\n const form = new FormData()\n\n form.append('password', password)\n form.append('new_password', newPassword)\n form.append('new_password_confirmation', newPasswordConfirmation)\n\n return fetch(CHANGE_PASSWORD_URL, {\n body: form,\n method: 'POST',\n headers: authHeaders(credentials)\n })\n .then((response) => response.json())\n}\n\nconst settingsMFA = ({ credentials }) => {\n return fetch(MFA_SETTINGS_URL, {\n headers: authHeaders(credentials),\n method: 'GET'\n }).then((data) => data.json())\n}\n\nconst mfaDisableOTP = ({ credentials, password }) => {\n const form = new FormData()\n\n form.append('password', password)\n\n return fetch(MFA_DISABLE_OTP_URL, {\n body: form,\n method: 'DELETE',\n headers: authHeaders(credentials)\n })\n .then((response) => response.json())\n}\n\nconst mfaConfirmOTP = ({ credentials, password, token }) => {\n const form = new FormData()\n\n form.append('password', password)\n form.append('code', token)\n\n return fetch(MFA_CONFIRM_OTP_URL, {\n body: form,\n headers: authHeaders(credentials),\n method: 'POST'\n }).then((data) => data.json())\n}\nconst mfaSetupOTP = ({ credentials }) => {\n return fetch(MFA_SETUP_OTP_URL, {\n headers: authHeaders(credentials),\n method: 'GET'\n }).then((data) => data.json())\n}\nconst generateMfaBackupCodes = ({ credentials }) => {\n return fetch(MFA_BACKUP_CODES_URL, {\n headers: authHeaders(credentials),\n method: 'GET'\n }).then((data) => data.json())\n}\n\nconst fetchMutes = ({ credentials }) => {\n return promisedRequest({ url: MASTODON_USER_MUTES_URL, credentials })\n .then((users) => users.map(parseUser))\n}\n\nconst muteUser = ({ id, credentials }) => {\n return promisedRequest({ url: MASTODON_MUTE_USER_URL(id), credentials, method: 'POST' })\n}\n\nconst unmuteUser = ({ id, credentials }) => {\n return promisedRequest({ url: MASTODON_UNMUTE_USER_URL(id), credentials, method: 'POST' })\n}\n\nconst fetchBlocks = ({ credentials }) => {\n return promisedRequest({ url: MASTODON_USER_BLOCKS_URL, credentials })\n .then((users) => users.map(parseUser))\n}\n\nconst fetchOAuthTokens = ({ credentials }) => {\n const url = '/api/oauth_tokens.json'\n\n return fetch(url, {\n headers: authHeaders(credentials)\n }).then((data) => {\n if (data.ok) {\n return data.json()\n }\n throw new Error('Error fetching auth tokens', data)\n })\n}\n\nconst revokeOAuthToken = ({ id, credentials }) => {\n const url = `/api/oauth_tokens/${id}`\n\n return fetch(url, {\n headers: authHeaders(credentials),\n method: 'DELETE'\n })\n}\n\nconst suggestions = ({ credentials }) => {\n return fetch(SUGGESTIONS_URL, {\n headers: authHeaders(credentials)\n }).then((data) => data.json())\n}\n\nconst markNotificationsAsSeen = ({ id, credentials }) => {\n const body = new FormData()\n\n body.append('latest_id', id)\n\n return fetch(QVITTER_USER_NOTIFICATIONS_READ_URL, {\n body,\n headers: authHeaders(credentials),\n method: 'POST'\n }).then((data) => data.json())\n}\n\nconst vote = ({ pollId, choices, credentials }) => {\n const form = new FormData()\n form.append('choices', choices)\n\n return promisedRequest({\n url: MASTODON_VOTE_URL(encodeURIComponent(pollId)),\n method: 'POST',\n credentials,\n payload: {\n choices: choices\n }\n })\n}\n\nconst fetchPoll = ({ pollId, credentials }) => {\n return promisedRequest(\n {\n url: MASTODON_POLL_URL(encodeURIComponent(pollId)),\n method: 'GET',\n credentials\n }\n )\n}\n\nconst fetchFavoritedByUsers = ({ id }) => {\n return promisedRequest({ url: MASTODON_STATUS_FAVORITEDBY_URL(id) }).then((users) => users.map(parseUser))\n}\n\nconst fetchRebloggedByUsers = ({ id }) => {\n return promisedRequest({ url: MASTODON_STATUS_REBLOGGEDBY_URL(id) }).then((users) => users.map(parseUser))\n}\n\nconst reportUser = ({ credentials, userId, statusIds, comment, forward }) => {\n return promisedRequest({\n url: MASTODON_REPORT_USER_URL,\n method: 'POST',\n payload: {\n 'account_id': userId,\n 'status_ids': statusIds,\n comment,\n forward\n },\n credentials\n })\n}\n\nconst apiService = {\n verifyCredentials,\n fetchTimeline,\n fetchPinnedStatuses,\n fetchConversation,\n fetchStatus,\n fetchFriends,\n exportFriends,\n fetchFollowers,\n followUser,\n unfollowUser,\n pinOwnStatus,\n unpinOwnStatus,\n blockUser,\n unblockUser,\n fetchUser,\n fetchUserRelationship,\n favorite,\n unfavorite,\n retweet,\n unretweet,\n postStatus,\n deleteStatus,\n uploadMedia,\n fetchMutes,\n muteUser,\n unmuteUser,\n fetchBlocks,\n fetchOAuthTokens,\n revokeOAuthToken,\n tagUser,\n untagUser,\n deleteUser,\n addRight,\n deleteRight,\n setActivationStatus,\n register,\n getCaptcha,\n updateAvatar,\n updateBg,\n updateProfile,\n updateBanner,\n externalProfile,\n importBlocks,\n importFollows,\n deleteAccount,\n changePassword,\n settingsMFA,\n mfaDisableOTP,\n generateMfaBackupCodes,\n mfaSetupOTP,\n mfaConfirmOTP,\n fetchFollowRequests,\n approveUser,\n denyUser,\n suggestions,\n markNotificationsAsSeen,\n vote,\n fetchPoll,\n fetchFavoritedByUsers,\n fetchRebloggedByUsers,\n reportUser,\n updateNotificationSettings\n}\n\nexport default apiService\n","import { includes } from 'lodash'\n\nconst generateProfileLink = (id, screenName, restrictedNicknames) => {\n const complicated = !screenName || (isExternal(screenName) || includes(restrictedNicknames, screenName))\n return {\n name: (complicated ? 'external-user-profile' : 'user-profile'),\n params: (complicated ? { id } : { name: screenName })\n }\n}\n\nconst isExternal = screenName => screenName && screenName.includes('@')\n\nexport default generateProfileLink\n","function injectStyle (context) {\n require(\"!!vue-style-loader!css-loader?minimize!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"optionsId\\\":\\\"0\\\",\\\"vue\\\":true,\\\"scoped\\\":false,\\\"sourceMap\\\":false}!sass-loader!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./timeline.vue\")\n}\n/* script */\nexport * from \"!!babel-loader!./timeline.js\"\nimport __vue_script__ from \"!!babel-loader!./timeline.js\"/* template */\nimport {render as __vue_render__, staticRenderFns as __vue_static_render_fns__} from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-1800e336\\\",\\\"hasScoped\\\":false,\\\"optionsId\\\":\\\"0\\\",\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./timeline.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nimport normalizeComponent from \"!../../../node_modules/vue-loader/lib/runtime/component-normalizer\"\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_render__,\n __vue_static_render_fns__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n","function injectStyle (context) {\n require(\"!!vue-style-loader!css-loader?minimize!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"optionsId\\\":\\\"0\\\",\\\"vue\\\":true,\\\"scoped\\\":false,\\\"sourceMap\\\":false}!sass-loader!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./user_card.vue\")\n}\n/* script */\nexport * from \"!!babel-loader!./user_card.js\"\nimport __vue_script__ from \"!!babel-loader!./user_card.js\"/* template */\nimport {render as __vue_render__, staticRenderFns as __vue_static_render_fns__} from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-972257b2\\\",\\\"hasScoped\\\":false,\\\"optionsId\\\":\\\"0\\\",\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./user_card.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nimport normalizeComponent from \"!../../../node_modules/vue-loader/lib/runtime/component-normalizer\"\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_render__,\n __vue_static_render_fns__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n","import { map } from 'lodash'\n\nconst rgb2hex = (r, g, b) => {\n if (r === null || typeof r === 'undefined') {\n return undefined\n }\n if (r[0] === '#') {\n return r\n }\n if (typeof r === 'object') {\n ({ r, g, b } = r)\n }\n [r, g, b] = map([r, g, b], (val) => {\n val = Math.ceil(val)\n val = val < 0 ? 0 : val\n val = val > 255 ? 255 : val\n return val\n })\n return `#${((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1)}`\n}\n\n/**\n * Converts 8-bit RGB component into linear component\n * https://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef\n * https://www.w3.org/TR/2008/REC-WCAG20-20081211/relative-luminance.xml\n * https://en.wikipedia.org/wiki/SRGB#The_reverse_transformation\n *\n * @param {Number} bit - color component [0..255]\n * @returns {Number} linear component [0..1]\n */\nconst c2linear = (bit) => {\n // W3C gives 0.03928 while wikipedia states 0.04045\n // what those magical numbers mean - I don't know.\n // something about gamma-correction, i suppose.\n // Sticking with W3C example.\n const c = bit / 255\n if (c < 0.03928) {\n return c / 12.92\n } else {\n return Math.pow((c + 0.055) / 1.055, 2.4)\n }\n}\n\n/**\n * Converts sRGB into linear RGB\n * @param {Object} srgb - sRGB color\n * @returns {Object} linear rgb color\n */\nconst srgbToLinear = (srgb) => {\n return 'rgb'.split('').reduce((acc, c) => { acc[c] = c2linear(srgb[c]); return acc }, {})\n}\n\n/**\n * Calculates relative luminance for given color\n * https://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef\n * https://www.w3.org/TR/2008/REC-WCAG20-20081211/relative-luminance.xml\n *\n * @param {Object} srgb - sRGB color\n * @returns {Number} relative luminance\n */\nconst relativeLuminance = (srgb) => {\n const {r, g, b} = srgbToLinear(srgb)\n return 0.2126 * r + 0.7152 * g + 0.0722 * b\n}\n\n/**\n * Generates color ratio between two colors. Order is unimporant\n * https://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef\n *\n * @param {Object} a - sRGB color\n * @param {Object} b - sRGB color\n * @returns {Number} color ratio\n */\nconst getContrastRatio = (a, b) => {\n const la = relativeLuminance(a)\n const lb = relativeLuminance(b)\n const [l1, l2] = la > lb ? [la, lb] : [lb, la]\n\n return (l1 + 0.05) / (l2 + 0.05)\n}\n\n/**\n * This performs alpha blending between solid background and semi-transparent foreground\n *\n * @param {Object} fg - top layer color\n * @param {Number} fga - top layer's alpha\n * @param {Object} bg - bottom layer color\n * @returns {Object} sRGB of resulting color\n */\nconst alphaBlend = (fg, fga, bg) => {\n if (fga === 1 || typeof fga === 'undefined') return fg\n return 'rgb'.split('').reduce((acc, c) => {\n // Simplified https://en.wikipedia.org/wiki/Alpha_compositing#Alpha_blending\n // for opaque bg and transparent fg\n acc[c] = (fg[c] * fga + bg[c] * (1 - fga))\n return acc\n }, {})\n}\n\nconst invert = (rgb) => {\n return 'rgb'.split('').reduce((acc, c) => {\n acc[c] = 255 - rgb[c]\n return acc\n }, {})\n}\n\nconst hex2rgb = (hex) => {\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex)\n return result ? {\n r: parseInt(result[1], 16),\n g: parseInt(result[2], 16),\n b: parseInt(result[3], 16)\n } : null\n}\n\nconst mixrgb = (a, b) => {\n return Object.keys(a).reduce((acc, k) => {\n acc[k] = (a[k] + b[k]) / 2\n return acc\n }, {})\n}\n\nexport {\n rgb2hex,\n hex2rgb,\n mixrgb,\n invert,\n getContrastRatio,\n alphaBlend\n}\n","// TODO this func might as well take the entire file and use its mimetype\n// or the entire service could be just mimetype service that only operates\n// on mimetypes and not files. Currently the naming is confusing.\nconst fileType = mimetype => {\n if (mimetype.match(/text\\/html/)) {\n return 'html'\n }\n\n if (mimetype.match(/image/)) {\n return 'image'\n }\n\n if (mimetype.match(/video/)) {\n return 'video'\n }\n\n if (mimetype.match(/audio/)) {\n return 'audio'\n }\n\n return 'unknown'\n}\n\nconst fileMatchesSomeType = (types, file) =>\n types.some(type => fileType(file.mimetype) === type)\n\nconst fileTypeService = {\n fileType,\n fileMatchesSomeType\n}\n\nexport default fileTypeService\n","function injectStyle (context) {\n require(\"!!vue-style-loader!css-loader?minimize!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"optionsId\\\":\\\"0\\\",\\\"vue\\\":true,\\\"scoped\\\":false,\\\"sourceMap\\\":false}!sass-loader!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./user_avatar.vue\")\n}\n/* script */\nexport * from \"!!babel-loader!./user_avatar.js\"\nimport __vue_script__ from \"!!babel-loader!./user_avatar.js\"/* template */\nimport {render as __vue_render__, staticRenderFns as __vue_static_render_fns__} from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-60cb9afa\\\",\\\"hasScoped\\\":false,\\\"optionsId\\\":\\\"0\\\",\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./user_avatar.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nimport normalizeComponent from \"!../../../node_modules/vue-loader/lib/runtime/component-normalizer\"\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_render__,\n __vue_static_render_fns__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n","import { times } from 'lodash'\nimport { brightness, invertLightness, convert, contrastRatio } from 'chromatism'\nimport { rgb2hex, hex2rgb, mixrgb, getContrastRatio, alphaBlend } from '../color_convert/color_convert.js'\n\n// While this is not used anymore right now, I left it in if we want to do custom\n// styles that aren't just colors, so user can pick from a few different distinct\n// styles as well as set their own colors in the future.\n\nconst setStyle = (href, commit) => {\n /***\n What's going on here?\n I want to make it easy for admins to style this application. To have\n a good set of default themes, I chose the system from base16\n (https://chriskempson.github.io/base16/) to style all elements. They\n all have the base00..0F classes. So the only thing an admin needs to\n do to style Pleroma is to change these colors in that one css file.\n Some default things (body text color, link color) need to be set dy-\n namically, so this is done here by waiting for the stylesheet to be\n loaded and then creating an element with the respective classes.\n\n It is a bit weird, but should make life for admins somewhat easier.\n ***/\n const head = document.head\n const body = document.body\n body.style.display = 'none'\n const cssEl = document.createElement('link')\n cssEl.setAttribute('rel', 'stylesheet')\n cssEl.setAttribute('href', href)\n head.appendChild(cssEl)\n\n const setDynamic = () => {\n const baseEl = document.createElement('div')\n body.appendChild(baseEl)\n\n let colors = {}\n times(16, (n) => {\n const name = `base0${n.toString(16).toUpperCase()}`\n baseEl.setAttribute('class', name)\n const color = window.getComputedStyle(baseEl).getPropertyValue('color')\n colors[name] = color\n })\n\n body.removeChild(baseEl)\n\n const styleEl = document.createElement('style')\n head.appendChild(styleEl)\n // const styleSheet = styleEl.sheet\n\n body.style.display = 'initial'\n }\n\n cssEl.addEventListener('load', setDynamic)\n}\n\nconst rgb2rgba = function (rgba) {\n return `rgba(${rgba.r}, ${rgba.g}, ${rgba.b}, ${rgba.a})`\n}\n\nconst getTextColor = function (bg, text, preserve) {\n const bgIsLight = convert(bg).hsl.l > 50\n const textIsLight = convert(text).hsl.l > 50\n\n if ((bgIsLight && textIsLight) || (!bgIsLight && !textIsLight)) {\n const base = typeof text.a !== 'undefined' ? { a: text.a } : {}\n const result = Object.assign(base, invertLightness(text).rgb)\n if (!preserve && getContrastRatio(bg, result) < 4.5) {\n return contrastRatio(bg, text).rgb\n }\n return result\n }\n return text\n}\n\nconst applyTheme = (input, commit) => {\n const { rules, theme } = generatePreset(input)\n const head = document.head\n const body = document.body\n body.style.display = 'none'\n\n const styleEl = document.createElement('style')\n head.appendChild(styleEl)\n const styleSheet = styleEl.sheet\n\n styleSheet.toString()\n styleSheet.insertRule(`body { ${rules.radii} }`, 'index-max')\n styleSheet.insertRule(`body { ${rules.colors} }`, 'index-max')\n styleSheet.insertRule(`body { ${rules.shadows} }`, 'index-max')\n styleSheet.insertRule(`body { ${rules.fonts} }`, 'index-max')\n body.style.display = 'initial'\n\n // commit('setOption', { name: 'colors', value: htmlColors })\n // commit('setOption', { name: 'radii', value: radii })\n commit('setOption', { name: 'customTheme', value: input })\n commit('setOption', { name: 'colors', value: theme.colors })\n}\n\nconst getCssShadow = (input, usesDropShadow) => {\n if (input.length === 0) {\n return 'none'\n }\n\n return input\n .filter(_ => usesDropShadow ? _.inset : _)\n .map((shad) => [\n shad.x,\n shad.y,\n shad.blur,\n shad.spread\n ].map(_ => _ + 'px').concat([\n getCssColor(shad.color, shad.alpha),\n shad.inset ? 'inset' : ''\n ]).join(' ')).join(', ')\n}\n\nconst getCssShadowFilter = (input) => {\n if (input.length === 0) {\n return 'none'\n }\n\n return input\n // drop-shadow doesn't support inset or spread\n .filter((shad) => !shad.inset && Number(shad.spread) === 0)\n .map((shad) => [\n shad.x,\n shad.y,\n // drop-shadow's blur is twice as strong compared to box-shadow\n shad.blur / 2\n ].map(_ => _ + 'px').concat([\n getCssColor(shad.color, shad.alpha)\n ]).join(' '))\n .map(_ => `drop-shadow(${_})`)\n .join(' ')\n}\n\nconst getCssColor = (input, a) => {\n let rgb = {}\n if (typeof input === 'object') {\n rgb = input\n } else if (typeof input === 'string') {\n if (input.startsWith('#')) {\n rgb = hex2rgb(input)\n } else if (input.startsWith('--')) {\n return `var(${input})`\n } else {\n return input\n }\n }\n return rgb2rgba({ ...rgb, a })\n}\n\nconst generateColors = (input) => {\n const colors = {}\n const opacity = Object.assign({\n alert: 0.5,\n input: 0.5,\n faint: 0.5\n }, Object.entries(input.opacity || {}).reduce((acc, [k, v]) => {\n if (typeof v !== 'undefined') {\n acc[k] = v\n }\n return acc\n }, {}))\n const col = Object.entries(input.colors || input).reduce((acc, [k, v]) => {\n if (typeof v === 'object') {\n acc[k] = v\n } else {\n acc[k] = hex2rgb(v)\n }\n return acc\n }, {})\n\n const isLightOnDark = convert(col.bg).hsl.l < convert(col.text).hsl.l\n const mod = isLightOnDark ? 1 : -1\n\n colors.text = col.text\n colors.lightText = brightness(20 * mod, colors.text).rgb\n colors.link = col.link\n colors.faint = col.faint || Object.assign({}, col.text)\n\n colors.bg = col.bg\n colors.lightBg = col.lightBg || brightness(5, colors.bg).rgb\n\n colors.fg = col.fg\n colors.fgText = col.fgText || getTextColor(colors.fg, colors.text)\n colors.fgLink = col.fgLink || getTextColor(colors.fg, colors.link, true)\n\n colors.border = col.border || brightness(2 * mod, colors.fg).rgb\n\n colors.btn = col.btn || Object.assign({}, col.fg)\n colors.btnText = col.btnText || getTextColor(colors.btn, colors.fgText)\n\n colors.input = col.input || Object.assign({}, col.fg)\n colors.inputText = col.inputText || getTextColor(colors.input, colors.lightText)\n\n colors.panel = col.panel || Object.assign({}, col.fg)\n colors.panelText = col.panelText || getTextColor(colors.panel, colors.fgText)\n colors.panelLink = col.panelLink || getTextColor(colors.panel, colors.fgLink)\n colors.panelFaint = col.panelFaint || getTextColor(colors.panel, colors.faint)\n\n colors.topBar = col.topBar || Object.assign({}, col.fg)\n colors.topBarText = col.topBarText || getTextColor(colors.topBar, colors.fgText)\n colors.topBarLink = col.topBarLink || getTextColor(colors.topBar, colors.fgLink)\n\n colors.faintLink = col.faintLink || Object.assign({}, col.link)\n colors.linkBg = alphaBlend(colors.link, 0.4, colors.bg)\n\n colors.icon = mixrgb(colors.bg, colors.text)\n\n colors.cBlue = col.cBlue || hex2rgb('#0000FF')\n colors.cRed = col.cRed || hex2rgb('#FF0000')\n colors.cGreen = col.cGreen || hex2rgb('#00FF00')\n colors.cOrange = col.cOrange || hex2rgb('#E3FF00')\n\n colors.alertError = col.alertError || Object.assign({}, colors.cRed)\n colors.alertErrorText = getTextColor(alphaBlend(colors.alertError, opacity.alert, colors.bg), colors.text)\n colors.alertErrorPanelText = getTextColor(alphaBlend(colors.alertError, opacity.alert, colors.panel), colors.panelText)\n\n colors.badgeNotification = col.badgeNotification || Object.assign({}, colors.cRed)\n colors.badgeNotificationText = contrastRatio(colors.badgeNotification).rgb\n\n Object.entries(opacity).forEach(([ k, v ]) => {\n if (typeof v === 'undefined') return\n if (k === 'alert') {\n colors.alertError.a = v\n return\n }\n if (k === 'faint') {\n colors[k + 'Link'].a = v\n colors['panelFaint'].a = v\n }\n if (k === 'bg') {\n colors['lightBg'].a = v\n }\n if (colors[k]) {\n colors[k].a = v\n } else {\n console.error('Wrong key ' + k)\n }\n })\n\n const htmlColors = Object.entries(colors)\n .reduce((acc, [k, v]) => {\n if (!v) return acc\n acc.solid[k] = rgb2hex(v)\n acc.complete[k] = typeof v.a === 'undefined' ? rgb2hex(v) : rgb2rgba(v)\n return acc\n }, { complete: {}, solid: {} })\n return {\n rules: {\n colors: Object.entries(htmlColors.complete)\n .filter(([k, v]) => v)\n .map(([k, v]) => `--${k}: ${v}`)\n .join(';')\n },\n theme: {\n colors: htmlColors.solid,\n opacity\n }\n }\n}\n\nconst generateRadii = (input) => {\n let inputRadii = input.radii || {}\n // v1 -> v2\n if (typeof input.btnRadius !== 'undefined') {\n inputRadii = Object\n .entries(input)\n .filter(([k, v]) => k.endsWith('Radius'))\n .reduce((acc, e) => { acc[e[0].split('Radius')[0]] = e[1]; return acc }, {})\n }\n const radii = Object.entries(inputRadii).filter(([k, v]) => v).reduce((acc, [k, v]) => {\n acc[k] = v\n return acc\n }, {\n btn: 4,\n input: 4,\n checkbox: 2,\n panel: 10,\n avatar: 5,\n avatarAlt: 50,\n tooltip: 2,\n attachment: 5\n })\n\n return {\n rules: {\n radii: Object.entries(radii).filter(([k, v]) => v).map(([k, v]) => `--${k}Radius: ${v}px`).join(';')\n },\n theme: {\n radii\n }\n }\n}\n\nconst generateFonts = (input) => {\n const fonts = Object.entries(input.fonts || {}).filter(([k, v]) => v).reduce((acc, [k, v]) => {\n acc[k] = Object.entries(v).filter(([k, v]) => v).reduce((acc, [k, v]) => {\n acc[k] = v\n return acc\n }, acc[k])\n return acc\n }, {\n interface: {\n family: 'sans-serif'\n },\n input: {\n family: 'inherit'\n },\n post: {\n family: 'inherit'\n },\n postCode: {\n family: 'monospace'\n }\n })\n\n return {\n rules: {\n fonts: Object\n .entries(fonts)\n .filter(([k, v]) => v)\n .map(([k, v]) => `--${k}Font: ${v.family}`).join(';')\n },\n theme: {\n fonts\n }\n }\n}\n\nconst generateShadows = (input) => {\n const border = (top, shadow) => ({\n x: 0,\n y: top ? 1 : -1,\n blur: 0,\n spread: 0,\n color: shadow ? '#000000' : '#FFFFFF',\n alpha: 0.2,\n inset: true\n })\n const buttonInsetFakeBorders = [border(true, false), border(false, true)]\n const inputInsetFakeBorders = [border(true, true), border(false, false)]\n const hoverGlow = {\n x: 0,\n y: 0,\n blur: 4,\n spread: 0,\n color: '--faint',\n alpha: 1\n }\n\n const shadows = {\n panel: [{\n x: 1,\n y: 1,\n blur: 4,\n spread: 0,\n color: '#000000',\n alpha: 0.6\n }],\n topBar: [{\n x: 0,\n y: 0,\n blur: 4,\n spread: 0,\n color: '#000000',\n alpha: 0.6\n }],\n popup: [{\n x: 2,\n y: 2,\n blur: 3,\n spread: 0,\n color: '#000000',\n alpha: 0.5\n }],\n avatar: [{\n x: 0,\n y: 1,\n blur: 8,\n spread: 0,\n color: '#000000',\n alpha: 0.7\n }],\n avatarStatus: [],\n panelHeader: [],\n button: [{\n x: 0,\n y: 0,\n blur: 2,\n spread: 0,\n color: '#000000',\n alpha: 1\n }, ...buttonInsetFakeBorders],\n buttonHover: [hoverGlow, ...buttonInsetFakeBorders],\n buttonPressed: [hoverGlow, ...inputInsetFakeBorders],\n input: [...inputInsetFakeBorders, {\n x: 0,\n y: 0,\n blur: 2,\n inset: true,\n spread: 0,\n color: '#000000',\n alpha: 1\n }],\n ...(input.shadows || {})\n }\n\n return {\n rules: {\n shadows: Object\n .entries(shadows)\n // TODO for v2.1: if shadow doesn't have non-inset shadows with spread > 0 - optionally\n // convert all non-inset shadows into filter: drop-shadow() to boost performance\n .map(([k, v]) => [\n `--${k}Shadow: ${getCssShadow(v)}`,\n `--${k}ShadowFilter: ${getCssShadowFilter(v)}`,\n `--${k}ShadowInset: ${getCssShadow(v, true)}`\n ].join(';'))\n .join(';')\n },\n theme: {\n shadows\n }\n }\n}\n\nconst composePreset = (colors, radii, shadows, fonts) => {\n return {\n rules: {\n ...shadows.rules,\n ...colors.rules,\n ...radii.rules,\n ...fonts.rules\n },\n theme: {\n ...shadows.theme,\n ...colors.theme,\n ...radii.theme,\n ...fonts.theme\n }\n }\n}\n\nconst generatePreset = (input) => {\n const shadows = generateShadows(input)\n const colors = generateColors(input)\n const radii = generateRadii(input)\n const fonts = generateFonts(input)\n\n return composePreset(colors, radii, shadows, fonts)\n}\n\nconst getThemes = () => {\n return window.fetch('/static/styles.json')\n .then((data) => data.json())\n .then((themes) => {\n return Promise.all(Object.entries(themes).map(([k, v]) => {\n if (typeof v === 'object') {\n return Promise.resolve([k, v])\n } else if (typeof v === 'string') {\n return window.fetch(v)\n .then((data) => data.json())\n .then((theme) => {\n return [k, theme]\n })\n .catch((e) => {\n console.error(e)\n return []\n })\n }\n }))\n })\n .then((promises) => {\n return promises\n .filter(([k, v]) => v)\n .reduce((acc, [k, v]) => {\n acc[k] = v\n return acc\n }, {})\n })\n}\n\nconst setPreset = (val, commit) => {\n return getThemes().then((themes) => {\n const theme = themes[val] ? themes[val] : themes['pleroma-dark']\n const isV1 = Array.isArray(theme)\n const data = isV1 ? {} : theme.theme\n\n if (isV1) {\n const bgRgb = hex2rgb(theme[1])\n const fgRgb = hex2rgb(theme[2])\n const textRgb = hex2rgb(theme[3])\n const linkRgb = hex2rgb(theme[4])\n\n const cRedRgb = hex2rgb(theme[5] || '#FF0000')\n const cGreenRgb = hex2rgb(theme[6] || '#00FF00')\n const cBlueRgb = hex2rgb(theme[7] || '#0000FF')\n const cOrangeRgb = hex2rgb(theme[8] || '#E3FF00')\n\n data.colors = {\n bg: bgRgb,\n fg: fgRgb,\n text: textRgb,\n link: linkRgb,\n cRed: cRedRgb,\n cBlue: cBlueRgb,\n cGreen: cGreenRgb,\n cOrange: cOrangeRgb\n }\n }\n\n // This is a hack, this function is only called during initial load.\n // We want to cancel loading the theme from config.json if we're already\n // loading a theme from the persisted state.\n // Needed some way of dealing with the async way of things.\n // load config -> set preset -> wait for styles.json to load ->\n // load persisted state -> set colors -> styles.json loaded -> set colors\n if (!window.themeLoaded) {\n applyTheme(data, commit)\n }\n })\n}\n\nexport {\n setStyle,\n setPreset,\n applyTheme,\n getTextColor,\n generateColors,\n generateRadii,\n generateShadows,\n generateFonts,\n generatePreset,\n getThemes,\n composePreset,\n getCssShadow,\n getCssShadowFilter\n}\n","function injectStyle (context) {\n require(\"!!vue-style-loader!css-loader?minimize!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"optionsId\\\":\\\"0\\\",\\\"vue\\\":true,\\\"scoped\\\":false,\\\"sourceMap\\\":false}!sass-loader!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./status.vue\")\n}\n/* script */\nexport * from \"!!babel-loader!./status.js\"\nimport __vue_script__ from \"!!babel-loader!./status.js\"/* template */\nimport {render as __vue_render__, staticRenderFns as __vue_static_render_fns__} from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-15f4f97e\\\",\\\"hasScoped\\\":false,\\\"optionsId\\\":\\\"0\\\",\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./status.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nimport normalizeComponent from \"!../../../node_modules/vue-loader/lib/runtime/component-normalizer\"\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_render__,\n __vue_static_render_fns__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n","function injectStyle (context) {\n require(\"!!vue-style-loader!css-loader?minimize!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"optionsId\\\":\\\"0\\\",\\\"vue\\\":true,\\\"scoped\\\":false,\\\"sourceMap\\\":false}!sass-loader!./notifications.scss\")\n}\n/* script */\nexport * from \"!!babel-loader!./notifications.js\"\nimport __vue_script__ from \"!!babel-loader!./notifications.js\"/* template */\nimport {render as __vue_render__, staticRenderFns as __vue_static_render_fns__} from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-168f6ab6\\\",\\\"hasScoped\\\":false,\\\"optionsId\\\":\\\"0\\\",\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./notifications.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nimport normalizeComponent from \"!../../../node_modules/vue-loader/lib/runtime/component-normalizer\"\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_render__,\n __vue_static_render_fns__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n","function injectStyle (context) {\n require(\"!!vue-style-loader!css-loader?minimize!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"optionsId\\\":\\\"0\\\",\\\"vue\\\":true,\\\"scoped\\\":false,\\\"sourceMap\\\":false}!sass-loader!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./basic_user_card.vue\")\n}\n/* script */\nexport * from \"!!babel-loader!./basic_user_card.js\"\nimport __vue_script__ from \"!!babel-loader!./basic_user_card.js\"/* template */\nimport {render as __vue_render__, staticRenderFns as __vue_static_render_fns__} from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-ce0f370a\\\",\\\"hasScoped\\\":false,\\\"optionsId\\\":\\\"0\\\",\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./basic_user_card.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nimport normalizeComponent from \"!../../../node_modules/vue-loader/lib/runtime/component-normalizer\"\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_render__,\n __vue_static_render_fns__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n","import Timeline from '../timeline/timeline.vue'\nconst PublicTimeline = {\n components: {\n Timeline\n },\n computed: {\n timeline () { return this.$store.state.statuses.timelines.public }\n },\n created () {\n this.$store.dispatch('startFetchingTimeline', { timeline: 'public' })\n },\n destroyed () {\n this.$store.dispatch('stopFetching', 'public')\n }\n\n}\n\nexport default PublicTimeline\n","import Status from '../status/status.vue'\nimport timelineFetcher from '../../services/timeline_fetcher/timeline_fetcher.service.js'\nimport Conversation from '../conversation/conversation.vue'\nimport { throttle } from 'lodash'\n\nconst Timeline = {\n props: [\n 'timeline',\n 'timelineName',\n 'title',\n 'userId',\n 'tag',\n 'embedded',\n 'count'\n ],\n data () {\n return {\n paused: false,\n unfocused: false,\n bottomedOut: false\n }\n },\n computed: {\n timelineError () { return this.$store.state.statuses.error },\n newStatusCount () {\n return this.timeline.newStatusCount\n },\n newStatusCountStr () {\n if (this.timeline.flushMarker !== 0) {\n return ''\n } else {\n return ` (${this.newStatusCount})`\n }\n },\n classes () {\n return {\n root: ['timeline'].concat(!this.embedded ? ['panel', 'panel-default'] : []),\n header: ['timeline-heading'].concat(!this.embedded ? ['panel-heading'] : []),\n body: ['timeline-body'].concat(!this.embedded ? ['panel-body'] : []),\n footer: ['timeline-footer'].concat(!this.embedded ? ['panel-footer'] : [])\n }\n }\n },\n components: {\n Status,\n Conversation\n },\n created () {\n const store = this.$store\n const credentials = store.state.users.currentUser.credentials\n const showImmediately = this.timeline.visibleStatuses.length === 0\n\n window.addEventListener('scroll', this.scrollLoad)\n\n if (store.state.api.fetchers[this.timelineName]) { return false }\n\n timelineFetcher.fetchAndUpdate({\n store,\n credentials,\n timeline: this.timelineName,\n showImmediately,\n userId: this.userId,\n tag: this.tag\n })\n },\n mounted () {\n if (typeof document.hidden !== 'undefined') {\n document.addEventListener('visibilitychange', this.handleVisibilityChange, false)\n this.unfocused = document.hidden\n }\n window.addEventListener('keydown', this.handleShortKey)\n },\n destroyed () {\n window.removeEventListener('scroll', this.scrollLoad)\n window.removeEventListener('keydown', this.handleShortKey)\n if (typeof document.hidden !== 'undefined') document.removeEventListener('visibilitychange', this.handleVisibilityChange, false)\n this.$store.commit('setLoading', { timeline: this.timelineName, value: false })\n },\n methods: {\n handleShortKey (e) {\n // Ignore when input fields are focused\n if (['textarea', 'input'].includes(e.target.tagName.toLowerCase())) return\n if (e.key === '.') this.showNewStatuses()\n },\n showNewStatuses () {\n if (this.newStatusCount === 0) return\n\n if (this.timeline.flushMarker !== 0) {\n this.$store.commit('clearTimeline', { timeline: this.timelineName })\n this.$store.commit('queueFlush', { timeline: this.timelineName, id: 0 })\n this.fetchOlderStatuses()\n } else {\n this.$store.commit('showNewStatuses', { timeline: this.timelineName })\n this.paused = false\n }\n },\n fetchOlderStatuses: throttle(function () {\n const store = this.$store\n const credentials = store.state.users.currentUser.credentials\n store.commit('setLoading', { timeline: this.timelineName, value: true })\n timelineFetcher.fetchAndUpdate({\n store,\n credentials,\n timeline: this.timelineName,\n older: true,\n showImmediately: true,\n userId: this.userId,\n tag: this.tag\n }).then(statuses => {\n store.commit('setLoading', { timeline: this.timelineName, value: false })\n if (statuses && statuses.length === 0) {\n this.bottomedOut = true\n }\n })\n }, 1000, this),\n scrollLoad (e) {\n const bodyBRect = document.body.getBoundingClientRect()\n const height = Math.max(bodyBRect.height, -(bodyBRect.y))\n if (this.timeline.loading === false &&\n this.$store.state.config.autoLoad &&\n this.$el.offsetHeight > 0 &&\n (window.innerHeight + window.pageYOffset) >= (height - 750)) {\n this.fetchOlderStatuses()\n }\n },\n handleVisibilityChange () {\n this.unfocused = document.hidden\n }\n },\n watch: {\n newStatusCount (count) {\n if (!this.$store.state.config.streaming) {\n return\n }\n if (count > 0) {\n // only 'stream' them when you're scrolled to the top\n const doc = document.documentElement\n const top = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0)\n if (top < 15 &&\n !this.paused &&\n !(this.unfocused && this.$store.state.config.pauseOnUnfocused)\n ) {\n this.showNewStatuses()\n } else {\n this.paused = true\n }\n }\n }\n }\n}\n\nexport default Timeline\n","import Attachment from '../attachment/attachment.vue'\nimport FavoriteButton from '../favorite_button/favorite_button.vue'\nimport RetweetButton from '../retweet_button/retweet_button.vue'\nimport Poll from '../poll/poll.vue'\nimport ExtraButtons from '../extra_buttons/extra_buttons.vue'\nimport PostStatusForm from '../post_status_form/post_status_form.vue'\nimport UserCard from '../user_card/user_card.vue'\nimport UserAvatar from '../user_avatar/user_avatar.vue'\nimport Gallery from '../gallery/gallery.vue'\nimport LinkPreview from '../link-preview/link-preview.vue'\nimport AvatarList from '../avatar_list/avatar_list.vue'\nimport Timeago from '../timeago/timeago.vue'\nimport generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'\nimport fileType from 'src/services/file_type/file_type.service'\nimport { highlightClass, highlightStyle } from '../../services/user_highlighter/user_highlighter.js'\nimport { mentionMatchesUrl, extractTagFromUrl } from 'src/services/matcher/matcher.service.js'\nimport { filter, find, unescape, uniqBy } from 'lodash'\n\nconst Status = {\n name: 'Status',\n props: [\n 'statusoid',\n 'expandable',\n 'inConversation',\n 'focused',\n 'highlight',\n 'compact',\n 'replies',\n 'isPreview',\n 'noHeading',\n 'inlineExpanded',\n 'showPinned'\n ],\n data () {\n return {\n replying: false,\n unmuted: false,\n userExpanded: false,\n preview: null,\n showPreview: false,\n showingTall: this.inConversation && this.focused,\n showingLongSubject: false,\n error: null,\n expandingSubject: typeof this.$store.state.config.collapseMessageWithSubject === 'undefined'\n ? !this.$store.state.instance.collapseMessageWithSubject\n : !this.$store.state.config.collapseMessageWithSubject,\n betterShadow: this.$store.state.interface.browserSupport.cssFilter\n }\n },\n computed: {\n localCollapseSubjectDefault () {\n return typeof this.$store.state.config.collapseMessageWithSubject === 'undefined'\n ? this.$store.state.instance.collapseMessageWithSubject\n : this.$store.state.config.collapseMessageWithSubject\n },\n muteWords () {\n return this.$store.state.config.muteWords\n },\n repeaterClass () {\n const user = this.statusoid.user\n return highlightClass(user)\n },\n userClass () {\n const user = this.retweet ? (this.statusoid.retweeted_status.user) : this.statusoid.user\n return highlightClass(user)\n },\n deleted () {\n return this.statusoid.deleted\n },\n repeaterStyle () {\n const user = this.statusoid.user\n const highlight = this.$store.state.config.highlight\n return highlightStyle(highlight[user.screen_name])\n },\n userStyle () {\n if (this.noHeading) return\n const user = this.retweet ? (this.statusoid.retweeted_status.user) : this.statusoid.user\n const highlight = this.$store.state.config.highlight\n return highlightStyle(highlight[user.screen_name])\n },\n hideAttachments () {\n return (this.$store.state.config.hideAttachments && !this.inConversation) ||\n (this.$store.state.config.hideAttachmentsInConv && this.inConversation)\n },\n userProfileLink () {\n return this.generateUserProfileLink(this.status.user.id, this.status.user.screen_name)\n },\n replyProfileLink () {\n if (this.isReply) {\n return this.generateUserProfileLink(this.status.in_reply_to_user_id, this.replyToName)\n }\n },\n retweet () { return !!this.statusoid.retweeted_status },\n retweeter () { return this.statusoid.user.name || this.statusoid.user.screen_name },\n retweeterHtml () { return this.statusoid.user.name_html },\n retweeterProfileLink () { return this.generateUserProfileLink(this.statusoid.user.id, this.statusoid.user.screen_name) },\n status () {\n if (this.retweet) {\n return this.statusoid.retweeted_status\n } else {\n return this.statusoid\n }\n },\n statusFromGlobalRepository () {\n // NOTE: Consider to replace status with statusFromGlobalRepository\n return this.$store.state.statuses.allStatusesObject[this.status.id]\n },\n loggedIn () {\n return !!this.$store.state.users.currentUser\n },\n muteWordHits () {\n const statusText = this.status.text.toLowerCase()\n const hits = filter(this.muteWords, (muteWord) => {\n return statusText.includes(muteWord.toLowerCase())\n })\n\n return hits\n },\n muted () { return !this.unmuted && (this.status.user.muted || this.muteWordHits.length > 0) },\n hideFilteredStatuses () {\n return typeof this.$store.state.config.hideFilteredStatuses === 'undefined'\n ? this.$store.state.instance.hideFilteredStatuses\n : this.$store.state.config.hideFilteredStatuses\n },\n hideStatus () {\n return (this.hideReply || this.deleted) || (this.muted && this.hideFilteredStatuses)\n },\n isFocused () {\n // retweet or root of an expanded conversation\n if (this.focused) {\n return true\n } else if (!this.inConversation) {\n return false\n }\n // use conversation highlight only when in conversation\n return this.status.id === this.highlight\n },\n // This is a bit hacky, but we want to approximate post height before rendering\n // so we count newlines (masto uses

for paragraphs, GS uses
between them)\n // as well as approximate line count by counting characters and approximating ~80\n // per line.\n //\n // Using max-height + overflow: auto for status components resulted in false positives\n // very often with japanese characters, and it was very annoying.\n tallStatus () {\n const lengthScore = this.status.statusnet_html.split(/ 20\n },\n longSubject () {\n return this.status.summary.length > 900\n },\n isReply () {\n return !!(this.status.in_reply_to_status_id && this.status.in_reply_to_user_id)\n },\n replyToName () {\n if (this.status.in_reply_to_screen_name) {\n return this.status.in_reply_to_screen_name\n } else {\n const user = this.$store.getters.findUser(this.status.in_reply_to_user_id)\n return user && user.screen_name\n }\n },\n hideReply () {\n if (this.$store.state.config.replyVisibility === 'all') {\n return false\n }\n if (this.inConversation || !this.isReply) {\n return false\n }\n if (this.status.user.id === this.$store.state.users.currentUser.id) {\n return false\n }\n if (this.status.type === 'retweet') {\n return false\n }\n var checkFollowing = this.$store.state.config.replyVisibility === 'following'\n for (var i = 0; i < this.status.attentions.length; ++i) {\n if (this.status.user.id === this.status.attentions[i].id) {\n continue\n }\n if (checkFollowing && this.$store.getters.findUser(this.status.attentions[i].id).following) {\n return false\n }\n if (this.status.attentions[i].id === this.$store.state.users.currentUser.id) {\n return false\n }\n }\n return this.status.attentions.length > 0\n },\n hideSubjectStatus () {\n if (this.tallStatus && !this.localCollapseSubjectDefault) {\n return false\n }\n return !this.expandingSubject && this.status.summary\n },\n hideTallStatus () {\n if (this.status.summary && this.localCollapseSubjectDefault) {\n return false\n }\n if (this.showingTall) {\n return false\n }\n return this.tallStatus\n },\n showingMore () {\n return (this.tallStatus && this.showingTall) || (this.status.summary && this.expandingSubject)\n },\n nsfwClickthrough () {\n if (!this.status.nsfw) {\n return false\n }\n if (this.status.summary && this.localCollapseSubjectDefault) {\n return false\n }\n return true\n },\n replySubject () {\n if (!this.status.summary) return ''\n const decodedSummary = unescape(this.status.summary)\n const behavior = typeof this.$store.state.config.subjectLineBehavior === 'undefined'\n ? this.$store.state.instance.subjectLineBehavior\n : this.$store.state.config.subjectLineBehavior\n const startsWithRe = decodedSummary.match(/^re[: ]/i)\n if (behavior !== 'noop' && startsWithRe || behavior === 'masto') {\n return decodedSummary\n } else if (behavior === 'email') {\n return 're: '.concat(decodedSummary)\n } else if (behavior === 'noop') {\n return ''\n }\n },\n attachmentSize () {\n if ((this.$store.state.config.hideAttachments && !this.inConversation) ||\n (this.$store.state.config.hideAttachmentsInConv && this.inConversation) ||\n (this.status.attachments.length > this.maxThumbnails)) {\n return 'hide'\n } else if (this.compact) {\n return 'small'\n }\n return 'normal'\n },\n galleryTypes () {\n if (this.attachmentSize === 'hide') {\n return []\n }\n return this.$store.state.config.playVideosInModal\n ? ['image', 'video']\n : ['image']\n },\n galleryAttachments () {\n return this.status.attachments.filter(\n file => fileType.fileMatchesSomeType(this.galleryTypes, file)\n )\n },\n nonGalleryAttachments () {\n return this.status.attachments.filter(\n file => !fileType.fileMatchesSomeType(this.galleryTypes, file)\n )\n },\n maxThumbnails () {\n return this.$store.state.config.maxThumbnails\n },\n contentHtml () {\n if (!this.status.summary_html) {\n return this.status.statusnet_html\n }\n return this.status.summary_html + '
' + this.status.statusnet_html\n },\n combinedFavsAndRepeatsUsers () {\n // Use the status from the global status repository since favs and repeats are saved in it\n const combinedUsers = [].concat(\n this.statusFromGlobalRepository.favoritedBy,\n this.statusFromGlobalRepository.rebloggedBy\n )\n return uniqBy(combinedUsers, 'id')\n },\n ownStatus () {\n return this.status.user.id === this.$store.state.users.currentUser.id\n },\n tags () {\n return this.status.tags.filter(tagObj => tagObj.hasOwnProperty('name')).map(tagObj => tagObj.name).join(' ')\n }\n },\n components: {\n Attachment,\n FavoriteButton,\n RetweetButton,\n ExtraButtons,\n PostStatusForm,\n Poll,\n UserCard,\n UserAvatar,\n Gallery,\n LinkPreview,\n AvatarList,\n Timeago\n },\n methods: {\n visibilityIcon (visibility) {\n switch (visibility) {\n case 'private':\n return 'icon-lock'\n case 'unlisted':\n return 'icon-lock-open-alt'\n case 'direct':\n return 'icon-mail-alt'\n default:\n return 'icon-globe'\n }\n },\n showError (error) {\n this.error = error\n },\n clearError () {\n this.error = undefined\n },\n linkClicked (event) {\n let { target } = event\n if (target.tagName === 'SPAN') {\n target = target.parentNode\n }\n if (target.tagName === 'A') {\n if (target.className.match(/mention/)) {\n const href = target.href\n const attn = this.status.attentions.find(attn => mentionMatchesUrl(attn, href))\n if (attn) {\n event.stopPropagation()\n event.preventDefault()\n const link = this.generateUserProfileLink(attn.id, attn.screen_name)\n this.$router.push(link)\n return\n }\n }\n if (target.className.match(/hashtag/)) {\n // Extract tag name from link url\n const tag = extractTagFromUrl(target.href)\n if (tag) {\n const link = this.generateTagLink(tag)\n this.$router.push(link)\n return\n }\n }\n window.open(target.href, '_blank')\n }\n },\n toggleReplying () {\n this.replying = !this.replying\n },\n gotoOriginal (id) {\n if (this.inConversation) {\n this.$emit('goto', id)\n }\n },\n toggleExpanded () {\n this.$emit('toggleExpanded')\n },\n toggleMute () {\n this.unmuted = !this.unmuted\n },\n toggleUserExpanded () {\n this.userExpanded = !this.userExpanded\n },\n toggleShowMore () {\n if (this.showingTall) {\n this.showingTall = false\n } else if (this.expandingSubject && this.status.summary) {\n this.expandingSubject = false\n } else if (this.hideTallStatus) {\n this.showingTall = true\n } else if (this.hideSubjectStatus && this.status.summary) {\n this.expandingSubject = true\n }\n },\n replyEnter (id, event) {\n this.showPreview = true\n const targetId = id\n const statuses = this.$store.state.statuses.allStatuses\n\n if (!this.preview) {\n // if we have the status somewhere already\n this.preview = find(statuses, { 'id': targetId })\n // or if we have to fetch it\n if (!this.preview) {\n this.$store.state.api.backendInteractor.fetchStatus({ id }).then((status) => {\n this.preview = status\n })\n }\n } else if (this.preview.id !== targetId) {\n this.preview = find(statuses, { 'id': targetId })\n }\n },\n replyLeave () {\n this.showPreview = false\n },\n generateUserProfileLink (id, name) {\n return generateProfileLink(id, name, this.$store.state.instance.restrictedNicknames)\n },\n generateTagLink (tag) {\n return `/tag/${tag}`\n },\n setMedia () {\n const attachments = this.attachmentSize === 'hide' ? this.status.attachments : this.galleryAttachments\n return () => this.$store.dispatch('setMedia', attachments)\n }\n },\n watch: {\n 'highlight': function (id) {\n if (this.status.id === id) {\n let rect = this.$el.getBoundingClientRect()\n if (rect.top < 100) {\n // Post is above screen, match its top to screen top\n window.scrollBy(0, rect.top - 100)\n } else if (rect.height >= (window.innerHeight - 50)) {\n // Post we want to see is taller than screen so match its top to screen top\n window.scrollBy(0, rect.top - 100)\n } else if (rect.bottom > window.innerHeight - 50) {\n // Post is below screen, match its bottom to screen bottom\n window.scrollBy(0, rect.bottom - window.innerHeight + 50)\n }\n }\n }\n },\n filters: {\n capitalize: function (str) {\n return str.charAt(0).toUpperCase() + str.slice(1)\n }\n }\n}\n\nexport default Status\n","import StillImage from '../still-image/still-image.vue'\nimport VideoAttachment from '../video_attachment/video_attachment.vue'\nimport nsfwImage from '../../assets/nsfw.png'\nimport fileTypeService from '../../services/file_type/file_type.service.js'\n\nconst Attachment = {\n props: [\n 'attachment',\n 'nsfw',\n 'statusId',\n 'size',\n 'allowPlay',\n 'setMedia'\n ],\n data () {\n return {\n nsfwImage: this.$store.state.instance.nsfwCensorImage || nsfwImage,\n hideNsfwLocal: this.$store.state.config.hideNsfw,\n preloadImage: this.$store.state.config.preloadImage,\n loading: false,\n img: fileTypeService.fileType(this.attachment.mimetype) === 'image' && document.createElement('img'),\n modalOpen: false,\n showHidden: false\n }\n },\n components: {\n StillImage,\n VideoAttachment\n },\n computed: {\n usePlaceHolder () {\n return this.size === 'hide' || this.type === 'unknown'\n },\n referrerpolicy () {\n return this.$store.state.instance.mediaProxyAvailable ? '' : 'no-referrer'\n },\n type () {\n return fileTypeService.fileType(this.attachment.mimetype)\n },\n hidden () {\n return this.nsfw && this.hideNsfwLocal && !this.showHidden\n },\n isEmpty () {\n return (this.type === 'html' && !this.attachment.oembed) || this.type === 'unknown'\n },\n isSmall () {\n return this.size === 'small'\n },\n fullwidth () {\n return this.type === 'html' || this.type === 'audio'\n }\n },\n methods: {\n linkClicked ({target}) {\n if (target.tagName === 'A') {\n window.open(target.href, '_blank')\n }\n },\n openModal (event) {\n const modalTypes = this.$store.state.config.playVideosInModal\n ? ['image', 'video']\n : ['image']\n if (fileTypeService.fileMatchesSomeType(modalTypes, this.attachment) ||\n this.usePlaceHolder\n ) {\n event.stopPropagation()\n event.preventDefault()\n this.setMedia()\n this.$store.dispatch('setCurrent', this.attachment)\n }\n },\n toggleHidden (event) {\n if (this.$store.state.config.useOneClickNsfw && !this.showHidden) {\n this.openModal(event)\n return\n }\n if (this.img && !this.preloadImage) {\n if (this.img.onload) {\n this.img.onload()\n } else {\n this.loading = true\n this.img.src = this.attachment.url\n this.img.onload = () => {\n this.loading = false\n this.showHidden = !this.showHidden\n }\n }\n } else {\n this.showHidden = !this.showHidden\n }\n }\n }\n}\n\nexport default Attachment\n","const StillImage = {\n props: [\n 'src',\n 'referrerpolicy',\n 'mimetype',\n 'imageLoadError'\n ],\n data () {\n return {\n stopGifs: this.$store.state.config.stopGifs\n }\n },\n computed: {\n animated () {\n return this.stopGifs && (this.mimetype === 'image/gif' || this.src.endsWith('.gif'))\n }\n },\n methods: {\n onLoad () {\n const canvas = this.$refs.canvas\n if (!canvas) return\n const width = this.$refs.src.naturalWidth\n const height = this.$refs.src.naturalHeight\n canvas.width = width\n canvas.height = height\n canvas.getContext('2d').drawImage(this.$refs.src, 0, 0, width, height)\n },\n onError () {\n this.imageLoadError && this.imageLoadError()\n }\n }\n}\n\nexport default StillImage\n","\nconst VideoAttachment = {\n props: ['attachment', 'controls'],\n data () {\n return {\n loopVideo: this.$store.state.config.loopVideo\n }\n },\n methods: {\n onVideoDataLoad (e) {\n const target = e.srcElement || e.target\n if (typeof target.webkitAudioDecodedByteCount !== 'undefined') {\n // non-zero if video has audio track\n if (target.webkitAudioDecodedByteCount > 0) {\n this.loopVideo = this.loopVideo && !this.$store.state.config.loopVideoSilentOnly\n }\n } else if (typeof target.mozHasAudio !== 'undefined') {\n // true if video has audio track\n if (target.mozHasAudio) {\n this.loopVideo = this.loopVideo && !this.$store.state.config.loopVideoSilentOnly\n }\n } else if (typeof target.audioTracks !== 'undefined') {\n if (target.audioTracks.length > 0) {\n this.loopVideo = this.loopVideo && !this.$store.state.config.loopVideoSilentOnly\n }\n }\n }\n }\n}\n\nexport default VideoAttachment\n","const FavoriteButton = {\n props: ['status', 'loggedIn'],\n data () {\n return {\n hidePostStatsLocal: typeof this.$store.state.config.hidePostStats === 'undefined'\n ? this.$store.state.instance.hidePostStats\n : this.$store.state.config.hidePostStats,\n animated: false\n }\n },\n methods: {\n favorite () {\n if (!this.status.favorited) {\n this.$store.dispatch('favorite', {id: this.status.id})\n } else {\n this.$store.dispatch('unfavorite', {id: this.status.id})\n }\n this.animated = true\n setTimeout(() => {\n this.animated = false\n }, 500)\n }\n },\n computed: {\n classes () {\n return {\n 'icon-star-empty': !this.status.favorited,\n 'icon-star': this.status.favorited,\n 'animate-spin': this.animated\n }\n }\n }\n}\n\nexport default FavoriteButton\n","const RetweetButton = {\n props: ['status', 'loggedIn', 'visibility'],\n data () {\n return {\n hidePostStatsLocal: typeof this.$store.state.config.hidePostStats === 'undefined'\n ? this.$store.state.instance.hidePostStats\n : this.$store.state.config.hidePostStats,\n animated: false\n }\n },\n methods: {\n retweet () {\n if (!this.status.repeated) {\n this.$store.dispatch('retweet', {id: this.status.id})\n } else {\n this.$store.dispatch('unretweet', {id: this.status.id})\n }\n this.animated = true\n setTimeout(() => {\n this.animated = false\n }, 500)\n }\n },\n computed: {\n classes () {\n return {\n 'retweeted': this.status.repeated,\n 'retweeted-empty': !this.status.repeated,\n 'animate-spin': this.animated\n }\n }\n }\n}\n\nexport default RetweetButton\n","import Timeago from '../timeago/timeago.vue'\nimport { forEach, map } from 'lodash'\n\nexport default {\n name: 'Poll',\n props: ['basePoll'],\n components: { Timeago },\n data () {\n return {\n loading: false,\n choices: []\n }\n },\n created () {\n if (!this.$store.state.polls.pollsObject[this.pollId]) {\n this.$store.dispatch('mergeOrAddPoll', this.basePoll)\n }\n this.$store.dispatch('trackPoll', this.pollId)\n },\n destroyed () {\n this.$store.dispatch('untrackPoll', this.pollId)\n },\n computed: {\n pollId () {\n return this.basePoll.id\n },\n poll () {\n const storePoll = this.$store.state.polls.pollsObject[this.pollId]\n return storePoll || {}\n },\n options () {\n return (this.poll && this.poll.options) || []\n },\n expiresAt () {\n return (this.poll && this.poll.expires_at) || 0\n },\n expired () {\n return (this.poll && this.poll.expired) || false\n },\n loggedIn () {\n return this.$store.state.users.currentUser\n },\n showResults () {\n return this.poll.voted || this.expired || !this.loggedIn\n },\n totalVotesCount () {\n return this.poll.votes_count\n },\n containerClass () {\n return {\n loading: this.loading\n }\n },\n choiceIndices () {\n // Convert array of booleans into an array of indices of the\n // items that were 'true', so [true, false, false, true] becomes\n // [0, 3].\n return this.choices\n .map((entry, index) => entry && index)\n .filter(value => typeof value === 'number')\n },\n isDisabled () {\n const noChoice = this.choiceIndices.length === 0\n return this.loading || noChoice\n }\n },\n methods: {\n percentageForOption (count) {\n return this.totalVotesCount === 0 ? 0 : Math.round(count / this.totalVotesCount * 100)\n },\n resultTitle (option) {\n return `${option.votes_count}/${this.totalVotesCount} ${this.$t('polls.votes')}`\n },\n fetchPoll () {\n this.$store.dispatch('refreshPoll', { id: this.statusId, pollId: this.poll.id })\n },\n activateOption (index) {\n // forgive me father: doing checking the radio/checkboxes\n // in code because of customized input elements need either\n // a) an extra element for the actual graphic, or b) use a\n // pseudo element for the label. We use b) which mandates\n // using \"for\" and \"id\" matching which isn't nice when the\n // same poll appears multiple times on the site (notifs and\n // timeline for example). With code we can make sure it just\n // works without altering the pseudo element implementation.\n const allElements = this.$el.querySelectorAll('input')\n const clickedElement = this.$el.querySelector(`input[value=\"${index}\"]`)\n if (this.poll.multiple) {\n // Checkboxes, toggle only the clicked one\n clickedElement.checked = !clickedElement.checked\n } else {\n // Radio button, uncheck everything and check the clicked one\n forEach(allElements, element => { element.checked = false })\n clickedElement.checked = true\n }\n this.choices = map(allElements, e => e.checked)\n },\n optionId (index) {\n return `poll${this.poll.id}-${index}`\n },\n vote () {\n if (this.choiceIndices.length === 0) return\n this.loading = true\n this.$store.dispatch(\n 'votePoll',\n { id: this.statusId, pollId: this.poll.id, choices: this.choiceIndices }\n ).then(poll => {\n this.loading = false\n })\n }\n }\n}\n","\n\n","import Popper from 'vue-popperjs/src/component/popper.js.vue'\n\nconst ExtraButtons = {\n props: [ 'status' ],\n components: {\n Popper\n },\n data () {\n return {\n showDropDown: false,\n showPopper: true\n }\n },\n methods: {\n deleteStatus () {\n this.refreshPopper()\n const confirmed = window.confirm(this.$t('status.delete_confirm'))\n if (confirmed) {\n this.$store.dispatch('deleteStatus', { id: this.status.id })\n }\n },\n toggleMenu () {\n this.showDropDown = !this.showDropDown\n },\n pinStatus () {\n this.refreshPopper()\n this.$store.dispatch('pinStatus', this.status.id)\n .then(() => this.$emit('onSuccess'))\n .catch(err => this.$emit('onError', err.error.error))\n },\n unpinStatus () {\n this.refreshPopper()\n this.$store.dispatch('unpinStatus', this.status.id)\n .then(() => this.$emit('onSuccess'))\n .catch(err => this.$emit('onError', err.error.error))\n },\n refreshPopper () {\n this.showPopper = false\n this.showDropDown = false\n setTimeout(() => {\n this.showPopper = true\n })\n }\n },\n computed: {\n currentUser () { return this.$store.state.users.currentUser },\n canDelete () {\n if (!this.currentUser) { return }\n const superuser = this.currentUser.rights.moderator || this.currentUser.rights.admin\n return superuser || this.status.user.id === this.currentUser.id\n },\n ownStatus () {\n return this.status.user.id === this.currentUser.id\n },\n canPin () {\n return this.ownStatus && (this.status.visibility === 'public' || this.status.visibility === 'unlisted')\n },\n enabled () {\n return this.canPin || this.canDelete\n }\n }\n}\n\nexport default ExtraButtons\n","import statusPoster from '../../services/status_poster/status_poster.service.js'\nimport MediaUpload from '../media_upload/media_upload.vue'\nimport ScopeSelector from '../scope_selector/scope_selector.vue'\nimport EmojiInput from '../emoji-input/emoji-input.vue'\nimport PollForm from '../poll/poll_form.vue'\nimport fileTypeService from '../../services/file_type/file_type.service.js'\nimport { reject, map, uniqBy } from 'lodash'\nimport suggestor from '../emoji-input/suggestor.js'\n\nconst buildMentionsString = ({ user, attentions }, currentUser) => {\n let allAttentions = [...attentions]\n\n allAttentions.unshift(user)\n\n allAttentions = uniqBy(allAttentions, 'id')\n allAttentions = reject(allAttentions, { id: currentUser.id })\n\n let mentions = map(allAttentions, (attention) => {\n return `@${attention.screen_name}`\n })\n\n return mentions.length > 0 ? mentions.join(' ') + ' ' : ''\n}\n\nconst PostStatusForm = {\n props: [\n 'replyTo',\n 'repliedUser',\n 'attentions',\n 'copyMessageScope',\n 'subject'\n ],\n components: {\n MediaUpload,\n EmojiInput,\n PollForm,\n ScopeSelector\n },\n mounted () {\n this.resize(this.$refs.textarea)\n const textLength = this.$refs.textarea.value.length\n this.$refs.textarea.setSelectionRange(textLength, textLength)\n\n if (this.replyTo) {\n this.$refs.textarea.focus()\n }\n },\n data () {\n const preset = this.$route.query.message\n let statusText = preset || ''\n\n const scopeCopy = typeof this.$store.state.config.scopeCopy === 'undefined'\n ? this.$store.state.instance.scopeCopy\n : this.$store.state.config.scopeCopy\n\n if (this.replyTo) {\n const currentUser = this.$store.state.users.currentUser\n statusText = buildMentionsString({ user: this.repliedUser, attentions: this.attentions }, currentUser)\n }\n\n const scope = ((this.copyMessageScope && scopeCopy) || this.copyMessageScope === 'direct')\n ? this.copyMessageScope\n : this.$store.state.users.currentUser.default_scope\n\n const contentType = typeof this.$store.state.config.postContentType === 'undefined'\n ? this.$store.state.instance.postContentType\n : this.$store.state.config.postContentType\n\n return {\n dropFiles: [],\n submitDisabled: false,\n error: null,\n posting: false,\n highlighted: 0,\n newStatus: {\n spoilerText: this.subject || '',\n status: statusText,\n nsfw: false,\n files: [],\n poll: {},\n visibility: scope,\n contentType\n },\n caret: 0,\n pollFormVisible: false\n }\n },\n computed: {\n users () {\n return this.$store.state.users.users\n },\n userDefaultScope () {\n return this.$store.state.users.currentUser.default_scope\n },\n showAllScopes () {\n const minimalScopesMode = typeof this.$store.state.config.minimalScopesMode === 'undefined'\n ? this.$store.state.instance.minimalScopesMode\n : this.$store.state.config.minimalScopesMode\n return !minimalScopesMode\n },\n emojiUserSuggestor () {\n return suggestor({\n emoji: [\n ...this.$store.state.instance.emoji,\n ...this.$store.state.instance.customEmoji\n ],\n users: this.$store.state.users.users\n })\n },\n emojiSuggestor () {\n return suggestor({\n emoji: [\n ...this.$store.state.instance.emoji,\n ...this.$store.state.instance.customEmoji\n ]\n })\n },\n emoji () {\n return this.$store.state.instance.emoji || []\n },\n customEmoji () {\n return this.$store.state.instance.customEmoji || []\n },\n statusLength () {\n return this.newStatus.status.length\n },\n spoilerTextLength () {\n return this.newStatus.spoilerText.length\n },\n statusLengthLimit () {\n return this.$store.state.instance.textlimit\n },\n hasStatusLengthLimit () {\n return this.statusLengthLimit > 0\n },\n charactersLeft () {\n return this.statusLengthLimit - (this.statusLength + this.spoilerTextLength)\n },\n isOverLengthLimit () {\n return this.hasStatusLengthLimit && (this.charactersLeft < 0)\n },\n minimalScopesMode () {\n return this.$store.state.instance.minimalScopesMode\n },\n alwaysShowSubject () {\n if (typeof this.$store.state.config.alwaysShowSubjectInput !== 'undefined') {\n return this.$store.state.config.alwaysShowSubjectInput\n } else if (typeof this.$store.state.instance.alwaysShowSubjectInput !== 'undefined') {\n return this.$store.state.instance.alwaysShowSubjectInput\n } else {\n return true\n }\n },\n postFormats () {\n return this.$store.state.instance.postFormats || []\n },\n safeDMEnabled () {\n return this.$store.state.instance.safeDM\n },\n pollsAvailable () {\n return this.$store.state.instance.pollsAvailable &&\n this.$store.state.instance.pollLimits.max_options >= 2\n },\n hideScopeNotice () {\n return this.$store.state.config.hideScopeNotice\n },\n pollContentError () {\n return this.pollFormVisible &&\n this.newStatus.poll &&\n this.newStatus.poll.error\n }\n },\n methods: {\n postStatus (newStatus) {\n if (this.posting) { return }\n if (this.submitDisabled) { return }\n\n if (this.newStatus.status === '') {\n if (this.newStatus.files.length > 0) {\n this.newStatus.status = '\\u200b' // hack\n } else {\n this.error = 'Cannot post an empty status with no files'\n return\n }\n }\n\n const poll = this.pollFormVisible ? this.newStatus.poll : {}\n if (this.pollContentError) {\n this.error = this.pollContentError\n return\n }\n\n this.posting = true\n statusPoster.postStatus({\n status: newStatus.status,\n spoilerText: newStatus.spoilerText || null,\n visibility: newStatus.visibility,\n sensitive: newStatus.nsfw,\n media: newStatus.files,\n store: this.$store,\n inReplyToStatusId: this.replyTo,\n contentType: newStatus.contentType,\n poll\n }).then((data) => {\n if (!data.error) {\n this.newStatus = {\n status: '',\n spoilerText: '',\n files: [],\n visibility: newStatus.visibility,\n contentType: newStatus.contentType,\n poll: {}\n }\n this.pollFormVisible = false\n this.$refs.mediaUpload.clearFile()\n this.clearPollForm()\n this.$emit('posted')\n let el = this.$el.querySelector('textarea')\n el.style.height = 'auto'\n el.style.height = undefined\n this.error = null\n } else {\n this.error = data.error\n }\n this.posting = false\n })\n },\n addMediaFile (fileInfo) {\n this.newStatus.files.push(fileInfo)\n this.enableSubmit()\n },\n removeMediaFile (fileInfo) {\n let index = this.newStatus.files.indexOf(fileInfo)\n this.newStatus.files.splice(index, 1)\n },\n uploadFailed (errString, templateArgs) {\n templateArgs = templateArgs || {}\n this.error = this.$t('upload.error.base') + ' ' + this.$t('upload.error.' + errString, templateArgs)\n this.enableSubmit()\n },\n disableSubmit () {\n this.submitDisabled = true\n },\n enableSubmit () {\n this.submitDisabled = false\n },\n type (fileInfo) {\n return fileTypeService.fileType(fileInfo.mimetype)\n },\n paste (e) {\n if (e.clipboardData.files.length > 0) {\n // prevent pasting of file as text\n e.preventDefault()\n // Strangely, files property gets emptied after event propagation\n // Trying to wrap it in array doesn't work. Plus I doubt it's possible\n // to hold more than one file in clipboard.\n this.dropFiles = [e.clipboardData.files[0]]\n }\n },\n fileDrop (e) {\n if (e.dataTransfer.files.length > 0) {\n e.preventDefault() // allow dropping text like before\n this.dropFiles = e.dataTransfer.files\n }\n },\n fileDrag (e) {\n e.dataTransfer.dropEffect = 'copy'\n },\n resize (e) {\n const target = e.target || e\n if (!(target instanceof window.Element)) { return }\n const topPaddingStr = window.getComputedStyle(target)['padding-top']\n const bottomPaddingStr = window.getComputedStyle(target)['padding-bottom']\n // Remove \"px\" at the end of the values\n const vertPadding = Number(topPaddingStr.substr(0, topPaddingStr.length - 2)) +\n Number(bottomPaddingStr.substr(0, bottomPaddingStr.length - 2))\n // Auto is needed to make textbox shrink when removing lines\n target.style.height = 'auto'\n target.style.height = `${target.scrollHeight - vertPadding}px`\n if (target.value === '') {\n target.style.height = null\n }\n },\n clearError () {\n this.error = null\n },\n changeVis (visibility) {\n this.newStatus.visibility = visibility\n },\n togglePollForm () {\n this.pollFormVisible = !this.pollFormVisible\n },\n setPoll (poll) {\n this.newStatus.poll = poll\n },\n clearPollForm () {\n if (this.$refs.pollForm) {\n this.$refs.pollForm.clear()\n }\n },\n dismissScopeNotice () {\n this.$store.dispatch('setOption', { name: 'hideScopeNotice', value: true })\n }\n }\n}\n\nexport default PostStatusForm\n","/* eslint-env browser */\nimport statusPosterService from '../../services/status_poster/status_poster.service.js'\nimport fileSizeFormatService from '../../services/file_size_format/file_size_format.js'\n\nconst mediaUpload = {\n data () {\n return {\n uploading: false,\n uploadReady: true\n }\n },\n methods: {\n uploadFile (file) {\n const self = this\n const store = this.$store\n if (file.size > store.state.instance.uploadlimit) {\n const filesize = fileSizeFormatService.fileSizeFormat(file.size)\n const allowedsize = fileSizeFormatService.fileSizeFormat(store.state.instance.uploadlimit)\n self.$emit('upload-failed', 'file_too_big', {filesize: filesize.num, filesizeunit: filesize.unit, allowedsize: allowedsize.num, allowedsizeunit: allowedsize.unit})\n return\n }\n const formData = new FormData()\n formData.append('file', file)\n\n self.$emit('uploading')\n self.uploading = true\n\n statusPosterService.uploadMedia({ store, formData })\n .then((fileData) => {\n self.$emit('uploaded', fileData)\n self.uploading = false\n }, (error) => { // eslint-disable-line handle-callback-err\n self.$emit('upload-failed', 'default')\n self.uploading = false\n })\n },\n fileDrop (e) {\n if (e.dataTransfer.files.length > 0) {\n e.preventDefault() // allow dropping text like before\n this.uploadFile(e.dataTransfer.files[0])\n }\n },\n fileDrag (e) {\n let types = e.dataTransfer.types\n if (types.contains('Files')) {\n e.dataTransfer.dropEffect = 'copy'\n } else {\n e.dataTransfer.dropEffect = 'none'\n }\n },\n clearFile () {\n this.uploadReady = false\n this.$nextTick(() => {\n this.uploadReady = true\n })\n },\n change ({target}) {\n for (var i = 0; i < target.files.length; i++) {\n let file = target.files[i]\n this.uploadFile(file)\n }\n }\n },\n props: [\n 'dropFiles'\n ],\n watch: {\n 'dropFiles': function (fileInfos) {\n if (!this.uploading) {\n this.uploadFile(fileInfos[0])\n }\n }\n }\n}\n\nexport default mediaUpload\n","const ScopeSelector = {\n props: [\n 'showAll',\n 'userDefault',\n 'originalScope',\n 'initialScope',\n 'onScopeChange'\n ],\n data () {\n return {\n currentScope: this.initialScope\n }\n },\n computed: {\n showNothing () {\n return !this.showPublic && !this.showUnlisted && !this.showPrivate && !this.showDirect\n },\n showPublic () {\n return this.originalScope !== 'direct' && this.shouldShow('public')\n },\n showUnlisted () {\n return this.originalScope !== 'direct' && this.shouldShow('unlisted')\n },\n showPrivate () {\n return this.originalScope !== 'direct' && this.shouldShow('private')\n },\n showDirect () {\n return this.shouldShow('direct')\n },\n css () {\n return {\n public: {selected: this.currentScope === 'public'},\n unlisted: {selected: this.currentScope === 'unlisted'},\n private: {selected: this.currentScope === 'private'},\n direct: {selected: this.currentScope === 'direct'}\n }\n }\n },\n methods: {\n shouldShow (scope) {\n return this.showAll ||\n this.currentScope === scope ||\n this.originalScope === scope ||\n this.userDefault === scope ||\n scope === 'direct'\n },\n changeVis (scope) {\n this.currentScope = scope\n this.onScopeChange && this.onScopeChange(scope)\n }\n }\n}\n\nexport default ScopeSelector\n","import Completion from '../../services/completion/completion.js'\nimport { take } from 'lodash'\n\n/**\n * EmojiInput - augmented inputs for emoji and autocomplete support in inputs\n * without having to give up the comfort of and