commit: 47ce33a90d09878d5231ce9654853ebcd1b88c08
parent 50e7706b269d6008ae4778db86bc4462ffce5ee4
Author: tusooa <tusooa@kazv.moe>
Date: Thu, 7 Mar 2024 11:55:31 +0000
Apply tusooa's suggestion
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex
@@ -2015,10 +2015,8 @@ defmodule Pleroma.User do
when not_empty_string(host) and scheme in ["http", "https"] <-
URI.parse(value),
{:not_idn, true} <- {:not_idn, to_string(:idna.encode(host)) == host},
- attr <- Pleroma.Web.RelMe.maybe_put_rel_me(value, profile_urls) do
- if attr == "me" do
- CommonUtils.to_masto_date(NaiveDateTime.utc_now())
- end
+ "me" <- Pleroma.Web.RelMe.maybe_put_rel_me(value, profile_urls) do
+ CommonUtils.to_masto_date(NaiveDateTime.utc_now())
else
{:verified_at, value} when not_empty_string(value) ->
value