end
end
- def run(["toggle_confirmed", nickname]) do
+ 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")
+ end
+ end
+
+ def run(["show", nickname]) do
+ start_pleroma()
+
+ nickname
+ |> User.get_cached_by_nickname()
+ |> 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")
+ end
+ end
+
+ def run(["confirm", nickname]) do
start_pleroma()
with %User{} = user <- User.get_cached_by_nickname(nickname) do
}
)
++ plug(Plug.Static.IndexHtml, at: "/pleroma/fedife/")
++
++ plug(Pleroma.Web.Plugs.FrontendStatic,
++ at: "/pleroma/fedife",
++ frontend_type: :fedife,
++ gzip: true,
++ cache_control_for_etags: @static_cache_control,
++ headers: %{
++ "cache-control" => @static_cache_control
++ }
++ )
++
++
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
--- /dev/null
- {"menhera": "/static/stickers/menhera/", "yotsuba": "/static/stickers/yotsuba/", "yuruyuri": "/static/stickers/yuruyuri/", "bocchi": "/static/stickers/bocchi/", "yurukawa": "/static/stickers/yurukawa/", "gabdrop": "/static/stickers/gabdrop/", "evangelion": "/static/stickers/evangelion/", "shakaijin_kanojo": "/static/stickers/shakaijin_kanojo/", "pko": "/static/stickers/pko/", "ihba": "/static/stickers/ihba/", "azurlane": "/static/stickers/azurlane/"}
++{"menhera": "/static/stickers/menhera/", "yotsuba": "/static/stickers/yotsuba/", "yuruyuri": "/static/stickers/yuruyuri/", "bocchi": "/static/stickers/bocchi/", "yurukawa": "/static/stickers/yurukawa/", "gabdrop": "/static/stickers/gabdrop/", "evangelion": "/static/stickers/evangelion/", "shakaijin_kanojo": "/static/stickers/shakaijin_kanojo/", "pko": "/static/stickers/pko/", "ihba": "/static/stickers/ihba/", "azurlane": "/static/stickers/azurlane/", "omesis": "/static/stickers/omesis/"}
--- /dev/null
--- /dev/null
++{
++ "title": "omesis",
++ "author": "idk",
++ "tabIcon": "tab.png",
++ "stickers": ["354832559.png", "354832551.png", "354832549.png", "354832542.png", "354832548.png", "354832555.png", "354832544.png", "354832546.png", "354832560.png", "354832552.png", "354832558.png", "354832557.png", "354832553.png", "354832550.png", "354832565.png", "354832545.png", "354832561.png", "354832554.png", "354832556.png", "354832563.png", "354832543.png", "354832564.png", "354832547.png", "354832562.png"]
++}
--- /dev/null
--- /dev/null
++{"packageId":13451465,"onSale":true,"validDays":0,"title":{"en":"Omesis BIG sticker","ja":"おめシス スタンプ【BIG】"},"author":{"en":"OMEGA-SISTERS"},"price":[{"country":"@@","currency":"NLC","symbol":"NLC","price":100.0},{"country":"ID","currency":"IDR","symbol":"Rp","price":18700.0},{"country":"JP","currency":"JPY","symbol":"¥","price":240.0},{"country":"TH","currency":"THB","symbol":"THB","price":60.0},{"country":"TW","currency":"TWD","symbol":"NT$","price":70.0},{"country":"US","currency":"USD","symbol":"$","price":1.99}],"stickers":[{"id":354832542,"width":210,"height":340},{"id":354832543,"width":210,"height":340},{"id":354832544,"width":210,"height":340},{"id":354832545,"width":210,"height":340},{"id":354832546,"width":210,"height":340},{"id":354832547,"width":210,"height":340},{"id":354832548,"width":210,"height":340},{"id":354832549,"width":210,"height":340},{"id":354832550,"width":210,"height":340},{"id":354832551,"width":210,"height":340},{"id":354832552,"width":210,"height":340},{"id":354832553,"width":210,"height":340},{"id":354832554,"width":210,"height":340},{"id":354832555,"width":210,"height":340},{"id":354832556,"width":210,"height":340},{"id":354832557,"width":210,"height":340},{"id":354832558,"width":210,"height":340},{"id":354832559,"width":210,"height":340},{"id":354832560,"width":210,"height":340},{"id":354832561,"width":210,"height":340},{"id":354832562,"width":210,"height":340},{"id":354832563,"width":210,"height":340},{"id":354832564,"width":210,"height":340},{"id":354832565,"width":210,"height":340}],"hasAnimation":false,"hasSound":false,"stickerResourceType":"STATIC"}