From: sadposter Date: Fri, 8 May 2020 13:12:33 +0000 (+0100) Subject: Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e18958a5d7ed2d31026ee921dfcc0501b5d2881b;p=akkoma Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop --- e18958a5d7ed2d31026ee921dfcc0501b5d2881b diff --cc lib/mix/tasks/pleroma/activity.ex index e03966e18,000000000..b4ab2f7df mode 100644,000000..100644 --- a/lib/mix/tasks/pleroma/activity.ex +++ b/lib/mix/tasks/pleroma/activity.ex @@@ -1,23 -1,0 +1,24 @@@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2018 Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Mix.Tasks.Pleroma.Activity do + alias Pleroma.Activity + require Logger + import Mix.Pleroma + use Mix.Task + + @shortdoc "A collection of activity debug tasks" + @moduledoc """ + A collection of activity related tasks + + mix pleroma.activity get + """ + def run(["get", id | _rest]) do + start_pleroma() ++ + id + |> Activity.get_by_id() + |> IO.inspect() + end +end diff --cc lib/mix/tasks/pleroma/user.ex index d8400662d,da140ac86..74cf50f04 --- a/lib/mix/tasks/pleroma/user.ex +++ b/lib/mix/tasks/pleroma/user.ex @@@ -333,35 -336,6 +336,39 @@@ defmodule Mix.Tasks.Pleroma.User d end end + def run(["change_email", nickname, email]) do + start_pleroma() ++ + with %User{} = user <- User.get_cached_by_nickname(nickname) do - user - |> User.update_changeset(%{"email" => email}) - |> User.update_and_set_cache() - shell_info("#{nickname}'s email updated") ++ user ++ |> User.update_changeset(%{"email" => email}) ++ |> User.update_and_set_cache() ++ ++ shell_info("#{nickname}'s email updated") + end + end + + def run(["show", nickname]) do + start_pleroma() ++ + nickname + |> User.get_cached_by_nickname() - |> IO.inspect ++ |> IO.inspect() + end + + def run(["send_confirmation", nickname]) do + start_pleroma() ++ + with %User{} = user <- User.get_cached_by_nickname(nickname) do - user - |> Pleroma.Emails.UserEmail.account_confirmation_email() - |> IO.inspect - |> Pleroma.Emails.Mailer.deliver!() - shell_info("#{nickname}'s email sent") ++ user ++ |> Pleroma.Emails.UserEmail.account_confirmation_email() ++ |> IO.inspect() ++ |> Pleroma.Emails.Mailer.deliver!() ++ ++ shell_info("#{nickname}'s email sent") + end + end - + def run(["toggle_confirmed", nickname]) do start_pleroma() diff --cc lib/pleroma/web/nodeinfo/nodeinfo_controller.ex index e4396da31,721b599d4..b9c12374c --- a/lib/pleroma/web/nodeinfo/nodeinfo_controller.ex +++ b/lib/pleroma/web/nodeinfo/nodeinfo_controller.ex @@@ -42,47 -37,9 +37,10 @@@ defmodule Pleroma.Web.Nodeinfo.Nodeinfo staff_accounts = User.all_superusers() |> Enum.map(fn u -> u.ap_id end) + |> Enum.filter(fn u -> not Enum.member?(Config.get([:instance, :staff_transparency]), u) end) - federation_response = - if Config.get([:instance, :mrf_transparency]) do - {:ok, data} = MRF.describe() - - data - |> Map.merge(%{quarantined_instances: quarantined}) - else - %{} - end - |> Map.put(:enabled, Config.get([:instance, :federating])) - - features = - [ - "pleroma_api", - "mastodon_api", - "mastodon_api_streaming", - "polls", - "pleroma_explicit_addressing", - "shareable_emoji_packs", - "multifetch", - "pleroma:api/v1/notifications:include_types_filter", - if Config.get([:media_proxy, :enabled]) do - "media_proxy" - end, - if Config.get([:gopher, :enabled]) do - "gopher" - end, - if Config.get([:chat, :enabled]) do - "chat" - end, - if Config.get([:instance, :allow_relay]) do - "relay" - end, - if Config.get([:instance, :safe_dm_mentions]) do - "safe_dm_mentions" - end, - "pleroma_emoji_reactions" - ] - |> Enum.filter(& &1) + features = InstanceView.features() + federation = InstanceView.federation() %{ version: "2.0", diff --cc priv/static/index.html index a6cf28409,4fac5c100..6e3e9905d --- a/priv/static/index.html +++ b/priv/static/index.html @@@ -1,1 -1,1 +1,5 @@@ - Pleroma
-Pleroma
++<<<<<<< HEAD ++Pleroma
++======= ++Pleroma
++>>>>>>> fbcc53760e6fcd393513c05a5bd7a4a6a6f3b731 diff --cc priv/static/sw-pleroma.js index 0e037d43d,88244a549..ac065e10c --- a/priv/static/sw-pleroma.js +++ b/priv/static/sw-pleroma.js @@@ -1,4 -1,4 +1,8 @@@ ++<<<<<<< HEAD +var serviceWorkerOption = {"assets":["/static/fontello.1588196596336.css","/static/font/fontello.1588196596336.eot","/static/font/fontello.1588196596336.svg","/static/font/fontello.1588196596336.ttf","/static/font/fontello.1588196596336.woff","/static/font/fontello.1588196596336.woff2","/static/img/nsfw.ca95de9.png","/static/css/app.1055039ce3f2fe4dd110.css","/static/js/app.e689136d879ca1c869c6.js","/static/css/vendors~app.b2603a50868c68a1c192.css","/static/js/vendors~app.de343579e844e698d456.js","/static/js/2.f158cbd2b8770e467dfe.js"]}; ++======= + var serviceWorkerOption = {"assets":["/static/fontello.1588419330867.css","/static/font/fontello.1588419330867.eot","/static/font/fontello.1588419330867.svg","/static/font/fontello.1588419330867.ttf","/static/font/fontello.1588419330867.woff","/static/font/fontello.1588419330867.woff2","/static/img/nsfw.74818f9.png","/static/css/app.613cef07981cd95ccceb.css","/static/js/app.fa89b90e606f4facd209.js","/static/css/vendors~app.18fea621d430000acc27.css","/static/js/vendors~app.8aa781e6dd81307f544b.js","/static/js/2.1c407059cd79fca99e19.js"]}; ++>>>>>>> fbcc53760e6fcd393513c05a5bd7a4a6a6f3b731 !function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/",t(t.s=1)}([function(e,n){ /*!